2003-01-07 Andrew Cagney <cagney@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-07  Andrew Cagney  <cagney@redhat.com>
2
3         * frame.c (deprecated_get_frame_context): New function.
4         (deprecated_set_frame_context): New function.
5         * frame.h (deprecated_get_frame_context): Declare.
6         (deprecated_set_frame_context): Declare.
7         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
8         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9         
10 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11
12         * frame.c (deprecated_set_frame_next_hack): New function.
13         (deprecated_set_frame_prev_hack): New function.
14         * frame.h (deprecated_set_frame_next_hack): Declare.
15         (deprecated_set_frame_prev_hack): Declare.
16         * mcore-tdep.c (analyze_dummy_frame): Use
17         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
18         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
19
20 2003-01-07  David Carlton  <carlton@math.stanford.edu>
21
22         * linespec.c (decode_line_1): Move code into decode_dollar.
23         (decode_dollar): New function.
24
25 2003-01-07  Andrew Cagney  <cagney@redhat.com>
26
27         * arm-tdep.c (arm_init_extra_frame_info): Use
28         deprecated_update_frame_base_hack.
29         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
30         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
31         (fix_frame_pointer): Ditto.
32         (mn10300_analyze_prologue): Ditto.
33
34 2003-01-07  Andrew Cagney  <cagney@redhat.com>
35
36         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
37         extra_info using frame_extra_info_zalloc.
38         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
39         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
40         (sh64_init_extra_frame_info): Ditto.
41         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
42         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
43         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
44         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
45         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
46         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
47         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
48         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
49         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
50         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
51         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
52         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
53
54         * mn10300-tdep.c (analyze_dummy_frame): Use
55         deprecated_set_frame_extra_info_hack.
56         * mcore-tdep.c (analyze_dummy_frame): Ditto.
57
58 2003-01-07  J. Brobecker  <brobecker@gnat.com>
59
60         * mdebugread.c (parse_symbol): Skip stProc entries which storage
61         class is not scText. These do not define "real" procedures.
62         (parse_partial_symbols): Likewise.
63
64 2003-01-06  Michael Snyder  <msnyder@redhat.com>
65
66         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
67
68 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
69
70         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
71         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
72         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
73         deprecated_frame_xmalloc_with_cleanup.
74         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
75         deprecated_frame_xmalloc.
76         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
77         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
78
79 2003-01-06  Andrew Cagney  <cagney@redhat.com>
80
81         * x86-64-linux-tdep.c: Include "osabi.h".
82         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
83
84         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
85
86 2003-01-06  Andrew Cagney  <cagney@redhat.com>
87
88         * MAINTAINERS (Target Instruction Set Architectures): Update
89         arm-elf.  Can be built with -Werror, has been multiarched.
90
91         * value.h (unpack_long): Make buffer parameter constant.
92         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
93         * scm-lang.h (scm_parse): Ditto.
94         * defs.h (extract_typed_address, extract_address): Ditto.
95         (extract_long_unsigned_integer): Ditto.
96         * inferior.h (unsigned_pointer_to_address): Ditto.
97         (signed_pointer_to_address): Ditto.
98         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
99         * gdbarch.h, gdbarch.c: Regenerate.
100         * findvar.c (extract_long_unsigned_integer): Update.
101         (extract_address): Update.
102         (extract_typed_address): Update.
103         (unsigned_pointer_to_address): Update.
104         * values.c (unpack_long): Update.
105         (unpack_double): Update.
106         (unpack_pointer): Update.
107         (unpack_field_as_long): Update.
108         * d10v-tdep.c (d10v_pointer_to_address): Update.
109         * avr-tdep.c (avr_pointer_to_address): Update.
110         * scm-lang.c (scm_unpack): Update.
111         * findvar.c (signed_pointer_to_address): Update.
112
113 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
114
115         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
116         since it is in i386-tdep.c.
117
118 2003-01-06  J. Brobecker  <brobecker@gnat.com>
119
120         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
121         failure introduced in the previous change.
122
123 2003-01-05  Michael Chastain  <mec@shout.net>
124
125         * README: Remove references to deleted remote-*.c files:
126         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
127         remote-nrom.c, remote-os9k.c, remote-udi.c.
128
129 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
130
131         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
132         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
133         i386_get_longjmp_target.
134
135 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
136
137         * arm-tdep.c (prologue_cache): Change to a pointer.
138         (_initialize_arm_tdep): Allocate prologue_cache.
139         (check_prologue_cache): Update.
140         (save_prologue_cache): Update.
141         (arm_gdbarch_init): Update.
142
143 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
144
145         * stabsread.c (update_method_name_from_physname): Call complaint()
146         instead of error.
147
148 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
149
150         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
151         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
152         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
153
154         * blockframe.c: Include "gdbcmd.h" and "command.h".
155         (backtrace_below_main): New variable.
156         (file_frame_chain_valid, func_frame_chain_valid)
157         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
158         (generic_func_frame_chain_valid): Remove functions.
159         (frame_chain_valid, do_flush_frames_sfunc): New functions.
160         (_initialize_blockframe): New function.
161         * Makefile.in (blockframe.o): Update dependencies.
162         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
163         comment.  Call frame_chain_valid ().
164         * frame.h: Remove old prototypes.  Add prototype for
165         frame_chain_valid and update comments to match.
166         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
167         Remove old comment.
168         * gdbarch.h: Regenerated.
169         * gdbarch.c: Regenerated.
170
171         * alpha-tdep.c (alpha_gdbarch_init): Don't call
172         set_gdbarch_frame_chain_valid.
173         * avr-tdep.c (avr_gdbarch_init): Likewise.
174         * cris-tdep.c (cris_gdbarch_init): Likewise.
175         * frv-tdep.c (frv_gdbarch_init): Likewise.
176         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
177         * i386-tdep.c (i386_svr4_init_abi): Likewise.
178         (i386_nw_init_abi): Likewise.
179         (i386_gdbarch_init): Likewise.
180         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
181         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
182         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
183         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
184         * mips-tdep.c (mips_gdbarch_init): Likewise.
185         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
186         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
187         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
188         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
189         * s390-tdep.c (s390_gdbarch_init): Likewise.
190         * sh-tdep.c (sh_gdbarch_init): Likewise.
191         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
192         * v850-tdep.c (v850_gdbarch_init): Likewise.
193         * vax-tdep.c (vax_gdbarch_init): Likewise.
194         * x86-64-tdep.c (x86_64_init_abi): Likewise.
195
196         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
197         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
198         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
199         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
200         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
201         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
202         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
203         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
204
205 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
206
207         * Makefile.in (acconfig_h): Remove incorrect macro.
208         (config_h): Define.
209         (osabi.o): Update dependencies.
210         * configure.tgt: Set gdb_osabi based on target triplet.
211         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
212         * configure: Regenerated.
213         * config.in: Regenerated.
214         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
215         (GDB_OSABI_DEFAULT): Define if not already defined.
216         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
217         (set_osabi_string): New variables.
218         (gdbarch_register_osabi): Add new OS ABI to
219         gdb_osabi_available_names.
220         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
221         (set_osabi, show_osabi): New functions.
222         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
223
224 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
225
226         * arch-utils.c (gdbarch_info_init): Set osabi to
227         GDB_OSABI_UNINITIALIZED.
228         * gdbarch.sh: Add osabi to struct gdbarch and to struct
229         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
230         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
231         * gdbarch.c: Regenerated.
232         * gdbarch.h: Regenerated.
233         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
234         there's no BFD.
235         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
236         * osabi.h (enum gdb_osabi): Move to defs.h.
237         (gdbarch_init_osabi): Update prototype.
238         * defs.h (enum gdb_osabi): Moved here.
239         * Makefile.in: Update dependencies.
240
241         * alpha-tdep.h: Don't include "osabi.h".
242         (struct gdbarch_tdep): Remove osabi member.
243         * alpha-tdep.c: Include "osabi.h".
244         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
245         iterate over arches.  Update call to gdbarch_init_osabi.
246         (alpha_dump_tdep): Don't dump osabi.
247         * alpha-linux-tdep.c: Include "osabi.h".
248         * alpha-osf1-tdep.c: Include "osabi.h".
249         * alphafbsd-tdep.c: Include "osabi.h".
250         * alphanbsd-tdep.c: Include "osabi.h".
251
252         * arm-tdep.h: Don't include "osabi.h".
253         (struct gdbarch_tdep): Remove osabi member.
254         * arm-tdep.c: Include "osabi.h".
255         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
256         iterate over arches.  Update call to gdbarch_init_osabi.
257         (arm_dump_tdep): Don't dump osabi.
258         * arm-linux-tdep.c: Include "osabi.h".
259         * armnbsd-tdep.c: Include "osabi.h".
260
261         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
262         Update call to gdbarch_init_osabi.
263
264         * i386-tdep.h: Don't include "osabi.h".
265         (struct gdbarch_tdep): Remove osabi member.
266         * i386-tdep.c: Include "osabi.h".
267         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
268         iterate over arches.  Update call to gdbarch_init_osabi.
269         (i386_dump_tdep): Don't dump osabi.
270         * i386-linux-tdep.c: Include "osabi.h".
271         * i386-sol2-tdep.c: Include "osabi.h".
272         * i386bsd-tdep.c: Include "osabi.h".
273         * i386gnu-tdep.c: Include "osabi.h".
274         * i386ly-tdep.c: Include "osabi.h".
275         * i386nbsd-tdep.c: Include "osabi.h".
276         * i386obsd-tdep.c: Include "osabi.h".
277
278         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
279         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
280         check osabi when iterating over arches.  Update call to
281         gdbarch_init_osabi.
282         (mips_dump_tdep): Don't dump osabi.
283
284         * ns32k-tdep.h: Don't include "osabi.h".
285         (struct gdbarch_tdep): Remove.
286         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
287         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
288         allocate tdep.  Update call to gdbarch_init_osabi.
289         (ns32k_dump_tdep): Remove.
290         (_initialize_ns32k_tdep): Update call to gdbarch_register.
291         * ns32knbsd-tdep.c: Include "osabi.h".
292
293         * ppc-tdep.h: Don't include "osabi.h".
294         (struct gdbarch_tdep): Remove osabi member.
295         * rs6000-tdep.c: Include "osabi.h".
296         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
297         osabi when iterating over arches.  Update call to
298         gdbarch_init_osabi.
299         (rs6000_dump_tdep): Don't dump osabi.
300         * ppc-linux-tdep.c: Include "osabi.h".
301         * ppcnbsd-tdep.c: Include "osabi.h".
302
303         * sh-tdep.h: Don't include "osabi.h".
304         (struct gdbarch_tdep): Remove osabi member.
305         * sh-tdep.c: Include "osabi.h".
306         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
307         iterate over arches.  Update call to gdbarch_init_osabi.
308         (sh_dump_tdep): Don't dump osabi.
309         * shnbsd-tdep.c: Include "osabi.h".
310
311         * sparc-tdep.c: Include "osabi.h".
312         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
313         iterate over arches.  Update call to gdbarch_init_osabi.
314         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
315         tdep structure.
316
317         * vax-tdep.h: Don't include "osabi.h".
318         (struct gdbarch_tdep): Remove.
319         * vax-tdep.c: Include "osabi.h".
320         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
321         iterate over arches.  Don't allocate tdep.  Update call
322         to gdbarch_init_osabi.
323         (vax_dump_tdep): Remove.
324         (_initialize_vax_tdep): Update call to gdbarch_register.
325
326 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
327
328         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
329         entirely.
330         (breakpoint_re_set_one): Don't fetch the value for a disabled
331         watchpoint.
332
333 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
334
335         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
336         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
337         (COERCE_FLOAT_TO_DOUBLE): Remove.
338         * gdbarch.c: Regenerate.
339         * gdbarch.h: Regenerate.
340         * Makefile.in: Remove value_h from gdbarch_h.
341         * valops.c (coerce_float_to_double): New variable.
342         (default_coerce_float_to_double): Remove.
343         (standard_coerce_float_to_double): Remove.
344         (value_arg_coerce): Use coerce_float_to_double.
345         (_initialize_valops): Add "set coerce-float-to-double".
346         * value.h (default_coerce_float_to_double): Remove prototype.
347         (standard_coerce_float_to_double): Remove prototype.
348
349         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
350         prototyped.
351         * mdebugread.c (parse_symbol): Likewise.
352         * stabsread.c (define_symbol): Mark all functions as prototyped.
353
354         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
355         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
356         set_gdbarch_coerce_float_to_double.
357         * arm-tdep.c (arm_gdbarch_init): Likewise.
358         * frv-tdep.c (frv_gdbarch_init): Likewise.
359         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
360         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
361         * mips-tdep.c (mips_gdbarch_init): Likewise.
362         (mips_coerce_float_to_double): Remove.
363         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
364         (rs6000_coerce_float_to_double): Remove.
365         * s390-tdep.c (s390_gdbarch_init): Likewise.
366         * sh-tdep.c (sh_gdbarch_init): Likewise.
367         (sh_coerce_float_to_double): Remove.
368         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
369         (sparc_coerce_float_to_double): Remove.
370         * v850-tdep.c (v850_gdbarch_init): Likewise.
371         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
372         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
373         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
374         (hppa_coerce_float_to_double): Remove prototype.
375         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
376
377 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
378
379         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
380
381 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
382
383         Suggested by Stewart Brown <sb24@avaya.com>:
384         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
385         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
386         (c_type_print_varspec_suffix): Likewise.
387
388 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
389
390         * configure.in: Don't set and AC_SUBST SUBDIRS.
391         * configure: Regenerated.
392
393         * configure.in: Remove code dealing with shared libraries.
394         * Makefile.in: Remove HLDFLAGS and HLDENV.
395         * configure: Regenerated.
396
397 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
398
399         * frame.c (deprecated_frame_xmalloc): New function.
400         (deprecated_set_frame_saved_regs_hack): New function.
401         (deprecated_set_frame_extra_info_hack): New function.
402         * frame.h (deprecated_frame_xmalloc): Declare.
403         (deprecated_set_frame_saved_regs_hack): Declare.
404         (deprecated_set_frame_extra_info_hack): Declare.
405
406 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
407
408         * configure.in: Move code that provides the --enable-gdbtk option
409         right after the code that handles the --enable-tui option, and
410         polish it somewhat.
411         * configure: Regenerated.
412
413         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
414         AC_CHECK_FUNCS and remove the old check for pread64.
415         * acinclude.m4 (AC_GNU_SOURCE): New macro.
416         * acconfig.h (_GNU_SOURCE): Add.
417         (HAVE_PREAD64): Remove.
418         * configure, aclocal.m4, config.in: Regenerated.
419
420 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
421
422         * alpha-tdep.c: Use get_frame_saved_regs.
423         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
424         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
425         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
426         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
427         * vax-tdep.c, xstormy16-tdep.c: Ditto.
428
429 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
430
431         * configure.in: Remove all use of the SUBDIRS variable; add
432         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
433         code providing the --enable-multi-ice option, and move it right in
434         front of the code that checks whether gdbserver is supported.
435         Polish that too.
436         * configure: Regenerated.
437         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
438         @SUBDIRS@.
439
440 2003-01-03  Andrew Cagney  <cagney@redhat.com>
441
442         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
443         * avr-tdep.c, cris-tdep.c: Ditto.
444         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
445         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
446         
447 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
448
449         * configure.in: Remove --enable-netrom option.
450         * configure: Regenerated.
451
452 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
453
454         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
455         declaration for `struct re_pattern_buffer' instead.
456         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
457
458 2003-01-03  J. Brobecker  <brobecker@gnat.com>
459
460         * mdebugread.c (parse_symbol): Count until the stEnd matching
461         the structure name.
462
463 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
464
465         * configure.in: Remove --with-cpu option.
466         subscripts.  Remove evil changequotes here.
467         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
468         * config.in, configure: Regenerated.
469         
470         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
471         * configure.in: Cleanup section that sources GDB and BFD configure
472         subscripts.  Remove evil changequotes here.
473         * config.in, configure: Regenerated.
474
475 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
476
477         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
478         frame accessor methods.
479         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
480         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
481         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
482         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
483         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
484         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
485         * z8k-tdep.c: Ditto.
486         
487 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
488
489         * configure.in: Remove UI_OUT configuration code.
490         * ada-lang.c: Update assuming UI_OUT is always true.
491         * Makefile.in (UIOUT_CFLAGS): Remove.
492         * configure: Regenerated.
493         * TODO: Remove blurb about elimination of -DUI_OUT.
494
495         * configure.in: Move code that provides the --enable-gdbcli,
496         --enable-gdbmi options right before the code that handles the
497         --enable-tui option.  Polish a bit.
498         * configure: Regenerated.
499
500         * configure.in: Rewrite check for GNU regex and the
501         --without-included regex option, and move it into the "Checks for
502         library functions" section.  This makes us use the system regex
503         again by default on systems with version 2 of the GNU C library.
504         This was apparently broken.
505         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
506         * acconfig.h (USE_INCLUDED_REGEX): Remove.
507         * config.in, configure: Regenerated.
508
509         * configure.in: Move code that provides the --enable-tui option
510         before the "Checks for libraries" section.  Polish the code
511         somewhat and set need_curses to yes if we build the TUI.  Rewrite
512         code that looks for a library providing termcap functionality to
513         match more closely what's done in the Readline library, and move
514         it into to the "Checks for libraries" section.
515         * configure: Regenerated.
516         * Makefile.in (TERMCAP): Remove variable.
517         * config/i386/go32.mh (TERMCAP): Remove variable.
518
519 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
520
521         * MAINTAINERS: Mention gdb_mbuild.sh.
522         * gdb_mbuild.sh: Rewrite.
523
524 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
525
526         * configure.in: Fix typo in last change.
527         * config.in, configure: Regenerated.
528
529 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
530
531         * valarith.c (value_binop): Delete obsolete code and comments.
532         * configure.host: Ditto.
533         * buildsym.h (make_blockvector): Ditto.
534         * buildsym.c (make_blockvector): Ditto.
535         * defs.h (enum language): Ditto.
536         (chill_demangle): Ditto.
537         * elfread.c (elf_symtab_read): Ditto.
538         * dwarfread.c (CHILL_PRODUCER): Ditto.
539         (set_cu_language): Ditto.
540         (handle_producer): Ditto.
541         * expprint.c (print_subexp): Ditto.
542         * gdbtypes.c (chill_varying_type): Ditto.
543         * gdbtypes.h (builtin_type_chill_bool): Ditto.
544         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
545         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
546         (chill_varying_type): Ditto.
547         * language.h (_LANG_chill): Ditto.
548         * language.c (binop_result_type, integral_type): Ditto.
549         (character_type, string_type, structured_type): Ditto.
550         (lang_bool_type, binop_type_check): Ditto.
551         * stabsread.h (os9k_stabs): Ditto.
552         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
553         (define_symbol, read_type, read_struct_fields): Ditto.
554         (read_array_type, read_enum_type, read_huge_number): Ditto.
555         (read_range_type, start_stabs): Ditto.
556         * symfile.c (init_filename_language_table): Ditto.
557         (add_psymbol_with_dem_name_to_list): Ditto.
558         * symtab.c (symbol_init_language_specific): Ditto.
559         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
560         * symtab.h (struct general_symbol_info): Ditto.
561         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
562         * typeprint.c (typedef_print): Ditto.
563         * utils.c (fprintf_symbol_filtered): Ditto.
564         * valops.c (value_cast, search_struct_field, value_slice): Delete
565         obsolete code.
566         (varying_to_slice): Delete function.
567         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
568         (varying_to_slice): Delete declaration.
569         * MAINTAINERS: Update.
570
571 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
572
573         * configure.in: Reorganize "Checks for library functions section"
574         a bit.  Remove check for `btowc' and `isascii' functions.
575         * configure: Regenerated.
576
577         * acconfig.h (_MSE_INT_H): Remove.
578         * configure.in: Create "Checks for header files" section, and move
579         appropriate tests there.  Don't check for objlist.h, wchar.h,
580         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
581         misdetection fix.  Also add "Checks for types", "Checks for
582         compiler characteristics" and "Checks for library functions"
583         sections.
584         * config.in, configure: Regenerated.
585
586         * configure.in: Create "Checks for programs" section, and move
587         appropriate tests there.
588
589 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
590
591         * configure.in: Create "Checks for libraries" section, and move
592         appropriate tests there.  Cleanup check for wctype in libw.  Use
593         AC_SEARCH_LIBS to see whether we need libsocket.
594         * configure: Regenerated.
595
596 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
597
598         * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
599         * config.in, configure: Regenerated.
600
601 2002-12-31  Mark Kettenis  <kettenis@gnu.org>
602
603         * gdb_dirent.h: Cleanup and update code to match the example in
604         the Autoconf manual.
605         * configure.in: Call AC_HEADER_DIRENT.  Remove dirent.h,
606         sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
607         * configure: Regenerated.
608
609 2002-12-30  Adam Fedor  <fedor@gnu.org>
610
611         * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
612         (yylex): Initialize c to avoid uninitialized warning.
613
614 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
615
616         * doc/fdl.texi: Revert the last change.
617
618 2002-12-29  Mark Kettenis  <kettenis@gnu.org>
619
620         * tracepoint.c (ISATTY): Removed.
621
622 2002-12-26  J. Brobecker  <brobecker@gnat.com>
623
624         Continuing work to convert the hppa targets to multiarch partil.
625
626         * hppa-tdep.c: Add some missing forward declarations.
627         (frameless_function_invocation): Prefix the function name
628         by "hppa_" to avoid polluting the namespace.  Update all calls
629         to use the new function name.
630         (saved_pc_after_call): Ditto.
631         (init_extra_frame_info): Ditto.
632         (frame_chain): Ditto.
633         (push_dummy_frame): Ditto.
634         (target_read_pc): Ditto.
635         (target_write_pc): Ditto.
636         (in_solib_call_trampoline): Ditto.
637         (in_solib_return_trampoline): Ditto.
638         (skip_trampoline_code): Ditto.
639         (hppa_read_fp): New function, renamed from target_read_fp.
640         (hppa_target_read_fp): New function, using hppa_read_fp.
641         This function conforms to the function profile for the
642         READ_FP gdbarch method.
643         (hppa_extract_struct_value_address): New function, extracted
644         from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
645         macro.
646         (hppa_frame_num_args): New function.
647         (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
648
649         * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
650         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
651         for the switch to multiarch partial.
652         Update some of the macros definitions to match some changes
653         described above in the name of the function they are calling.
654         (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
655         not be straightforward to convert. Do now wrap it inside
656         "#if !... #endif" to remember that this macro has still not
657         been taken care of.
658         (FIX_CALL_DUMMY): Likewise.
659
660 2002-12-26  J. Brobecker  <brobecker@gnat.com>
661
662         Continuing work to convert the hppa targets to multiarch partial.
663
664         * hppa-tdep.c (hppa_register_raw_size): New function replacing
665         the body of macro REGISTER_RAW_SIZE.
666         * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
667         config/pa/tm-hppah.h. These functions will be used to initialize
668         the gdbarch structure.
669         (hppa_hpux_pc_in_sigtramp): New function.
670         (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
671         (hppa_hpux_frame_base_before_sigtramp): New function.
672         (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
673         Add gdbcore.h #include.
674         * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
675         of this gdbarch-eligible macro to a call to the new associated
676         function.
677         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
678         (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
679         into a call to the new associated function.
680         (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
681         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
682         * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
683
684 2002-12-24  David Carlton  <carlton@math.stanford.edu>
685
686         * config/sparc/tm-sparc.h: Delete duplicate definition of
687         DEPRECATED_PC_IN_CALL_DUMMY.
688
689 2002-12-24  Kevin Buettner  <kevinb@redhat.com>
690
691         * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
692         $(gdb_assert_h).
693         * configure.tgt: Recognize mips64*-*-linux*.
694         * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
695         (supply_32_bit_reg): New function.
696         (supply_gregset): Call supply_32bit_reg() instead of supply_register().
697         (fill_gregset): Use regcache_collect() instead of
698         deprecated_registers[].
699         (register_addr): Change name to mips_linux_register_addr().
700         (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
701         (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
702         (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
703         (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
704         (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
705         (MIPS64_LINUX_JB_PC): New defines.
706         (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
707         (mips64_elf_fpregset_t): New typedefs.
708         (mips64_linux_get_longhmp_target, mips64_supply_gregset)
709         (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
710         (mips64_linux_register_addr, set_mips_linux_register_addr)
711         (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
712         (init_register_addr_data)
713         New functions.
714         (fetch_core_registers): Add support for core file formats with 64-bit
715         registers.
716         (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
717         (register_addr_data): New static global variable.
718         (_initialize_mips_linux_tdep): Initialize register_addr_data.  Invoke
719         gdbarch_register_osabi() for each MIPS machine.
720         * config/mips/linux64.mt: New file.
721         * config/mips/tm-linux64.h: New file.
722
723 2002-12-23  Adam Fedor  <fedor@gnu.org>
724
725         * maint.c (maintenance_demangle): Add switch to demangle
726         ObjC language symbols as well.
727
728 2002-12-23  Adam Fedor  <fedor@gnu.org>
729
730         * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove 
731         last argument from complaint function call.
732
733 2002-12-23  Kevin Buettner  <kevinb@redhat.com>
734
735         * exec.c (print_section_info): Add FIXME comments regarding format
736         string choices.
737
738 2002-12-23  Daniel Jacobowitz  <drow@mvista.com>
739
740         * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
741         * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
742
743 2002-12-23  Rodney Brown  <rbrown64@csc.com.au>
744
745         * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
746
747 2002-12-23  David Carlton  <carlton@math.stanford.edu>
748
749         * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
750         (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
751         (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
752         information associated to a minsym, not lookup_symbol.
753
754 2002-12-21  Mark Kettenis  <kettenis@gnu.org>
755
756         * x86-64-tdep.h (x86_64_init_abi): New prototype.
757         * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
758         (x86_64_init_abi): Make non-static.  Set number of pseudo
759         registers to 0.
760         (x86_64_gdbarch_init): Remove function.
761         (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
762         Remove code dealing with dissambly.
763         * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
764         (_initialize_x86_64_linux_tdep): New function.
765         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
766         i386-tdep.o.
767
768 2002-12-14  Mark Kettenis  <kettenis@gnu.org>
769
770         * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
771         (struct gdb_osabi_handler): Remove member `arch'.  Add member
772         `arch_info'.
773         (gdbarch_register_osabi): Add new argument `machine'.  Use ot to
774         construct a `struct bfd_arch_info' and store it in the `struct
775         gdb_osabi_handler' that is created.
776         (gdbarch_init_osabi): Check for compatibility based on machine
777         type and architecture.
778         * osabi.h (gdbarch_register_osabi): Adjust prototype and update
779         comment.
780         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
781         second argument in call to gdbarch_register_osabi.
782         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
783         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
784         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
785         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
786         * arm-tdep.c (_initialize_arm_tdep): Likewise.
787         * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
788         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
789         * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
790         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
791         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
792         * i386-tdep.c (_initialize_i386_tdep): Likewise.
793         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
794         * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
795         * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
796         _initialize_i386bsd_tdep and updated likewise.
797         * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
798         * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
799         * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
800         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
801         * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
802         * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
803         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
804         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
805         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
806         * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
807
808 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
809
810         * solib-svr4.c (elf_locate_base): Fix sizeof() related bug.  Add
811         DT_MIPS_RLD_MAP case for 64-bit targets.
812
813 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
814
815         * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
816         ``temp_saved_regs'', not the pointer or other storage contiguous
817         to this pointer.
818
819 2002-12-20  Kevin Buettner  <kevinb@redhat.com>
820
821         * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
822         * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
823         (mips_linux_get_longjmp_target): Delete declarations.
824         (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
825         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
826         * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
827         (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
828         (mips_linux_get_longjmp_target)
829         (mips_linux_svr4_fetch_link_map_offsets): Make static.
830         (mips_linux_init_abi): New function.
831         (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
832
833 2002-12-19  Keith Seitz  <keiths@redhat.com>
834
835         patch committed by Elena Zannoni  <ezannoni@redhat.com>
836         * thread.c (do_captured_list_thread_ids): Call prune_threads and
837         target_find_new_threads. Fix for PR mi/669.
838
839 2002-12-19  David Carlton  <carlton@math.stanford.edu>
840
841         * linespec.c (decode_line_1): Move code into decode_all_digits.
842         (decode_all_digits): New function.
843
844 2002-12-19  Kevin Buettner  <kevinb@redhat.com>
845
846         * exec.c (print_section_info): Select a format string to use with
847         local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
848
849 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
850
851         * frame.c (deprecated_update_current_frame_pc_hack): Replace 
852         deprecated_update_current_frame_pc_hack.
853         (deprecated_update_frame_base_hack): New function.
854         * frame.h (deprecated_update_frame_pc_hack): Replace
855         (deprecated_update_frame_base_hack): Declare.
856         * infrun.c (normal_stop): Update.
857
858 2002-12-18  Andrew Cagney  <ac131313@redhat.com>
859
860         * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
861         frame_extra_info_zalloc.
862         (rs6000_frame_args_address): Use get_frame_extra_info.
863         (frame_get_saved_regs): Use get_frame_saved_regs.
864         (frame_initial_stack_address): Use get_frame_saved_regs and
865         get_frame_extra_info.
866         (frame_initial_stack_address): Use get_frame_extra_info.
867
868 2002-12-17  Kevin Buettner  <kevinb@redhat.com>
869
870         * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
871         array size.
872         (fetch_bitmapped_register, store_bitmapped_register): Add bounds
873         checks for r3900_regnames[].
874
875 2002-12-17  Richard Earnshaw  <rearnsha@arm.com>
876
877         * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
878         All uses changed
879         (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
880
881 2002-12-17  David Carlton  <carlton@math.stanford.edu>
882
883         * symtab.c (lookup_partial_symbol): Don't search past the end of
884         the partial symbols.
885
886 2002-12-17  Andrew Cagney  <ac131313@redhat.com>
887
888         * stack.c (frame_info): Use get_frame_saved_regs.
889         * breakpoint.c (until_break_command): Use get_frame_pc.
890
891 2002-12-16  Kevin Buettner  <kevinb@redhat.com>
892
893         * buildsym.c (block_end_complaint, anon_block_end_complaint)
894         (innerblock_complaint, innerblock_anon_complaint)
895         (blockvector_complaint): Delete deprecated complaint structs.
896         (finish_block, make_blockvector, end_symtab): Replace calls
897         to complain() with calls to complaint().
898         * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
899         (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
900         (unexpected_type_complaint, bad_sclass_complaint)
901         (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
902         Delete deprecated complaint structs.
903         (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
904         Replace calls to complain() with calls to complaint().
905         * dbxread.c (lbrac_complaint, string_table_offset_complaint)
906         (unknown_symtype_complaint, unknown_symchar_complaint)
907         (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
908         (lbrac_mismatch_complaint, repeated_header_complaint)
909         (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
910         Delete deprecated complaint structs.
911         (unknown_symtype_complaint, lbrac_mismatch_complaint)
912         (repeated_header_complaint)
913         (function_outside_compiliation_unit_complaint): New functions.
914         (add_old_header_file, find_corresponding_bincl_psymtab)
915         (set_namestring, find_stab_function_addr, read_dbx_symtab)
916         (process_one_symbol): Replace calls to complain() with, possibly
917         indirect, calls to complaint().
918         * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
919         (unknown_attribute_form, unknown_attribute_length)
920         (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
921         (const_ignored, botched_modified_type, op_deref2, op_deref4)
922         (basereg_not_handled, dup_user_type_allocation)
923         (dup_user_type_definition, missing_tag, bad_array_element_type)
924         (subscript_data_items, unhandled_array_subscript_format)
925         (unknown_array_subscript_format, not_row_major)
926         (missing_at_name): Delete deprecated complaint structs.
927         (bad_die_ref_complaint, unknown_attribute_form_complaint)
928         (dup_user_type_definition_complaint)
929         (bad_array_element_type_complaint): New functions.
930         (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
931         (decode_subscript_data_item, dwarf_read_array_type)
932         (read_tag_string_type, read_subroutine_type, read_func_scope)
933         (locval, scan_partial_symbols, decode_modified_type)
934         (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
935         (attribute_size): Replace calls to complain() with, possibly
936         indirect, calls to complaint().
937         * elfread.c (section_info_complaint, section_info_dup_complaint)
938         (stab_info_mismatch_complaint, stab_info_questionable_complaint):
939         Delete deprecated complaint structs.
940         (elf_symtab_read, elfstab_offset_sections): Replace calls to
941         complain() with calls to complaint().
942         * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
943         struct.
944         (stub_noname_complaint): New function.
945         (check_typedef, add_mangled_type): Replace calls to complain()
946         with calls to complaint().
947         * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
948         (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
949         (hpread_unhandled_type_complaint, hpread_struct_complaint)
950         (hpread_array_complaint, hpread_type_lookup_complaint)
951         (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
952         (hpread_unhandled_common_complaint)
953         (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
954         struct definitions and declarations.
955         (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
956         (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
957         Replace calls to complain() with, possibly indirect, calls to
958         complaint().
959         * macrotab.c (macro_include, check_for_redefinition, macro_undef):
960         Likewise.
961         * mdebugread.c (bad_file_number_complaint, index_complaint)
962         (aux_index_complaint, block_index_complaint)
963         (unknown_ext_complaint, unknown_sym_complaint)
964         (unknown_st_complaint, block_overflow_complaint)
965         (basic_type_complaint, unknown_type_qual_complaint)
966         (array_index_type_complaint, bad_tag_guess_complaint)
967         (block_member_complaint, stEnd_complaint)
968         (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
969         (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
970         (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
971         (bad_continued_complaint, bad_rfd_entry_complaint)
972         (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
973         (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
974         (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
975         (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
976         complaint structs.
977         (index_complaint, unknown_ext_complaint, basic_type_complaint)
978         (bad_tag_guess_complaint, bad_rfd_entry_complaint)
979         (unexpected_type_code_complaint)
980         (function_outside_compilation_unit_complaint): New functions.
981         (parse_symbol, parse_type, upgrade_type, parse_procedure)
982         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
983         Replace calls to complain() with, possibly indirect calls to
984         complaint().
985         * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
986         Delete deprecated complaint structs.
987         (lookup__objc_class, lookup_child_selector): Replace complain()
988         with complaint().
989         * remote-vx.c (cant_contact_target): Delete deprecated complaint
990         struct.
991         (vx_lookup_symbol): Replace complain() with complaint().
992         * stabsread.c (invalid_cpp_abbrev_complaint)
993         (invalid_cpp_type_complaint, member_fn_complaint)
994         (const_vol_complaint, error_type_complaint)
995         (invalid_member_complaint, range_type_base_complaint)
996         (reg_value_complaint, vtbl_notfound_complaint)
997         (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
998         (unresolved_sym_chain_complaint, stabs_general_complaint)
999         (lrs_general_complaint, multiply_defined_struct): Delete
1000         deprecated complaint structs.
1001         (invalid_cpp_abbrev_complaint, ref_value_complaint)
1002         (stabs_general_complaint, lrs_general_complaint)
1003         (msg_unknown_complaint): New functions.
1004         (dbx_lookup_type, read_cfront_baseclasses)
1005         (read_cfront_member_functions, resolve_symbol_reference)
1006         (define_symbol, resolve_live_range, add_live_range, read_type)
1007         (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1008         (read_one_struct_field, read_baseclasses, read_tilde_fields)
1009         (read_cfront_static_fields, attach_fields_to_type)
1010         (complain_about_struct_wipeout, read_range_type)
1011         (common_block_start, common_block_end, cleanup_undefined_types)
1012         (scan_file_globals): Replace complain() with complaint().
1013         * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1014         Delete deprecated complaint struct declarations.
1015         * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1016         (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1017         (bf_not_found_complaint, ef_complaint, eb_complaint)
1018         (function_outside_compilation_unit_complaint): New functions.
1019         (record_include_begin, record_include_end, enter_line_range)
1020         (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1021         (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1022         complain() with complaint().
1023
1024 2002-12-16  Andrew Cagney  <ac131313@redhat.com>
1025
1026         * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1027         * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1028         * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1029         * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1030         * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1031         * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1032         * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1033         * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1034         * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1035         * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1036         * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1037         * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1038         * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1039         * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1040         * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1041         * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1042         * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1043         * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1044         * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1045         * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1046         * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1047         * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1048         * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1049         * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1050         * config/m88k/xm-dgux.h: Delete.
1051         * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1052         * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1053         * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1054         * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1055         * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1056         * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1057         * ch-valprint.c: Delete.
1058         
1059 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1060
1061         * infrun.c (handle_inferior_event): Rearrange code to resume if
1062         no catchpoint triggers for an event.
1063
1064 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1065
1066         * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1067         and TARGET_WAITKIND_VFORKED cases.
1068
1069 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1070
1071         * infrun.c (handle_inferior_event): Assume that catchpoints
1072         are not affected by DECR_PC_AFTER_BREAK.
1073
1074 2002-12-15  Daniel Jacobowitz  <drow@mvista.com>
1075
1076         * target.c (update_current_target): Don't inherit DONT_USE.
1077         * target.h (struct target_ops): Remove DONT_USE.
1078         (target_next): Remove macro.
1079
1080 2002-12-15  Mark Kettenis  <kettenis@gnu.org>
1081
1082         * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6.  Fixes PR cli/654.
1083
1084 2002-12-14  Richard Earnshaw  <rearnsha@arm.com>
1085
1086         * arm-tdep.c (convert_from_extended): New argument to hold the
1087         type of floating point result we want to convert to.  Make input 
1088         argument const.  Fix all callers.
1089         (convert_to_extended): Similarly.
1090         (arm_extract_return_value): Now takes a regcache argument.  Change
1091         code to use regcache accessor functions.  Correctly extract 
1092         smaller-than-word results on big-endian machines.
1093         (arm_store_return_value): Now takes a regcache argument.  Change
1094         code to use regcache accessor functions.  Correctly zero/sign extend
1095         smaller than word results before storing into r0.
1096         (arm_gdbarch_init): Register new-style extract_return_value and
1097         store_return_value functions.
1098
1099 2002-12-13  Michael Snyder  <msnyder@to-limbo.toronto.redhat.com>
1100
1101         * thread-db.c (thread_from_lwp): Uniquify error msg.
1102         (lwp_from_thread): Ditto.
1103         (check_event): Ditto.
1104         (find_new_threads_callback): Ditto.
1105         (thread_db_pid_to_str): Ditto.
1106
1107 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1108
1109         * frame.h (get_frame_saved_regs): Declare.
1110         (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1111         pointer.
1112         * frame.c (get_frame_saved_regs): New function.
1113         (frame_saved_regs_zalloc): Return the allocated saved_regs.
1114
1115 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1116
1117         * frame.c (deprecated_update_current_frame_pc_hack): New
1118         function.
1119         * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1120         * infrun.c (normal_stop): Use said function instead of directly
1121         modifying the frame's PC.
1122         
1123 2002-12-13  Alexandre Oliva  <aoliva@redhat.com>
1124
1125         * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1126
1127 2002-12-13  Kevin Buettner  <kevinb@redhat.com>
1128
1129         * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1130         config/mips/tm-irix6.h (NUM_REGS): Delete.
1131         * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1132         (temp_saved_regs): Declare as a pointer rather than an array.
1133         (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1134         that ``temp_saved_regs'' has storage allocated to it and that
1135         it's the correct size.
1136
1137 2002-12-13  Jeff Johnston  <jjohnstn@redhat.com>
1138
1139         * defs.h (init_last_source_visited): New prototype.
1140         (add_path): Ditto.
1141         * source.c (add_path): New function that adds to a specified path.
1142         (mod_path): Change to call add_path.
1143         (init_last_source_visited): New function to allow interfaces to
1144         initialize static variable: last_source_visited.  Part of fix
1145         for PR gdb/741.
1146         * Makefile.in: Add support for mi/mi-cmd-env.c.
1147
1148 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1149
1150         * frame.h (frame_id_unwind): Declare.
1151         (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1152         id_unwind_cache.
1153         (frame_id_unwind_ftype): Declare.
1154         * frame.c (frame_id_unwind): New function.
1155         (set_unwind_by_pc): Add unwind_id parameter.  Initialized.
1156         (create_new_frame, get_prev_frame): Pass id_unwind to
1157         set_unwind_by_pc.
1158         (frame_saved_regs_id_unwind): New function.
1159         (frame_saved_regs_id_unwind): New function.
1160         * dummy-frame.c (dummy_frame_id_unwind): New function.
1161         (struct dummy_frame): Add field id.
1162         (generic_push_dummy_frame): Initialize `id'.
1163         * dummy-frame.h (dummy_frame_id_unwind): Declare.
1164
1165 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1166
1167         * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1168         pass that to set_momentary_breakpoint.  Move comments to where they
1169         belong.
1170         * frame.h (set_current_frame): Delete declaration.
1171         * frame.c (set_current_frame): Delete function.
1172
1173 2002-12-13  Andrew Cagney  <ac131313@redhat.com>
1174
1175         * frame.c (frame_extra_info_zalloc): New function.
1176         * frame.h (frame_extra_info_zalloc): Declare.
1177
1178 2002-12-13  Joel Brobecker  <brobecker@gnat.com>
1179
1180         * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1181         in the previous prototype change to set_momentary_breakpoint.
1182
1183 2002-12-12  Daniel Jacobowitz  <drow@mvista.com>
1184
1185         * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1186         and saw_child_exec.
1187         (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1188         references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1189         (stop_stepping): Remove outdated check for child vfork events.
1190
1191 2002-12-12  Andrew Cagney  <ac131313@redhat.com>
1192
1193         * GDB 5.3 released from gdb_5_3-branch.
1194
1195 2002-12-11  Daniel Jacobowitz  <drow@mvista.com>
1196
1197         * corelow.c (init_core_ops): Delete references to to_require_attach
1198         and to_require_detach.
1199         * exec.c (init_exec_ops): Likewise.
1200         * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1201         hppa_require_detach directly.
1202         * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1203         * inftarg.c (child_detach): Remove.
1204         (child_detach_from_process): Rename to child_detach, remove
1205         after_fork argument.
1206         (child_attach): Remove.
1207         (child_attach_to_process): Rename to child_attach, remove after_fork
1208         argument.
1209         (init_child_ops): Delete references to to_require_attach
1210         and to_require_detach.
1211         * infttrace.c (hppa_require_attach): Update comment.
1212         * target.c (cleanup_target, update_current_target)
1213         (init_dummy_target, setup_target_debug): Delete references to
1214         to_require_attach and to_require_detach.
1215         (find_default_require_detach, find_default_require_attach)
1216         (debug_to_require_attach, debug_to_require_detach): Remove
1217         functions.
1218         * target.h (struct target_ops): Remove to_require_attach
1219         and to_require_detach.
1220         (target_require_attach, target_require_detach): Delete macros.
1221         (find_default_require_detach, find_default_require_attach): Delete
1222         prototypes.
1223         * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1224
1225 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1226
1227         * frame.c (get_frame_extra_info): New function.
1228         * frame.h (get_frame_extra_info): Declare.
1229
1230 2002-12-11  Andrew Cagney  <ac131313@redhat.com>
1231
1232         * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1233         (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1234         with `struct frame_id'.
1235         (set_longjmp_resume_breakpoint): Ditto.
1236         * infrun.c (handle_inferior_event): Update.
1237         * breakpoint.c (watch_command_1, until_break_command): Update.
1238         * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1239         (handle_inferior_event, step_over_function): Update.
1240         * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1241         (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1242         (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1243         * infcmd.c (finish_command, run_stack_dummy): Update.
1244
1245 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1246
1247         * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1248         (dwarf2_non_const_array_bound_ignored)
1249         (dwarf2_missing_line_number_section)
1250         (dwarf2_statement_list_fits_in_line_number_section)
1251         (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1252         (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1253         (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1254         (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1255         (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1256         (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1257         (dwarf2_missing_member_fn_type_complaint)
1258         (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1259         (dwarf2_const_value_length_mismatch)
1260         (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1261         (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1262         (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1263         (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1264         (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1265         (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1266         complaints using deprecated struct..
1267         (dwarf2_non_const_array_bound_ignored_complaint)
1268         (dwarf2_complex_location_expr_complaint)
1269         (dwarf2_unsupported_at_frame_base_complaint)
1270         (dwarf2_const_value_length_mismatch_complaint)
1271         (dwarf2_macros_too_long_complaint)
1272         (dwarf2_macro_malformed_definition_complaint)
1273         (dwarf2_invalid_attrib_class_complaint): New functions.
1274         (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1275         (read_structure_scope, read_array_type, read_common_block)
1276         (read_tag_pointer_type, read_base_type, read_partial_die)
1277         (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1278         (new_symbol, dwarf2_const_value, read_type_die)
1279         (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1280         (parse_macro_definition, dwarf_decode_macros): Replace calls to
1281         complain() with, possibly indirect, calls to complaint().
1282
1283 2002-12-11  Andrew Cagney  <cagney@redhat.com>
1284
1285         * frame.c (deprecated_get_frame_saved_regs): Rename
1286         get_frame_saved_regs.
1287         * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1288         * sparc-tdep.c: Update.
1289         * hppa-tdep.c: Update.
1290         * h8500-tdep.c: Update.
1291
1292 2002-12-11  Kevin Buettner  <kevinb@redhat.com>
1293
1294         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1295         (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1296         ``char *'' for return and parameter types.
1297         * gdbarch.h, gdbarch.c: Regenerate.
1298         * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1299         return type from ``char *'' to ``const char *''.
1300         * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1301         const.
1302
1303 2002-12-11  Mark Kettenis  <kettenis@gnu.org>
1304
1305         * i386-tdep.c: Include "dummy-frame.h".
1306         (i386_frame_chain, i386_frame_saved_pc): Replace
1307         DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1308         (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1309
1310 2002-12-10  Andrew Cagney  <cagney@redhat.com>
1311
1312         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1313         Change to a function with predicate.
1314         * gdbarch.h, gdbarch.c: Re-generate.
1315         * frame.c (get_prev_frame): Update.  Test
1316         DEPRECATED_INIT_FRAME_PC_P.
1317         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1318         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1319         * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1320         * alpha-tdep.c (alpha_gdbarch_init): Update.
1321         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1322         * mips-tdep.c (mips_gdbarch_init): Update.
1323         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1324         * arm-tdep.c: Update comments.
1325         * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1326         * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1327         * frv-tdep.c (frv_gdbarch_init): Ditto.
1328         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1329         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1330         * s390-tdep.c (s390_gdbarch_init): Ditto.
1331         * v850-tdep.c (v850_gdbarch_init): Ditto.
1332         * vax-tdep.c (vax_gdbarch_init): Ditto.
1333         * sh-tdep.c (sh_gdbarch_init): Ditto.
1334         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1335         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1336         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1337         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1338         * i386-tdep.c (i386_gdbarch_init): Ditto.
1339         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1340         * cris-tdep.c (cris_gdbarch_init): Ditto.
1341         * avr-tdep.c (avr_gdbarch_init): Ditto.
1342         * arm-tdep.c (arm_gdbarch_init): Ditto.
1343         * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1344         (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1345
1346 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1347
1348         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1349         CHILD_FOLLOW_FORK.
1350         * hppah-nat.c (saved_vfork_pid): Add.
1351         (child_post_follow_vfork): Remove.
1352         (child_follow_fork): New function.
1353         (child_wait): Call detach_breakpoints after receiving the child vfork.
1354         Call child_resume directly instead of going through resume ().
1355         Make sure we have the exec before reporting the vfork.
1356         * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1357         * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1358         (follow_fork): New function.  Call target_follow_fork.
1359         (follow_inferior_reset_breakpoints): New function broken out from
1360         old follow_inferior_fork.
1361         (resume): Remove hack to follow exec after vfork.
1362         * inftarg.c (child_post_follow_vfork): Remove.
1363         (child_follow_fork): New function.
1364         (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1365         * target.c (cleanup_target): Replace to_post_follow_vfork with
1366         to_follow_fork.
1367         (update_current_target): Likewise.
1368         (setup_target_debug): Likewise.
1369         (debug_to_post_follow_vfork): Remove.
1370         (debug_to_follow_fork): New function.
1371         * target.h (struct target_ops): Replace to_post_folow_vfork with
1372         to_follow_fork.
1373         (child_post_follow_vfork): Remove prototype.
1374         (child_follow_fork): Add prototype.
1375         (target_post_follow_vfork): Remove macro.
1376         (target_follow_fork): Add macro.
1377
1378 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1379
1380         * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1381         (child_post_follow_vfork): Cancel pending exec event if we follow
1382         the parent.
1383         (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1384         events have been processed.  Return a fake TARGET_WAITKIND_EXECD
1385         event at the following wait call if necessary.
1386         * infrun.c (follow_vfork): Don't follow_exec here.
1387         (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1388         case about HP/UX 10.20.  Remove code pushed down to
1389         hppah-nat.c:child_wait.
1390         * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1391         vfork_in_flight is set.
1392
1393 2002-12-10  Daniel Jacobowitz  <drow@mvista.com>
1394
1395         * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1396         for the parent's fork event.
1397         * infrun.c (handle_inferior_event): Only expect one fork event.
1398         Call prepare_to_wait for TARGET_WAITKIND_IGNORE.  Update comment.
1399         * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1400
1401 2002-12-10  Andrew Cagney  <ac131313@redhat.com>
1402
1403         * PROBLEMS: Delete reference to PR gdb/725.
1404         
1405         * MAINTAINERS (gdb.c++): Add David Carlton.
1406
1407 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1408
1409         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1410         * cli/cli-cmds.c: Ditto.
1411
1412 2002-12-09  Andrew Cagney  <cagney@redhat.com>
1413
1414         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
1415         function address in <>.
1416         * gdbarch.c: Re-generate.
1417
1418 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1419
1420         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1421
1422 2002-12-09  David Carlton  <carlton@math.stanford.edu>
1423
1424         * linespec.c (symtab_from_filename): New function.
1425         (decode_line_1): Move code into symtab_from_filename.
1426
1427 2002-12-09  Kevin Buettner  <kevinb@redhat.com>
1428
1429         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1430
1431 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1432
1433         * f-valprint.c (info_common_command): Use get_frame_pc.
1434         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1435         * ax-gdb.c (agent_command): Ditto.
1436         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1437         (rs6000_pop_frame): Ditto.
1438         (rs6000_frameless_function_invocation): Ditto.
1439         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1440         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1441         * macroscope.c (default_macro_scope): Ditto.
1442         * stack.c (print_frame_info_base): Ditto.
1443         (print_frame, frame_info, print_frame_label_vars): Ditto.
1444         (return_command, func_command, get_frame_language): Ditto.
1445         * infcmd.c (finish_command): Ditto.
1446         * dummy-frame.c (cached_find_dummy_frame): Ditto.
1447         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1448         (break_at_finish_at_depth_command_1): Ditto.
1449         (break_at_finish_command_1): Ditto.
1450         (until_break_command, get_catch_sals): Ditto.
1451         * blockframe.c (func_frame_chain_valid): Ditto.
1452         (frameless_look_for_prologue): Ditto.
1453         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1454
1455 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1456
1457         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1458         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1459
1460 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1461
1462         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1463         to pure functions.
1464         * gdbarch.h, gdbarch.c: Re-generate.
1465         * frame.c (get_prev_frame): Explictly assign prev's pc with value
1466         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1467
1468         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1469         declaration to a function returning a CORE_ADDR.
1470         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1471         * arch-utils.c (init_frame_pc_noop): Return the PC value.
1472         (init_frame_pc_default): Ditto.
1473         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1474         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1475         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1476         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1477         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1478         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1479
1480         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1481         to init_frame_pc_noop.
1482         (i386_interix_init_frame_pc): Delete function.
1483         * z8k-tdep.c (init_frame_pc): Delete function.
1484         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1485         (INIT_FRAME_PC_FIRST): Ditto.
1486         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1487         (INIT_FRAME_PC_FIRST): Ditto.
1488         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1489         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1490         init_frame_pc_noop.
1491         (INIT_FRAME_PC_FIRST): Convert to an expression.
1492         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1493
1494 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1495
1496         * blockframe.c: Use get_frame_base instead of directly accessing
1497         the `struct frame_info' member frame.
1498         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1499         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1500
1501 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1502
1503         * Makefile.in (readline_h): Define.
1504         (completer.o): Depend on readline_h.
1505         (corelow.o): Ditto.
1506         (event-top.o): Ditto.
1507         (exec.o): Ditto.
1508         (solib.o): Ditto.
1509         (source.o): Ditto. 
1510         (symfile.o): Ditto. 
1511         (symmisc.o): Ditto. 
1512         (top.o): Ditto.
1513         (tracepoint.o): Ditto. 
1514         (utils.o): Ditto.
1515         (cli-dump.o): Ditto.
1516         (tui-hooks.o): Ditto. 
1517         (tuiWin.o): Ditto. 
1518
1519 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1520
1521         More cleanup from import of readline 4.3.
1522         * completer.h (complete_line, readline_line_completion_function):
1523         Update prototypes.
1524         (line_completion_function): Removed, not used outside of completer.c.
1525         * completer.c (readline_line_completion_function,
1526         complete_function, line_completion_function): Use const for first
1527         parameter.
1528         (line_completion_function): Make static.
1529         (filename_completer): filename_completion_function is now called
1530         rl_filename_completion_function
1531         * corelow.c: Include <readline/readline.h>.
1532         * exec.c: Ditto.
1533         * solib.c: Ditto.
1534         * source.c: Ditto.
1535         * symfile.c: Ditto.
1536         * symmisc.c: Ditto.
1537         * top.c (init_main): No need to coerce
1538         readline_line_completion_function anymore.
1539         * cli/cli-dump.c: Include <readline/readline.h>.
1540
1541 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1542
1543         * stack.c (frame_info): Use get_prev_frame.
1544         * blockframe.c (frame_address_in_block): Ditto.
1545         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1546         (rs6000_frameless_function_invocation): Ditto.
1547         (rs6000_frame_saved_pc): Ditto.
1548         (rs6000_frame_chain): Ditto.
1549         * arch-utils.c (init_frame_pc_default): Ditto.
1550
1551 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
1552
1553         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1554         Delete redundant definition.
1555
1556 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1557
1558         Import of readline 4.3:
1559         * cli/cli-cmds.c: Include readline/tilde.h.
1560         * cli/cli-setshow.c: Ditto.
1561         * defs.h: Don't declare tilde_expand anymore, since readline
1562         exports it.
1563
1564 2002-12-08  Elena Zannoni  <ezannoni@redhat.com>
1565
1566         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1567         -Werror on this file.
1568
1569 2002-12-07  Andrew Cagney  <ac131313@redhat.com>
1570
1571         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1572         the format name.
1573         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1574         * gdbarch.c: Regenerate.
1575         
1576 2002-12-06  Andrew Cagney  <ac131313@redhat.com>
1577
1578         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1579         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
1580         provide a default value.
1581         * gdbarch.h, gdbarch.c: Regenerate.
1582         * frame.c (get_prev_frame): Update.  Check
1583         DEPRECATED_INIT_FRAME_PC_FIRST_P.
1584         * s390-tdep.c (s390_gdbarch_init): Update.
1585         * mips-tdep.c (mips_gdbarch_init): Update.
1586         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1587         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1588         * alpha-tdep.c (alpha_gdbarch_init): Update.
1589         
1590 2002-12-06  Elena Zannoni  <ezannoni@redhat.com>
1591
1592         * ia64-linux-nat.c: Include gdb_string.h.
1593         * alpha-nat.c: Ditto.
1594         * ppc-linux-nat.c: Ditto.
1595         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1596         Update dependencies.
1597
1598 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1599
1600         * gdbthread.h: Include "frame.h".
1601         (struct thread_info): Replace step_frame_address with
1602         step_frame_id.
1603         * inferior.h: Include "frame.h".
1604         (step_frame_id): Replace external variable step_frame_address.
1605         * gdbthread.h (save_infrun_state): Replace step_frame_address
1606         parameter with step_frame_id parameter.
1607         (load_infrun_state): Ditto.
1608         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1609         * infcmd.c (step_frame_id, step_1, step_once): Update.
1610         * thread.c (load_infrun_state, save_infrun_state): Update.
1611         * infrun.c (clear_proceed_status, save_inferior_status): Update.
1612         (handle_inferior_event, step_over_function): Update.
1613         (normal_stop, context_switch, restore_inferior_status): Update.
1614         (struct inferior_status): Replace step_frame_address with
1615         step_frame_id.
1616
1617 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1618
1619         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1620         DW_TAG_member as well as a declaration as being a C++ static data
1621         member.
1622         (read_structure_scope): Combine tests for DW_TAG_member and
1623         DW_TAG_variable.
1624
1625 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1626
1627         * linespec.c (decode_compound): New function.
1628         (decode_line_1): Move code into decode_compound.
1629
1630 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1631
1632         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1633         argument.
1634         (lookup_symbol_aux): Do the 'field_of_this' check before checking
1635         the static block.  See PR gdb/804.
1636
1637 2002-12-05  David Carlton  <carlton@math.stanford.edu>
1638
1639         * symtab.c (lookup_symbol_aux_block): New function.
1640         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1641
1642 2002-12-05  Andrew Cagney  <ac131313@redhat.com>
1643
1644         * gdbarch.sh: Dump the predicate function and macro values.
1645         (read): Print error on standard error.
1646         * gdbarch.c: Regenerate.
1647         
1648 2002-12-04  Kevin Buettner  <kevinb@redhat.com>
1649
1650         * Makefile.in (mips_tdep_h): Define.
1651         (mips-tdep.o): Add mips_tdep_h to dependency list.
1652         * mips-tdep.h: New file.
1653         * mips-tdep.c (mips-tdep.h): Include.
1654         (enum mips_abi): Move to mips-tdep.h.
1655         (mips_abi): New function.
1656
1657 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1658
1659         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1660
1661 2002-12-04  David Carlton  <carlton@math.stanford.edu>
1662
1663         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1664         function.
1665         (lookup_symbol_aux_minsyms): New function.
1666
1667 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1668
1669         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1670
1671 2002-12-04  J. Brobecker  <brobecker@gnat.com>
1672
1673         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1674         which is an obsolete macro name.
1675
1676 2002-12-04  Daniel Jacobowitz  <drow@mvista.com>
1677
1678         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1679         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1680
1681 2002-12-03  H.J. Lu  (hjl@gnu.org)
1682
1683         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1684         (create_breakpoints): Make sure the addr_string field is not
1685         NULL.
1686
1687 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1688
1689         * sparc-nat.c (fetch_inferior_registers)
1690         (store_inferior_registers): Add comment on problem of LWP vs
1691         threads.
1692         
1693         From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1694         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1695         (lin_lwp_store_registers): Remove.
1696         (init_lin_lwp_ops): Use fetch_inferior_registers
1697         and store_inferior_registers directly.
1698         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1699         (store_inferior_registers): Likewise.
1700         Fix PR gdb/725.
1701
1702 2002-12-03  Andrew Cagney  <ac131313@redhat.com>
1703
1704         * frame.h (get_frame_id): Convert to a function.
1705         (null_frame_id, frame_id_p): Declare.
1706         (frame_id_eq, frame_id_inner): Declare.
1707         (frame_id_build): New function.
1708         * frame.c (get_frame_id): Update.  Use null_frame_id.
1709         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1710         frame_id_inner.
1711         (null_frame_id, frame_id_p): Define.
1712         (frame_id_eq, frame_id_inner): Define.
1713         (frame_id_build): New function.
1714         * varobj.c (varobj_create): Update.
1715         (varobj_update): Update.
1716         * valops.c (value_assign): Update.
1717         (new_root_variable): Update.
1718         * infrun.c (save_inferior_status): Update.
1719         * breakpoint.c (watch_command_1): Update.
1720
1721 2002-12-03  J. Brobecker  <brobecker@gnat.com>
1722
1723         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1724         (SNAP2): Likewise.
1725
1726 2002-12-03  Andrew Cagney  <cagney@redhat.com>
1727
1728         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1729         patch.
1730
1731         * PROBLEMS: Mention PR gdb/725.
1732
1733 2002-12-03  Andreas Schwab  <schwab@suse.de>
1734
1735         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1736
1737 2002-12-02  Adam Fedor  <fedor@gnu.org>
1738             Klee Dienes  <kdienes@apple.com>
1739
1740         * objc-lang.c (objc_printstr): Add width arg to match
1741         printstr prototype.
1742         (compare_selectors): Add 'const' to arg types.
1743         (compare_classes): Likewise.
1744         (find_imps): Cast msym pointer to avoid compiler warning.
1745         (print_object_command): Validate the address before
1746         passing it to the print routine.
1747         (find_objc_msgcall_submethod): Change function argument to
1748         return an int.
1749         * objc-lang.h: Add 'extern' to all function declarations.
1750         (value_nsstring): Add declaration.
1751
1752 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1753
1754         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1755         Fixes a build failure on HP/UX.
1756
1757         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1758         failure on HP/UX. 
1759         (hpread_has_name): Advance declaration to avoid a compilation warning.
1760         (pst_syms_count): Add missing variable type. By change, the compiler
1761         was defaulting to int, which seems a good choice. Fixes a compilation
1762         warning.
1763         (pst_syms_size): Likewise.
1764  
1765 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1766
1767         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1768         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1769         later to set the proper gdbarch methods depending on the osabi.
1770         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1771
1772 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1773
1774         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1775         * osabi.c (gdb_osabi_name): Add strings images for the two new
1776         enum values.
1777         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1778
1779 2002-12-02  Andrew Cagney  <ac131313@redhat.com>
1780
1781         * MAINTAINERS (Java): Global maintainers are responible for Java.
1782         (Past Maintainers): Mention both Anthony Green and Per Bothner as
1783         part Java maintainers.
1784
1785 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1786
1787         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1788         Fixes a compilation failure on AiX.
1789
1790 2002-12-02  J. Brobecker  <brobecker@gnat.com>
1791
1792         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1793         why aix-thread.o is not listed.
1794
1795 2002-12-01  Andrew Cagney  <ac131313@redhat.com>
1796
1797         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1798         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
1799         * gdbarch.h, gdbarch.c: Re-generate.
1800         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1801         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1802         * config/pa/tm-hppa.h, frame.h: Update.
1803         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1804         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1805         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1806         * cris-tdep.c, alpha-tdep.c: Update.
1807         * frame.c (set_unwind_by_pc, create_new_frame): Use either
1808         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1809         (get_prev_frame): Ditto.
1810
1811 2002-11-30  Andrew Cagney  <cagney@redhat.com>
1812
1813         * exec.c (xfer_memory): Replace boolean with int.
1814         * p-exp.y: Use 0 instead of false.
1815         * corelow.c (gdb_check_format): Change return type to int from
1816         boolean.
1817         * utils.c: Don't include <curses.h> or <term.h> first.
1818
1819 2002-11-29  Stephane Carrez  <stcarrez@nerim.fr>
1820
1821         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1822         (m68hc11_register_byte): Remove.
1823         (m68hc11_gdbarch_init): Don't set the above.
1824
1825 2002-11-29  Andrew Cagney  <cagney@redhat.com>
1826
1827         * remote-mips.c (mips_initialize): Force a selected frame rebuild
1828         by calling get_selected_frame.
1829         * ocd.c (ocd_start_remote): Use get_selected frame instead of
1830         set_current_frame, create_new_frame, select_frame and
1831         get_current_frame.
1832         * remote-e7000.c (e7000_start_remote): Ditto.
1833         * remote-mips.c (common_open): Ditto
1834         * remote-rdp.c (remote_rdp_open): Ditto.
1835
1836 2002-11-29  Andreas Schwab  <schwab@suse.de>
1837
1838         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1839         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1840         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1841         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1842         read_memory_unsigned_integer instead of read_memory_integer when
1843         dealing with addresses and instruction opcodes.
1844         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
1845         (m68k_linux_frame_saved_pc): Likewise.
1846
1847 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1848
1849         * stack.c (selected_frame, select_frame): Move from here ...
1850         * frame.c (selected_frame, select_frame): ... to here.  Include
1851         "language.h".
1852         * Makefile.in (frame.o): Update dependencies.
1853         * frame.c (get_selected_frame): New function.
1854         * frame.h (get_selected_frame): Declare.
1855         (deprecated_selected_frame): Rename selected_frame.
1856         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1857         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1858         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1859         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1860         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1861         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1862         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1863         * z8k-tdep.c, cli/cli-cmds.c: Update.
1864         
1865 2002-11-29  Andrew Cagney  <ac131313@redhat.com>
1866
1867         * frame.h (get_selected_block): Add comments.
1868
1869 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1870
1871         * frame.c (pc_notcurrent): New function.
1872         (find_frame_sal): New function.
1873         * frame.h (find_frame_sal): Declare.
1874         (struct symtab_and_line): Add opaque declaration.
1875         * stack.c (print_frame_info_base): Use find_frame_sal instead of
1876         find_pc_line.
1877         (frame_info): Ditto.
1878         * ada-lang.c (find_printable_frame): Ditto.
1879
1880 2002-11-28  J. Brobecker  <brobecker@gnat.com>
1881
1882         * configure.in: Check that the pthdebug library is recent enough
1883         before enabling thread support on native AiX.
1884         * configure: Regenerate.
1885
1886         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1887         from the list of object files as it is now appended by configure
1888         if thread support is enabled.
1889         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1890         if thread support is enabled.
1891
1892 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1893
1894         * stack.c (get_selected_block): In-line get_current_block.
1895         * frame.h (get_current_block): Delete declaration.
1896         * blockframe.c (get_current_block): Delete function.
1897
1898 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
1899
1900         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1901         USE_GENERIC_DUMMY_FRAMES.
1902         * gdbarch.h, gdbarch.c: Regenerate.
1903         * valops.c, frame.c: Update.
1904         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1905         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1906         * config/pa/tm-hppa.h, blockframe.c: Update.
1907         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1908         * m68k-tdep.c, alpha-tdep.c: Ditto.
1909
1910         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1911         * mips-tdep.c: Ditto.
1912
1913 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
1914
1915         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1916         (USE_GENERIC_DUMMY_FRAMES): Default to true.
1917         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1918         * gdbarch.c, gdbarch.h: Re-generate.
1919         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1920         (CALL_DUMMY_LOCATION): Delete macro definition.
1921         (PC_IN_CALL_DUMMY): Delete macro definitions.
1922         
1923         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1924         default is already generic_pc_in_call_dummy.
1925         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1926         * v850-tdep.c (v850_gdbarch_init): Ditto.
1927         * sh-tdep.c (sh_gdbarch_init): Ditto.
1928         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1929         * mips-tdep.c (mips_gdbarch_init): Ditto.
1930         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1931         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1932         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1933         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1934         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1935         * avr-tdep.c (avr_gdbarch_init): Ditto.
1936         
1937         * arm-tdep.c (arm_gdbarch_init): Do not set
1938         use_generic_dummy_frames, default is already 1.
1939         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1940         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1941         * v850-tdep.c (v850_gdbarch_init): Ditto.
1942         * sh-tdep.c (sh_gdbarch_init): Ditto.
1943         * s390-tdep.c (s390_gdbarch_init): Ditto.
1944         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1945         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1946         * mips-tdep.c (mips_gdbarch_init): Ditto.
1947         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1948         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1949         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1950         * i386-tdep.c (i386_gdbarch_init): Ditto.
1951         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1952         * frv-tdep.c (frv_gdbarch_init): Ditto.
1953         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1954         * cris-tdep.c (cris_gdbarch_init): Ditto.
1955         * avr-tdep.c (avr_gdbarch_init): Ditto.
1956
1957         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1958         call_dummy_location, default is already AT_ENTRY_POINT.
1959         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1960         * v850-tdep.c (v850_gdbarch_init): Ditto.
1961         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1962         * sh-tdep.c (sh_gdbarch_init): Ditto.
1963         * s390-tdep.c (s390_gdbarch_init): Ditto.
1964         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1965         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1966         * mips-tdep.c (mips_gdbarch_init): Ditto.
1967         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1968         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1969         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1970         * i386-tdep.c (i386_gdbarch_init): Ditto.
1971         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1972         * frv-tdep.c (frv_gdbarch_init): Ditto.
1973         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1974         * cris-tdep.c (cris_gdbarch_init): Ditto.
1975         * avr-tdep.c (avr_gdbarch_init): Ditto.
1976         * arm-tdep.c (arm_gdbarch_init): Ditto.
1977         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1978
1979 2002-11-28  Andrew Cagney  <cagney@redhat.com>
1980
1981         * frame.h: Update comments on set_current_frame, create_new_frame,
1982         flush_cached_frames, reinit_frame_cache, select_frame and
1983         selected_frame.
1984         
1985 2002-11-27  Andrew Cagney  <cagney@redhat.com>
1986
1987         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1988         deprecated pc_in_call_dummy function.
1989         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1990         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1991         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1992         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1993         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1994
1995 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
1996
1997         * Makefile.in: Remove Tix dependencies.
1998         * acinclude.m4: Ditto.
1999         * aclocal.m4: Ditto.
2000         * configure.in: Ditto.
2001         * configure: Regenerated.
2002         
2003 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2004
2005         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2006         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2007         * gdbarch.c: Re-generate.
2008         
2009 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2010
2011         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2012         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2013         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2014         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2015         pc_in_call_dummy_at_entry_point.
2016         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2017         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2018         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2019         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2020         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2021         pc_in_call_dummy_on_stack.
2022         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2023         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2024         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2025         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2026         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2027         
2028 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
2029
2030         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2031         pc_in_call_dummy_before_text_end
2032         (deprecated_pc_in_call_dummy_after_text_end): Rename
2033         pc_in_call_dummy_after_text_end.
2034         (deprecated_pc_in_call_dummy_on_stack): Rename
2035         pc_in_call_dummy_on_stack.
2036         (deprecated_pc_in_call_dummy_at_entry_point): Rename
2037         pc_in_call_dummy_at_entry_point.
2038         * m68k-tdep.c (m68k_gdbarch_init): Update.
2039         * s390-tdep.c (s390_gdbarch_init): Update.
2040         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2041         * vax-tdep.c (vax_gdbarch_init): Update.
2042         * sparc-tdep.c (sparc_gdbarch_init): Update.
2043         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2044         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2045         * i386-tdep.c (i386_gdbarch_init): Update.
2046         * frv-tdep.c (frv_gdbarch_init): Update.
2047         * cris-tdep.c (cris_gdbarch_init): Update.
2048         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2049         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2050         (deprecated_pc_in_call_dummy_after_text_end)
2051         (deprecated_pc_in_call_dummy_on_stack)
2052         (deprecated_pc_in_call_dummy_at_entry_point): Update.
2053         * alpha-tdep.c (alpha_gdbarch_init): Update.
2054
2055 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
2056
2057         * acconfig.h (HAVE_PREAD64): Add.
2058         * configure.in: Check for pread64.
2059         * config.in: Regenerated.
2060         * configure: Regenerated.
2061         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2062         * linux-proc.c (linux_proc_xfer_memory): New function.
2063         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2064
2065 2002-11-25  David Carlton  <carlton@math.stanford.edu>
2066
2067         * dwarf2read.c (scan_partial_symbols): Descend into namespace
2068         pdi's with no name.
2069
2070 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
2071
2072         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
2073         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2074
2075 2002-11-25  Jim Blandy  <jimb@redhat.com>
2076
2077         * symfile.c (init_objfile_sect_indices): New function.
2078         (default_symfile_offsets): Move the section-index-initializing
2079         stuff into init_objfile_sect_indices, and call that.
2080
2081         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2082         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2083
2084         * symfile.c (syms_from_objfile): Adjust indentation.
2085
2086         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2087         || info_verbose isn't true.
2088
2089 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2090
2091         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2092         default to get_frame_base.
2093         * gdbarch.h, gdbarch.c: Regenerate.
2094         * arch-utils.c (default_frame_address): Delete function.
2095         * arch-utils.h (default_frame_address): Delete declaration
2096
2097 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
2098
2099         * varobj.c (find_frame_addr_in_frame_chain):
2100         Use get_frame_base instead of FRAME_FP,
2101         obvious fix.
2102
2103 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2104
2105         * frame.h (FRAME_FP): Delete macro.
2106         (get_frame_base): New function declaration.
2107         * frame.c (get_frame_base): New function.
2108         (get_frame_id): Use ->frame.
2109         (frame_find_by_id): Rewrite to use get_frame_id.
2110         * blockframe.c: Use get_frame_base instead of FRAME_FP.
2111         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2112         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2113         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2114         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2115         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2116         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2117
2118 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2119
2120         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2121
2122 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2123
2124         * frame.c (set_unwind_by_pc): Revert change below, use
2125         PC_IN_CALL_DUMMY.
2126         (get_prev_frame): Ditto.
2127
2128 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
2129
2130         * dummy-frame.c (pc_in_dummy_frame): New function.
2131         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2132         (find_dummy_frame): Update comment.
2133         (generic_pop_current_frame): Use get_frame_type.
2134         * dummy-frame.h (pc_in_dummy_frame): Declare.
2135         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2136         (create_new_frame): Use pc_in_dummy_frame.
2137         (get_prev_frame): Use pc_in_dummy_frame.
2138         (frame_saved_regs_register_unwind): Use get_prev_frame.
2139         (deprecated_generic_get_saved_register): Use get_prev_frame.
2140
2141 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2142
2143         * blockframe.c (find_frame_addr_in_frame_chain): Move function
2144         from here ...
2145         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2146         (varobj_create): Note that frame ID should be used.
2147         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2148
2149 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2150
2151         * breakpoint.c: Include "gdb_assert.h".
2152         (deprecated_frame_in_dummy): Assert that generic dummy frames are
2153         not being used.
2154         * Makefile.in (breakpoint.o): Update dependencies.
2155         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2156         deprecated_frame_in_dummy.
2157         * stack.c (print_frame_info_base): Ditto.
2158         (frame_info): Ditto.
2159         (print_frame_info_base): Ditto.  Delete dead code.
2160         
2161 2002-11-23  Andreas Schwab  <schwab@suse.de>
2162
2163         * Makefile.in (m68k_tdep_h): Define.
2164         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2165         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2166         * m68k-tdep.c: Move register number enum ...
2167         * m68k-tdep.h: ... to this new file and rename the constants from
2168         E_* to M68K_*.  All uses changed.
2169         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2170         * abug-rom.c: Include "m68k-tdep.h".  Use
2171         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2172         * cpu32bug-rom.c: Likewise.
2173         * dbug-rom.c: Likewise.
2174         * m68k-tdep.c: Likewise.
2175         * m68klinux-nat.c: Likewise.
2176         * remote-est.c: Likewise.
2177         * rom68k-rom.c: Likewise.
2178         * config/m68k/tm-linux.h: Likewise.
2179
2180 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
2181
2182         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2183         dummy frame initialization code.
2184         * mips-tdep.c (mips_gdbarch_init): Ditto.
2185
2186 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2187
2188         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2189         attach will hang.
2190
2191 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
2192
2193         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2194         to default_frame_address.
2195         * gdbarch.h, gdbarch.c: Re-generate.
2196
2197         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2198         or frame_locals_address to default_frame_address.
2199         * m68k-tdep.c (m68k_gdbarch_init): Update.
2200         * i386-tdep.c (i386_gdbarch_init): Update.
2201         * frv-tdep.c (frv_gdbarch_init): Update.
2202         * sh-tdep.c (sh_gdbarch_init): Update.
2203         * v850-tdep.c (v850_gdbarch_init): Update.
2204         * sparc-tdep.c (sparc_gdbarch_init): Update.
2205         * mips-tdep.c (mips_gdbarch_init): Update.
2206         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2207         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2208         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2209
2210         * cris-tdep.c (cris_frame_args_address): Delete function.
2211         (cris_frame_locals_address): Delete function.
2212         (cris_gdbarch_init): Do not set frame_args_address or
2213         frame_locals_address.
2214
2215 2002-11-22  Michael Snyder  <msnyder@redhat.com>
2216
2217         * thread-db.c (thread_db_load): Tell the user what's going on
2218         if dlopen fails on libthread_db.
2219
2220 2002-11-23  Andreas Schwab  <schwab@suse.de>
2221
2222         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2223         invariant return values.
2224
2225 2002-11-22  Andreas Schwab  <schwab@suse.de>
2226
2227         * valops.c (value_slice): Move declaration of `offset' to avoid
2228         warning.
2229
2230 2002-11-22  Christopher Faylor  <cgf@redhat.com>
2231
2232         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2233         (struct so_stuff): Add end_addr field.
2234         (register_loaded_dll): Calculate and store end address of loaded dll.
2235         (solib_address): New function.
2236         (child_solib_loaded_library_pathname): Pass carefully constructed
2237         section info to safe_symbol_file_add rather than ignoring it.
2238         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2239         DLL is loaded.
2240         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2241         (child_create_inferior): Fix a compiler warning.
2242         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2243         (solib_address): Declare new function.
2244
2245 2002-11-22  Andreas Schwab  <schwab@suse.de>
2246
2247         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2248         and FPS registers.
2249
2250 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
2251
2252         * maint.c (_initialize_maint_cmds): Fix typo.  From
2253         Francesco Potorti` <pot@gnu.org>.
2254
2255 2002-11-21  Andrew Cagney  <cagney@redhat.com>
2256
2257         * mips-tdep.c (mips_dump_tdep): Delete references to
2258         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2259         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2260         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2261         * printcmd.c (build_address_symbolic): Delete calls to
2262         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2263         (address_info): Ditto.
2264         Fix PR gdb/773.
2265         
2266 2002-11-19  Klee Dienes  <kdienes@apple.com>
2267             Adam Fedor  <fedor@gnu.org>
2268
2269         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
2270         the ability to explicitly specify the quote characters and word
2271         break characters; if NULL is specified for either, use the old
2272         behavior of using the characters used by the completer.
2273         (skip_chars): New function.  Convenience wrapper around
2274         skip_quoted_chars to provide the original skip_chars behavior.
2275         * completer.h (skip_quoted_chars): Add prototype.
2276
2277 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
2278
2279         Problems reported by Paul Eggert.
2280         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
2281
2282 2002-11-19  Andreas Schwab  <schwab@suse.de>
2283
2284         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
2285         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
2286         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
2287         (m68k_linux_frame_saved_pc): Move to ...
2288         * m68klinux-tdep.c: ... here.  New file.
2289         * Makefile.in (m68klinux-tdep.o): Add dependencies.
2290         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2291
2292 2002-11-19  Adam Fedor  <fedor@gnu.org>
2293
2294         * objc-exp.y: Revert to old skip_quoted usage.
2295
2296 2002-11-19  Adam Fedor  <fedor@gnu.org>
2297
2298         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2299         (objc_lang_h): Define.
2300         (YYFILES): Add objc-exp.tab.c.
2301         (local-maintainer-clean): Remove objc-exp.tab.c.
2302         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2303         
2304 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2305
2306         * p-exp.y (typecast rule): Add automatic dereference of
2307         pascal classes if needed.
2308         (THIS): Set current_type.
2309         Automatically dereference pascal classes. 
2310         (typebase rule): Add ^typebase recognition.
2311
2312 2002-11-18  Adam Fedor  <fedor@gnu.org>
2313
2314         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2315         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
2316         (op_name): Handle OP_OBJC_SELF.
2317         * Makefile.in (expprint.o): Add additional depends.
2318
2319 2002-11-18  Adam Fedor  <fedor@gnu.org>
2320
2321         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2322         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2323         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2324         * objc-exp.y: Likewise. 
2325
2326 2002-11-18  Adam Fedor  <fedor@gnu.org>
2327
2328         * gdb/parser-defs.h: (struct objc_class_str): New structure
2329         for parsing ObjC classes.
2330
2331 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2332
2333         * stack.c (frame_relative_level): Copy function from here ...
2334         * frame.c (frame_relative_level): ...to here.
2335
2336 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
2337
2338         * frame.h (enum frame_type): Define.
2339         (get_frame_type): Declare.
2340         (struct frame_info): Add field `type'.  Delete field
2341         signal_handler_caller.
2342         (deprecated_set_frame_signal_handler_caller): Declare.
2343         * frame.c (get_frame_type): New function.
2344         (deprecated_set_frame_type): New function.
2345         (create_new_frame): Set the frame's type.
2346         (get_prev_frame): Similar.
2347         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2348         * s390-tdep.c: Ditto.
2349         * m68klinux-nat.c: Ditto.
2350         * ns32k-tdep.c: Ditto.
2351         * x86-64-linux-tdep.c: Ditto.
2352         * vax-tdep.c: Ditto.
2353         * rs6000-tdep.c: Ditto.
2354         * ppc-linux-tdep.c: Ditto.
2355         * i386-interix-tdep.c: Ditto.
2356         * mips-tdep.c: Ditto.
2357         * m68k-tdep.c: Ditto.
2358         * hppa-tdep.c: Ditto.
2359         * ia64-tdep.c: Ditto.
2360         * cris-tdep.c: Ditto.
2361         * arm-tdep.c: Ditto.
2362         * alpha-tdep.c: Ditto.
2363         * i386-tdep.c: Ditto.
2364         * stack.c: Ditto.
2365         * ada-lang.c: Ditto.
2366         * blockframe.c: Update.
2367         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2368         deprecated_set_frame_type instead of signal_handler_caller.
2369         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2370         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2371         * breakpoint.h: Delete FIXME suggesting get_frame_type.
2372
2373 2002-11-18   Klee Dienes  <kdienes@apple.com>
2374
2375         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2376
2377 2002-11-18  Klee Dienes  <kdienes@apple.com>
2378
2379         * buildsym.c (pop_context): Add comment.
2380         
2381 2002-11-18  Klee Dienes  <kdienes@apple.com>
2382
2383         * buildsym.h (pop_context): Convert to function, defined in
2384         buildsym.c.
2385         * buildsym.c: Include gdb_assert.h.
2386         (pop_context): Implement as C function.  Add check for stack
2387         underflow.
2388         * dbxread.c (process_one_symbol): Complain and stop processing
2389         that symbol if we are already at the top of the context stack for
2390         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
2391         when processing N_RBRAC.
2392
2393 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2394
2395         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2396         define.
2397         (struct target_waitstatus): Add opaque definition.
2398         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2399         * exec.c (init_exec_ops): Likewise.
2400         * fork-child.c (clone_and_follow_inferior): Remove.
2401         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2402         * inferior.h (clone_and_follow_inferior): Remove prototype.
2403         * infrun.c (follow_fork_mode_both): Remove.
2404         (follow_fork_mode_kind_names): Remove commented out "both".
2405         (follow_inferior_fork): Remove follow_fork_mode_both support.
2406         * inftarg.c (child_clone_and_follow_inferior): Remove.
2407         (child_post_follow_inferior_by_clone): Remove.
2408         (init_child_ops): Don't set to_clone_and_follow_inferior
2409         or to_post_follow_inferior_by_clone.
2410         * target.c (default_clone_and_follow_inferior): Remove.
2411         (cleanup_target): Don't set to_clone_and_follow_inferior
2412         or to_post_follow_inferior_by_clone.
2413         (find_default_clone_and_follow_inferior): Remove.
2414         (init_dummy_target): Don't set to_clone_and_follow_inferior.
2415         (debug_to_clone_and_follow_inferior): Remove.
2416         (debug_to_post_follow_inferior_by_clone): Remove.
2417         (setup_target_debug): Don't set to_clone_and_follow_inferior
2418         or to_post_follow_inferior_by_clone.
2419         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2420         and to_post_follow_inferior_by_clone.
2421         (child_clone_and_follow_inferior): Remove prototype.
2422         (child_post_follow_inferior_by_clone): Remove prototype.
2423         (target_clone_and_follow_inferior): Remove macro.
2424         (target_post_follow_inferior_by_clone): Remove macro.
2425         (find_default_clone_and_follow_inferior): Remove prototype.
2426
2427 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2428
2429         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2430         inferior_has_vforked, and inferior_has_execd instead of
2431         target_has_forked, target_has_vforked, and target_has_execd.
2432         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2433         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2434         (CHILD_WAIT): Define.
2435         (child_wait): Add prototype.
2436         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2437         Add prototype.
2438         (hpux_has_vforked): Likewise, from child_has_vforked.
2439         (hpux_has_execd): Likewise, from child_has_execd.
2440         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2441         (not_same_real_pid, child_wait): New, copied from inftarg.c.
2442         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2443         and hpux_has_syscall_event instead of the target hooks.
2444         * infrun.c (inferior_has_forked, inferior_has_vforked)
2445         (inferior_has_execd): New functions.
2446         * inftarg.c (not_same_real_pid): Remove.
2447         (child_wait): Remove references to not_same_real_pid,
2448         target_has_forked, target_has_vforked, target_has_execd,
2449         and target_has_syscall_event.
2450         (child_has_forked, child_has_vforked, child_has_execd)
2451         (child_has_syscall_event): Remove.
2452         (init_child_ops): Remove references to child_has_forked,
2453         child_has_vforked, child_has_execd, and child_has_syscall_event.
2454         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2455         (hpux_has_vforked): Likewise, from child_has_vforked.
2456         (hpux_has_execd): Likewise, from child_has_execd.
2457         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2458         * target.c (cleanup_target): Remove references to
2459         to_has_forked, to_has_vforked, to_has_execd, and
2460         to_has_syscall_event.
2461         (update_current_target): Likewise.
2462         (setup_target_debug): Likewise.
2463         (debug_to_has_forked): Remove.
2464         (debug_to_has_vforked): Remove.
2465         (debug_to_has_execd): Remove.
2466         (debug_to_has_syscall_event): Remove.
2467         * target.h (struct target_ops): Remove to_has_forked.
2468         to_has_vforked, to_has_execd, and to_has_syscall_event.
2469         (child_has_forked, child_has_vforked, child_has_execd)
2470         (child_has_syscall_event): Remove prototypes.
2471         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2472         prototypes.
2473         (target_has_forked, target_has_vforked, target_has_execd)
2474         (target_has_syscall_event): Remove macros.
2475
2476 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
2477
2478         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2479         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2480         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2481         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2482         * target.c (cleanup_target): Remove reference to
2483         to_can_follow_vfork_prior_to_exec.
2484         (update_current_target): Likewise.
2485         (debug_to_can_follow_vfork_prior_to_exec): Remove.
2486         (setup_target_debug): Remove reference to
2487         to_can_follow_vfork_prior_to_exec.
2488         * target.h (struct target_ops): Remove
2489         to_can_follow_vfork_prior_to_exec.
2490         (child_can_follow_vfork_prior_to_exec): Remove prototype.
2491         (target_can_follow_vfork_prior_to_exec): Remove definition.
2492         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2493         define.
2494         * infrun.c (follow_vfork_when_exec): Remove.
2495         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2496         (follow_exec): Likewise.
2497         (handle_inferior_event): Likewise.
2498         (keep_going): Likewise.
2499
2500 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2501
2502         * frame.c (generic_unwind_get_saved_register): Make static.
2503         * frame.h (generic_unwind_get_saved_register): Delete declaration.
2504         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2505         defaults to generic_unwind_get_saved_register.
2506         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2507         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2508         * frv-tdep.c (frv_gdbarch_init): Ditto.
2509         * i386-tdep.c (i386_gdbarch_init): Ditto.
2510         * s390-tdep.c (s390_gdbarch_init): Ditto.
2511         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2512         * v850-tdep.c (v850_gdbarch_init): Ditto.
2513         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2514         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2515         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2516
2517 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2518
2519         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
2520         i386-tdep.c.
2521
2522 2002-11-15  Andrew Cagney  <cagney@redhat.com>
2523
2524         * frame.h (sigtramp_saved_pc): Delete declaration.
2525         * blockframe.c (sigtramp_saved_pc): Delete function.
2526         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2527         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2528         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2529         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2530
2531 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2532
2533         * frame.c (frame_pc_unwind): New function.
2534         (frame_saved_regs_pc_unwind): New function.
2535         (frame_register_unwind): Pass unwind_cache instead of
2536         register_unwind_cache.
2537         (set_unwind_by_pc): Add unwind_pc parameter, set.
2538         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2539         (get_prev_frame): Ditto.
2540         * frame.h (frame_pc_unwind_ftype): Declare.
2541         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2542         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
2543         (frame_pc_unwind): Declare.
2544         * dummy-frame.c (dummy_frame_pc_unwind): New function.
2545         (struct dummy_frame): Add comment mentioning that values are for
2546         previous frame.
2547         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2548         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2549         (generic_file_frame_chain_valid): Ditto.
2550         * stack.c (frame_info): Ditto.
2551
2552 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2553
2554         * linespec.c (locate_first_half): New function.
2555         (decode_line_1): Move code into locate_first_half.
2556
2557 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
2558
2559         * complaints.h: Add comment explaining how to eliminate a
2560         deprecated_complain call.
2561         * complaints.h: Fix spelling errors.
2562
2563 2002-11-15  David Carlton  <carlton@math.stanford.edu>
2564
2565         * printcmd.c: Remove #include "disasm.h".
2566
2567 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2568
2569         * frame.h: Move the most relevant interface functions to the start
2570         of the file.
2571
2572 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
2573
2574         * regcache.h (deprecated_registers): Rename registers.
2575         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2576         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2577         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2578         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2579         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2580         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2581         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2582         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2583         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2584         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2585         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2586         * v850ice.c: Update.
2587
2588 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
2589
2590         * utils.c (gdb_realpath): Add comment mentioning realpath with a
2591         NULL buffer.
2592
2593 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2594
2595         * regcache.h (deprecated_read_register_bytes): Rename
2596         read_register_bytes.
2597         (deprecated_write_register_bytes): Rename write_register_bytes.
2598         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2599         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2600         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2601         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2602         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2603         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2604         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2605         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2606         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2607         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2608         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2609         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2610         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2611         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2612
2613 2002-11-13  Jim Blandy  <jimb@redhat.com>
2614
2615         * findvar.c (read_var_value): Doc fix.
2616
2617 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2618
2619         * regcache.c (struct regcache): Replace passthough_p with
2620         readonly_p.
2621         (regcache_xmalloc): Initialize readonly_p.
2622         (build_regcache): Initialize readonly_p.
2623         (regcache_save): New function.
2624         (regcache_restore): New function.
2625         (regcache_cpy): Re-implement using regcache_save and
2626         regcache_restore.
2627         (regcache_raw_read): Update.
2628         (regcache_cooked_read): When a read-only cache, checked for cached
2629         pseudo register values.
2630         (regcache_raw_write): Assert that the cache is not read-only.
2631         Remove code handling a non-passthrough cache.
2632         * regcache.h (regcache_save): Declare.
2633         (regcache_restore): Declare.
2634
2635 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2636
2637         * regcache.c (struct regcache_descr): Add fields
2638         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2639         (init_legacy_regcache_descr): Compute the size of a cooked
2640         register cache and then assign that to sizeof_raw_registers.  Set
2641         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2642         (init_legacy_regcache_descr): Ditto.
2643
2644 2002-11-13  Andrew Cagney  <cagney@redhat.com>
2645
2646         * regcache.c (register_buffer): Move to near start of file, update
2647         description.
2648         (regcache_raw_read): Use.
2649         (regcache_raw_write): Use.
2650         (struct regcache): Rename raw_registers to registers and
2651         raw_register_valid_p to register_valid_p.
2652         (regcache_xmalloc): Update.
2653         (regcache_xfree): Update.
2654         (register_buffer): Update.
2655         (regcache_cpy): Update.
2656         (regcache_cpy_no_passthrough): Update.
2657         (regcache_valid_p): Update.
2658         (deprecated_grub_regcache_for_registers): Update.
2659         (deprecated_grub_regcache_for_register_valid): Update.
2660         (set_register_cached): Update.
2661         (regcache_raw_write): Update.
2662
2663 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
2664
2665         * p-exp.y (name_not_typename): Use copy_name to
2666         set current_type variable for fields of THIS.
2667
2668 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
2669
2670         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2671         * monitor.c (init_base_monitor_ops): Likewise.
2672         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2673         * remote-array.c (init_array_ops): Likewise.
2674         * remote-e7000.c (init_e7000_ops): Likewise.
2675         * remote-es.c (init_es1800_ops): Likewise.
2676         (init_es1800_child_ops): Likewise.
2677         * remote-rdp.c (init_remote_rdp_ops): Likewise.
2678         * remote-sim.c (init_gdbsim_ops): Likewise.
2679         * remote-st.c (init_st2000_ops): Likewise.
2680         * sol-thread.c (init_sol_core_ops): Likewise.
2681         (init_sol_thread_ops): Likewise.
2682         * v850ice.c (init_850ice_ops): Likewise.
2683         * win32-nat.c (init_child_ops): Likewise.
2684         * wince.c (init_child_ops): Likewise.
2685
2686 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2687
2688         * utils.c (gdb_realpath): Make rp a constant pointer.
2689
2690 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2691
2692         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
2693         a constant buffer; cannonicalize_file_name(); realpath() with a
2694         pathconf() defined buffer, xstrdup().
2695
2696 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
2697
2698         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2699         to hang2.C; hang3.c to hang3.C.
2700
2701 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2702
2703         * findvar.c (read_var_value): Reenable TLS code.
2704
2705 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
2706             Jim Blandy  <jimb@redhat.com>
2707         
2708         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2709         * target.c (update_current_target): Add
2710         to_get_thread_local_address.
2711         * target.h (to_get_thread_local_address): Export.
2712         (target_get_thread_local_address): Define.
2713         (target_get_thread_local_address_p): Define.
2714         * thread-db.c: Include solib-svr4.h.
2715         (td_thr_tls_get_addr_p): Define.
2716         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2717         (thread_db_get_thread_local_address): New function.
2718         (init_thread_db_ops): Initialize to_get_thread_local_address.
2719         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2720         * configure: Regenerate.
2721         * config.in: Regenerate.
2722
2723 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2724
2725         * linespec.c (set_flags): New function.
2726         (decode_line_1): Move code into set_flags.
2727
2728 2002-11-11  David Carlton  <carlton@math.stanford.edu>
2729
2730         * linespec.c (decode_line_1): Move chunks of code to separate
2731         functions.
2732         (initialize_defaults): New function.
2733         (decode_indirect): New function.
2734
2735 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
2736
2737         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2738         instead of void_code_ptr.
2739         (sigtramp_saved_pc): Ditto.
2740
2741         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2742         i386_fp_regnum_p.
2743
2744 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
2745
2746         * gdbtypes.h (struct main_type): Move artificial flag out of
2747         loc.  New member of ``struct field'' named static_kind.  Reduce
2748         overloaded meaning of bitsize.
2749         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2750         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2751         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2752
2753         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2754         new fields.
2755         (template_to_fixed_record_type, template_to_static_fixed_type)
2756         (to_record_with_fixed_variant_part): Likewise.
2757         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2758         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2759         * dwarfread.c (struct_type, enum_type): Likewise.
2760         * hpread.c (hpread_read_enum_type)
2761         (hpread_read_function_type, hpread_read_doc_function_type)
2762         (hpread_read_struct_type): Likewise.
2763         * mdebugread.c (parse_symbol): Likewise.
2764
2765 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
2766
2767         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2768         * stack.c (print_frame_info_base): Update.
2769         (print_frame_info_base, frame_info): Update.
2770         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2771         (sparc_frame_saved_pc): Update.
2772         * ada-lang.c (find_printable_frame): Update.
2773         * breakpoint.c (deprecated_frame_in_dummy): Update.
2774         
2775 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2776
2777         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2778         defined.
2779         (regmap): Extend to cover all registers.
2780         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2781         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2782         definitions.
2783         (fetch_register, sore_register): Simplify.
2784         (old_fetch_inferior_registers, old_store_inferior_registers):
2785         Remove functions.
2786         (cannot_fetch_register, cannot_store_register): Change
2787         implementation to use regmap array to decide which registers
2788         cannot be fetched/stored.  This removes $orig_eax from the
2789         registers that cannot be fetched/stored.
2790         (fetch_inferior_registers): Call fetch_register directly instead
2791         of calling old_fetch_inferior_registers.
2792         (store_inferior_registers): Call store_register directly instead
2793         of calling old_store_inferior_registers.
2794         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2795         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2796         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2797
2798 2002-11-09  Klee Dienes  <kdienes@apple.com>
2799
2800         * i387-tdep.c (i387_supply_register): When called with NULL as a
2801         buffer, mark the register as not provided (to mirror the behavior
2802         of supply_register).
2803         (i387_supply_fxsave): Ditto.
2804         (i387_supply_fsave): Ditto (inherits the behavior from
2805         i387_supply_register).
2806
2807 2002-11-09  Klee Dienes  <kdienes@apple.com>
2808
2809         * blockframe.c (sigtramp_saved_pc): Use
2810         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2811         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
2812         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2813         
2814 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2815
2816         * frame.c (get_prev_frame): Test prev_p to identify a previously
2817         unwound frame.  Initialize prev_p.
2818         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
2819         comment.
2820
2821 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
2822
2823         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
2824         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
2825         more comments.  Zap dead code.
2826
2827 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2828
2829         * infcmd.c (print_vector_info, print_float_info): Move code that
2830         checks whether the target has any registers and whether there is a
2831         selected frame up, such that it is also used if a target provides
2832         multi-arch definitions of these functions.
2833
2834 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2835
2836         * Makefile.in (DESTDIR): Define.
2837         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2838         prefix.
2839
2840         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2841         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
2842
2843 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2844
2845         * i386-linux-tdep.c: Include "reggroups.h".
2846         (i386_linux_register_reggroup_p): New function.
2847         (i386_linux_init_abi): Set register_reggroup_p to
2848         i386_linux_register_reggroup_p.
2849         * i386-tdep.h (i386_register_reggroup_p): Declare.
2850         * i386-tdep.c: Include "reggroups.h".
2851         (i386_init_reggroups): New function.
2852         (i386_add_reggroups): New function.
2853         (i386_register_reggroup_p): New function.
2854         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2855         (_initialize_i386_tdep): Call i386_init_reggroups.
2856         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2857         specific reggroups.
2858
2859 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2860
2861         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2862         request that's available in *BSD.
2863
2864         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2865
2866         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2867         FDOFF_REGNUM.
2868
2869 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2870
2871         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2872         * dummy-frame.c (find_dummy_frame): Rename
2873         generic_find_dummy_frame, make static.  Return the dummy frame
2874         instead of the regcache.
2875         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2876         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
2877         (dummy_frame_register_unwind): Rename
2878         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
2879         * dummy-frame.h (dummy_frame_register_unwind): Rename
2880         generic_call_dummy_register_unwind.
2881
2882 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
2883
2884         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
2885         except the inclusion of "i386/tm-i386.h", to...
2886         * config/i386/nm-i386v42mp.h: ...here.
2887         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2888
2889 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2890
2891         * Makefile.in (frame.o): Update dependencies.
2892         * blockframe.c (current_frame, frame_obstack_alloc)
2893         (frame_saved_regs_zalloc, get_current_frame)
2894         (set_current_frame, create_new_frame)
2895         (set_unwind_by_pc, get_next_frame)
2896         (flush_cached_frames, reinit_frame_cache)
2897         (frame_saved_regs_register_unwind)
2898         (deprecated_generic_get_saved_register)
2899         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2900         (_initialize_blockframe): Move frame code from here...
2901         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
2902         "annotate.h" and "dummy-frame.h".
2903         (_initialize_frame): New function.
2904
2905 2002-11-08  Jim Blandy  <jimb@redhat.com>
2906
2907         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2908         when we finish a function a context.
2909         * buildsym.h (outermost_context_p): New macro.
2910         (Bug analyzed by David Edelsohn.)
2911
2912 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2913
2914         * blockframe.c: Include "dummy-frame.h".
2915         (struct dummy_frame, dummy_frame_stack)
2916         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2917         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2918         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2919         (generic_save_call_dummy_addr, generic_pop_current_frame)
2920         (generic_pop_dummy_frame, generic_fix_call_dummy)
2921         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2922         dummy frame code from here...
2923         * dummy-frame.c: ...to here.  New file.
2924         * dummy-frame.h: New file.
2925         (generic_call_dummy_register_unwind): Declare.
2926         (generic_find_dummy_frame): Declare.
2927         * Makefile.in (SFILES): Add dummy-frame.c.
2928         (dummy-frame.o): Specify dependencies.
2929         (dummy_frame_h): Define.
2930         (COMMON_OBS): Add dummy-frame.o.
2931         (blockframe.o): Update dependencies.
2932
2933 2002-11-08  Jim Blandy  <jimb@redhat.com>
2934
2935         * dwarf2read.c (read_func_scope): Restore local_symbols and
2936         param_symbols after we finish the function context.  (Based on a
2937         patch from David Edelsohn.)
2938
2939 2002-11-08  David Carlton  <carlton@math.stanford.edu>
2940
2941         * linespec.c (symbol_found): New function.
2942         (minsym_found): New function.
2943         (decode_line_1): Separate out some code into separate functions.
2944
2945 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2946
2947         * i386-tdep.c (i386_frameless_signal_p): Make non static for
2948         the benefit of the interix target.
2949         * i386-tdep.h (i386_frameless_signal_p): Declare.
2950
2951 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2952
2953         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2954         declaration that snuck in from change below.
2955
2956 2002-11-06  Andrew Cagney  <cagney@redhat.com>
2957
2958         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
2959         all callers.
2960         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
2961         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
2962         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
2963         (i386_mxcsr_regnum_p): new function.  Use instead of
2964         MXCSR_REGNUM_P.
2965         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2966         (i386_sse_regnum_p): Declare.
2967         (i386_mxcsr_regnum_p): Declare.
2968         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2969         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2970         (IS_FP_REGNUM): Update definition.
2971         (IS_FPU_CTRL_REGNUM): Update definition..
2972         (IS_SSE_REGNUM): Update definition..
2973         * i386v-nat.c (register_u_addr): Update.
2974         * go32-nat.c (fetch_register): Update.
2975         (store_register): Update.
2976
2977 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
2978
2979         Preparation work to convert the hppa targets to multiarch partial.
2980
2981         * hppa-tdep.c: Add new functions replacing macro bodies from
2982         config/pa/tm-hppa.h. These function will be used to initialize
2983         the gdbarch structure. Import some comments from tm-hppa.h,
2984         and place them where appropriate, to avoid loosing them when
2985         we cleanup this file.
2986         (hppa_reg_struct_has_addr): New function.
2987         (hppa_inner_than): New function.
2988         (hppa_stack_align): New function.
2989         (hppa_pc_requires_run_before_use): New function.
2990         (hppa_instruction_nullified): New function.
2991         (hppa_register_byte): New function.
2992         (hppa_register_virtual_type): New function.
2993         (hppa_store_struct_return): New function.
2994         (hppa_cannot_store_register): New function.
2995         (hppa_frame_args_address): New function.
2996         (hppa_frame_locals_address): New function.
2997         (hppa_smash_text_address): New function.
2998         (hppa_coerce_float_to_double): New function. Requires the inclusion
2999         of "language.h".
3000
3001         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3002
3003         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3004         gdbarch-eligible macro to a call to the new associated function
3005         created in hppa-tdep.c.
3006         (INNER_THAN): Likewise.
3007         (STACK_ALIGN): Likewise.
3008         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3009         (INSTRUCTION_NULLIFIED): Likewise.
3010         (REGISTER_BYTE): Likewise.
3011         (REGISTER_VIRTUAL_TYPE): Likewise.
3012         (STORE_STRUCT_RETURN): Likewise.
3013         (CANNOT_STORE_REGISTER): Likewise.
3014         (FRAME_ARGS_ADDRESS): Likewise.
3015         (FRAME_LOCALS_ADDRESS): Likewise.
3016         (SMASH_TEXT_ADDRESS): Likewise.
3017         (COERCE_FLOAT_TO_DOUBLE): Likewise.
3018         (ABOUT_TO_RETURN): Delete, as no longer used.
3019
3020 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
3021
3022         * printcmd.c (disassemble_command): Remove obsolete function.
3023         (_initialize_printcmd): Do not create disassemble command here.
3024         * cli/cli-cmds.c (disassemble_command): New function.  Implements
3025         disassemble command.
3026         (init_cli_cmds): Create disassemble command here instead.
3027
3028 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3029
3030         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3031
3032 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3033
3034         * regcache.h (regcache_cooked_read_using_offset_hack)
3035         (regcache_cooked_write_using_offset_hack): Delete declarations.
3036         (register_changed): Delete declaration.
3037         * regcache.c (regcache_cooked_read_using_offset_hack)
3038         (regcache_cooked_write_using_offset_hack): Delete functions.
3039         (cooked_xfer_using_offset_hack): Delete function.
3040         (register_changed): Delete function.
3041
3042 2002-11-07  Jim Blandy  <jimb@redhat.com>
3043
3044         * macroscope.c: #include "complaints.h".
3045         (sal_macro_scope): Cope with filenames that appear in the symtabs,
3046         but not in the macro table.
3047         * Makefile.in (macroscope.o): Record dependency.
3048
3049 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
3050
3051         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3052
3053 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
3054
3055         * regcache.c (deprecated_registers_fetched): Update.
3056         * regcache.h (deprecated_registers_fetched): Rename
3057         registers_fetched.
3058         * remote-vxsparc.c (vx_read_register): Update.
3059         * remote-vxmips.c (vx_read_register): Update.
3060         * remote-vx68.c (vx_read_register): Update.
3061         * irix5-nat.c (fetch_core_registers): Update.
3062         * mipsm3-nat.c (fetch_inferior_registers): Update.
3063         * sun3-nat.c (fetch_inferior_registers): Update.
3064         * symm-nat.c (fetch_inferior_registers): Update.
3065         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3066         (fetch_core_registers): Update.
3067         (fetch_kcore_registers): Update.
3068         * mips-nat.c (fetch_inferior_registers): Update.
3069         * corelow.c (get_core_registers): Update.
3070         * a68v-nat.c (fetch_inferior_registers): Update.
3071
3072 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3073
3074         Put in place the framework necessary for multiarching the hppa targets.
3075         * hppa-tdep.c (hppa_gdbarch_init): New function.
3076         (hppa_dump_tdep): New function.
3077         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3078         tdep structure dumper.
3079         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3080         until the multi-arching conversion has partially been completed.
3081
3082 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3083
3084         * valops.c (value_assign): Merge lval_register case into
3085         lval_reg_frame_relative.  Use frame_register and
3086         regcache_cooked_write instead of get_saved_register and
3087         write_register_bytes.  After flushing the register cache, try to
3088         re-select the selected frame.
3089
3090 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3091
3092         * regcache.h (deprecated_register_valid): Rename register_valid.
3093         * regcache.c: Update.
3094         * ia64-aix-nat.c: Update.
3095         * i386gnu-nat.c: Update.
3096         * alpha-nat.c: Update.
3097         * sparc-nat.c: Update.
3098         * lynx-nat.c: Update.
3099         * remote-mips.c: Update.
3100
3101 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
3102
3103         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3104         to end of file, to be more consistent with the pratice followed
3105         by other targets.
3106
3107 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
3108
3109         * infcmd.c: Include "reggroups.h" and <ctype.h>.
3110         (print_float_info): Print registers in float_reggroup.
3111         (print_vector_info): Print registers in vector_reggroup.
3112         (default_print_registers_info): When all, print registers in
3113         all_reggroup.  Otherwize, print registers in general_reggroup.
3114         (registers_info): Rewrite.  Add support for register groups.
3115         Eliminate a goto.
3116
3117 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
3118
3119         * symtab.c (methods_info): Delete. It has been ifdeffed out for
3120         ages.
3121         (symtab_symbol_info): Remove eons old ifdeffed out code.
3122         (_initialize_symtab): Remove prehistoric disabled 'info methods'
3123         command.
3124
3125 2002-11-06  Theodore A. Roth  <troth@openavr.org>
3126
3127         * c-exp.y: Add missing semi-colons.
3128         * f-exp.y: Add missing semi-colons.
3129         * m2-exp.y: Add missing semi-colons.
3130         * p-exp.y: Add missing semi-colons.
3131         Add empty action to start rule to avoid a type clash error when
3132         building with bison >= 1.50.
3133
3134 2002-11-06  Jim Blandy  <jimb@redhat.com>
3135
3136         * macrotab.h (struct macro_source_file): Doc fix.
3137
3138 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
3139
3140         * varobj.c (child_exists, cplus_number_of_children): Change
3141         STREQ macro references to strcmp.
3142         (cplus_name_of_child): Change code to handle the fact that
3143         fields are not necessarily contiguous with regards to their 
3144         access control. This is a fix for PR gdb/792.
3145
3146 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3147
3148         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3149         * gdbarch.h, gdbarch.c: Regnerate.
3150         * frame.h (frame_register): Declare.
3151         * frame.c (frame_register): New function.
3152         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3153         GET_SAVED_REGISTER, otherwize call
3154         generic_unwind_get_saved_register.
3155         (frame_register_read): Use frame_register instead of
3156         get_saved_register.
3157
3158 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3159         
3160         From Jim Ingham  <jingham@apple.com>:
3161         * event-top.c (gdb_disable_readline): New function.
3162         (_initialize_event_loop): Move comment.
3163
3164 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
3165
3166         * event-loop.c (start_event_loop): Add comment.
3167         Update copyright.
3168
3169 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3170
3171         * infcmd.c (default_print_registers_info): Do not call
3172         PRINT_REGISTER_HOOK.
3173
3174 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
3175
3176         * sparc-tdep.c (sparc_print_register_hook): Make static.
3177         (sparc_print_registers_info): New function.
3178         (sparc_do_registers_info): New function.
3179         (sparclet_print_registers_info): New function.
3180         (sparclet_do_registers_info): New function.
3181         (do_sparc_print_registers_info): New function.
3182         (sparc_print_registers): New static function, clone of infcmd.c's
3183         default_print_registers_info.
3184         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3185         (sparclet_do_registers_info): Declare.
3186         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3187         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3188         Re-define.
3189         (sparc_do_registers_info): Declare.
3190         (PRINT_REGISTER_HOOK): Delete macro.
3191         (sparc_print_register_hook): Delete declaration.
3192
3193 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3194
3195         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3196         functions.
3197         (lookup_symbol_aux_local): New function.
3198         (lookup_symbol_aux_symtabs): New function.
3199         (lookup_symbol_aux_psymtabs): New function.
3200
3201 2002-11-05  David Carlton  <carlton@math.stanford.edu>
3202
3203         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3204         previous values of 'objfile' and 'block'.
3205
3206 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
3207
3208         * values.c (value_change_enclosing_type): Set 
3209         enclosing_type field correctly also for the case where 
3210         more memory needs to be allocated.
3211
3212 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
3213
3214         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3215         of puts_filtered.
3216
3217         * i387-tdep.c (i387_print_float_info): Replace calls to
3218         register_read and deprecated_read_register_gen with calls to
3219         frame_register_read, and make the necessary adjustments to the
3220         surrounding code.
3221
3222 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3223
3224         * gdbarch.sh (register_reggroup_p): Allow default value.
3225         * gdbarch.h, gdbarch.c: Regenerate.
3226
3227 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
3228
3229         * regcache.h: Add coment indicating replacements for deprecated
3230         functions.
3231
3232 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3233
3234         * reggroups.h, reggroups.c: New files.
3235         * regcache.c: Include "reggroups.h".
3236         (enum regcache_dump_what): Add `regcache_dump_groups'.
3237         (regcache_dump): Contract size of the "Type" column.  When
3238         specified, dump the register's groups.
3239         (maintenance_print_register_groups): New function.
3240         (_initialize_regcache): Add command `maint print register-groups'.
3241         * Makefile.in (COMMON_OBS): Add reggroups.o
3242         (SFILES): Add reggroups.c.
3243         (reggroups_h): Define.
3244         (regcache.o, gdbarch.o): Update dependencies.
3245         (reggroups.o): Specify dependencies.
3246         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3247         Add opaque declaration for `struct reggroup' in generated .h file.
3248         Include "reggroups.h" in generated .c file.
3249         gdbarch.h, gdbarch.c: Re-generate.
3250
3251 2002-11-02  Andrew Cagney  <cagney@redhat.com>
3252
3253         * regcache.h (deprecated_read_register_gen): Rename
3254         read_register_gen.
3255         (deprecated_write_register_gen): Rename write_register_gen.
3256         * i387-tdep.c: Update.
3257         * x86-64-linux-nat.c: Update
3258         * wince.c: Update.
3259         * thread-db.c: Update.
3260         * win32-nat.c: Update.
3261         * mips-tdep.c: Update.
3262         * d10v-tdep.c: Update.
3263         * cris-tdep.c: Update.
3264         * remote-sim.c: Update.
3265         * remote-rdi.c: Update.
3266         * remote-rdp.c: Update.
3267         * frame.c: Update.
3268         * target.c: Update.
3269         * blockframe.c: Update.
3270         * x86-64-tdep.c: Update.
3271         * xstormy16-tdep.c: Update.
3272         * sh-tdep.c: Update.
3273         * s390-tdep.c: Update.
3274         * rs6000-tdep.c: Update.
3275         * sparc-tdep.c: Update.
3276         * i386-tdep.c: Update.
3277         * dwarf2cfi.c: Update.
3278         * regcache.c: Update.
3279
3280 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
3281
3282         New interix-specific files:
3283         * config/i386/nm-interix.h: New file.
3284         * config/i386/interix.mh: New file.
3285         * config/i386/interix.mt: New file.
3286         * i386-interix-nat.c: New file.
3287         * i386-interix-tdep.c: New file.
3288
3289 2002-11-01  Andrew Cagney  <cagney@redhat.com>
3290
3291         * frame.h (deprecated_generic_get_saved_register): Rename
3292         generic_get_saved_register.
3293         * blockframe.c (deprecated_generic_get_saved_register): Update.
3294         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3295         (xstormy16_frame_saved_register): Update.
3296         * sh-tdep.c (sh_gdbarch_init): Update.
3297         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3298         * ia64-tdep.c (ia64_get_saved_register): Update.
3299         * cris-tdep.c (cris_gdbarch_init): Update.
3300         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3301         * arm-tdep.c (arm_gdbarch_init): Update.
3302
3303 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3304
3305         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3306
3307 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
3308
3309         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3310         trampolines in sigaction.
3311
3312 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3313
3314         * h8300-tdep.c: Include "gdb_assert.h".
3315         (h8300_print_register): Add gdbarch, file and frame parameters.
3316         Use frame_read_unsigned_register to read the register's value.
3317         Use fprintf_filtered to display output.
3318         (h8300_print_registers_info): Replace h8300_do_registers_info.
3319         (h8300_gdbarch_init): Set print_registers_info.
3320
3321 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3322
3323         * frame.c (frame_read_unsigned_register): New function.
3324         (frame_read_signed_register): New function.
3325         * frame.h (frame_read_unsigned_register): Declare.
3326         (frame_read_signed_register): Declare.
3327
3328 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3329
3330         * h8500-tdep.c (h8500_print_registers_info): New static function,
3331         clone of infcmd.c's default_print_registers_info.
3332         (h8500_do_registers_info): New funtion.
3333         (h8500_print_register_hook): Rename print_register_hook, make
3334         static.
3335
3336         * config/h8500/tm-h8500.h: Update copyright.
3337         (DEPRECATED_DO_REGISTERS_INFO): Define.
3338         (h8500_do_registers_info: Declare.
3339         (PRINT_REGISTER_HOOK): Delete macro.
3340         (print_register_hook): Delete function.
3341
3342 2002-10-31  Andrew Cagney  <cagney@redhat.com>
3343
3344         * z8k-tdep.c (z8k_print_register_hook): Make static.
3345         (z8k_print_registers_info): New static function, clone of
3346         infcmd.c's default_print_registers_info.
3347         (z8k_do_registers_info): New function.  Wrap
3348         z8k_print_registers_info.
3349         * config/z8k/tm-z8k.h: Update copyright.
3350         (PRINT_REGISTER_HOOK): Delete macro.
3351         (z8k_print_register_hook): Delete declaration.
3352         (DEPRECATED_DO_REGISTERS_INFO): Define.
3353         (z8k_do_registers_info): Declare.
3354
3355 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
3356
3357         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3358         as this is already provided by value.h, and was actually causing
3359         a compilation error because of a conflict in parameter type
3360         declaration due to a missing const keyword.
3361         (low_text_segment_addres): Fix a compilation warning.
3362
3363 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
3364
3365         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3366         registers without a name.
3367         (mips_linux_cannot_store_register): Don't store registers without
3368         a name.
3369
3370 2002-10-28  David Carlton  <carlton@math.stanford.edu>
3371
3372         * symtab.c (find_addr_symbol): Delete.  (It was already commented
3373         out.)
3374         * symtab.h: Delete prototype for find_addr_symbol.
3375
3376 2002-10-26  Andrew Cagney  <cagney@redhat.com>
3377
3378         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3379         DO_REGISTERS_INFO.
3380         gdbarch.h, gdbarch.c: Re-generate.
3381         * infcmd.c (default_print_registers_info): Update reference.
3382         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3383         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3384         * sh-tdep.c (sh_gdbarch_init): Ditto.
3385         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3386         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3387
3388 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
3389
3390         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3391         cfi_init_extra_frame_info.
3392         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3393         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3394
3395         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3396         target where necessary.  Add more comments and remove the ones
3397         that don't provide any useful information.
3398
3399         * i386-tdep.c (i386_frame_saved_pc): Replace call to
3400         deprecated_read_register_dummy with
3401         frame_unwind_unsigned_register.
3402
3403         * i386-tdep.c (i386_extract_struct_value_address): Use
3404         regcache_raw_read_unsigned instead of
3405         regcache_cooked_read_unsigned since we know that the register
3406         we're reading isn't a pseudo register.  Rename variable 'val' into
3407         the more descriptive 'addr'.
3408
3409         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3410         (x86_64_push_return_address): Add comment.
3411         (x86_64_pop_frame): Make static.
3412         (examine_argument): Clarify comment.
3413         (x86_64_skip_prologue): Make prolog_expact variable static.
3414
3415         * dwarf2cfi.c: Fix some formatting problems.
3416         (context_cpy, read_encoded_pointer): Clarify comments.
3417
3418         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3419         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3420         i386 target back into x86_64_gdbarch_init.  Add some comments and
3421         remove meaningless ones.
3422
3423 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3424
3425         * complaints.h (struct deprecated_complaint): Rename `struct
3426         complaint'.
3427         * complaints.c (complain): Update.
3428         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3429         incorrect comment indicating that "symfile.h" was being included
3430         for the `struct complaint' definition.
3431         * remote-vx.c: Update.
3432         * objc-lang.c: Update.
3433         * xcoffread.c: Update.
3434         * hpread.c: Update.
3435         * mdebugread.c: Update.
3436         * stabsread.c: Update.
3437         * dwarf2read.c: Update.
3438         * dwarfread.c: Update.
3439         * elfread.c: Update.
3440         * coffread.c: Update.
3441         * stabsread.h: Update.
3442         * dbxread.c: Update.
3443         * buildsym.c: Update.
3444         * gdbtypes.c: Update.
3445         * macrotab.c: Update.
3446
3447 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
3448
3449         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3450         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
3451         (x86_64_init_abi): ...new function.
3452
3453         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3454         * i386v-nat.c: Include "i386-tdep.h".
3455
3456 2002-10-25  Andrew Cagney  <cagney@redhat.com>
3457
3458         * gdbtypes.c (address_space_name_to_int): Update.
3459         (address_space_int_to_name): Update.
3460         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3461         multi-arch predicate.
3462         (address_class_name_to_type_flags): Ditto.
3463         * gdbarch.h, gdbarch.c: Re-generate.
3464         
3465         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3466
3467 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
3468
3469         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3470
3471 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
3472
3473         * symtab.h (INIT_SAL): Delete macro.
3474         (init_sal): Export.
3475         * symtab.c (init_sal): New function.
3476
3477         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3478         to init_sal function call.
3479         (find_sal_from_funcs_and_line): Ditto.
3480         (all_sals_for_line): Ditto. 
3481         * breakpoint.c (create_internal_breakpoint): Ditto. 
3482         (create_fork_vfork_event_catchpoint): Ditto. 
3483         (create_exec_event_catchpoint): Ditto. 
3484         (parse_breakpoint_sals): Ditto. 
3485         (watch_command_1): Ditto. 
3486         (handle_gnu_4_16_catch_command): Ditto.
3487         (clear_command): Ditto. 
3488         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
3489         * infcmd.c (run_stack_dummy): Ditto. 
3490         * infrun.c (process_event_stop_test): Ditto.
3491         (check_sigtramp2): Ditto.
3492         (step_over_function): Ditto. 
3493         * linespec.c (decode_line_2): Ditto. 
3494         (decode_line_1): Ditto. 
3495         * source.c (line_info): Ditto. 
3496         * symtab.c (find_pc_sect_line): Ditto.
3497
3498 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
3499
3500         * dwarf2cfi.c (struct context)
3501         (struct context_reg): Moved to dwarf2cfi.h
3502         (context_alloc, frame_state_alloc, context_cpy):
3503         Made extern instead of static, removed prototypes.
3504         * dwarf2cfi.h (struct context)
3505         (struct context_reg): New, moved from dwarf2cfi.c
3506         (context_alloc, frame_state_alloc, context_cpy):
3507         New prototypes.
3508         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3509         Changed from static to extern.
3510         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3511         (LINUX_SIGCONTEXT_FP_OFFSET)
3512         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3513         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3514         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3515         * x86-64-tdep.c (x86_64_gdbarch_init): Several
3516         set_gdbarch_*() calls now use x86-64 specific functions 
3517         instead of DWARF2 CFI ones.
3518         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3519         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3520         (x86_64_init_extra_frame_info): New prototypes.
3521         
3522 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3523
3524         * linespec.c: #include "parser-defs.h".
3525         Delete prototype for find_template_name_end.
3526         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3527
3528 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
3529
3530         * NEWS: add recent mi fixes.
3531         * varobj.c (struct varobj): Add new "updated" flag.
3532         (new_variable): Default "updated" flag to 0.
3533         (varobj_set_value): Set "updated" flag to 1 if value
3534         changes.
3535         (varobj_update): Check varobj "updated" flag before
3536         comparing old and refreshed values.  Fix for
3537         PR gdb/702.
3538
3539 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3540
3541         * parse.c (parse_exp_1): Use BLOCK_START.
3542         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3543         SYMBOL_BLOCK_VALUE.
3544         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3545
3546 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3547
3548         * symtab.c: Delete cplusplus_hint.
3549         Delete prototype for find_template_name_end.
3550
3551 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3552
3553         * symtab.h: Update comment.
3554
3555 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3556
3557         * printcmd.c (address_info): Restore quotes in output.
3558         * valops.c (value_of_local): Restore quotes in error message.
3559
3560 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3561
3562         * symtab.c (symbol_demangled_name): New function.
3563         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3564         turning most of it into a function.
3565         (symbol_demangled_name): Export.
3566
3567 2002-10-23  Michael Snyder  <msnyder@redhat.com>
3568
3569         * valops.c (value_of_local): Restore quotes in error message.
3570
3571 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
3572
3573         * symtab.c (symbol_init_language_specific): New function.
3574         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3575         turning most of it into a function.
3576         (symbol_init_language_specific): Export.
3577
3578 2002-10-23  David Carlton  <carlton@math.stanford.edu>
3579
3580         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3581         (dwarf_attr_name): Ditto.
3582         (dwarf_type_encoding_name): Ditto.
3583         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3584         (process_die): Handle DW_TAG_namespace,
3585         DW_TAG_imported_declaration, DW_TAG_imported_module.
3586         (read_namespace): New function.
3587
3588 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
3589
3590         * configure.in: Define NEW_PROC_API on Interix too.
3591         * configure: Regenerate.
3592
3593 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
3594
3595         * configure: Regenerate using the proper version of autoconf.
3596
3597 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3598
3599         * findvar.c (read_var_value): Temporarily disable TLS code, until
3600         complete TLS support is added.
3601
3602 2002-10-21  Jim Blandy  <jimb@redhat.com>
3603             Elena Zannoni  <ezannoni@redhat.com>
3604
3605         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3606         for thread local storage locations.
3607         (struct symbol): Add objfile field.
3608         (SYMBOL_OBJFILE): Define.
3609         * dwarf2read.c (is_thread_local): New static variable.
3610         (new_symbol): If variable is in thread local fill in address class
3611         and objfile appropriately.
3612         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3613         stack operation.
3614         * printcmd.c (address_info): Print the information for thread
3615         local storage variable.
3616         * findvar.c (read_var_value): In case of thread local variable,
3617         defer to the target vector code to compute address.
3618
3619 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3620
3621         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3622         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
3623
3624 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
3625
3626         * symtab.h (address_class):  Rename
3627         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3628         * hpread.c (hpread_process_one_debug_symbol): Ditto.
3629         * printcmd.c (address_info): Ditto.
3630         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3631
3632 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3633
3634         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3635         DBREG_DRX macro to acces debug registers.
3636
3637         * Makefile.in (i386obsd-tdep.o): New target.
3638
3639         * solib-sunos.c: Include "bcache.h" and "regcache.h".
3640         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3641
3642         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3643         * config/i386/obsd.mt: New file.
3644         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3645         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3646         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3647         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3648         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3649         * i386obsd-tdep.c: New file.
3650
3651 2002-10-19  Adam Fedor  <fedor@gnu.org>
3652
3653         * objc-exp.y (name_not_typename): Fix invalid comment.  
3654
3655 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
3656
3657         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3658         to allocate partial syms and macro byte caches.
3659
3660 2002-10-18  David Carlton  <carlton@math.stanford.edu>
3661
3662         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3663
3664 2002-10-18  Adam Fedor  <fedor@gnu.org>
3665
3666         * stabsread.c (find_name_end): New function.
3667         (define_symbol): Use it.
3668
3669 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
3670
3671         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3672         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3673         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3674         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3675
3676 2002-10-17  David Carlton  <carlton@math.stanford.edu>
3677
3678         * symfile.h: Add opaque declaration for struct obstack.
3679         Declare obsavestring to take a const char *.
3680         * symfile.c (obsavestring): Make first argument a const char *.
3681
3682 2002-10-16  Adam Fedor  <fedor@gnu.org>
3683
3684         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3685         names when matching breakpoints in current file.
3686
3687 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
3688
3689         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3690         (read_tag_pointer_type): Add address class support.
3691         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3692         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3693         New methods.
3694         * gdbarch.h, gdbarch.c: Regenerate.
3695         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3696         (make_type_with_address_space, recursive_type_dump): Add address
3697         class support.
3698         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3699         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3700         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3701
3702 2002-10-16  Klee Dienes  <kdienes@apple.com>
3703
3704         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3705         to get the last character of a char[] buffer, not
3706         name[sizeof(vptr_name)-1].
3707
3708 2002-10-14  Adam Fedor  <fedor@gnu.org>
3709
3710         * symtab.h: New objc_specific struct.
3711         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3712         (SYMBOL_DEMANGLED_NAME): Likewise.
3713
3714 2002-10-14  Adam Fedor  <fedor@gnu.org>
3715
3716         * symfile.c (init_filename_language_table): Add ObjC file extension.
3717
3718 2002-10-14  Adam Fedor  <fedor@gnu.org>
3719
3720         * utils.c (puts_filtered_tabular): New function.
3721         (fprintf_symbol_filtered): Get ObjC demangled name.
3722         * defs.h (puts_filtered_tabular): Declared.
3723
3724 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
3725
3726         * c-lang.h (c_type_print_varspec_prefix): Delete.
3727         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
3728         ``need_post_space'' parameter.  Adjust all callers.
3729
3730 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
3731  
3732         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3733         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3734         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3735         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3736
3737 2002-10-13  Adam Fedor  <fedor@gnu.org>
3738
3739         * source.c (print_source_lines): Update comments.
3740
3741 2002-10-13  Adam Fedor  <fedor@gnu.org>
3742
3743         * valops.c (value_of_local): New function.
3744         (value_of_this): Use it.
3745         * value.h (value_of_local): Declared.
3746
3747 2002-10-13  Adam Fedor  <fedor@gnu.org>
3748
3749         * parse.c: (length_of_subexp, prefixify_subexp): Handle
3750         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3751
3752 2002-10-12  Adam Fedor  <fedor@gnu.org>
3753
3754         * language.c (binop_result_type): Add language_objc to case.
3755         (integral_type): Likewise.
3756         (character_type): Likewise.
3757         (string_type): Likewise.
3758         (boolean_type): Likewise.
3759         (structured_type): Likewise.
3760         (binop_type_check): Likewise.
3761
3762 2002-10-11  Adam Fedor  <fedor@gnu.org>
3763
3764         * printcmd.c (address_info): Print 'self' for ObjC.
3765
3766 2002-10-11  Adam Fedor  <fedor@gnu.org>
3767
3768         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3769         OP_SELF.
3770
3771 2002-10-11  Adam Fedor  <fedor@gnu.org>
3772
3773         * language.h (CAST_IS_CONVERSION): Add language_objc.
3774
3775 2002-10-11  Adam Fedor  <fedor@gnu.org>
3776
3777         * defs.h (enum language): Add language_objc.
3778
3779 2002-10-11  Klee Dienes  <kdienes@apple.com>
3780
3781         * corefile.c (read_memory_typed_address): New function.
3782         * gdbcore.h (read_memory_typed_address): Add prototype.
3783         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3784         to read a value destined for a CORE_ADDR, not read_memory_integer.
3785         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3786         (f77_get_dynamic_lowerbound): Ditto.
3787
3788 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
3789
3790         * utils.c (string_to_core_addr): After turning string into
3791         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3792         which will do necessary sign-extension, etc.
3793
3794 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
3795
3796         * c-exp.y (THIS): Delete token and grammar rule.
3797         (yylex): Don't return THIS.
3798         * cp-valprint.c (vtbl_ptr_name_old): Delete.
3799         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3800         * demangle.c (cplus_markers): Update comment.  Put '$'
3801         first.  Remove CPLUS_MARKER.
3802         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3803         * jv-exp.y (THIS): Delete token and grammar rule.
3804         (yylex): Don't return THIS.
3805         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3806         * objc-exp.y (THIS): Delete token and grammar rule.
3807         (yylex): Don't return THIS.
3808         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3809         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3810         (read_member_functions): Likewise for opname.
3811         (read_tilde_fields): Use is_cplus_marker.
3812
3813         * defs.h (CPLUS_MARKER): Don't define.
3814         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3815         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3816         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3817         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3818         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3819
3820         * config/i386/tm-i386v4.h: Delete file.
3821         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3822         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3823         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3824         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3825         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3826         * config/i386/i386sco5.mt (TM_FILE): Likewise.
3827         * config/i386/i386v4.mt (TM_FILE): Likewise.
3828         * config/i386/ncr3000.mt (TM_FILE): Likewise.
3829
3830 2002-10-10  Marko Mlinar  <markom@opencores.org>
3831
3832         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3833         accidentially not commited 2002-10-09
3834         * gdbarch.h, gdbarch.c: Re-generate.
3835
3836 2002-10-09  Marko Mlinar  <markom@opencores.org>
3837
3838         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3839         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3840         * gdbarch.h, gdbarch.c: Re-generate.
3841
3842 2002-10-08  Petr Sorfa <petrs@caldera.com>
3843
3844         Revised and re-submitted by John Wolfe <jlw@caldera.com>
3845
3846         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3847         so we can work on more than one compilation unit at a time.  This
3848         helps prepare GDB to handle inter-CU die references.
3849         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3850         the code to be defined before struct comp_unit_head.
3851         (comp_unit_head): Added new members - offset, cu_head,
3852         begin_die, next and dwarf2_abbrevs.
3853         (dwarf2_abbrevs): Removed single static var; now member of
3854         struct comp_unit_head.
3855         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3856         members.
3857         (psymtab_to_symtab_1): Changed to work with the new
3858         struct comp_unit_head.
3859         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3860         constructs the dwarf2_abbrevs[] inside the cu_header.
3861         (dwarf2_empty_abbrev_table): Now expects a ptr to a
3862         dwarf2_abbrev table to clean up.
3863         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3864         handling of dwarf2_abbrevs inside the cu_header.
3865         (read_partial_die): Now supports the call to the new
3866         dwarf2_lookup_abbrev.
3867         (read_full_die): Now supports the call to the new
3868         dwarf2_lookup_abbrev.
3869
3870 2002-10-06  Christopher Faylor  <cgf@redhat.com>
3871
3872         * Makefile.in (install-gdbtk): Add missing continuation backslash to
3873         insure that shell variables, such as "transformed_name" are propagated
3874         to later shell statements in rule.
3875
3876 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
3877
3878         * config/i386/nm-i386sco.h: Add protection against
3879         multiple-inclusion.  Include "i386/nm-i386v.h".
3880         (REGISTER_U_ADDR): Remove define.
3881         (i386_register_u_addr): Remove prototype.
3882
3883 2002-10-04  Michael Snyder  <msnyder@redhat.com>
3884
3885         * m32r-stub.c (handle_exception): Make sure exception is "trap"
3886         before treating it as a single-step event.
3887
3888 2002-10-03  Adam Fedor  <fedor@gnu.org>
3889
3890         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
3891         (objc_demangle): Remove assignment in if statements, Replace
3892         free with xfree.
3893         (add_msglist): Likewise.
3894         (end_msglist): Likewise.
3895         (complare_selectors): Likewise.
3896         (selectors_info): Likewise.
3897         (compare_classes): Likewise.
3898         (classes_info): Likewise.
3899         (print_object_command): Likewise.
3900         (find_objc_msgcall_submethod): Replace PTR with void *.
3901         * objc-lang.h: Remove check for __STDC__.
3902
3903 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3904
3905         * ui-out.h (ui_out_field_fmt_int): New prototype.
3906         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3907         of field width and alignment.
3908         * stack.c (print_frame_info_base): When printing frame level, use
3909         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
3910         PR gdb/192
3911
3912 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
3913
3914         * MAINTAINERS: Add self to Write After Approval list.
3915
3916 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3917
3918         * infcmd.c (interrupt_target_command_wrapper): Delete.
3919         (interrupt_target_command): Make non static.
3920         (nofp_registers_info): Make static.
3921         * stack.c (return_command_wrapper): Delete.
3922         (return_command): Make non static.
3923
3924 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3925
3926         * event-top.c (gdb_setup_readline): New function. Code moved from
3927         _initialize_event_loop().
3928         (_initialize_event_loop): Call gdb_setup_readline().
3929
3930 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3931
3932         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3933         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3934         * gdbarch.h, gdbarch.c: Re-generate.
3935
3936 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
3937
3938         Fix PR gdb/778
3939         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3940         before recursing.
3941         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3942         of fill_in_vptr_fieldno.
3943
3944 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
3945
3946         * inferior.h (registers_info, stepi_command, nexti_command,
3947         continue_command, interrupt_target_command): Export from infcmd.c.
3948         * frame.h (args_info, selected_frame_level_changed_hook,
3949         return_command): Export from stack.c.
3950         * v850ice.c (stepi_command, nexti_command, continue_command): use
3951         prototypes from inferior.h.
3952         * tracepoint.c (registers_info, args_info, locals_info): Use
3953         prototypes from frame.h and inferior.h.
3954         * Makefile.in (mi-main.o): Add dependency on frame.h.
3955
3956 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
3957
3958         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3959         value in register 3 adjusted by ppc_gp0_regnum.
3960
3961         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3962
3963 2002-10-02  Marko Mlinar <markom@opencores.org>
3964
3965         * MAINTAINERS: Add myself to the Write After Approval list.
3966
3967 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
3968
3969         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3970         of the section for the N64 ABI, fixed.
3971
3972         * config/mips/tm-irix6.h: Include solib.h.
3973
3974 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
3975
3976         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3977         GNU operators.
3978
3979 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3980
3981         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3982         and that "mi0" syntax has been removed.
3983
3984 2002-09-30  David Carlton  <carlton@math.stanford.edu>
3985
3986         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3987         * ppc-sysv-tdep.c: #include "gdb_string.h".
3988         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3989         pacify GCC.
3990
3991 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
3992
3993         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3994         "vrsave"'s register number.
3995
3996 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
3997
3998         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3999         use frame_unwind_signed_register to obtain the PC.
4000         (mips_frame_chain): Handle a generic dummy frame.
4001         (mips_init_extra_frame_info): When a generic dummy frame, don't
4002         re-compute the frame base.
4003         (mips_pop_frame): Handle generic dummy frames.
4004         (mips_gdbarch_init): When generic dummy frames, set
4005         use_generic_dummy_frames, push_dummy_frame to
4006         generic_push_dummy_frame, pc_in_call_dummy to
4007         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4008         generic_save_dummy_frame_tos.
4009
4010 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
4011
4012         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
4013         against TOP when TOP was explictly set.
4014         (generic_push_dummy_frame): Set TOP to zero.
4015
4016 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
4017
4018         * event-loop.c (start_event_loop): Rename variable 'result' to
4019         'gdb_result', to avoid conflicts with upcoming intepreters changes.
4020
4021 2002-09-30  Keith Seitz  <keiths@redhat.com>
4022
4023         * gdb-events.sh (selected_thread_changed): New event.
4024         * gdb-events.c: Regenerated.
4025         * gdb-events.h: Regenerated.
4026
4027 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
4028
4029         * MAINTAINERS: Add self to Write After Approval list.
4030
4031 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
4032
4033         * disasm.c: New file.  
4034         * disasm.h: New file.  
4035         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4036         (compare_lines): Ditto.
4037         (dump_insns): Ditto.
4038         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4039         argument.
4040         (do_assembly_only): Ditto.
4041         (do_disassembly): Renamed to gdb_disassembly and moved to
4042         disasm.c.  Sdded uiout argument.
4043         * Makefile.in: Add new files.  Reorder SFILES list. Update
4044         dependencies.  Include libgdb.a later in the insight executable.
4045
4046 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4047
4048         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4049         bfd/elf64-alpha-fbsd.c.
4050
4051 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4052
4053         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4054         i386gnu-tdep.c.
4055
4056 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
4057
4058         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4059         __FUNCTION__.
4060         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4061         function name.
4062         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4063         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4064         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4065         (S_msg_sig_post_reply): Ditto.
4066         
4067 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
4068
4069         * sh-tdep.c (sh_use_struct_convention): Use definition according
4070         to ABI.
4071         (sh_push_arguments): Store in register with correct endianess.
4072         (sh_default_store_return_value): Ditto.
4073         (sh_gdbarch_init): Set sizeof long double to 8.
4074
4075 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
4076
4077         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4078         Fix some whitespace problems.
4079
4080 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4081
4082         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4083         (mcore-tdep.o): Ditto.
4084         (ns32k-tdep.o): Ditto.
4085         (ns32knbsd-tdep.o): Ditto.
4086         (sh3-rom.o): Ditto.
4087         (vax-tdep.o): Ditto.
4088         * cris-tdep.c: #include "gdb_string.h"
4089         * mcore-tdep.c: Ditto.
4090         * ns32k-tdep.c: Ditto.
4091         * ns32knbsd-tdep.c: Ditto.
4092         * sh3-rom.c: Ditto.
4093         * vax-tdep.c: Ditto.
4094
4095 2002-09-27  David Carlton  <carlton@math.stanford.edu>
4096
4097         * config/djgpp/fnchange.lst: Add entries for
4098         gdb/testsuite/gdb.c++/m-static files.
4099
4100 2002-09-27  Jim Wilson  <wilson@redhat.com>
4101
4102         * MAINTAINERS: Add myself to the Write After Approval list.
4103
4104 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
4105
4106         * mips-tdep.c (find_proc_desc): Initialize startaddr.
4107
4108
4109 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4110
4111         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4112         frame.
4113
4114 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4115
4116         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4117         (rs6000_struct_return_address): Delete variable.
4118         (rs6000_store_struct_return): Update.
4119         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4120         deprecated_extract_struct_value_address.
4121         (rs6000_frame_align): New function.
4122         (rs6000_gdbarch_init): Set frame_align.
4123
4124 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
4125
4126         From Grace Sainsbury <graces@redhat.com>:
4127         * Makefile.in (gdbtk-main.o): New target.
4128         (gdb.o): New target.
4129         (main_h): Define.
4130         (main.o): Update dependencies.
4131         (gdb$(EXEEXT)): Add gdb.o.
4132         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4133         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4134         (SUBDIR_GDBTK_CLEAN): Set.
4135         (install-gdbtk): Install the insight binary.
4136         (uninstall-gdbtk): New target.
4137         (all-gdbtk, clean-gdbtk): New rule.
4138         * top.c (use_windows): Default to zero.
4139         * main.c: Include "main.h".
4140         (main): Delete.
4141         (struct captured_main_args): Delete.
4142         (gdb_main): New function.
4143         * main.h: New file.
4144         * gdb.c: New File.
4145
4146 2002-09-25  Andrew Cagney  <cagney@redhat.com>
4147
4148         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4149         (frame_map_regnum_to_name): New function.
4150         (frame_map_name_to_regnum): New function.
4151         * frame.h (frame_map_name_to_regnum): Declare.
4152         (frame_map_regnum_to_name): Declare.
4153         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4154         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4155         * parse.c: Do not include "builtin-regs.h".
4156         (target_map_name_to_register): Delete function.
4157         (write_dollar_variable): Use frame_map_name_to_regnum.
4158         * parser-defs.h (target_map_name_to_register): Delete declaration.
4159         * expprint.c: Include "frame.h".
4160         (print_subexp): Use frame_map_regnum_to_name.
4161         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4162         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4163
4164 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
4165
4166         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4167         wasn't saved, and the next innermost frame is a dummy, return the
4168         dummy frame's link register.
4169
4170 2002-09-24  Jim Blandy  <jimb@redhat.com>
4171
4172         Fix from Paul Breed:
4173         * main.c (captured_main): Add a `break' after the case for 'b'.
4174
4175 2002-09-24  Keith Seitz  <keiths@redhat.com>
4176
4177         * varobj.c (c_type_of_child): Use get_target_type instead
4178         of TYPE_TARGET_TYPE.
4179
4180 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4181
4182         * source.c (get_current_or_default_source_symtab_and_line): Remove
4183         function.
4184         (set_default_source_symtab_and_line): New function. Attempts to
4185         determine a source file to list lines from if one is not currently
4186         defined.
4187         (get_current_source_symtab_and_line): Initialize sal.pc and
4188         sal.end fields.
4189         (set_current_source_symtab_and_line): Mark argument as const.
4190         * source.h: Update declarations and comments.
4191         * linespec.c (decode_line_1): Replace call to removed routine above.
4192         * stack.c (print_frame_info_base): Ditto.
4193         * cli/cli-cmds.c (edit_command): Ditto.
4194         (list_command): Ditto.
4195
4196 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
4197
4198         * source.c (get_current_or_default_source_symtab_and_line): Initialize
4199         sal.pc and sal.end fields.
4200         (get_current_or_default_source_symtab_and_line): Ditto.
4201         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4202         so we do not cause a new source symtab to be searched for (reverting an
4203         unintentional change from the 2002-09-20 patch).
4204         * scm-lang.c (scm_unpac): Ditto.
4205
4206 2002-09-21  Andrew Cagney  <cagney@redhat.com>
4207
4208         * complaints.c (symfile_explanations): Remove new-line from
4209         ``isolated_message''.
4210         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4211         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4212
4213 2002-09-20  Nick Clifton  <nickc@redhat.com>
4214         
4215         * NEWS: Announce that V850EA ISA is no longer supported.
4216         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4217
4218 2002-09-20  David Carlton  <carlton@math.stanford.edu>
4219
4220         * Makefile.in (c-lang.o): Correct dependencies.
4221         (utils.o): Gather dependencies.
4222         (charset.o): Move.
4223         * c-lang.c: #include "gdb_string.h"
4224
4225 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4226
4227         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
4228         * cli/cli-cmds.c (list_command): New function.  Implements the new
4229         cli edit command.
4230         (_init_cli_cmds): Add new command definition.
4231         * gdb.1: Document edit command.
4232         * doc/gdb.texinfo: Document edit command.
4233
4234 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
4235
4236         * source.c: Make global variables current_source_symtab and
4237         current_source_line static.
4238         (list_command): Moved to cli/cli-cmds.c.
4239         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4240         (get_first_line_listed): New accessor function.
4241         (get_lines_to_list): New accessor function.
4242         (get_current_source_symtab_and_line): New function. Retrieves the
4243         position in the source code that we consider current.
4244         (get_current_or_default_source_symtab_and_line): New function.
4245         Like the above but attempts to determine a default position if one
4246         is not currently defined.
4247         (set_current_source_symtab_and_line): New function. Sets the source
4248         code position considered current and returns the previously set one.
4249         (clear_current_source_symtab_and_line): Reset stored information about
4250         a current source line.
4251         (_initialize_source): Remove registration for the "list" command and
4252         its alias.
4253         * source.h: Add declarations for the new functions above.
4254         * symtab.h: Remove declarations for the global variables mentioned
4255         above.
4256         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4257         obtain current source line.
4258         * linespec.c (decode_line_1): Ditto.
4259         * macroscope.c (default_macro_scope): Ditto.
4260         * scm-lang.c (scm_unpac): Ditto.
4261         * stack.c (print_frame_info_base): Ditto.
4262         * symfile.c (clear_symtab_users): Ditto.
4263         * symtab.c (decode_line_spec): Ditto.
4264         * cli/cli-cmds.c (list_command): Moved here from source.c.
4265         (ambiguous_line_spec): Moved here from source.c.
4266         (_init_cli_cmds): Add definition for "list" and its alias.
4267         * Makefile.in: Update dependencies.
4268
4269 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4270
4271         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4272         with what gcc thinks is correct.
4273
4274 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
4275
4276         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4277         multiple register push instruction.
4278
4279 2002-09-19  Jim Blandy  <jimb@redhat.com>
4280
4281         Add support for distinct host and target character sets.
4282         * charset.c, charset.h: New files.
4283         * c-exp.y: #include "charset.h".
4284         (yylex): Convert character and string literals to the target
4285         character set, before returning them as the semantic value of the
4286         token.
4287         * c-lang.c: #include "charset.h".
4288         (c_emit_char): Use charset-specific methods to recognize
4289         characters with backslash escape forms, to decide which characters
4290         to print literally and which to print using numeric escape
4291         sequences, and to convert target characters to host characters
4292         before printing.
4293         * utils.c: #include "charset.h".
4294         (no_control_char_error): New function.
4295         (parse_escape): Use charset-specific methods to recognize
4296         backslash escapes, parse `control character' notation, and convert
4297         characters from the host character set to the target character set.
4298         * configure.in: Set the default host character set.
4299         Check where to find iconv, and what its argument types might be.
4300         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4301         * Makefile.in (SFILES): List charset.c.
4302         (COMMON_OBS): List charset.o.   
4303         (charset.o): New rule.
4304         (charset_h): New header dependency variable.
4305         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4306         (LIBICONV): New variable, set by configure.
4307         (CLIBS): Include $(LIBICONV) here.
4308         * aclocal.m4, config.in, configure: Regenerated.
4309
4310 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
4311
4312         * ada-exp.y: Add missing semicolons to end rules. Fixes a
4313         bison 1.35 warning.
4314
4315 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
4316
4317         * gdb_mbuild.sh: New file.
4318
4319 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
4320
4321         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4322
4323 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4324
4325         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4326         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4327         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4328         valops.c, value.h: Revert previous change.
4329         
4330 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4331
4332         Preliminary support for Objective-C:
4333         * defs.h (language_objc): New enum value.
4334         (puts_filtered_tabular): Declaration only, exported from utils.c.
4335         (skip_quoted): Delete, declared in completer.h.
4336         * c-exp.y: Include completer.h.
4337         * p-exp.y: Ditto.
4338         * jv-exp.y: Ditto.
4339         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
4340         New operator enum values.
4341         * language.h (CAST_IS_CONVERSION): Test for language_objc.
4342         * language.c (binop_result_type): Handle language_objc case.
4343         (integral_type, character_type, string_type, boolean_type,
4344         structured_type, binop_type_check): Ditto.
4345         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4346         (struct objc_specific): Add to general_symbol_info.
4347         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4348         (SYMBOL_DEMANGLED_NAME): Handle objc case.
4349         * parser-defs.h (struct objc_class_str): New struct type.
4350         (start_msglist, end_msglist, add_msglist): Declaration only,
4351         exported from objc-lang.c.
4352         * value.h (value_of_local, value_nsstring, 
4353         call_function_by_hand_expecting_type): Exported from valops.c.
4354         * valops.c (find_function_addr): Export.
4355         (call_function_by_hand_expecting_type): New function.
4356         (value_of_local): New function.
4357         * symfile.c (init_filename_language_table): Add ".m" extension
4358         for Objective-C.
4359         * utils.c (puts_filtered_tabular): New function.
4360         (fprintf_symbol_filtered): Add objc demangling support (disabled).
4361         (set/show demangle): Extend help-string to refer to ObjC.
4362         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4363         * stabsread.c (symbol_reference_defined): Objective-C symbols
4364         may contain colons: make allowances when scanning stabs strings
4365         for colons.
4366         (objc_find_colon): New function.
4367         * printcmd.c (address_info): If language == objc then print
4368         "self" instead of "this".
4369         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4370         OP_NSSTRING, and OP_SELF.
4371         (prefixify_subexp): Ditto.
4372         * source.c (print_source_lines): Mention objc in comment.
4373         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4374         method names.
4375
4376 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4377
4378         * complaints.h: Update copyright.
4379         (struct complaints): Declare.
4380         (struct complaint): Make `message' constant.
4381         (internal_complaint): Declare.
4382         (complaint): Declare.
4383         (complaint_root): Delete declaration.
4384         (symfile_complaints): Delete declaration.
4385         (struct complaints): Add opaque declaration.
4386         (clear_complaints): Add a complaints parameter.
4387         * complaints.c: Update copyright.
4388         (enum complaint_series): Define.
4389         (complaint_root): Delete.
4390         (struct complaints): Define.
4391         (complaint_sentinel, symfile_complaint_book): New variables.
4392         (symfile_explanations, symfile_complaints): New variables.
4393         New variables.
4394         (get_complaints): New function.
4395         (vcomplaint): New function.
4396         (complaint): New function.
4397         (internal_complaint): New function.
4398         (complain): Call vcomplain with symfile_complaint.
4399         (clear_complaints): Rewrite.
4400         (_initialize_complaints): Use add_setshow_command.
4401         * Makefile.in (complaints.o): Update dependencies.
4402         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4403         to call to clear_complaints.
4404         (new_symfile_objfile, reread_symbols): Ditto.
4405         (oldsyms_complaint): Delete.
4406         (empty_symtab_complaint, unknown_option_complaint): Delete.
4407         (free_named_symtabs): Use complaint instead of complain.
4408
4409 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4410
4411         Contributed by Apple Computer, Inc.  Merged with current sources
4412         by Adam Fedor <fedor@doc.com> [cagney].
4413         
4414         * objc-lang.c: First clean-up round: comments, indentation.
4415         * objc-lang.h: Ditto.
4416         * objc-lang.y: Ditto.
4417
4418 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4419
4420         * maint.c (maintenance_internal_error): Print the parameter as the
4421         error message.
4422         (maintenance_internal_warning): New function.
4423         (_initialize_maint_cmds): Add command `maint internal-warning'.
4424
4425         * defs.h (internal_warning, internal_vwarning): Declare.
4426         * utils.c (struct internal_problem): Define.
4427         (internal_vproblem): New function.
4428         (internal_warning): New function.
4429         (internal_vwarning): New function.
4430         (internal_warning_problem, internal_error_problem): New variables.
4431         (internal_verror): Just call internal_vproblem.
4432
4433 2002-09-18  Michael Snyder  <msnyder@redhat.com>
4434
4435         * objc-lang.c: New file, support for Objective-C.
4436         Preliminary check-in, not yet integrated into gdb.
4437         * objc-lang.h: New file.
4438         * objc-exp.y:  New file.
4439
4440 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4441
4442         * infrun.c (signal_stop_update): Convert definition to ISO C.
4443         (signal_print_update): Ditto.
4444         (signal_pass_update): Ditto.
4445         * inflow.c (terminal_save_ours): Ditto.
4446
4447         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4448         comments.
4449         
4450         * config/djgpp/fnchange.lst: Handle name clashes between
4451         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4452         bfd/coff-tic80.c.
4453
4454         * i386-linux-tdep.h: Fix tipo.
4455
4456 2002-09-18  Adam Fedor  <fedor@gnu.org>
4457
4458         * MAINTAINERS: Add myself to the Write After Approval list.
4459
4460 2002-09-18  Jim Blandy  <jimb@redhat.com>
4461
4462         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
4463         texthigh and textlow to reader-specific structs caused
4464         objfile_relocate to miss them.  This is fixable, but the work that
4465         the change was supposed to prepare GDB for never got done anyway.
4466
4467 2002-09-18  David Carlton  <carlton@math.stanford.edu>
4468
4469         * MAINTAINERS: Alphabetize Write After Approval list.
4470
4471 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
4472
4473         Fix PR gdb/709
4474         * values.c (value_static_field): Call read_var_value.
4475
4476 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
4477
4478         * valops.c (hand_function_call): Align the initial stack pointer
4479         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
4480         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4481         return value.
4482         * mips-tdep.c (mips_frame_align): New function.
4483         (mips_gdbarch_init): Set frame_align.
4484         * gdbarch.sh (FRAME_ALIGN): New method.
4485         * gdbarch.h, gdbarch.c: Re-generate.
4486
4487 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
4488
4489         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4490         registers.
4491
4492 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4493
4494         * NEWS: Mention that MIPS $fp behavior changed.
4495         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4496         reference to FP_REGNUM.
4497         (mipsnbsd_cannot_store_register): Ditto.
4498         * mips-linux-nat.c: Update copyright.
4499         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4500         (mips_linux_cannot_store_register): Ditto.
4501         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
4502         * config/mips/tm-mips.h: Update copyright.
4503         (FP_REGNUM): Delete macro.
4504         (MIPS_REGISTER_NAMES): Replace "fp" with "".
4505         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4506         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4507         (mips_r3041_reg_names, mips_r3051_reg_names)
4508         (mips_r3081_reg_names): Replace "fp" with "".
4509         Fix PR gdb/480.
4510
4511 2002-09-17  Theodore A. Roth  <troth@verinet.com>
4512
4513         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
4514         generic_read_register_dummy() (PR gdb/703).
4515         (avr_push_return_address): #if 0 out unused vars.
4516         (avr_gdbarch_init): Enable use of avr_push_return_address().
4517
4518 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4519
4520         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4521         RTE will take care of it.
4522
4523 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
4524
4525         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4526         invalid, return SP_REGNUM.
4527
4528 2002-09-17  Michael Snyder  <msnyder@redhat.com>
4529
4530         * mips-tdep.c (mips_pop_frame): Read saved values of floating
4531         point registers without sign extension.
4532
4533 2002-09-17  Andrew Cagney  <cagney@redhat.com>
4534
4535         * blockframe.c (deprecated_read_register_dummy): Rename
4536         generic_read_register_dummy.
4537         * frame.c (frame_unwind_signed_register): New function.
4538         (frame_unwind_unsigned_register): New function.
4539         * frame.h (frame_unwind_signed_register): Declare.
4540         (frame_unwind_unsigned_register): Declare.
4541         (deprecated_read_register_dummy): Rename
4542         generic_read_register_dummy.
4543
4544         * h8300-tdep.c (h8300_frame_chain): Update.
4545         (h8300_frame_saved_pc): Update.
4546         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4547         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4548         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4549         (s390_frame_chain): Update.
4550         * v850-tdep.c (v850_find_callers_reg): Update.
4551         (v850_frame_saved_pc): Update.
4552         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4553         (m32r_find_callers_reg): Update.
4554         (m32r_frame_saved_pc): Update.
4555         * sh-tdep.c (sh_find_callers_reg): Update.
4556         (sh64_get_saved_pr): Update.
4557         (sh_init_extra_frame_info): Update.
4558         (sh_init_extra_frame_info): Update.
4559         (sh64_init_extra_frame_info): Update.
4560         (sh64_init_extra_frame_info): Update.
4561         * mcore-tdep.c (mcore_find_callers_reg): Update.
4562         (mcore_frame_saved_pc): Update.
4563         (mcore_init_extra_frame_info): Update.
4564         * i386-tdep.c (i386_frame_saved_pc): Update.
4565         * ia64-tdep.c (ia64_frame_saved_pc): Update.
4566         (ia64_init_extra_frame_info): Update.
4567         (ia64_init_extra_frame_info): Update.
4568         * d10v-tdep.c (d10v_frame_saved_pc): Update.
4569         * cris-tdep.c (cris_init_extra_frame_info): Update.
4570         * avr-tdep.c (avr_frame_chain): Update.
4571         (avr_init_extra_frame_info): Update.
4572         (avr_frame_saved_pc): Update.
4573         * arm-tdep.c (arm_find_callers_reg): Update.
4574         (arm_init_extra_frame_info): Update.
4575         (arm_frame_saved_pc): Update.
4576
4577 2002-09-17  Tom Tromey  <tromey@redhat.com>
4578
4579         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4580         is "'".
4581
4582 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
4583
4584         * MAINTAINERS: Remove "non multi-arched" text from h8300.
4585         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4586         NEXT_PROLOGUE_INSN.
4587         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4588         NEXT_PROLOGUE_INSN.
4589
4590 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
4591
4592         * osfsolib.c: Remove file, replaced by solib-osf.c.
4593         * Makefile.in: Remove compilation rules for osfsolib.c.
4594
4595 2002-09-16  David Carlton  <carlton@math.stanford.edu>
4596
4597         * cp-valprint.c (cp_print_class_method): Correct args to
4598         check_stub_method_group.
4599
4600 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
4601
4602         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
4603         `set architecture'.  Unify naming convention of functions.
4604         (h8300_skip_prologue): Improve prologue analysis.
4605         (h8300_push_arguments): Rewritten to more closely match GCC's
4606         bizarre argument-passing behavior, along with the comment describing
4607         said behavior.
4608         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4609         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
4610         sim, remote-e7000.c, remote-hms.c and remote.c
4611
4612 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
4613
4614         * i386-tdep.c (gdb_print_insn_i386): Removed.
4615         (i386_print_insn): New function.
4616         (i386_gdbarch_init): Set print_insn to i386_print_insns.
4617         (_initialize_i386_tdep): Don't initialize tm_print_insn and
4618         tm_print_insn_info.
4619
4620 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
4621
4622         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4623         zero.
4624
4625 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
4626
4627         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4628         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
4629         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4630
4631 2002-09-13  Christopher Faylor  <cgf@redhat.com>
4632
4633         * win32-nat.c (child_create_inferior): Honor 'tty' command.
4634
4635 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
4636
4637         * gdbtypes.c (check_stub_method): Make static.
4638         (check_stub_method_group): New function.
4639         * gdbtypes.h: Update prototypes.
4640         * cp-support.c: New file.
4641         * cp-support.h: New file.
4642
4643         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4644         (update_method_name_from_physname): New function.
4645         (read_member_functions): Correct method names for operators
4646         and v3 constructors/destructors.  Separate v2 constructors and
4647         destructors.
4648         * Makefile.in (stabsread.o): Update dependencies.
4649         (SFILES): Add cp-support.c.
4650         (COMMON_OBS): Add cp-support.o.
4651         (cp_support_h, cp-support.o): Add.
4652
4653         * cp-valprint.c (cp_print_class_method): Call
4654         check_stub_method_group instead of check_stub_method.  Remove
4655         extraneous QUITs.
4656         * p-valprint.c (pascal_object_print_class_method): Likewise.
4657         * valops.c (search_struct_method): Likewise.
4658         (find_method_list, value_struct_elt_for_reference): Likewise.
4659
4660 2002-09-13  Andrew Cagney  <cagney@redhat.com>
4661
4662         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4663         * gdbarch.h, gdbarch.c: Regenerate.
4664
4665 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
4666
4667         * frame.c (find_saved_register): Delete function.
4668         * frame.h (find_saved_register): Delete declaration.
4669         Fix PR gdb/631.
4670
4671 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
4672
4673         * mips-tdep.c (read_next_frame_reg): Re-hack using
4674         frame_register_unwind.
4675
4676 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
4677
4678         * mips-tdep.c (mips_get_saved_register): Re-hack using
4679         frame_register_unwind.
4680
4681 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4682
4683         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4684         vector. Will be useful for Interix.  
4685         * gdbarch.h, gdbarch.c: Regenerate.
4686
4687         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4688         name of the malloc function by NAME_OF_MALLOC.
4689
4690 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4691
4692         * value.h (find_function_in_inferior): Add const keyword to
4693         one of the parameters. Allows us to invoke this function with
4694         a const char *.
4695         * valops.c (find_function_in_inferior): Likewise.
4696
4697 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
4698
4699         * exec.c (xfer_memory): Fix compilation warning with old versions
4700         of GCC.
4701         * tracepoint.c (trace_find_tracepoint_command): Likewise.
4702
4703 2002-09-12  David Carlton  <carlton@math.stanford.edu>
4704
4705         * symtab.h: Run through gdb_indent.h.
4706         Add 2002 to Copyright year list.
4707
4708 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
4709
4710         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4711         mach constants.
4712         * MAINTAINERS: Add myself to write after approval list.
4713
4714 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4715
4716         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4717
4718 2002-09-11  J. Brobecker  <brobecker@gnat.com>
4719
4720         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4721         Interix.
4722
4723 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
4724
4725         * procfs.c (do_detach): Clear current signal, not just fault.
4726         Corrects problem with breakpoint trap signal leaking to detached
4727         process on Tru64.
4728
4729 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4730
4731         * buildsym.c (finish_block): Protect against null pointer.
4732
4733 2002-09-10  Andrew Cagney  <cagney@redhat.com>
4734
4735         * infcmd.c (default_print_registers_info): Send all output to
4736         ``file'' instead of ``gdb_stdout''.
4737
4738 2002-09-10  Michael Snyder  <msnyder@redhat.com>
4739
4740         * mips-tdep.c (mips_extract_struct_value_address): Make val a
4741         LONGEST, and use signed register read (addresses are sign-
4742         extended for mips).
4743
4744 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
4745
4746         * event-loop.c (gdb_do_one_event): Make public.
4747         * event-loop.h (gdb_do_one_event): Declare.
4748
4749 2002-09-10  Jeff Law  <law@redhat.com>
4750
4751         * infttrace.c (child_resume): Simplify and rework to avoid
4752         TT_PROC_CONTINUE.
4753
4754 2002-09-09  Fred Fish  <fnf@intrinsity.com>
4755
4756         * printcmd.c (print_scalar_formatted): "len" is the number of
4757         target bytes, NOT the number of target bits.
4758
4759 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
4760
4761         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
4762         * top.c (init_main): Set rl_terminal_name.
4763
4764 2002-09-08  Aidan Skinner <aidan@velvet.net>
4765
4766         * ada-lang.c (ada_array_bound, ada_type_match,
4767         _initialize_ada_language): Fix K&R definitions.
4768         * ada-tasks.c (get_current_task): Fix K&R definitions.
4769         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4770                         
4771 2002-09-07  Christopher Faylor  <cgf@redhat.com>
4772
4773         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4774         Add XP.
4775
4776 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
4777
4778         * i386-tdep.c (i386_register_virtual_type,
4779         i386_register_convertible, i386_register_convert_to_virtual,
4780         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4781         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4782         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
4783         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4784         Don't set push_arguments twice.
4785
4786         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4787         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4788         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4789         sigtramp_end to NULL.
4790         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4791         defines.
4792         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4793
4794         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4795         whitespace.
4796
4797         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4798         * gdbarch.h, gdbarch.c: Re-generate.
4799         * blockframe.c (find_pc_sect_partial_function): Convert to use
4800         SIGTRAMP_START_P predicate.
4801
4802 2002-09-05  Michael Snyder  <msnyder@redhat.com>
4803
4804         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4805         generic_dummy_frame method and old method.  Also distinguish
4806         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4807         (arm_extract_return_value): Use new regcache method.
4808
4809         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4810         adjustment that doesn't conform to the ABI.
4811         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4812         saved regcache, not from current regcache.
4813
4814 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
4815
4816         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
4817         * README: Update.
4818
4819 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
4820
4821         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4822         if arm_apcs_32 is false.
4823
4824 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
4825
4826         GDB 5.3 branch created.
4827
4828 2002-09-03  Theodore A. Roth  <troth@verinet.com>
4829
4830         * gdb/avr-tdep.c (avr_gdbarch_init): Use
4831         generic_unwind_get_saved_register.
4832
4833 2002-09-03  David Carlton  <carlton@math.stanford.edu>
4834
4835         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4836         argument (PR gdb/653).  Update call to smash_to_method_type.
4837         (read_structure_scope): Update call to dwarf2_add_member_fn.
4838
4839 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
4840
4841         * x86-64-linux-tdep.c: Include gdb_string.h
4842         * x86-64-linux-nat.c: Ditto.
4843
4844 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4845
4846         * ada-exp.y (yyname, yyrule): Remap global variables that appear
4847         when YYDEBUG is set to 1.  
4848         * c-exp.y: Likewise.
4849         * f-exp.y: Likewise.
4850         * jv-exp.y: Likewise.
4851         * m2-exp.y: Likewise.
4852         * p-exp.y: Likewise.
4853
4854 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4855
4856         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4857         dependency list.
4858         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4859         solib_svr4_fetch_link_map_offsets to
4860         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4861         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4862         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4863         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4864         solib-svr4.o, and solib-legacy.o.
4865         * config/i386/tm-nbsd.h: Include solib.h.
4866
4867 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4868
4869         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
4870         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
4871         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
4872         comment noting that this needs its own target configuration.
4873         * config/i386/nbsd.mt: New file.
4874         * config/i386/nbsdaout.mt: Remove.
4875         * config/i386/nbsdelf.mt: Ditto.
4876         * config/i386/tm-nbsdaout.h: Ditto. 
4877
4878 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4879
4880         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
4881         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
4882         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4883         tdep->sigtramp_end.
4884         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
4885         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4886         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4887
4888 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
4889
4890         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4891         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4892         * i386-tdep.h (i386bsd_init_abi): New prototype.
4893         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4894         function declaration.
4895         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4896         for NetBSD-a.out or NetBSD-ELF.
4897         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4898         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4899         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4900         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
4901         and nbsd-tdep.h.
4902         (i386nbsd_pc_in_sigtramp): New function.
4903         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4904         i386nbsd_pc_in_sigtramp.
4905         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4906         and i386nbsdelf_init_abi OS ABI handlers.
4907         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4908         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4909
4910 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
4911
4912         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4913         registers if the target really has them.
4914
4915 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4916
4917         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4918         than nbsd-tdep.h.
4919
4920 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4921
4922         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4923         list.
4924         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4925         (alphanbsd_skip_sigtramp_frame): New functions. 
4926         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4927         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
4928         to alphanbsd_sigcontext_addr. 
4929
4930 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
4931
4932         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4933         list.
4934         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
4935         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4936         nbsd_pc_in_sigtramp. 
4937         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4938         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4939         * nbsd-tdep.c: Include gdb_string.h.
4940         (nbsd_pc_in_sigtramp): New function. 
4941         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
4942         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4943         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4944         ppcnbsd_pc_in_sigtramp. 
4945         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4946         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4947         shnbsd_pc_in_sigtramp. 
4948         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4949         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
4950         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4951
4952 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
4953
4954         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4955         watchpoints to NULL.
4956         (insert_breakpoints): set val field of watchpoints if NULL.
4957
4958
4959 2002-08-29  Jim Blandy  <jimb@redhat.com>
4960
4961         * symtab.c (lookup_symbol_aux): In the cases where we find a
4962         minimal symbol of an appropriate name and use its address to
4963         select a symtab to read and search, use `name' (as passed to us)
4964         as the demangled name when searching the symtab's global and
4965         static blocks, not the minsym's name.
4966
4967 2002-08-29  Keith Seitz  <keiths@redhat.com>
4968
4969         * stack.c (print_frame_info_base): Always set current_source_symtab
4970         and current_source_line.
4971
4972 2002-08-29  Donn Terry  <donnte@microsoft.com>
4973
4974         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4975
4976 2002-08-28  Keith Seitz  <keiths@redhat.com>
4977
4978         * stack.c (select_frame): Add FIXME concerning selected-frame
4979         events.
4980         (select_frame_command): Send selected-frame-level-changed
4981         event notification, but only if the level actually changed.
4982         (up_silently_base): Add selected-frame-level-changed event
4983         notification.
4984         (down_silently_base): Likewise.
4985
4986 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
4987
4988         * Makefile.in: Update dependencies for all gdb/*.c files.
4989
4990 2002-08-27  Tom Tromey  <tromey@redhat.com>
4991
4992         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4993         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4994         Update dependencies.
4995         * i387-tdep.c: Include gdb_string.h.
4996         * osabi.c: Likewise.
4997         * i386-linux-nat.c: Likewise.
4998         * lin-lwp.c: Likewise.
4999         * ax-gdb.c: Likewise.
5000         * signals/signals.c: Likewise.
5001         * jv-valprint.c: Likewise.
5002         * p-lang.c: Likewise.
5003         * c-valprint.c: Likewise.
5004         * cp-abi.c: Likewise.
5005
5006 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
5007
5008         * cli/cli-script.h (copy_command_lines): Export.
5009         * breakpoint.c: Include cli/cli-script.h.
5010         * Makefile.in (breakpoint.o): Update dependencies.
5011
5012 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5013
5014         * breakpoint.c (insert_breakpoints): Protect all references
5015         to 'process_warning'.  Shorten long lines.
5016
5017 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
5018
5019         * cli/cli-script.c (copy_command_lines): New function.
5020         * defs.h (copy_command_lines): Export.
5021         * testsuite/gdb.base/commands.exp: New tests for commands
5022         attached to a temporary breakpoint, and for commands that
5023         delete the breakpoint they are attached to.
5024         
5025 2002-08-26  Michael Snyder  <msnyder@redhat.com>
5026
5027         * breakpoint.c (bpstat_stop_status): Instead of copying the 
5028         pointer to the breakpoint commands struct, make a new copy
5029         of the struct and point to that.
5030         (bpstat_clear): Free the commands struct.
5031         (bpstat_clear_actions): Free the commands struct.
5032         (bpstat_do_actions): Free the command actions.  Also execute
5033         the local cleanups, instead of deleting them.
5034         (delete_breakpoint): Leave the commands field of the bpstat
5035         chain alone -- it will be freed later.
5036
5037 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
5038
5039         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5040         deleted in 2002-08-20 commit.  This function is still used by
5041         ppc-linux-nat.c.
5042
5043 2002-08-26  Keith Seitz  <keiths@redhat.com>
5044
5045         * gdb-events.sh: Add selected-frame-level-changed event.
5046         * gdb-events.c: Regenerated.
5047         * gdb-events.h: Regenerated.
5048         
5049 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
5050
5051         Fix PR gdb/393:
5052         * inflow.c (terminal_save_ours): New function to save terminal
5053         settings.
5054         * inferior.h (terminal_save_ours): Declare.
5055         * target.c (debug_to_terminal_save_ours): New function.
5056         (cleanup_target): Defaults to_terminal_save_ours.
5057         (update_current_target): Inherit to_terminal_save_ours.
5058         (setup_target_debug): Set to_terminal_save_ours.
5059         * target.h (target_terminal_save_ours): New to save terminal settings.
5060         (target_ops): New member to_terminal_save_ours.
5061         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5062         * hpux-thread.c (init_hpux_thread_ops): Likewise.
5063         * inftarg.c (init_child_ops): Likewise.
5064         * m3-nat.c (init_m3_ops): Likewise.
5065         * procfs.c (init_procfs_ops): Likewise.
5066         * wince.c (init_child_ops): Likewise.
5067         * win32-nat.c (init_child_ops): Likewise.
5068         * sol-thread.c (init_sol_thread_ops): Likewise.
5069
5070 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
5071
5072         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
5073         use regcache_* functions.
5074         (i386_gdbarch_init): Set store_return_value instead of
5075         deprecated_store_return_value.
5076
5077         * regcache.c (regcache_raw_write_signed,
5078         regcache_raw_write_unsigned): New functions.
5079         * regcache.h (regcache_raw_write_signed,
5080         regcache_raw_write_unsigned): New prototypes.
5081
5082 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5083
5084         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5085         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5086         source file dependencies.  Cleanup corresponding generator rules.
5087
5088 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5089
5090         * regcache.h (register_offset_hack): Declare.
5091         (regcache_cooked_read_using_offset_hack): Declare.
5092         (regcache_cooked_write_using_offset_hack): Declare.
5093
5094         * regcache.c (register_offset_hack): New function.
5095         (regcache_cooked_read_using_offset_hack): New function.
5096         (regcache_cooked_write_using_offset_hack): New function.
5097         (regcache_dump): Check that the registers, according to their
5098         offset, are packed hard against each other.
5099         (cooked_xfer_using_offset_hack): New function.
5100
5101 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5102
5103         * regcache.c (struct regcache_descr): Add field register_type.
5104         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5105         in as a parameter
5106         (init_regcache_descr): Initialize register_type.  Pass the descr
5107         to init_legacy_regcache_descr.  Use register_type instead of
5108         REGISTER_VIRTUAL_TYPE.
5109         (register_type): New function.
5110         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5111         * regcache.h (register_type): Declare.
5112
5113 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5114
5115         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5116         instead of deprecated_store_return_value.  Fix fallout from
5117         2002-08-23 Andrew Cagney <cagney@redhat.com>.
5118
5119 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
5120
5121         * regcache.c (max_register_size): New function.
5122         (init_legacy_regcache_descr): Ensure that max_register_size is
5123         large enough for REGISTER_VIRTUAL_SIZE.
5124         * regcache.h (max_register_size): Declare.
5125
5126 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
5127
5128         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5129         store_return_value.
5130         (e500_extract_return_value): Change type of valbuf pointer to
5131         void.
5132
5133 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5134
5135         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5136         workaround.
5137
5138         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5139         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5140         long long) to prevent compiler warning on 64-bit systems.
5141
5142 2002-08-23  Andrew Cagney  <cagney@redhat.com>
5143
5144         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5145         (DEPRECATED_STORE_RETURN_VALUE): New method.
5146         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5147         * gdbarch.h, gdbarch.c: Re-generate.
5148
5149         * values.c (set_return_value): Pass current_regcache to
5150         STORE_RETURN_VALUE.
5151         * arch-utils.h (legacy_store_return_value): Declare.
5152         * arch-utils.c (legacy_store_return_value): New function.
5153         (legacy_extract_return_value): Update parameters.
5154
5155         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5156         STORE_RETURN_VALUE.
5157         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5158         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5159         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5160         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5161         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5162         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5163         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5164         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5165         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5166         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5167
5168         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5169         * i386-tdep.c (i386_extract_return_value): Update.
5170         * arch-utils.c (legacy_extract_return_value): Update.
5171         * frv-tdep.c (frv_gdbarch_init): Update.
5172         * cris-tdep.c (cris_gdbarch_init): Update.
5173         * d10v-tdep.c (d10v_gdbarch_init): Update.
5174         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5175         * m68k-tdep.c (m68k_gdbarch_init): Update.
5176         * mcore-tdep.c (mcore_gdbarch_init): Update.
5177         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5178         * s390-tdep.c (s390_gdbarch_init): Update.
5179         * sparc-tdep.c (sparc_gdbarch_init): Update.
5180         * sh-tdep.c (sh_gdbarch_init): Update.
5181         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5182         * v850-tdep.c (v850_gdbarch_init): Update.
5183         * avr-tdep.c (avr_gdbarch_init): Update.
5184         * ia64-tdep.c (ia64_gdbarch_init): Update.
5185         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5186         * vax-tdep.c (vax_gdbarch_init): Update.
5187         * alpha-tdep.c (alpha_gdbarch_init): Update.
5188         * arm-tdep.c (arm_gdbarch_init): Update.
5189         * mips-tdep.c (mips_gdbarch_init): Update.
5190         * i386-tdep.c (i386_gdbarch_init): Update.
5191
5192 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
5193
5194         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5195         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5196
5197 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
5198
5199         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
5200         problems.
5201
5202 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
5203
5204         * infrun.c (handle_inferior_event): Move a comment outside of a
5205         function call, in order to avoid indent reformatting this part
5206         of the code in an unreadable way.
5207
5208 2002-08-23  Grace Sainsbury  <graces@redhat.com>
5209
5210         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5211         when breakpoints fail. Move general breakpoint error messages to
5212         insert_breakpoints.  
5213         * breakpoint.c (insert_breakpoints): Change warnings when
5214         breakpoints are nto inserted to specify the type. Remove call to
5215         memory_error when hardware breakpoints can't be inserted. Remove
5216         multiple calls to warning so all messages are sent to the user at
5217         once.
5218         (delete_breakpoints): Make insert error messsages more explicit.
5219
5220 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
5221
5222         * ChangeLog: Move gdbserver entries after GDB 5.2 to
5223         gdbserver/ChangeLog.
5224
5225 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
5226
5227         * i386-tdep.c: Include "objfiles.h".
5228         (i386_svr4_init_abi): Set in_solib_call_trampoline and
5229         skip_trampoline_code.
5230         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5231         (CPLUS_MARKER): Define to '.'.
5232
5233         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5234         member.
5235         (linux_corefile_thread_callback): Increase args->num_notes.
5236         (linux_make_note_section): Initialize thread_args.num_notes, and
5237         use it to determine whether notes for any threads were created.
5238
5239 2002-08-23  Donn Terry  <donnte@microsoft.com>
5240
5241         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5242         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5243         and PCUNKILL.
5244         (write_with_trace): Conditionalize out the switch branch handling
5245         PCSHOLD if the corresponding macro is not defined. Likewise for
5246         PRSABORT and PRSTOP.
5247         This change will be needed by the Interix port.
5248
5249 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5250
5251         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5252         write_register wherever possible instead of manipulating the
5253         register bytes directly.
5254         Assign VALUE_CONTENTS to a variable and use that.
5255         The GPR numbers are now dependent on the architecture.
5256         
5257 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5258
5259         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5260         ev_offset fields.
5261         (skip_prologue): Add support for BookE/e500 instructions.
5262         (e500_extract_return_value): New function.
5263         (frame_get_saved_regs): Add support for saving ev registers and
5264         pseudo gpr's.
5265         (e500_store_return_value): New function.
5266         (rs6000_gdbarch_init): Move up default intializations of
5267         deprecated_extract_return_value and store_return_value.  Overwrite
5268         init of store_return_value with e500 specific version.
5269         Set extract_return_value for e500.
5270         
5271 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
5272
5273         * blockframe.c (generic_call_dummy_register_unwind): Use
5274         regcache_cooked_read to catch cases in which the variable is
5275         stored in a pseudo register.
5276
5277 2002-08-22  Andrew Cagney  <cagney@redhat.com>
5278
5279         * NEWS: Mention that the i960 has been made obsolete.
5280         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5281         i960-tdep.c
5282         (remote-nrom.o): Obsolete target.
5283         (remote-nindy.o, i960-tdep.o): Ditto.
5284         * remote-nrom.c: Make file obsolete.
5285         * remote-nindy.c, remote-vx960.c: Ditto.
5286         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5287         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5288         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5289         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5290         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5291         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5292         i960-*-vxworks* obsolete.
5293         * MAINTAINERS: Note that the i960 is obsolete.
5294
5295 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
5296
5297         * aix-thread.c (aix_thread_detach): Disable thread debugging on
5298         detach to allow reinitialization.
5299
5300 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
5301
5302         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5303         attempt).
5304
5305 2002-08-22  Jim Blandy  <jimb@redhat.com>
5306
5307         * coffread.c (coff_symfile_read): Don't try to read the line
5308         number table from disk if the image file doesn't have a symbol
5309         table; we'll never actually look at the info anyway, and Windows
5310         ships DLL's with bogus file offsets for the line number data.
5311
5312 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
5313
5314         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5315         an e500 executable.
5316
5317 2002-08-21  Michael Snyder  <msnyder@redhat.com>
5318
5319         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5320         (MSYMBOL_SIZE): Replace macro with function.
5321         (DEFAULT_MIPS_TYPE): Delete unused macro.
5322         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5323         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5324
5325 2002-08-21  Jim Blandy  <jimb@redhat.com>
5326
5327         * valops.c (value_cast): Simplify and correct logic for doing a
5328         static cast from a pointer to a base class to a pointer to a
5329         derived class.
5330
5331 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5332
5333         * infcmd.c (default_print_registers_info): Replace
5334         do_registers_info.
5335         (registers_info): Use gdbarch_print_registers_info instead of
5336         DO_REGISTERS_INFO.
5337         * inferior.h (default_print_registers_info): Replace
5338         do_registers_info.
5339         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5340         (DO_REGISTERS_INFO): Change to a predicate function.
5341         * gdbarch.h, gdbarch.c: Regenerate.
5342         
5343 2002-08-21  Keith Seitz  <keiths@redhat.com>
5344
5345         * gdb-events.sh: Add target-changed event.
5346         * gdb-events.c: Regenerated.
5347         * gdb-events.c: Regenerated.
5348         * valops.c (value_assign): Add target-changed event notification
5349         to inlval_register, lval_memory, and lval_reg_frame_relative.
5350
5351 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
5352
5353         * NEWS: Add an entry regarding the improvement of the next/step
5354         operation on Alpha Tru64 multi-processor machines.
5355
5356 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
5357
5358         * Makefile.in: Update dependencies for mi/ cli/ and tui/
5359         directores.
5360         * Makefile.in: Update all _h macro definitions.
5361         * Makefile.in (install-gdbtk): Move to install section.
5362         (rdi-share/libangsd.a): Move to end of file.
5363
5364 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5365
5366         * frame.c (frame_register_unwind): When a register, set addrp to
5367         the register's byte.
5368
5369 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5370
5371         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5372         used locally, so move them from the target machine header to here.
5373         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
5374         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
5375         Make static.
5376         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5377
5378 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5379
5380         * NEWS: Mention that the Apollo line was made obsolete.
5381         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5382         m68*-hp-hpux* obsolete.
5383         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5384         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5385         * buildsym.c (make_blockvector): Make static.
5386         * buildsym.h (make_blockvector): Make extern declaration obsolete.
5387         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5388         (ALLDEPFILES): Remove dstread.c.
5389         (dstread.o): Obsolete make rule.
5390         * dstread.c: Makefile obsolete.
5391         * dst.h: Ditto.
5392         * config/m68k/hp300hpux.mt: Ditto.
5393         * config/m68k/hp300hpux.mh: Ditto.
5394         * config/m68k/hp300bsd.mt: Ditto.
5395         * config/m68k/hp300bsd.mh: Ditto.
5396         * config/m68k/apollo68b.mt: Ditto.
5397         * config/m68k/apollo68v.mh: Ditto.
5398         * config/m68k/apollo68b.mh: Ditto.
5399
5400 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5401
5402         * mips-tdep.c (mips_in_return_stub): Make static.
5403         (mips_gdbarch_init): Set in_solib_return_trampoline.
5404         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5405
5406 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5407
5408         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5409         * gdbarch.c, gdbarch.h: Regenerate.
5410         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5411         Add.
5412         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5413
5414 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5415
5416         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5417         (mips_gdbarch_init): Set skip_trampoline_code, 
5418         in_solib_call_trampoline.
5419         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5420         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5421
5422 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5423
5424         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5425
5426         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5427         vector type for ev registers.
5428         (e500_pseudo_register_read): New function.
5429         (e500_pseudo_register_write): New function.
5430         (e500_dwarf2_reg_to_regnum): New function.
5431         (PPC_UISA_NOFP_SPRS): New macro.
5432         (PPC_EV_REGS): New macro.
5433         (PPC_GPRS_PSEUDO_REGS): New macro.
5434         (registers_e500): New register set for e500.
5435         (variants): Add e500 variant.
5436         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5437         before setting architectural dependent variations.  Initialize ev
5438         registers numbers.  Add case for e500 architecture.  Set the
5439         number of pseudo registers.
5440
5441 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5442
5443         * rs6000-tdep.c: Clean up comments.
5444
5445 2002-08-20  Andrew Cagney  <cagney@redhat.com>
5446
5447         * h8300-tdep.c: Re-indent file.
5448
5449 2002-08-20  Jim Blandy  <jimb@redhat.com>
5450
5451         * Makefile.in (LDFLAGS): Allow the configure script to establish a
5452         default for this.
5453
5454 2002-08-20  Keith Seitz  <keiths@redhat.com>
5455
5456         * breakpoints.c (watch_command_1): Use internal breakpoint
5457         when setting a watchpoint_scope breakpoint.
5458
5459 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5460
5461         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5462         (build_builtin_type_vec64i): Ditto.
5463         (build_builtin_type_vec128): Ditto.
5464         (build_builtin_type_vec128i): Ditto.
5465
5466 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5467
5468         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5469         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5470         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5471         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5472         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5473         CALL_DUMMY_ADDRESS): Delete.
5474         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5475         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5476         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
5477         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
5478         push_return_address.
5479         (mips_register_raw_size, mips_eabi_use_struct_convention, 
5480         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5481         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5482         mips_init_extra_frame_info, mips_eabi_push_arguments, 
5483         mips_n32n64_push_arguments, mips_push_return_address,
5484         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5485         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5486
5487 2002-08-19  Michael Snyder  <msnyder@redhat.com>
5488
5489         * mips-tdep.c (mips_frame_num_args): New function.
5490         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5491         frame_saved_pc, frame_args_address, frame_locals_address, 
5492         frame_num_args, and frame_args_skip.
5493         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5494         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
5495         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5496         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5497
5498 2002-08-20  Michael Snyder  <msnyder@redhat.com>
5499
5500         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5501         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5502         * mips-tdep.c (mips_store_struct_return): New function.
5503         (mips_extract_struct_value_address): New function.
5504         (mips_gdbarch_init): Set store_struct_return and
5505         extract_struct_value_address.
5506
5507 2002-08-20  David Carlton  <carlton@math.stanford.edu>
5508
5509         * dwarf2read.c (dwarf2_build_psymtabs): Check that
5510         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5511         (read_file_scope): Check that line_header is nonzero before
5512         decoding macro information.
5513
5514 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
5515
5516         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5517         flag the general-purpose registers as floating-point on targets
5518         that don't support the floating-point registers.
5519
5520 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5521
5522         * rs6000-tdep.c (altivec_register_p): Delete.
5523         (rs6000_do_altivec_registers): Delete.
5524         (rs6000_altivec_registers_info): Delete.
5525         (rs6000_do_registers_info): Delete.
5526         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5527         (rs6000_gdbarch_init): Remove setting of do_registers_info.
5528
5529 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
5530
5531         * infcmd.c (do_registers_info): Print vector registers in hex
5532         format only.
5533         (print_vector_info): Check that printing registers
5534         makes sense.
5535         (print_float_info): Ditto.
5536
5537 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5538
5539         * mips-tdep.c (mips_gdbarch_init): Update.
5540         (mips_o32_extract_return_value): Rewrite.
5541         (mips_o32_store_return_value): Rewrite.
5542         (mips_o32_xfer_return_value): New function.
5543         (mips_xfer_register): Tweak debug print message.  Allow for
5544         buf_offset when dumping the value transfered.
5545
5546 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
5547
5548         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5549         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5550         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5551         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5552         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5553
5554 2002-08-14  Michael Snyder  <msnyder@redhat.com>
5555
5556         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5557
5558 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5559
5560         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5561         register.
5562         (P): New macro to define a register as a pseudo register.
5563         (R, R4, R8, R16, FR32, R64, R0): Updated.
5564         (struct variant): Add new fields for number of pseudo registers
5565         and number of total registers.
5566         (tot_num_registers): New macro replacing....
5567         (num_registers): ...deleted macro.
5568         (num_registers): New function.
5569         (num_pseudo_registers): New function.
5570         (variants): Update all variants to intialize new fields correctly.
5571         Postpone initialization of number of pseudo regs and real regs.
5572         (init_variants): New function.
5573         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
5574         registers offsets.
5575
5576 2002-08-19  David Carlton  <carlton@math.stanford.edu>
5577
5578         * valops.c (search_struct_field): Change error message to treat
5579         return value of 0 from value_static_field as meaning that field is
5580         optimized out.
5581         (value_struct_elt_for_reference): Ditto.
5582         * values.c (value_static_field): Treat an unresolved location the
5583         same as a nonexistent symbol.  Fix PR gdb/635.
5584         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5585         enclosed.  Fix PR gdb/574.
5586         * MAINTAINERS: Add self to Write After Approval list.
5587
5588 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
5589
5590         * mips-tdep.c (mips_xfer_register): New function.
5591         (mips_n32n64_extract_return_value): Rewrite.
5592         (mips_gdbarch_init): For N32 and N64, set extract_return_value
5593         instead of deprecated_extract_return_value.
5594
5595 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
5596
5597         * rs6000-tdep.c (TDEP): Delete macro.
5598         (branch_dest): Replace use of TDEP macro with its body.
5599         (rs6000_pop_frame): Ditto.
5600         (rs6000_push_arguments): Ditto.
5601         (rs6000_skip_trampoline_code): Ditto.
5602         (rs6000_frame_saved_pc): Ditto.
5603         (rs6000_frame_chain): Ditto.
5604         (rs6000_register_name): Ditto.
5605         (rs6000_register_byte): Ditto.
5606         (rs6000_register_raw_size): Ditto.
5607         (rs6000_register_virtual_type): Ditto.
5608         (rs6000_register_convertible): Ditto.
5609         (rs6000_convert_from_func_ptr_addr): Ditto.
5610
5611 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
5612
5613         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5614         conditionally.
5615         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5616         MIPS_LINUX_JB_ELEMENT_SIZE.
5617         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5618         for MAX_REGISTER_RAW_SIZE arrays.
5619         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5620         MIPS_LINUX_JB_ELEMENT_SIZE.
5621
5622 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5623
5624         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5625
5626 2002-08-19  Aidan Skinner <aidan@velvet.net>
5627
5628         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5629         ada-valprint.c ada-tasks.c.
5630         (YYFILES): Add ada-exp.y.
5631         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5632         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5633         (ada-exp.tab.o): New target.
5634                 
5635 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5636
5637         * regcache.c (regcache_xfer_part): New function.
5638         (regcache_raw_read_part): New function.
5639         (regcache_raw_write_part): New function.
5640         (regcache_cooked_read_part): New function.
5641         (regcache_cooked_write_part): New function.
5642         * regcache.h (regcache_raw_read_part): Declare.
5643         (regcache_raw_write_part): Declare.
5644         (regcache_cooked_read_part): Declare.
5645         (regcache_cooked_write_part): Declare.
5646
5647 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
5648
5649         * remote.c (remote_open_1): Add async_p.
5650         (remote_async_open_1): Delete.
5651         (open_remote_target): Delete.
5652         (remote_open, extended_remote_open): Update calls to remote_open_1.
5653         (remote_async_open, extended_remote_async_open): Call
5654         remote_open_1 instead of remote_async_open_1.
5655
5656 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5657
5658         * blockframe.c: Fix a few coding standard violations.
5659
5660 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
5661
5662         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5663         here from ...
5664         * config/i386/tm-i386sco5.h: ... here.  File removed.
5665         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5666
5667         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5668         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5669         (TM_FILE): Set to tm-i386.h.
5670         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5671         * config/i386/tm-i386v.h: Remove file.
5672         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5673         instead of "i386/tm-i386v.h".
5674         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5675         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5676         "i386/tm-i386v.h".
5677         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5678         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5679         "i386/tm-i386.h".
5680
5681 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5682
5683         * config/i386/nm-i386v.h: Add protection against
5684         multiple-inclusion.
5685         (i386_register_u_addr): Remove prototype.
5686         (register_u_addr): New prototype.
5687         (REGISTER_U_ADDR): Redefine accordingly.
5688         * i386v-nat.c: Improve several comments.
5689         (i386_register_u_addr): Change signature and rename to
5690         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
5691         ubase variable.
5692
5693 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5694
5695         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5696         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5697         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5698         deprecated_extract_return_value.
5699         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5700         rename mips_o32o64_push_arguments.
5701         (mips_gdbarch_init): Update.
5702         (mips_extract_return_value): Delete.
5703         (mips_o32_extract_return_value): Clone mips_extract_return_value.
5704         (mips_o64_extract_return_value): Clone mips_extract_return_value.
5705         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5706         (mips_n32n64_extract_return_value): Clone
5707         mips_extract_return_value.
5708         (mips_store_return_value): Delete.
5709         (mips_o32_store_return_value): Clone mips_store_return_value.
5710         (mips_o64_store_return_value): Clone mips_store_return_value.
5711         (mips_eabi_store_return_value): Clone mips_store_return_value.
5712         (mips_n32n64_store_return_value): Clone mips_store_return_value.
5713
5714 2002-08-18  Aidan Skinner <aidan@velvet.net>
5715
5716         * ada-lang.c: Use gdb_string.h instead of <string.h>.
5717         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5718                 
5719 2002-08-18  Aidan Skinner <aidan@velvet.net>
5720
5721         * ada-lang.c: Run through gdb_indent.sh.
5722         * ada-lang.h: Run through gdb_indent.sh.
5723         * ada-tasks.c: Run through gdb_indent.sh.
5724         * ada-typeprint.c: Run through gdb_indent.sh.
5725         * ada-valprint.c: Run through gdb_indent.sh.
5726
5727 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5728
5729         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5730         ABI.
5731
5732 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5733
5734         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5735
5736         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5737         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5738
5739         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5740         write_register_gen instead of write_register_bytes.
5741
5742         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5743         i[3456]-*-osf1mk* configurations have been made obsolete.
5744         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5745         i[3456]86-*-osf1mk* hosts obsolete.
5746         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5747         targets obsolete.
5748         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5749         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5750         config/i386/i386m3.mt, config/i386/nm-m3.h,
5751         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5752         config/i386/i386mk.mh, config/i386/i386mk.mt,
5753         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5754         obsolete.
5755         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5756         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5757         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5758
5759 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5760
5761         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5762         (hppa_value_returned_from_stack): Declare.
5763         (hppa_extract_return_value): Declare.
5764         * config/pa/hppa.mt: New file.
5765         * configure.tgt: Recognize hppa*-*-*.
5766         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
5767
5768 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
5769
5770         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5771         comment.
5772
5773 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
5774
5775         * top.c (gdb_rl_operate_and_get_next): Make sure
5776         operate-and-get-next functions correctly even when the history
5777         list is completely filled.
5778
5779 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
5780
5781         * MAINTAINERS (Target Instruction Set Architectures): Rename
5782         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
5783         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
5784         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
5785         already listed under Host/Native.
5786
5787         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5788         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
5789         mips*-*-*.
5790
5791 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
5792
5793         * config/ia64/ia64.mt: New file.
5794         * config/alpha/alpha.mt: New file.
5795         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5796         ia64-linux-gnu.  Mention that ia64-elf is broken.
5797         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5798
5799 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
5800
5801         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5802         generic_func_frame_valid instead of func_frame_valid.
5803
5804 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5805
5806         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5807         procfs appears to be broken when debugging on multi-processor
5808         machines. So enable software single stepping in order to avoid
5809         using the procfs interface to do next/step operations, using
5810         internal breakpoints instead.
5811
5812         * infrun.c (handle_inferior_event): Readjust the stop_pc by
5813         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5814         make this pc address equal to the value it would have if the
5815         system stepping capability was used. Also set a new flag used
5816         to ensure that we don't readjust the PC one more time later.
5817
5818         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5819         address by DECR_PC_AFTER_BREAK when software single step is
5820         in use for this architecture, as this has already been taken
5821         care of in handle_inferior_event().
5822
5823 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5824
5825         * infrun.c (handle_inferior_event): Minor reformatting, to make
5826         a rather long condition expression easier to read.
5827
5828 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5829
5830         * Makefile.in (gdbtk.o): Move to end of file.
5831         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5832         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5833         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5834         (gdbtk-wrapper.o, gdbres.o): Ditto.
5835
5836 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5837
5838         * Makefile.in (copying.o): Separate out compile rule.
5839         (hpux-thread.o, procfs.o, signals.o): Ditto.
5840         (v850ice.o, z8k-tdep.o): Ditto.
5841         (tui-file.o): Move to TUI section.
5842         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5843         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5844
5845 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5846
5847         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5848         skip_trampoline_code, for better namespace-proofing.   
5849
5850         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5851
5852 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5853
5854         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5855
5856 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
5857
5858         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5859         signal, check whether we hit a breakpoint before checking for a
5860         single step breakpoint. Otherwise, GDB fails to notice that a
5861         breakpoint has been hit when stepping onto a breakpoint.
5862
5863 2002-08-16  Keith Seitz  <keiths@redhat.com>
5864
5865         * gdb-events.sh (clear_gdb_event_hooks): New function.
5866         * gdb-events.c: Regenerate.
5867         * gdb-events.h: Regenerate.
5868
5869 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
5870
5871         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5872         not_a_sw_breakpoint.
5873         * breakpoint.h (bpstat_stop_status): Add parameter names.
5874
5875 2002-08-16  Grace Sainsbury  <graces@redhat.com>
5876
5877         * remote.c (remote_insert_hw_breakpoint)
5878         (remote_remove_hw_breakpoint): Fix calculation of length field
5879         for Z-packet.
5880
5881 2002-08-15  Michael Snyder  <msnyder@redhat.com>
5882
5883         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5884         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5885         (supply_fpregset): Ditto.
5886         
5887         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
5888         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
5889         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5890         (TARGET_READ_SP): Delete.
5891         (DO_REGISTERS_INFO): Delete.
5892         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5893         Delete.
5894         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5895         from macros to functions.
5896
5897         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5898         (mips_register_convertible, mips_register_convert_to_virtual,
5899         mips_register_convert_to_raw): Make static.
5900         (mips_read_sp): New function.
5901         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5902         (mips_do_registers_info): Make static.
5903         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5904         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5905         (mips_register_convert_from_type, mips_register_convert_to_type):
5906         New functions.
5907         (mips_gdbarch_init): Set up function_start_offset, 
5908         register_virtual_size, pc_in_sigtramp.
5909
5910 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5911
5912         * infcmd.c (vector_info): New function.
5913         (_initialize_infcmd): Add command "info vector".
5914         (print_vector_info): New function.
5915
5916         * gdbarch.sh (PRINT_VECTOR_INFO): New method
5917         * gdbarch.h, gdbarch.c: Regenerate.
5918
5919 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5920
5921         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5922         ``print_all''.  Only print vector registers when ``print_all''.
5923
5924 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
5925
5926         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5927         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5928
5929         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5930         Add `args' parameter.
5931         * gdbarch.h, gdbarch.c: Regenerate.
5932         
5933         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5934         
5935         * infcmd.c (float_info): Call print_float_info.
5936         (print_float_info): New function.  By default, print the
5937         floating-point registers.
5938
5939         * arch-utils.h (default_print_float_info): Delete declaration.
5940         * arch-utils.c (default_print_float_info): Delete function.
5941         
5942 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
5943
5944         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5945         out define.
5946
5947         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5948         FRAME.
5949
5950         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5951         * configure.host: Make i[3456]86-*-aix host obsolete.
5952         * configure.tgt: Make i[3456]86-*-aix target obsolete.
5953         * config/i386/i386aix.mh, config/i386/i386aix.mt,
5954         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5955         config/i386/xm-i386aix.h: Make files obsolete.
5956         * i386aix-nat.c: Make file obsolete.
5957         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5958         (i386aix-nat.o): Make target obsolete.
5959
5960         * config/i386/nm-gnu.h: Removed.
5961         * config/i386/nm-i386gnu.h: New file.
5962         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5963         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5964         Moved here from ...
5965         * config/i386/tm-i386gnu.h: ... here.  Removed.
5966         * config/i386/xm-i386gnu.h: Removed.
5967         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5968         (NAT_FILE): Set to nm-i386gnu.h.
5969         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5970         * i386-tdep.c: New file.
5971         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5972         (i386gnu-tdep.o): Specify dependencies.
5973
5974 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
5975
5976         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5977         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5978         Adjust a few comments to reflect reality a bit closer.
5979         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5980         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5981         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5982         target_insert_watchpoint, target_remove_watchpoint):
5983         Move defines to ...
5984         * config/i386/nm-i386sco5.h: ... here.
5985         (kernel_u_size): Add prototype.  Improve a few comments and add
5986         protection against multiple inclusion.
5987         
5988         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5989         out define.
5990
5991         * uw-thread.c (SP_ARG0): Define if not already defined.
5992         * config/i386/tm-i386.h (SO_ARG0): Remove define.
5993
5994         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5995
5996         * config/i386/tm-i386.h: Don't include "regcache.h".
5997
5998         * i387-tdep.h (i387_print_float_info): New prototype.
5999         * i387-tdep.c (print_i387_value, print_i387_ext,
6000         print_i387_status_word, print_i387_control_word): Add `struct
6001         ui_file *' argument and use it for output.
6002         (i387_print_float_info): Renamed from i387_float_info.  Add
6003         `struct gdbarch *' and `struct ui_file *' arguments and use the
6004         latter for output.
6005         * i386-tdep.c: Include "i387-tdep.h".
6006         (i386_gdbarch_init): Set print_float_info.
6007         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6008         (FLOAT_INFO): Remove define.
6009
6010 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6011
6012         * mips-tdep.c (mips_push_arguments): Rename to
6013         mips_eabi_push_arguments, and tune for EABI.
6014         (MIPS_REGS_HAVE_HOME_P): Delete.
6015         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6016         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6017         Delete references to mips_regs_have_home_p.
6018
6019 2002-08-14  Keith Seitz  <keiths@redhat.com>
6020
6021         * Makefile.in (install-gdbtk): Create insight plugin directory.
6022         Install plugins.tcl file.
6023
6024 2002-08-14  Keith Seitz  <keiths@redhat.com>
6025
6026         * configure.in: Move SUBDIRS to near top of the file so that
6027         --enable options may add things to it.
6028         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6029         * configure: Regenerate.
6030
6031 2002-08-13  Michael Snyder  <msnyder@redhat.com>
6032
6033         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
6034         cloned from mips_push_arguments, tuned for o32/o64 ABI.
6035         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6036
6037 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
6038
6039         * vax-tdep.c (vax_get_saved_register): Delete function.
6040         (vax_gdbarch_init): Update.
6041         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6042         (ns32k_gdbarch_init): Update.
6043         * alpha-tdep.c (alpha_get_saved_register): Delete function.
6044         (alpha_gdbarch_init): Update.
6045
6046 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6047
6048         * regcache.c (init_regcache_descr): Overallocate the
6049         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6050         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6051         nr_raw_registers.
6052         (set_register_cached): Add range checking assertions.  Use
6053         current_regcache.
6054
6055 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
6056
6057         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6058         numbers for MMX registers.
6059
6060 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6061
6062         * i386-tdep.c (i386_gdbarch_init): Use
6063         generic_unwind_get_saved_register.
6064
6065 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
6066
6067         * procfs.c (procfs_can_use_hw_breakpoint): New function.
6068         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6069         target vector.
6070         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6071         Delete.  Add comment regarding this now-deleted target method.
6072
6073 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6074
6075         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6076         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6077         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6078         real PC and the page number (if it's within the memory bank window).
6079         (m68hc11_pseudo_register_write): Likewise when saving.
6080         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6081         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6082         (m68hc11_register_raw_size): And use 32-bit for it.
6083         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6084         16K memory bank is used by the prog; also use the virtual pc.
6085
6086 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6087
6088         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6089         (m68hc11_gdbarch_init): Install it in gdbarch.
6090         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6091         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6092         (MSYMBOL_SIZE): New for documentation.
6093         (insn_return_kind): Enum to specify how a function returns.
6094         (frame_extra_info): Cleanup and record the return mode.
6095         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
6096         register in address computation.
6097         (m68hc11_get_return_insn): New to obtain the return instruction used
6098         by the function.
6099         (m68hc11_frame_init_saved_regs): Take into account the return
6100         instruction used by the function for far and interrupt functions.
6101         (m68hc11_init_extra_frame_info): Take into account page register.
6102         (m68hc11_frame_args_address): Adjust according to the return mode.
6103         (show_regs): Print page register only when it's used.
6104
6105 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6106
6107         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6108         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6109         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6110         registers.
6111         (m68hc11_register_raw_size): Likewise.
6112
6113 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6114
6115         * i386-tdep.c (i386_register_name): Handle mmx registers.
6116         (mmx_regnum_p): New function.
6117         (i386_mmx_names): New array.
6118         (mmx_num_regs): New variable.
6119         (i386_pseudo_register_read): New function.
6120         (i386_pseudo_register_write): New function.
6121         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6122
6123         * regcache.c (regcache_raw_read_unsigned): New function.
6124         (regcache_raw_read_signed): New function.
6125         * regcache.h (regcache_raw_read_unsigned): Declare.
6126         (regcache_raw_read_signed): Declare.
6127
6128 2002-08-13  Andrew Cagney  <cagney@redhat.com>
6129
6130         * regcache.c (regcache_raw_read_as_address): Delete function.
6131         (regcache_cooked_read_signed): New function.
6132         (regcache_cooked_read_unsigned): New function.
6133         * regcache.h (regcache_cooked_read_signed): Declare.
6134         (regcache_cooked_read_unsigned): Declare.
6135         (regcache_raw_read_as_address): Delete declaration.
6136
6137         * blockframe.c (generic_read_register_dummy): Use
6138         regcache_cooked_read_unsigned.
6139         * i386-tdep.c (i386_extract_struct_value_address): Use
6140         regcache_cooked_read_unsigned.
6141
6142 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6143
6144         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6145         double sizes according to ELF ABI flags.
6146         (gdbarch_tdep): Record elf_flags.
6147
6148 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
6149
6150         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6151         (m6812_prolog): They can appear in 68HC12 function prologue.
6152         (m68hc11_frame_chain): Cleanup.
6153
6154 2002-08-12  Andrew Cagney  <cagney@redhat.com>
6155
6156         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6157         declarations.
6158         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6159         (i386_linux_register_raw_size): Delete function.
6160         (i386_linux_init_abi): Update.
6161         * i386-tdep.c (i386_register_raw_size): Delete function.
6162         (i386_register_byte): Delete function.
6163         (i386_gdbarch_init): Update.
6164         (i386_register_size): Delete array.
6165         (i386_register_offset): Delete array.
6166
6167         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6168         (REGISTER_RAW_SIZE): Delete macro.
6169         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6170         (REGISTER_BYTE): Delete macro.
6171
6172 2002-08-11  Aidan Skinner <aidan@velvet.net>
6173
6174         * ada-lang.c (ada_lookup_partial_symbol)
6175         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6176         prototype names so that grep ^func works properly.
6177
6178         * ada-lang.c (ada_array_element_type)
6179         (ada_lookup_partial_symbol): Fix typos in parameter list.
6180
6181         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6182         Fix prototype names so that grep ^func works properly.
6183         
6184 2002-08-10  Andrew Cagney  <cagney@redhat.com>
6185             Elena Zannoni  <ezannoni@redhat.com>
6186             Martin M. Hunt  <hunt@redhat.com>
6187
6188         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6189         (build_builtin_type_vec128i): Set the vector bit.
6190         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6191         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6192         (build_builtin_type_vec64): New function.
6193         (build_builtin_type_vec64i): New function.
6194         (build_gdbtypes): Initialize builtin_type_vec64 and
6195         builtin_type_vec64i.
6196
6197 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6198
6199         * regcache.c (regcache_dump): Compare the register offset
6200         with REGISTER_BYTE.
6201         * arch-utils.c (generic_register_byte): New function.
6202         * arch-utils.h (generic_register_byte): Declare.
6203         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6204         * gdbarch.h, gdbarch.c: Regenerate.
6205
6206 2002-08-09  Andrew Cagney  <cagney@redhat.com>
6207
6208         * regcache.c: Include "gdbcmd.h"
6209         (_initialize_regcache): Add commands "maintenance print
6210         registers", "maintenance print raw-registers" and "maintenance
6211         print cooked-registers".
6212         (enum regcache_dump_what): Define.
6213         (dump_endian_bytes): New function.
6214         (regcache_dump): New function.
6215         (regcache_print): New function.
6216         (maintenance_print_registers): New function.
6217         (maintenance_print_raw_registers): New function.
6218         (maintenance_print_cooked_registers): New function.
6219         * Makefile.in (regcache.o): Update dependencies.
6220
6221 2002-08-09  Michael Snyder  <msnyder@redhat.com>
6222
6223         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6224         (mips_push_arguments): Correct some comments.  Use paddr_nz
6225         for printing addresses in debug output.  Replace static
6226         allocation using MAX_REGISTER_RAW_SIZE with alloca.
6227         (mips_n32n64_push_arguments): New function, cloned from
6228         mips_push_arguments and tuned for the n32/n64 ABI.
6229         (mips_push_register): Buffer needs dynamic allocation.
6230         (mips_print_register): Ditto.
6231         (do_gp_register_row): Ditto.
6232         (mips_store_return_value): Ditto.
6233         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6234
6235 2002-08-09  Don Howard  <dhoward@redhat.com>
6236
6237         * memattr.c (mem_info_command): Print special case of upper bound
6238         as max CORE_ADDR + 1.
6239
6240 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6241
6242         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
6243         returns structs by ref if they're too big to fit in two registers.
6244
6245 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6246
6247         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6248         saved regs value.
6249         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6250         mips_find_saved_regs().
6251         (mips_pop_frame): Likewise.
6252
6253 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
6254
6255         * blockframe.c (frame_saved_regs_register_unwind): Revise
6256         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6257         frames are in use.
6258
6259 2002-08-09  Grace Sainsbury  <graces@redhat.com>
6260         
6261         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6262         T-packets; the 'a' is not taken as a register number.
6263         (remote_check_watch_resources, remote_stopped_by_watchpoint)
6264         (remote_stopped_data_address): New functions; add to target
6265         vector.
6266         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6267         prototypes to match other implementations of this
6268         function. replace integer argument with pointer -- the length
6269         field in the Z-packet is the length of what is pointed to or 1 if
6270         pointer is null. Add to target vector.
6271         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6272         target vector.
6273
6274         From Mark Salter:
6275         * remote.c (remote_wait): Add support to extract optional
6276         watchpoint information from T-packet. Ignore unrecognized
6277         optional info in T-packet.
6278         (remote_async_wait): Ditto.
6279
6280 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
6281
6282         * cli/cli-dump.c: Change fopen modes to use binary open modes
6283         as defined in include/fopen-bin.h throughout.
6284
6285 2002-08-08  Michael Snyder  <msnyder@redhat.com>
6286
6287         * mips-tdep.c: Minor whitespace and indentation clean-ups.
6288
6289 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6290
6291         * doublest.c (store_floating): Avoid floatformat_from_doublest()
6292         assertion failure by returning early after a warning.
6293
6294 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
6295
6296         * mips-tdep.c (mips_find_saved_regs): Make static.
6297         (mips_frame_init_saved_regs): New function.
6298         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6299         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6300         (mips_find_saved_regs): Delete declaration.
6301
6302 2002-08-08  Grace Sainsbury  <graces@redhat.com>
6303
6304         * remote.c (remote_wait, remote_async_wait): Change
6305         thread_num from int to ULONGEST.
6306         (unpack_varlen_hex): Change result parameter from
6307         int * to ULONGEST *.
6308
6309 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
6310
6311         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6312         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6313         powerpc*-*-*.
6314         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6315
6316 2002-08-08  Andrew Cagney  <cagney@redhat.com>
6317
6318         * gcore.c (override_derive_stack_segment): Delete variable.
6319         (preempt_derive_stack_segment): Delete function.
6320         (derive_stack_segment): Delete function.
6321         (default_derive_stack_segment): Renamed to derive_stack_segment.
6322         (override_derive_heap_segment): Delete variable.
6323         (preempt_derive_heap_segment): Delete function.
6324         (derive_heap_segment): Delete function.
6325         (default_derive_heap_segment): Rename to derive_heap_segment.
6326
6327 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6328
6329         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6330         * mips-tdep.c (mips_EABI_use_struct_convention, 
6331         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6332         New functions.  (mips_use_struct_convention): Delete.
6333         (mips_gdbarch_init): set use_gdbarch_convention.
6334
6335 2002-08-06  Michael Snyder  <msnyder@redhat.com>
6336
6337         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6338         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
6339         mips_o32_reg_struct_has_addr): New functions.
6340         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6341
6342 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
6343
6344         * regcache.c (pseudo_register): Delete function.
6345         (fetch_register): Delete function.
6346         (store_register): Delete function.
6347         (regcache_raw_read, legacy_read_register_gen): Use
6348         target_fetch_registers instead of fetch_register.
6349         (legacy_write_register_gen, regcache_raw_write): Use
6350         target_store_register instead of store_register.
6351         (write_register_bytes): Ditto.
6352
6353         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6354         (STORE_PSEUDO_REGISTER): Delete.
6355         * gdbarch.h, gdbarch.c: Regenerate.
6356
6357 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
6358
6359         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6360         write dump file binary.
6361
6362 2002-08-05  Michael Snyder  <msnyder@redhat.com>
6363
6364         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
6365         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
6366         (mips_gdbarch_init): Set N32 target to be mips64.
6367
6368 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6369
6370         * frame.c (find_saved_register): Break out of loop once saved
6371         register address is found.  Don't mention sparc in loop comment
6372         anymore.
6373
6374 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
6375
6376         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6377         mips_default_saved_regsize to 8.
6378
6379 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
6380
6381         * gcore.c: Do not include <sys/procfs.h>.
6382         * Makefile.in (gcore.o): Update dependencies.
6383
6384 2002-08-06  Andrew Cagney  <cagney@redhat.com>
6385
6386         * configure.tgt: Make arc-*-* obsolete.
6387         * NEWS: Mention that arc-*-* has been identifed as obsolete.
6388         * MAINTAINERS: Make arc-elf obsolete.
6389         * arc-tdep.c: Make file obsolete.
6390         * config/arc/arc.mt: Ditto.
6391         * config/arc/tm-arc.h: Ditto.
6392
6393 2002-08-05  Theodore A. Roth  <troth@verinet.com>
6394
6395         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6396
6397 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
6398
6399         * mcore-tdep.c (mcore_gdbarch_init): Use
6400         generic_unwind_get_saved_register instead of
6401         generic_get_saved_register.
6402         * v850-tdep.c (v850_gdbarch_init): Ditto.
6403         * frv-tdep.c (frv_gdbarch_init): Ditto.
6404         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6405         * s390-tdep.c (s390_gdbarch_init): Ditto.
6406         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6407         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6408         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6409
6410 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
6411
6412         * objfiles.h: Add missing #include "symfile.h"
6413
6414         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6415
6416 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
6417
6418         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6419         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6420         of FIELD_BITSIZE.
6421
6422 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
6423
6424         * NEWS: Cleanup and nitpick.
6425
6426 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6427
6428         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
6429
6430 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
6431
6432         * Makefile.in (gdbtk-bp.o): Update dependencies.
6433         (gdbtk-register.o): Ditto.
6434         (gdbtk-varobj.o): Ditto.
6435
6436 2002-08-03  Andrew Cagney  <cagney@redhat.com>
6437
6438         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6439         m68hc11_fetch_pseudo_register.
6440         (m68hc11_pseudo_register_write): Replace
6441         m68hc11_store_pseudo_register.
6442         (m68hc11_gdbarch_init): Update.
6443
6444 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
6445
6446         * gdbarch.sh: Include "gdb_string.h".
6447         * gdbarch.c: Regenerate.
6448
6449         * regcache.c: Include "gdb_string.h".
6450         * ax-general.c: Ditto.
6451         * varobj.c: Ditto.
6452         * std-regs.c: Ditto.
6453         * fbsd-proc.c: Ditto.
6454         * thread.c: Ditto.
6455
6456         * Makefile.in (regcache.o): Update dependencies.
6457         (thread.o, gdbarch.o): Ditto.
6458         (ax-general.o, gdbarch.o): Ditto.
6459         (varobj.o, std-regs.o): Ditto.
6460         (fbsd-proc.o): Specify dependencies.
6461
6462 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6463
6464         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6465         regnum.
6466         (regcache_cooked_write): Ditto.
6467
6468 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
6469
6470         * regcache.c (regcache_cooked_read): New function.
6471         (regcache_cooked_write): New function.
6472         (read_register_gen): Rewrite using regcache_cooked_read.
6473         (write_register_gen): Rewrite using regcache_cooked_write.
6474
6475         * regcache.h (regcache_cooked_read, regcache_cooked_write):
6476         Declare.
6477
6478 2002-08-02  Andrew Cagney  <cagney@redhat.com>
6479
6480         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6481         Replace the architecture methods register_read and register_write.
6482         * gdbarch.h, gdbarch.c: Regenerate.
6483         * regcache.c (init_regcache_descr): Update.
6484         (read_register_gen): Update.
6485         (write_register_gen): Update.
6486         (supply_register): Update comment.
6487
6488         * sh-tdep.c (sh_gdbarch_init): Update.
6489         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6490         `regcache' and `gdbarch' parameters.  Make `buffer' a void
6491         pointer.  Update code.
6492         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6493         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
6494         void pointer.  Update code.
6495         (sh64_register_write): Delete.
6496         (sh4_register_read): Delete.
6497         (sh64_register_read): Delete.
6498         (sh4_register_write): Delete.
6499         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6500         void pointer, `to' parameter a void pointer.
6501         (sh_sh64_register_convert_to_raw): Ditto.
6502
6503 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6504
6505         * mips-tdep.c (mips_register_virtual_type): Use architecture
6506         invariant return values.
6507
6508 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6509
6510         * linux-proc.c: Include "gdb_string.h".
6511         * Makefile.in (linux-proc.o): Update dependency list.
6512
6513 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6514
6515         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
6516         comment.
6517
6518 2002-08-01  Grace Sainsbury  <graces@redhat.com>
6519
6520         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6521         to_insert_watchpoint, to_remove_watchpoint,
6522         to_stopped_by_watchpoint, to_stopped_data_address,
6523         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6524         target vecctor. Define their corresponding macros so they call
6525         them.
6526         
6527         * target.c: Add default and debug versions of for
6528         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6529         to_insert_watchpoint, to_remove_watchpoint,
6530         to_stopped_by_watchpoint, to_stopped_data_address,
6531         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6532
6533 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
6534
6535         * mips-tdep.c (mips_register_virtual_type): New function.
6536         (mips_gdbarch_init): Register mips_register_virtual_type()
6537         with gdbarch machinery.
6538         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6539         this file instead of tm-bigmips.h.
6540         (MIPS_REGSIZE): Delete this macro.
6541         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
6542         multiarch version in mips-tdep.c will be found.
6543
6544 2002-08-01  Andrew Cagney  <cagney@redhat.com>
6545
6546         * NEWS: Menion that CHILL has been made obsolete.
6547
6548         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6549         * stabsread.c (read_range_type): Ditto.
6550         * gdbtypes.h: Ditto.
6551         * language.c (binop_type_check): Ditto.
6552         (binop_result_type): Ditto.
6553         (integral_type): Ditto.
6554         (character_type): Ditto.
6555         (string_type): Ditto.
6556         (boolean_type): Ditto.
6557         (structured_type): Ditto.
6558         (lang_bool_type): Ditto.
6559         (binop_type_check): Ditto.
6560         * language.h (_LANG_chill): Ditto.
6561         * dwarfread.c (set_cu_language): Ditto.
6562         * dwarfread.c (CHILL_PRODUCER): Ditto.
6563         * dwarfread.c (handle_producer): Ditto.
6564         * expression.h (enum exp_opcode): Ditto.
6565         * eval.c: Ditto for comments.
6566         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6567         * expprint.c (print_subexp): Ditto.
6568         (print_subexp): Ditto.
6569         * valops.c (value_cast): Ditto.
6570         (search_struct_field): Ditto.
6571         * value.h (COERCE_VARYING_ARRAY): Ditto.
6572         * symfile.c (init_filename_language_table): Ditto.
6573         (add_psymbol_with_dem_name_to_list): Ditto.
6574         * valarith.c (value_binop): Ditto.
6575         (value_neg): Ditto.
6576         * valops.c (value_slice): Ditto.
6577         * symtab.h (union language_specific): Ditto.
6578         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6579         (SYMBOL_DEMANGLED_NAME): Ditto.
6580         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6581         * defs.h (enum language): Ditto.
6582         * symtab.c (got_symtab): Ditto.
6583         * utils.c (fprintf_symbol_filtered): Ditto.
6584
6585         * ch-typeprint.c: Make file obsolete.
6586         * ch-valprint.c: Make file obsolete.
6587         * ch-lang.h: Make file obsolete.
6588         * ch-exp.c: Make file obsolete.
6589         * ch-lang.c: Make file obsolete.
6590
6591         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6592         CHILL_LIB.
6593         (TARGET_FLAGS_TO_PASS): Ditto.
6594         (CHILLFLAGS): Obsolete.
6595         (CHILL): Obsolete.
6596         (CHILL_FOR_TARGET): Obsolete.
6597         (CHILL_LIB): Obsolete.
6598         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6599         ch-valprint.c.
6600         (HFILES_NO_SRCDIR): Remove ch-lang.h.
6601         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6602         ch-lang.o.
6603         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6604         targets.
6605
6606 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
6607
6608         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6609         This does not change anything at the moment, but will be helpful
6610         later when full Ada support is integrated.
6611
6612 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6613
6614         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6615         help message.
6616
6617 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6618
6619         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6620         and save it in a local variable.  Use variable in later test.
6621
6622 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6623
6624         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6625         test.  (Thanks to Daniel Jacobowitz.)
6626         
6627 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6628
6629         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6630         (mips_abi_strings): Add "n64".
6631         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
6632
6633 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6634
6635         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6636         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6637
6638 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
6639
6640         * utils.c (host_pointer_to_address, address_to_host_pointer):
6641         Use gdb_assert() instead of explicit call to internal_error().
6642
6643 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
6644
6645         * Makefile.in (rs6000-nat.o): Update dependencies.
6646
6647         From Nicholas Duffek:
6648         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6649         (aix-thread.o): New rule.
6650         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6651         * config/powerpc/aix432.mh: New file.
6652
6653 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6654
6655         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6656         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6657         (fetch_core_registers, ppc_linux_supply_gregset)
6658         (ppc_linux_supply_fpregset): New functions.
6659         (ppc_linux_regset_core_fns): New.
6660         (_initialize_ppc_linux_tdep): Call add_core_fns.
6661         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6662         and ppc_linux_supply_gregset.
6663         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6664         (supply_fpregset): Call ppc_linux_supply_fpregset.
6665         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6666         corelow.o.
6667         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6668
6669 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
6670
6671         * symtab.c (lookup_symbol): Demangle before lowercasing.
6672
6673 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
6674
6675         * symtab.h: Replace #include "gdb_obstack.h" with opaque
6676         declaration.
6677         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6678         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6679         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6680         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6681         "gdb_string.h".
6682         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6683         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6684         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6685         (avr-tdep.o, mon960-rom.o): Ditto.
6686         (aout_stabs_gnu_h): Define.
6687         (symtab_h): Remove $(gdb_obstack_h).
6688
6689 2002-07-30  Jim Blandy  <jimb@redhat.com>
6690
6691         Patch from David Carlton <carlton@math.stanford.edu>:
6692         * gdbinit.in: Move the `dir' commands that add GDB's own source
6693         directory to the search path to the end, so that the `gdb' source
6694         directory will be searched first.
6695
6696 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6697
6698         * gdb_obstack.h: New file.
6699         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6700         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6701         * objfiles.h: Include "gdb_obstack.h".
6702         * Makefile.in (gdb_obstack_h): Define.
6703         (symtab_h): Add $(gdb_obstack_h).
6704         (objfiles_h): Add $(gdb_obstack_h).
6705         
6706         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6707         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6708         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6709         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6710         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6711         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6712         * symfile.c, coffread.c, c-typeprint.c: Ditto.
6713         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6714
6715         * Makefile.in (bcache.o): Update dependencies.
6716         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6717         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6718         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6719         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6720         (stabsread.o, symfile.o, symmisc.o): Ditto.
6721         (symtab.o, typeprint.o, macroexp.o): Ditto.
6722         (macrotab.o, mdebugread.o): Ditto.
6723         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6724         (coff_ecoff_h, aout_aout64_h): Define.
6725         (aout_stabs_gnu_h, libaout_h): Define.
6726
6727 2002-07-29  Andrew Cagney  <cagney@redhat.com>
6728
6729         * regcache.c (struct regcache_descr): Rename nr_registers to
6730         nr_cooked_registers.  Revise comments describing the structure
6731         member fields.
6732         (init_regcache_descr): Update.
6733         (init_legacy_regcache_descr): Update.
6734         (read_register_gen, write_register_gen): When a cooked register in
6735         the raw register range, directly access the value from the raw
6736         register cache.
6737
6738 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
6739
6740         * z8k-tdep.c: Do not include "obstack.h".
6741         * h8300-tdep.c, h8500-tdep.c: Ditto.
6742         * m68hc11-tdep.c, sh-tdep.c: Ditto.
6743         * valprint.c, v850-tdep.c: Ditto.
6744         * d10v-tdep.c, mn10300-tdep.c: Ditto.
6745         * mn10200-tdep.c: Ditto.
6746
6747         * Makefile.in (z8k-tdep.o): Update dependencies.
6748         (m68hc11-tdep.o, valprint.o): Ditto.
6749         (v850-tdep.o, d10v-tdep.o): Ditto.
6750         (mn10300-tdep.o, sparc-tdep.o): Ditto.
6751         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6752         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6753         (sh_opc_h, gdb_sim_sh_h): Define.
6754         (elf_sh_h, elf_bfd_h): Define.
6755         (opcode_m68hc11_h): Define.
6756         (OPCODES_SRC, OPCODES_DIR): define.
6757         (OPCODES): Use $(OPCODES_DIR).
6758         (gdb_sim_d10v_h): Rename sim_d10v_h.
6759         (gdb_sim_arm_h): Rename sim_arm_h.
6760
6761 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6762
6763         * utils.c (host_pointer_to_address, address_to_host_pointer):
6764         Change internal_error() message to indicate function responsible
6765         for the error.
6766
6767 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6768
6769         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6770         calls to local_hex_string_custom().
6771
6772 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6773
6774         * irix5-nat.c: Move IRIX shared library support from here...
6775         * solib-irix.c: ...to here.  Revised substantially to work with
6776         generic solib framework.
6777
6778         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6779         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6780         * mips-irix-tdep.c: New file.
6781
6782         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6783         (mips-irix-tdep.o, solib-irix.o): New rules.
6784         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6785         solib-irix.o.
6786         * config/mips/irix6.mt (TDEPFILES): Likewise.
6787         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6788
6789 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6790
6791         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6792         disabled (via ``#if 0'') includes.
6793
6794 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6795
6796         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6797         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6798         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6799         Add support for the fpscr register.
6800         * rs6000-nat.c (regmap, fetch_inferior_registers)
6801         (store_inferior_registers, fetch_core_registers): Likewise.
6802
6803 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
6804
6805         * rs6000-nat.c (language.h): Include.
6806         (special_regs): Delete this array.
6807         (regmap): New function.
6808         (fetch_register, store_register):  Use regmap() to map gdb
6809         register numbers to ptrace register numbers.  Also, use
6810         outputs from regmap() to make decisions regarding type of
6811         ptrace() call to make.  In particular, don't compare against
6812         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6813         (fetch_inferior_registers, store_inferior_registers): Where
6814         possible, obtain register numbers from tdep struct.  Don't
6815         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6816         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6817         (LAST_UISA_SP_REGNUM): Delete.
6818         
6819 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
6820
6821         * rs6000-nat.c (ppc-tdep.h): Include.
6822         (fetch_registers, store_register, fetch_core_registers): Don't
6823         access registers[] directly.  Instead, use supply_register() or
6824         regcache_collect() as appropriate.
6825         (find_toc_address): Format hex address with local_hex_string().
6826
6827 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
6828
6829         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6830         bfd/elf32-frv.c.
6831
6832 2002-07-24  Tom Tromey  <tromey@redhat.com>
6833
6834         * jv-exp.y: Marked all strings with _().
6835         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6836         internal_error.
6837         (MethodInvocation, CastExpression, parse_number, yyerror,
6838         java_type_from_name, push_expression_name, yylex): Typo fixes.
6839
6840 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
6841
6842         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6843         (tee_file_flush, tee_file_write, tee_file_fputs)
6844         (tee_file_isatty): New.
6845         * ui-file.h (tee_file_new): Add prototype.
6846
6847 2002-07-24  Aidan Skinner <aidan@velvet.net>
6848
6849         * ada-lang.c: Change k&r style function definitions to prototyped
6850         form.
6851         * ada-typeprint.c: Change k&r style function definitions to prototyped
6852         form.
6853         * ada-valprint.c: Change k&r style function definitions to prototyped
6854         form.
6855         
6856 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6857
6858         * README: Remove reference to remote-bug.
6859         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6860         remote-bug.c.
6861         (m88k-nat.o): Delete rule.
6862         (m88k-tdep.o): Delete rule.
6863         (remote-bug.o): Delete rule.
6864         * MAINTAINERS: Mark as obsolete.
6865         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6866         * m88k-tdep.c: Make file obsolete.
6867         * config/m88k/m88k.mh: Ditto.
6868         * config/m88k/delta88v4.mh: Ditto.
6869         * config/m88k/delta88v4.mt: Ditto.
6870         * config/m88k/delta88.mt: Ditto.
6871         * config/m88k/delta88.mh: Ditto.
6872         * remote-bug.c: Ditto.
6873         * config/m88k/tm-delta88.h: Ditto.
6874         * config/m88k/nm-delta88v4.h: Ditto.
6875         * config/m88k/xm-delta88.h: Ditto.
6876         * config/m88k/xm-dgux.h: Ditto.
6877         * config/m88k/tm-m88k.h: Ditto.
6878         * config/m88k/nm-m88k.h: Ditto.
6879         * config/m88k/tm-delta88v4.h: Ditto.
6880         * m88k-nat.c: Ditto.
6881         * cxux-nat.c: Ditto.
6882         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6883         and m88*-*-* obsolete.
6884         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6885         m88*-*-* obsolete.
6886
6887 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6888
6889         * findvar.c (extract_unsigned_integer): Make `addr' parameter
6890         constant.  Same for local pointer variables.
6891         (extract_signed_integer): Ditto.
6892         * defs.h (extract_unsigned_integer): Update.
6893         (extract_signed_integer): Update.
6894
6895 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6896
6897         * regcache.c (regcache_raw_write): Change buf parameter to a
6898         constant void pointer.
6899         (regcache_raw_read): Change buf parameter to a void pointer.
6900         (legacy_write_register_gen): Change myaddr parameter a constant
6901         void pointer.
6902         (supply_register): Change val parameter to a const void pointer.
6903         * regcache.h (regcache_raw_write): Update declaration.
6904         (regcache_raw_read): Update declaration.
6905         (supply_register): Update declaration.
6906
6907 2002-07-24  Tom Tromey  <tromey@redhat.com>
6908
6909         * defs.h (gdb_readline_wrapper): Declare.
6910         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6911         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6912         * top.c (gdb_readline_wrapper): New function.
6913         (command_line_input): Use it.
6914
6915 2002-07-24  Andrew Cagney  <cagney@redhat.com>
6916
6917         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6918         regcache_read and regcache_write.
6919         (regcache_raw_read_as_address): Replace regcache_read_as_address.
6920         * regcache.c: Update.
6921         * sh-tdep.c (sh64_push_arguments): Update comment.
6922         (sh_pseudo_register_read): Update.
6923         (sh_pseudo_register_write): Update.
6924         (sh4_register_read): Update.
6925         (sh4_register_write): Update.
6926         (sh64_pseudo_register_read): Update.
6927         (sh64_pseudo_register_write): Update.
6928         (sh64_register_read): Update.
6929         (sh64_register_write): Update.
6930         * i386-tdep.c (i386_extract_return_value): Update.
6931         (i386_extract_struct_value_address): Update.
6932         (i386_extract_return_value): Update.
6933         * blockframe.c (generic_read_register_dummy): Update.
6934         (generic_call_dummy_register_unwind): Update
6935         * infrun.c (write_inferior_status_register): Update.
6936
6937 2002-07-23  Jim Blandy  <jimb@redhat.com>
6938
6939         * parser-defs.h (expression_context_pc): Make this extern.
6940         (Thanks to Michael Snyder.)
6941
6942 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
6943
6944         GDB 5.2.1 released from 5.2 branch.
6945         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6946         * README: Update to mention 5.2.1.
6947
6948 2002-07-23  Mark Salter  <msalter@redhat.com>
6949
6950         * remote.c (remote_read_bytes): Fix check for error.
6951
6952 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6953
6954         * aix-thread.c (language.h): Include.
6955         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6956         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6957         Print newlines at end of debug messages.
6958         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6959         (pdc_write_data): Use local_hex_string() instead of %llx formats.
6960
6961 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
6962
6963         * aix-thread.c (ppc-tdep.h): Include.
6964         (special_register_p): New function.
6965         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6966         (store_regs_user_thread): Use register number information from
6967         gdbarch_tdep struct instead of hardcoded offsets relative to
6968         FIRST_UISA_SP_REGNUM.
6969         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
6970         special_register_p() instead of using FPLAST_REGNUM and
6971         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6972         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
6973         will be MQ's register number.
6974
6975 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6976
6977         * aix-thread.c (ops): Rename to aix_thread_ops.
6978         (base_ops): Rename to base_target.
6979         (ops_attach): Rename to aix_thread_attach.
6980         (ops_detach): Rename to aix_thread_detach.
6981         (ops_resume): Rename to aix_thread_detach.
6982         (ops_wait):   Rename to aix_thread_wait.
6983         (ops_kill):   Rename to aix_thread_kill.
6984         (init_ops):   Rename to init_aix_thread_ops.
6985         (ops_fetch_register): Rename to aix_thread_fetch_register.
6986         (ops_store_register): Rename to aix_thread_store_register.
6987         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6988         (ops_thread_alive):   Rename to aix_thread_thread_alive.
6989         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6990         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
6991         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6992         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
6993         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6994         (store_regs_lib):  Rename to store_regs_user_thread.
6995         (store_regs_kern): Rename to store_regs_kernel_thread.
6996
6997 2002-07-22  Michael Snyder  <msnyder@redhat.com>
6998
6999         * aix-thread.c (ops_prepare_to_store): Eliminate.
7000         (init_ops): Don't initialize ops.prepare_to_store.
7001         (store_regs_kern): Pre-fetch register buffers from child, 
7002         because some registers may not be in the cache.  Copy
7003         regs from register cache only if they are cached.
7004         (store_regs_lib): Copy regs from register cache only
7005         if they are cached.
7006         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7007         fill_gprs64): Ditto.
7008
7009 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
7010
7011         * aix-thread.c (gdb_assert.h): Include.
7012         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7013         register sizes (from register cache) match size of buffer holding
7014         register data.
7015         (fill_sprs32): Change parameter types to match those in the ptrace()
7016         buffer.
7017         (store_regs_lib): Likewise, but for 32-bit temporary variables.
7018         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7019
7020 2002-07-22  Michael Snyder  <msnyder@redhat.com>
7021
7022         * aix-thread.c (supply_sprs64): Cosmetic change.
7023         (supply_sprs32): Cosmetic change.
7024         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7025         (fill_sprs64): Use regcache_collect instead of read_register.
7026         (store_regs_lib): Use regcache_collect instead of 
7027         read_register.  Use fill_sprs32 instead of fill_sprs64,
7028         if debugging a 32-bit architecture.
7029         (store_regs_kern): Use fill_gprs64 etc. to pull the values
7030         out of the register cache, instead of passing a pointer into
7031         the register cache directly to ptrace.  Use regcache_collect
7032         insteaad of read_register.
7033         (ops_prepare_to_store): Use target_read_registers instead
7034         of read_register_bytes.
7035
7036 2002-07-20  Aidan Skinner <aidan@velvet.net>
7037
7038         * MAINTAINERS: Add self under write after approval. 
7039                 
7040 2002-07-20  Aidan Skinner <aidan@velvet.net>
7041
7042         * ada-tasks.c: Change k&r style function definitions to prototyped
7043         form.
7044                 
7045 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
7046
7047         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7048         * x86-64-tdep.c: Include "objfiles.h".
7049         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7050         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7051
7052 2002-07-17  Michal Ludvig  <michal@suse.cz>
7053
7054         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7055         (update_context): Initialise cfa variable.
7056
7057 2002-07-17  Michael Snyder  <msnyder@redhat.com>
7058
7059         * aix-thread.c: Shorten some long lines.  
7060         Bring comments into line with code spec.
7061
7062 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7063
7064         * infrun.c: Re-indent using gdb_indent.sh.
7065
7066 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
7067
7068         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7069         Leave the indentation temporarily untouched, to minimize the diffs.
7070
7071 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
7072
7073         * stabsread.c: Make os9k sections of the code obsolete,
7074         for real this time.
7075         * stabsread.h: Make os9k sections of the code obsolete.
7076
7077 2002-07-18  Michal Ludvig <mludvig@suse.cz>
7078
7079         * linux-low.c (regsets_store_inferior_registers): Add free()
7080         at the end of a loop to prevent memory leak.
7081         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7082         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7083         * config/sparc/tm-sp64linux.h: Make the rest of #endif
7084         line a comment.
7085         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7086
7087 2002-07-17  Jim Blandy  <jimb@redhat.com>
7088
7089         * macrocmd.c (info_macro_command): Remove newline from error
7090         message.
7091
7092 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
7093
7094         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7095         (sh_gdbarch_init): Use it for sh-dsp.
7096
7097 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
7098
7099         * dwarf2read.c (read_initial_length): Handle older, non-standard,
7100         64-bit DWARF2 format.
7101
7102 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
7103
7104         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7105         <sys/proc.h> when not available.
7106
7107 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7108
7109         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7110         * stabsread.c: Make os9k sections of the code obsolete.
7111         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7112         * config/i386/i386os9k.mt: Make file obsolete.
7113         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7114         (COMMON_OBS): Remove os9kread.o
7115         (SFILES): Remove os9kread.c.
7116         (os9kread.o, remote-os9k.o): Make target obsolete.
7117         * remote-os9k.c: Make file obsolete.
7118         * os9kread.c: Make file obsolete.
7119         * Makefile.in
7120
7121 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
7122
7123         * NEWS: Mention that the FR30 has been made obsolete.
7124         * fr30-tdep.c: Make file obsolete.
7125         * config/fr30/tm-fr30.h: Ditto.
7126         * config/fr30/fr30.mt: Ditto.
7127         * configure.tgt: Make fr30-*-elf obsolete.
7128         * MAINTAINERS: Make fr30-elf obsolete.
7129
7130 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7131
7132         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7133         found is not inside a section.
7134
7135 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7136
7137         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7138         strerror().
7139         (pdc_realloc): Use xrealloc() instead of realloc().
7140
7141 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7142
7143         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7144         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7145         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7146         macros.
7147
7148 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7149
7150         * aix-thread.c (ptrace_check): Eliminate goto.
7151         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
7152         problem.
7153
7154 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
7155
7156         * aix-thread.c (gdbcmd.h): Include.
7157         (DEBUG, DBG, DBG2, dbg): Eliminate.
7158         (debug_aix_thread): New static global.
7159         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7160         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7161         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7162         invocations to DBG and DBG2 macros to test against
7163         ``debug_aix_thread'' and call fprintf_unfiltered().
7164         (_initialize_aix_thread): Add new command "set debug aix-thread".
7165
7166 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7167
7168         From Gerhard Tonn <TON@de.ibm.com>:
7169         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7170         instead of supply_register.
7171
7172 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
7173
7174         * dwarf2cfi.c: Include "gdb_assert.h".
7175         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7176         non-NULL.
7177         (update_context): Do not use __func__.  Add missing ``break''.
7178         (update_context): Do not use __func__.
7179
7180 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
7181
7182         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7183         and its setting.  Set gdbarch instruction printing functions
7184         directly.  For non-rs6000 case use new function
7185         gdb_print_insn_powerpc.
7186         (gdb_print_insn_powerpc): New function.
7187
7188 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
7189
7190         * NEWS: Mention that the d30v has been marked obsolete.
7191         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7192         * configure.tgt: Mark d30v-*-* as obsolete.
7193         * d30v-tdep.c: Mark file as obsolete.
7194         * config/d30v/d30v.mt: Ditto.
7195         * config/d30v/tm-d30v.h: Ditto.
7196
7197 2002-07-13  Aidan Skinner <aidan@velvet.net>
7198
7199         * ada-tasks.c (add_task_entry): replace calls to
7200         malloc() with xmalloc
7201         * ada-tasks.c (init_task_list): replace calls to free with xfree()
7202         
7203         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7204         ada_finish_decode_line_1, all_sals_for_line
7205         ada_breakpoint_rewrite): replace calls to free() with xfree()
7206                 
7207 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7208
7209         From Nicholas Duffek (with minor changes by Martin Hunt, 
7210         Louis Hamilton, and Kevin Buettner):
7211         * aix-thread.c: New file.
7212
7213 2002-07-12  Petr Sorfa <petrs@caldera.com>
7214
7215         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
7216         complaint for invalid attribute class or form.
7217         (read_func_scope): DW_AT_frame_base
7218         better handling of DW_AT_block*.
7219         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7220         better handling of DW_AT_block*.
7221         (read_common_block): DW_AT_location
7222         better handling of DW_AT_block*.
7223         (read_partial_die): DW_AT_location better handling
7224         of DW_AT_block*.
7225         (new_symbol): DW_AT_external better handling of
7226         DW_AT_block*. Proper initialization of variable
7227         "addr".
7228         (attr_form_is_block): New function that returns true
7229         if the attribute's form is of DW_FORM_block*.
7230
7231 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7232
7233         * valops.c (find_method_list): Remove comment about
7234         removed STATIC_MEMFUNCP argument.
7235         (value_find_oload_method_list): Likewise.
7236
7237 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7238
7239         From Nicholas Duffek:
7240         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7241         target_new_objfile_hook.
7242
7243 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
7244
7245         From Nicholas Duffek:
7246         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7247         csect.
7248
7249 2002-07-12  Andrew Cagney  <cagney@redhat.com>
7250
7251         * MAINTAINERS: Mention --enable-sim-build-warnings.
7252         (m68hc11-elf): Disable sim build warnings.
7253         (m32r-elf): Mark as broken obsolete candidate.
7254         (x86_64-linux-gnu): Mark as buildable with -Werror.
7255         (arm-elf): Change -w to ``,'' which enables warnings but not
7256         -Werror.
7257
7258 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
7259
7260         * bcache.h: Update copyright.
7261         (struct bstring, struct bcache): Move definition to "bcache.c".
7262         Replaced by opaque declaration.
7263         (bcache_xfree): Replace free_bcache.
7264         (bcache_xmalloc, bcache_memory_used): Declare.
7265         
7266         * bcache.c: Update copyright.
7267         (struct bstring, struct bcache): Moved to here from "bcache.h".
7268         Update comments.
7269         (bcache_xmalloc, bcache_memory_used): New functions.
7270         (bcache_xfree): Replace function free_bcache.
7271         
7272         * Makefile.in (objfiles.o): Add $(bcache_h).
7273         (objfiles_h): Remove $(bcache_h).
7274         (symfile.o): Add $(bcache_h).
7275
7276         * symmisc.c: Update copyright.
7277         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7278         (print_objfile_statistics): Use bcache_memory_used.
7279
7280         * symfile.c: Include "bcache.h".
7281         (reread_symbols): Use bcache_xfree.
7282         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7283         (add_psymbol_to_list): Pass psymbol_cache by value.
7284         (add_psymbol_with_dem_name_to_list): Ditto.
7285
7286         * objfiles.h: Update copyright.
7287         (struct bcache): Declare opaque.  Do not include "bcache.h".
7288         (struct objfile): Change psymbol_cache and macro_cache to ``struct
7289         bcache'' pointers.
7290         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7291
7292         * objfiles.c: Include "bcache.h".  Update copyright.
7293         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7294         macro_cache.
7295         (free_objfile): Use bcache_xfree.
7296
7297 2002-07-11  Grace Sainsbury  <graces@redhat.com>
7298
7299         * monitor.c (monitor_fetch_register): Make name a constant.
7300         (monitor_store_register): Same.
7301
7302 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
7303
7304         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7305         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7306         (finish_block) For non-function blocks, hash the symbol table.  For
7307         function blocks, mark the symbol table as unhashed.
7308         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7309         (msymbol_hash_iw): Likewise.
7310         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7311         value.
7312         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7313         (lookup_minimal_symbol): Likewise for both.
7314         * symtab.h (struct block): Add `hashtable' flag.  Comment the
7315         hashtable.
7316         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7317         (ALL_BLOCK_SYMBOLS): Update.
7318         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7319         (struct symbol): Add `hash_next' pointer.
7320         * symtab.c (lookup_block_symbol): Search using the hash table when
7321         possible.
7322         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7323         (search_symbols, find_addr_symbol): Likewise.
7324
7325         * dstread.c (process_dst_block): Clear hashtable bit for new block.
7326         (read_dst_symtab): Likewise.
7327         * jv-lang.c (get_java_class_symtab): Likewise.
7328         * mdebugread.c: Include "gdb_assert.h".
7329         (shrink_block): Assert that the block being modified is not hashed.
7330         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7331         * symmisc.c (free_symtab_block): Walk the hash table when freeing
7332         symbols.
7333         (dump_symtab): Recognize hashed blocks.
7334         * printcmd.c (print_frame_args):  Assert that function blocks do not
7335         have hashed symbol tables.
7336         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7337         (fill_in_ada_prototype, debug_print_block): Likewise.
7338         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
7339
7340 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
7341
7342         * stack.c (print_frame): Use result of frame_address_in_block()
7343         instead of fi->pc when evaluating symbols.
7344         (backtrace_command_1): Ditto.
7345
7346 2002-07-11  Andrew Cagney  <cagney@redhat.com>
7347
7348         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7349         Make static.
7350
7351         * arm-tdep.c (arm_register_name): Make return type constant.
7352
7353 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7354
7355         * win32-nat.c (has_detach_ability): Convert to strict ISO C
7356         prototype.
7357         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7358         * s390-tdep.c (s390_fp_regnum): Ditto.
7359         (s390_read_fp): Ditto.
7360         (s390_pop_frame): Ditto.
7361         (_initialize_s390_tdep): Ditto.
7362         * remote.c (get_remote_state): Ditto.
7363         * procfs.c (mappingflags): Ditto.
7364         * memattr.c (_initialize_mem): Ditto.
7365         * mcore-tdep.c (mcore_pop_frame): Ditto.
7366         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7367         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7368         * language.c (set_case_str): Ditto.
7369         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7370         * frv-tdep.c (new_variant): Ditto.
7371         (frv_stopped_data_address): Ditto.
7372         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7373         (context_alloc): Ditto.
7374         (frame_state_alloc): Ditto.
7375         (unwind_tmp_obstack_init): Ditto.
7376         (unwind_tmp_obstack_free): Ditto.
7377         (cfi_read_fp): Ditto.
7378         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7379         (cris_pop_frame): Ditto.
7380         * c-lang.c (scanning_macro_expansion): Ditto.
7381         (finished_macro_expansion): Ditto.
7382         (c_preprocess_and_parse): Ditto.
7383         * gdbarch.sh: Ditto.
7384         * gdbarch.h, gdbarch.c: Regenerate.
7385         * config/mn10200/tm-mn10200.h: Adjust indentation.
7386         * target.c: Adjust indentation.
7387         * symtab.h: Adjust indentation.
7388         * stabsread.h: Adjust indentation.
7389         * remote-es.c: Adjust indentation.
7390         * os9kread.c: Adjust indentation.
7391
7392 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
7393         
7394         * wince.c (_initialize_wince): Rename _initialize_inftarg.
7395         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7396
7397 2002-07-10  Grace Sainsbury  <graces@redhat.com>
7398         
7399         * NEWS: Mention m68k, mcore multi-arching.  
7400         * MAINTAINERS: Change status of m68k, mcore to reflect
7401         multi-arching.
7402
7403 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
7404
7405         * valops.c (find_overload_match): Free oload_syms.
7406
7407 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
7408
7409         Define HAVE_SYS_PROC_H if sys/proc.h exists
7410         * configure.in: Add check for sys/proc.h
7411         * config.in: Regenerate.
7412         * configure: Regenerate.
7413
7414 2002-07-09  Grace Sainsbury  <graces@redhat.com>
7415
7416         * config/m68k/tm-m68k.h: Remove macros wrapped in 
7417         #if !GDB_MULTI_ARCH. 
7418
7419 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
7420
7421         * config.in, configure: Regenerate.
7422
7423 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
7424
7425         * dwarf2cfi.c: Include "gcore.h".
7426         (execute_stack_op): Fix implementation of the
7427         DW_OP_deref and DW_OP_deref_size operators by letting do their
7428         lookup in the target.
7429
7430 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
7431
7432         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7433         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7434         tdep->sc_sp_offset.
7435
7436 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
7437
7438         Fix PR gdb/595, gdb/602
7439         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7440         Don't call value_cast, just read the vtable pointer; update comments
7441         to match.
7442
7443 2002-07-05  Grace Sainsbury  <graces@redhat.com>
7444
7445         * config/mcore/tm-mcore.h: Remove file.
7446         * config/mcore/mcore.mt: Remove definition of TM_FILE
7447         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7448
7449 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
7450
7451         * i386bsd-tdep.c: Include "gdb_string.h".
7452
7453 2002-07-04  Grace Sainsbury  <graces@redhat.com>
7454
7455         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7456         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7457         mcore-tdep.
7458         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7459         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7460         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7461         (RETVAL_REGNUM): Move macros from tm-mcore.h
7462         (mcore_reg_struct_has_addr): New function.
7463         (mcore_gdbarch_init): Added initializations for the macros removed
7464         from tm-mcore.h.
7465
7466 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7467
7468         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7469         traditonal string branding within the ELF header.
7470
7471 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7472
7473         * symtab.c (remove_params): New function.
7474         (make_symbol_overload_list): Use it instead of cplus_demangle.
7475         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
7476
7477 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7478
7479         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7480
7481         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7482         New variables.
7483         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7484         and tdep->sigtramp_end.
7485         * i386obsd-nat.c: New file.
7486         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7487
7488         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7489         Don't call get_current_frame().
7490
7491 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
7492
7493         * i386-nat.c (child_post_startup_inferior): New function
7494         calling i386_cleanup_dregs if
7495         I386_USE_GENERIC_WATCHPOINTS is defined.
7496         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7497         conditional to acknowledge that i386-nat.c has its
7498         own child_post_startup_inferior function.
7499
7500 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
7501
7502         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7503         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7504         instead of MAX_REGISTER_RAW_SIZE.
7505         (i386_extract_return_value, i386_extract_struct_value_address):
7506         Convert to use regcache.
7507         (i386_gdbarch_init): Set max_register_raw_size and
7508         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7509         Set extract_return_value and extract_struct_value_address instead
7510         of their deprecated variants.
7511
7512         Convert i386 target to generic dummy frames.
7513         * i386-tdep.c: Include "symfile.h".
7514         (i386_frameless_signal_p): Consider a function to be frameless if
7515         the pc points at the first instruction of the function.
7516         (i386_frame_chain): Handle (generic) call dummies.
7517         (i386_frame_saved_pc): Likewise.
7518         (i386_frame_init_saved_regs): Remove code dealing with call
7519         dummies on the stack.
7520         (i386_push_dummy_frame): Removed.
7521         (i386_call_dummy_words): Removed.
7522         (i386_fix_call_dummy): Removed.
7523         (i386_push_return_address): New function.
7524         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
7525         parameter, and don't call get_current_frame.
7526         (i386_pop_frame): New function.
7527         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7528         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7529         entry_point_address, set call_dummy_breakpoint_offset to 0, set
7530         call_dummy_length to 0, set call_dummy_words to NULL, set
7531         sizeof_call_dummy_words to 0, set fix_call_dummy to
7532         generic_fix_call_dummy, set pc_in_call_dummy to
7533         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7534         generic_push_dummy_frame, set push_return_address to
7535         i386_push_return_address and set frame_chain_valid to
7536         generic_file_frame_chain_valid.
7537
7538 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7539
7540         * gdbarch.sh (struct regcache): Add opaque declaration.
7541         (EXTRACT_RETURN_VALUE): New architecture method.
7542         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7543         * gdbarch.h, gdbarch.c: Regenerate.
7544         * arch-utils.c (legacy_extract_return_value): New function.
7545         * arch-utils.h (legacy_extract_return_value): Declare.
7546         * values.c (value_being_returned): Re-enable code handling
7547         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
7548         deprecated_grub_regcache_for_registers call to block handling
7549         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7550         (EXTRACT_RETURN_VALUE): Do not define.
7551
7552 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7553
7554         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7555         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7556         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7557         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7558         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7559         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7560         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7561         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7562         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7563         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7564         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7565         argument so the function fits the prototype in the architecture
7566         vector.
7567         (mcore_pop_frame): Remove argument so the function fits the
7568         prototype. Use get_current_frame instead of the argument.
7569         (mcore_push_arguments): Change type of struct_return so the
7570         function can be used in the architecture vector.
7571         (mcore_store_struct_return): Add.
7572         (mcore_frame_init_saved_regs): Add.
7573         (mcore_gdbarch_init): Add function calls to replace the macros
7574         removed from tm-mcore.h
7575
7576 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7577
7578         * infcmd.c (print_return_value): Remove compatibility code calling
7579         deprecated_grub_regcache_for_registers.
7580         
7581         * values.c: Include "regcache.h".
7582         (value_being_returned): Update.  Use
7583         deprecated_grub_regcache_for_registers to extract the register
7584         buffer address.  
7585         * value.h (value_being_returned): Change ``retbuf'' parameter to a
7586         ``struct regcache''.
7587         * Makefile.in (values.o): Add dependency on $(regcache_h).
7588
7589         * inferior.h (run_stack_dummy): Change type of second parameter to
7590         a ``struct regcache''.
7591         * valops.c (hand_function_call): Change type of retbuf to ``struct
7592         regcache''.  Allocate using regcache_xmalloc, clean using
7593         make_cleanup_regcache_xfree.
7594         * infcmd.c (run_stack_dummy): Update.  Use
7595         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7596
7597         * regcache.c (do_regcache_xfree): New function.
7598         (make_cleanup_regcache_xfree): New function.
7599         * regcache.h (make_cleanup_regcache_xfree): Declare.
7600
7601 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7602
7603         * event-top.c (command_line_handler): Don't read past
7604         beginning of buffer.
7605
7606 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7607         
7608         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
7609         struct frame_id. 
7610         (varobj_create): Store frame_id for root.
7611         (varobj_gen_name): Use xasprintf.
7612         (varobj_update): Save and restore frame using get_frame_id() and
7613         frame_find_by_id().
7614         (create_child): Use xasprintf.
7615         (new_root_variable): Initialize frame_id.
7616         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7617         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7618         to prevent memory leak.
7619
7620 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
7621
7622         * valops.c (hand_function_call): Move declaration of retbuf to
7623         start of function, allocate using malloc, add a cleanup but before
7624         the inf_status cleanup, cleanup the buffer.  Rename local variable
7625         old_chain to inf_status_cleanup.
7626
7627 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
7628
7629         * top.c (execute_command): Use cmd_func() and cmd_func_p().
7630
7631         * cli/cli-decode.c (cmd_func_p): New function.
7632         (cmd_func): New function.
7633
7634         * command.h: Add cmd_func() and cmd_func_p().   
7635         
7636 2002-07-03  Grace Sainsbury  <graces@redhat.com>
7637
7638         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7639         (REGISTER_SIZE): Remove.
7640         (MAX_REGISTER_RAW_SIZE): Remove.
7641         (REGISTER_VIRTUAL_TYPE): Remove.
7642         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7643         (REGISTER_NAME): Remove.
7644         (USE_GENERIC_DUMMY_FRAMES): Remove.
7645         (CALL_DUMMY): Remove.
7646         (CALL_DUMMY_START_OFFSET): Remove.
7647         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7648         (CALL_DUMMY_LOCATION): Remove.
7649         (FIX_CALL_DUMMY): Remove.
7650         (CALL_DUMMY_ADDRESS): Remove.
7651         (SIZEOF_CALL_DUMMY_WORDS): Remove.
7652         (SAVE_DUMMY_FRAME_TOS): Remove.
7653         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7654         (mcore_register_virtual_type): New function.
7655         (mcore_register_byte): New function.
7656         (mcore_register_size): New function.
7657         (mcore_register_name): New function.
7658         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7659         macros removed from tm-mcore.h.
7660         (mcore_dump_tdep): Add.
7661         (_initialize_mcore_tdep): Add gdbarch_register call.
7662
7663 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
7664
7665         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7666         frameless_look_for_prologue, such that we actually call this
7667         function.
7668
7669 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7670
7671         * frame.h (frame_address_in_block): New function.
7672
7673         * blockframe.c (frame_address_in_block): New function extracted
7674         from get_frame_block().
7675         (get_frame_block): Use frame_address_in_block().
7676         (block_innermost_frame): Use frame_address_in_block() to match
7677         the frame pc address against the block boundaries rather than
7678         the frame pc directly. This prevents a failure when a frame pc
7679         is actually a return-address pointing immediately after the end
7680         of the given block. 
7681
7682 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7683
7684         * MAINTAINERS: Add self under write after approval. 
7685
7686 2002-07-02  Grace Sainsbury  <graces@redhat.com>
7687
7688         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7689         used in architecture vector. The default is
7690         m68k_local_breakpoint_from_pc.
7691         (m68k_local_breakpoint_from_pc): Add.
7692         (enum): Add register numbers from tm-m68k.h.
7693         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7694         vector.  
7695         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7696         GDB_MULTI_ARCH_PARTIAL.
7697         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7698         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7699         m68k-tdep.c.
7700         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7701         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7702         to enum in m68k-tdep.c
7703
7704 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
7705
7706         * solib-osf.c (open_map): Compute the list of shared libraries
7707         loaded by the inferior, rather than the list of libraries loaded
7708         by GDB itself.  Otherwise, GDB ends up reading the symbols from
7709         the wrong shared libraries...
7710
7711 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
7712
7713         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7714         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7715         macros.
7716         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7717         Remove functions.
7718         (FRAMELESS_SIGNAL): Remove function.
7719         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7720         i386_linux_saved_pc_after_call): Removed.
7721         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7722         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
7723         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7724
7725         * i386-tdep.c (i386_frameless_signal_p): New function.
7726         (i386_frame_chain): Deal with frameless signals.
7727         (i386_sigtramp_saved_sp): New function.
7728         (i386_frame_saved_pc): Deal with frameless signals.
7729         (i386_saved_pc_after_call): Make sure the correct value is
7730         returned just after entry into a sigtramp.
7731         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7732         i386fbsd4_sc_sp_offset): New variables.
7733         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7734         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
7735         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7736         similiar to what we already did for sc_pc_offset.
7737         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7738         tdep->sc_sp_offset.
7739
7740         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7741
7742 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
7743
7744         * config/i386/tm-x86-64linux.h: New.
7745         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7746         definitions.
7747         * config/i386/nm-x86-64.h: Rename to ...
7748         * config/i386/nm-x86-64linux.h: ... this one.
7749         * config/i386/x86-64linux.mh: Reflect the above change.
7750         
7751 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7752
7753         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7754         with sigcontext_addr.  Add sc_sp_offset.
7755         (i386bsd_sigtramp_saved_pc): Remove prototype.
7756         (i386bsd_sicontext_addr): Add prototype.
7757         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7758         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7759         (i386_svr4_sigtramp_saved_pc): Removed.
7760         (i386_svr4_sigcontext_addr): New function.
7761         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7762         Initialize tdep->sigcontext_addr instead.  Initialize
7763         tdep->sc_pc_offset and tdep->sc_sp_offset.
7764         (i386_gdbarch_init): Likewise.
7765         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7766         any more.
7767         (i386bsd_sigtramp_saved_pc): Remove function.
7768         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7769         Initialize tdep->sigcontext_addr instead.  Initialize
7770         tdep->sc_pc_offset.
7771         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7772         of tdep->sigtramp_saved_pc.
7773         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7774         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
7775         instead.
7776
7777         * i386-tdep.c (i386_frameless_function_invocation,
7778         i386_frame_num_args, i386_frame_init_saved_regs,
7779         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7780         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7781         i386_extract_return_value, i386_store_return_value,
7782         i386_extract_struct_value_address, i386_register_virtual_type,
7783         i386_register_convertible, i386_register_convert_to_virtual,
7784         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7785         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7786         static.
7787
7788 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
7789
7790         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7791
7792         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7793         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7794         this macro.  Include "value.h".
7795
7796 2002-06-30  Aidan Skinner  <aidan@velvet.net>
7797
7798         * ada-exp.tab.c: remove as it's a generated file
7799         * ada-lex.c: remove as it's a generated file
7800                 
7801 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
7802
7803         * config/i386/tm-i386.h (struct frame_info, struct
7804         frame_saved_regs, struct value, struct type): Remove forward
7805         declarations.
7806
7807         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7808         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7809         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7810         (FILL_FPXREGSET): Define.
7811
7812         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7813
7814         * configure.tgt (i[3456]86-*-openbsd*): Fold into
7815         i[3456]86-*-netbsd* case.
7816         * config/i386/tm-obsd.h: Removed.
7817         * config/i386/obsd.mt: Removed.
7818         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7819         core-aout.o.
7820         (MH_CFLAGS): Add -DYYDEBUG=0.
7821
7822         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7823         i386nbsd_sc_pc_offset on OpenBSD too.
7824
7825         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7826         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7827         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7828         define.
7829         * i386bsd-tdep.c: Include "arch-utils.h".
7830         (i386bsd_aout_in_solib_call_trampoline): New function.
7831         (i386bsd_init_abi): Set in_solib_call_trampoline to
7832         i386bsd_aout_in_solib_call_trampoline.
7833         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7834         in_solib_call_trampoline to generic_in_solib_call_trampoline.
7835
7836 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7837
7838         * macrotab.h: Do not include "obstack.h" or "bcache.h".
7839         (struct obstack, struct bcache): Add opaque declarations.
7840         * Makefile.in (macrotab_h): Update
7841
7842 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7843
7844         * blockframe.c (generic_find_dummy_frame): Change return type to
7845         ``struct regcache''.
7846         (struct dummy_frame): Replace field ``registers'' with regcache, a
7847         struct regcache object.
7848         (generic_find_dummy_frame): Update.
7849         (generic_push_dummy_frame): Update.  Use regcache_xfree,
7850         regcache_xmalloc and regcache_cpy.
7851         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
7852         regcache_xfree.
7853         (deprecated_generic_find_dummy_frame): Update.
7854         (generic_read_register_dummy): Update.  Use
7855         regcache_read_as_address.
7856         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
7857         (generic_get_saved_register): Update.  Use regcache_read.
7858
7859 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7860
7861         * Makefile.in (objfiles_h): Add $(bcache_h).
7862         * objfiles.h: Include "bcache.h".
7863
7864         * Makefile.in (symtab_h): Remove $(bcache_h).
7865         * symtab.h: Do not include "bcache.h".
7866
7867 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7868
7869         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7870         generic_func_frame_chain_valid.
7871
7872 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
7873
7874         * config/i386/nm-fbsd.h: Include <sys/param.h>.
7875         * config/i386/tm-fbsd.h: Likewise.
7876
7877 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
7878
7879         * rs6000-tdep.c (rs6000_gdbarch_init): Use
7880         generic_unwind_get_saved_register.
7881
7882 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7883
7884         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7885         * regcache.c (supply_register): Add missing argument to
7886         register_buffer call.
7887
7888 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
7889
7890         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
7891         Solaris /bin/grep does not not like it.  From Peter Schauer.
7892
7893 2002-06-26  Tom Tromey  <tromey@redhat.com>
7894
7895         * command.h (add_setshow_cmd): Declare.
7896         (add_setshow_cmd_full): Declare.
7897         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
7898         returns void.  Use add_setshow_cmd_full.
7899         (add_setshow_cmd_full): New function.
7900         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7901         (add_setshow_boolean_cmd): Likewise.
7902
7903 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7904
7905         * config/vax/tm-vax.h: Protect from multiple inclusion.
7906         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7907         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7908         * config/vax/tm-vaxbsd.h: ...here.  New file.
7909         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7910
7911 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7912
7913         * config/vax/tm-vax.h (BREAKPOINT): Remove.
7914         (BELIEVE_PCC_PROMOTION): Remove.
7915         (AP_REGNUM): Move to...
7916         * config/vax/nm-vax.h: ...here.
7917         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7918         (vax_breakpoint_from_pc): New function.
7919         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7920         and gdbarch_believe_pcc_promotion.
7921
7922 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
7923
7924         * Makefile.in (vax_tdep_h): Define.  
7925         (vax-tdep.o): Use $(vax_tdep_h).
7926         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7927         (vax_dump_tdep): New function. 
7928         (_initialize_vax_tdep): Register vax_dump_tdep.
7929         * vax-tdep.h: Include osabi.h.     
7930         (struct gdbarch_tdep): New. 
7931
7932 2002-06-26  Andrew Cagney  <cagney@redhat.com>
7933
7934         * frame.h (deprecated_generic_find_dummy_frame): Rename
7935         generic_find_dummy_frame.
7936         * blockframe.c (generic_find_dummy_frame): Make static.
7937         (deprecated_generic_find_dummy_frame): New function.
7938         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7939         generic_find_dummy_frame with deprecated_find_dummy_frame.
7940         (sh64_nofp_frame_init_saved_regs): Ditto.
7941         (sh_fp_frame_init_saved_regs): Ditto.
7942         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7943         (s390_frame_chain): Ditto.
7944         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7945
7946 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7947
7948         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7949         gdbarch vector are at the top.
7950         (NUM_REGS): Remove.
7951         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7952         (FRAME_ARGS_ADDRESS): Remove.
7953         (FRAME_LOCALS_ADDRESS): Remove.
7954         (FRAME_NUM_ARGS): Remove.
7955         (FRAME_ARGS_SKIP): Remove.  
7956         * m68k-tdep.c (enum): Add eumeration of special register numbers.
7957         (m68k_gdbarch_init): Add gdbarch initializations for macros
7958         undefined in tm-m68k.h
7959
7960 2002-06-26  Grace Sainsbury  <graces@redhat.com>
7961
7962         * monitor.h: Add the function regname to monitor_ops
7963         structure. This way NUM_REGS does not have to be a constant.
7964         * monitor.c (monitor_fetch_register): Added support for regname
7965         function. The function is called if the array regnames is NULL.
7966         (monitor_store_register): Same.
7967         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7968         regnames array.
7969         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7970         cpu32bug_cmds.regname to point to new function.
7971         * abug-rom.c (abug_regname): Same as above.
7972         (init_abug_cmds): Same.
7973         * dbug-rom.c (dbug_regname): Same as above.
7974         (init_dbug_cmds): Same.
7975         * remote-est.c (est_regname): Same. 
7976         (init_est_cmds): Same.
7977         * rom68k-rom.c (rom68k_regname): Same. 
7978         (init_rom68k_cmds): Same.
7979
7980 2002-06-25  Tom Tromey  <tromey@redhat.com>
7981
7982         * breakpoint.c (delete_command): Don't repeat `delete' commands.
7983
7984 2002-06-25  Andrew Cagney  <cagney@redhat.com>
7985
7986         * infrun.c (stop_registers): Change variable's type to ``struct
7987         regcache'''.
7988         (xmalloc_inferior_status): Delete function.
7989         (free_inferior_status): Delete function.
7990         (normal_stop): Use regcache_cpy.
7991         (struct inferior_status): Change type of fields ``stop_registers''
7992         and ``registers'' to ``struct regcache''.
7993         (write_inferior_status_register): Use regcache_write.
7994         (save_inferior_status): Instead of calling
7995         xmalloc_inferior_status, allocate the inf_status buffer directly.
7996         Use regcache_dup_no_passthrough and regcache_dup to save the
7997         buffers.
7998         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7999         Replace the stop_registers regcache instead of overriding it.  Use
8000         regcache_xfree.  Instead of calling free_inferior_status, xfree
8001         the buffer directly.
8002         (discard_inferior_status): Use regcache_xfree.  Instead of calling
8003         free_inferior_status, xfree the buffer directly.
8004         (build_infrun): Use regcache_xmalloc.
8005         (_initialize_infrun): Delete redundant call to build_infrun.
8006
8007         * Makefile.in (infcmd.o): Add $(regcache_h).
8008
8009         * infcmd.c: Include "regcache.h".
8010         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8011         obtain the address of `stop_registers' register buffer.
8012         (print_return_value): Ditto.
8013
8014         * inferior.h (struct regcache): Add opaque declaration.
8015         (stop_registers): Change variable's declared type to ``struct
8016         regcache''.
8017
8018 2002-06-24  Tom Tromey  <tromey@redhat.com>
8019
8020         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8021         * target.c (initialize_targets): Fixed typo in
8022         trust-readonly-sections `show' documentation.
8023
8024         * main.c: Marked all strings with _().
8025
8026 2002-06-24  Don Howard  <dhoward@redhat.com>
8027
8028         * memattr.c (create_mem_region): Treat hi == 0 as a special case
8029         that means max CORE_ADDR+1.
8030         (lookup_mem_region): Ditto.
8031         (mem_info_command): Ditto.
8032
8033 2002-06-24  Grace Sainsbury  <graces@redhat.com>
8034
8035         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8036         (REGISTER_BYTES_OK): Remove.
8037         (REGISTER_BYTES): Remove.
8038         (STORE_STRUCT_RETURN): Remove.
8039         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8040         (STORE_RETURN_VALUE): Remove.
8041         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8042         (FRAME_CHAIN): Remove.
8043         (FRAMELESS_FUNCTION_INVOCATION): Remove.
8044         (FRAME_SAVED_PC): Remove.  
8045         * m68k-tdep.c (m68k_register_bytes_ok):Add.
8046         (m68k_store_struct_return): Add.
8047         (m68k_deprecated_extract_return_value): Add.
8048         (m68k_deprecated_extract_struct_value_address): Add.
8049         (m68k_store_return_value): Add.
8050         (m68k_frame_chain): Add.
8051         (m68k_frameless_function_invocation): Add.
8052         (m68k_frame_saved_pc): Add.
8053         (m68k_gdbarch_init): added set_gdbarch calls for new 
8054         functions and deleted macros.
8055
8056 2002-06-23  Tom Tromey  <tromey@redhat.com>
8057
8058         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8059         (ALLDEPFILES): Likewise.
8060         (udiheaders): Removed.
8061         (udip2soc.o): Likewise.
8062         (udi2go32.o): Likewise.
8063         (udr.o): Likewise.
8064         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8065
8066 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
8067
8068         * infrun.c (_initialize_infrun): Delete unnecessary call to
8069         build_infrun.
8070
8071         * regcache.h: Update comments describing the regcache_cpy family
8072         of functions.
8073         (regcache_save, regcache_restore): Delete declaration.
8074         (regcache_save_no_passthrough): Delete declaration.
8075         (regcache_restore_no_passthrough): Delete declaration.
8076         * regcache.c (regcache_save): Delete function.
8077         (regcache_save_no_passthrough): Delete function.
8078         (regcache_restore): Delete function.
8079         (regcache_restore_no_passthrough): Delete function.
8080
8081 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
8082
8083         * config/m68k/tm-m68k.h: Fix typo.
8084         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8085         (m68k_frame_init_saved_regs): Declare.
8086
8087 2002-06-21  Jim Blandy  <jimb@redhat.com>
8088
8089         Remove some vestiges of Harris 88k support.
8090         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8091         register numbering quirk.
8092         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8093         odd symbols occurring in Harris 88k ELF targets.
8094
8095 2002-06-21  Tom Tromey  <tromey@redhat.com>
8096
8097         * gdb_locale.h: New file.
8098         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8099         (defs_h): Added gdb_locale.h.
8100         * configure, config.in: Rebuilt.
8101         * configure.in (PACKAGE): Define.
8102         * defs.h: Include gdb_locale.h.
8103         * main.c (captured_main): Call setlocale, bindtextdomain,
8104         textdomain.
8105
8106 2002-06-21  Dave Brolley  <brolley@redhat.com>
8107
8108         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8109         * config/frv/frv.mt: New file.
8110         * config/frv/tm-frv.h: New file.
8111         * configure.tgt: Support frv-*-*.
8112         * Makefile.in (frv-tdep.o): New target.
8113         * frv-tdep.c: New file.
8114         * NEWS: Mention frv.
8115
8116 2002-06-21  Dave Brolley  <brolley@redhat.com>
8117
8118         * MAINTAINERS: Add self to "Write After Approval" list.
8119
8120 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8121
8122         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8123         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8124         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8125         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8126         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8127
8128         * m68k-tdep.c: Include arch-utils.h
8129         (m68k_register_raw_size): Add.
8130         (m68k_register_virtual_size): Add.
8131         (m68k_register_virtual_type): Add.
8132         (m68k_register_name): Add.
8133         (m68k_stack_align): Add.
8134         (m68k_register_byte): Add.
8135         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8136         tm-m68k.h.
8137
8138 2002-06-21  Grace Sainsbury  <graces@redhat.com>
8139
8140         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8141         m68k_find_saved_regs.
8142         (m68k_pop_frame): Removed saved_regs structure, and replaced
8143         references to it with frame->saved_regs.
8144         (m68k_gdbarch_init): Added function calls to initialize the
8145         gdbarch structure.
8146         (m68k_fix_call_dummy): Add. 
8147         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8148         (CALL_DUMMY): Remove.
8149         (CALL_DUMMY_LENGTH): Remove.
8150         (CALL_DUMMY_START_OFFSET): Remove.
8151         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8152         (FIX_CALL_DUMMY): Remove.
8153         (PUSH_DUMMY_FRAME): Remove.
8154         (POP_FRAME): Remove.
8155
8156 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8157
8158         * parse.c (parse_fprintf): New function used to avoid calls to
8159         fprintf in bison parser generated debug code.
8160         * parser-defs.h: Declaration of new parse_fprintf function.
8161         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8162         Set YYDEBUG to 1 by default.
8163         Set YYFPRINTF as parse_fprintf.
8164
8165 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
8166
8167         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
8168         encoding anymore.
8169         (pointer_encoding, enum ptr_encoding): New.
8170         (execute_cfa_program): Take care about pointer encoding.        
8171         (dwarf2_build_frame_info): Only call parse_frame_info for 
8172         .debug_frame and .eh_frame.
8173         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8174         fixed augmentation handling, added relative addressing, 
8175         ignore duplicate FDEs. Added comments.
8176         * dwarf2cfi.c: Reindented.
8177         
8178 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
8179
8180         * event-top.c (command_handler): Don't use space_at_cmd_start
8181         unless there is sbrk() on the host. Assign time and space data
8182         to union fields of the appropriate length.
8183
8184 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
8185
8186         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
8187         x86_64_register_name. Return type changed to 'const char *'.
8188         (x86_64_register_name2nr): Rename to x86_64_register_number.
8189         (x86_64_gdbarch_init): Update to reflect the change.
8190         * x86-64-tdep.h: Ditto.
8191         * x86-64-linux-nat.c (x86_64_fxsave_offset)
8192         (supply_fpregset): Ditto.
8193
8194 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8195
8196         * regcache.h: Update copyright.
8197         (struct regcache, struct gdbarch): Add opaque declarations.
8198         (current_regcache): Declare global variable.
8199         (regcache_read, regcache_write): Add gdbarch parameter.
8200         (regcache_save, regcache_save_no_passthrough)
8201         (regcache_restore, regcache_restore_no_passthrough)
8202         (regcache_dup, regcache_dup_no_passthrough)
8203         (regcache_cpy, regcache_cpy_no_passthrough)
8204         (deprecated_grub_regcache_for_registers)
8205         (deprecated_grub_regcache_for_register_valid)
8206         (regcache_valid_p): Add function declarations.
8207         
8208         * regcache.c: Update copyright.
8209         (regcache_descr_handle): New global variable.
8210         (struct regcache_descr): Define.
8211         (init_legacy_regcache_descr, init_regcache_descr): New functions.
8212         (regcache_descr, xfree_regcache_descr): New functions.
8213         (struct regcache): Define.
8214         (regcache_xmalloc, regcache_xfree): New functions.
8215         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8216         (regcache_dup, regcache_dup_no_passthrough): New functions.
8217         (regcache_valid_p, regcache_read_as_address): New functions.
8218         (deprecated_grub_regcache_for_registers): New function.
8219         (deprecated_grub_regcache_for_register_valid): New function.
8220         (current_regcache): New global variable.
8221         (register_buffer): Add regcache parameter.  Update calls.
8222         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
8223         (read_register_gen, write_register_gen): Update register_buffer
8224         call.  Test for legacy_p instead of gdbarch_register_read_p or
8225         gdbarch_register_write_p.
8226         (regcache_collect): Update register_buffer call.
8227         (build_regcache): Rewrite.  Use deprecated grub functions.
8228         (regcache_save, regcache_save_no_passthrough): New functions.
8229         (regcache_restore, regcache_restore_no_passthrough): New
8230         functions.
8231         (_initialize_regcache): Create the regcache_data_handle. Swap
8232         current_regcache global variable.
8233         
8234         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8235         parameter to regcache_read and regcache_write calls.
8236         (sh4_register_read): Ditto.
8237         (sh64_pseudo_register_read): Ditto.
8238         (sh64_register_read): Ditto.
8239         (sh_pseudo_register_write): Ditto.
8240         (sh4_register_write): Ditto.
8241         (sh64_pseudo_register_write): Ditto.
8242         (sh64_register_write): Ditto.
8243
8244         * defs.h (XCALLOC): Define.
8245
8246 2002-06-19  Grace Sainsbury  <graces@redhat.com>
8247
8248         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8249         * m68k-tdep.c (m68k_gdbarch_init): Added.
8250         (m68k_dump_tdep): Added.
8251
8252 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8253
8254         * ada-lang.c (fill_in_ada_prototype): Update comment.
8255
8256 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
8257
8258         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
8259         MIPS_ABI_LAST.
8260         (mips_abi_string, mips_abi_strings): New.
8261         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8262         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
8263         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
8264         O32 if no ABI is found.
8265         (mips_dump_tdep): Use mips_abi_strings.
8266         (mips_abi_update): New function.
8267         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
8268         ``set mips abi'' and ``show mips abi''.  Check the size of
8269         mips_abi_strings.
8270
8271 2002-06-19  Andrew Cagney  <cagney@redhat.com>
8272
8273         * i386-linux-tdep.c (i386_linux_register_name): Make return type
8274         constant.
8275
8276 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
8277
8278         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
8279         current frame using only the first stack size adjustment. All
8280         subsequent size adjustments are not considered to be part of
8281         the "static" part of the current frame.
8282         Compute the address of the saved registers relative to the
8283         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8284         in use in this frame.
8285
8286 2002-06-18  Don Howard  <dhoward@redhat.com>
8287  
8288         * valops.c (value_ind): Use value_at_lazy() when dereferencing
8289         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
8290         suggesting this solution.
8291
8292 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
8293
8294         * config/romp/xm-rtbsd.h: Delete file.
8295         * config/romp/rtbsd.mh: Delete file.
8296
8297 2002-06-18  Keith Seitz  <keiths@redhat.com>
8298
8299         * breakpoint.c (condition_command): Post breakpoint_modify
8300         when a condition is added to an existing breakpoint.
8301         (commands_command): Likewise for commands.
8302         (set_ignore_count): Likewise for ignore counts.
8303         If no tty, do not simply return, still need to send event
8304         notification.
8305         (ignore_command): Only print a newline if the command came
8306         from a tty.
8307         Don't call breakpoints_changed, since this is now properly
8308         handled by set_ignore_count.
8309
8310 2002-06-18  Andrew Cagney  <cagney@redhat.com>
8311
8312         * MAINTAINERS: Note that cris-elf target can be compiled with
8313         -Werror.
8314         * cris-tdep.c (cris_register_name): Make return type constant.
8315         (cris_breakpoint_from_pc): Ditto.
8316
8317 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
8318
8319         * frame.h (struct frame_info): Change type of context to 
8320         'struct context'.
8321
8322 2002-06-17  Andrew Cagney  <cagney@redhat.com>
8323
8324         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8325         pointer.
8326         * gdbarch.h, gdbarch.c: Regenerate.
8327         * config/mips/tm-mips.h (mips_register_name): Update.
8328         * i386-tdep.h (i386_register_name): Update.
8329         * mips-tdep.c (mips_register_name): Update
8330         * alpha-tdep.c (alpha_register_name): Update.
8331         * arch-utils.c (legacy_register_name): Update.
8332         * arch-utils.h (legacy_register_name): Update.
8333         * avr-tdep.c (avr_register_name): Update.
8334         * ia64-tdep.c (ia64_register_name): Update.
8335         * i386-tdep.c (i386_register_name): Update.
8336         * sparc-tdep.c (sparc32_register_name): Update.
8337         (sparc64_register_name): Update.
8338         (sparclite_register_name): Update.
8339         (sparclet_register_name): Update.
8340         * sh-tdep.c (sh_generic_register_name): Update.
8341         (sh_sh_register_name): Update.
8342         (sh_sh3_register_name): Update.
8343         (sh_sh3e_register_name): Update.
8344         (sh_sh_dsp_register_name): Update.
8345         (sh_sh3_dsp_register_name): Update.
8346         (sh_sh4_register_name): Update.
8347         (sh_sh64_register_name): Update.
8348         * s390-tdep.c (s390_register_name): Update.
8349         * rs6000-tdep.c (rs6000_register_name): Update.
8350         * ns32k-tdep.c (ns32k_register_name_32082): Update.
8351         (ns32k_register_name_32382): Update.
8352         * d10v-tdep.c (d10v_ts2_register_name): Update.
8353         (d10v_ts3_register_name): Update.
8354         * xstormy16-tdep.c (xstormy16_register_name): Update.
8355         * vax-tdep.c (vax_register_name): Update.
8356         * v850-tdep.c (v850_register_name): Update.
8357         * m68hc11-tdep.c (m68hc11_register_name): Update.
8358         * mn10300-tdep.c (mn10300_generic_register_name): Update.
8359         (am33_register_name): Update.
8360
8361 2002-06-17  Grace Sainsbury  <graces@redhat.com>
8362
8363         * m68k-tdep.c: Reindented.
8364
8365 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
8366
8367         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8368         list of predefined types.
8369
8370 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
8371
8372         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8373         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8374         REGISTER_CONVERT_TO_RAW): Remove defines.
8375         (i386_register_virtual_type, i386_register_convertible,
8376         i386_register_convert_to_virtual, i386_register_convert_to_raw):
8377         Remove prototypes.
8378         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8379         macros mentioned above.
8380
8381         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8382         (i386lynx_saved_pc_after_call): Remove prototype.
8383         * i386ly-tdep.c: Include "i386-tdep.h".
8384         (i386lynx_saved_pc_after_call): Make static.  Use
8385         read_memory_nobpt instead of read_memory.  Use
8386         read_memory_unsigned_integer instead of read_memory_integer.
8387         (i386lynx_init_abi): New function.
8388         (i386lynx_coff_osabi_sniffer): New function.
8389         (_initialize_i386bsd_tdep): New function.
8390
8391         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8392         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8393         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8394         (i386_fix_call_dummy): Remove prototype.
8395         * i386-tdep.c (i386_call_dummy_words): New variable.
8396         (i386_gdbarch_init): Adjust for removal of the
8397         macros mentioned above.
8398
8399 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8400
8401         * command.h (add_setshow_auto_boolean_cmd): Replace
8402         add_set_auto_boolean_cmd.
8403         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8404         add_set_auto_boolean_cmd.
8405         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8406         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8407         mask-address'' command.
8408         (show_mask_address): Add cmd parameter.
8409         * remote.c (add_packet_config_cmd): Update.  Change type of
8410         set_func and show_func to cmd_sfunc_ftype.
8411         (_initialize_remote): Update `set remote Z-packet'
8412         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8413         (show_remote_protocol_e_packet_cmd): Ditto.
8414         (show_remote_protocol_E_packet_cmd): Ditto.
8415         (show_remote_protocol_P_packet_cmd): Ditto.
8416         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8417         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8418         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8419         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8420         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8421         (show_remote_protocol_Z_packet_cmd): Ditto.
8422         (show_remote_protocol_binary_download_cmd): Ditto.
8423         (show_remote_cmd): Pass NULL to all of above.
8424
8425 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8426
8427         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8428         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8429         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8430         POP_FRAME): Remove defines.
8431         (i386_push_arguments, i386_store_struct_return,
8432         i386_extract_return_value, i386_store_return_value,
8433         i386_extract_struct_value_address, i386_push_dummy_frame,
8434         i386_pop_frame): Renove prototypes.
8435         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8436         macros mentioned above.
8437
8438 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8439
8440         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8441         add_set_boolean_cmd.
8442         (add_setshow_cmd): New function.
8443         * command.h (add_setshow_boolean_cmd): Replace
8444         add_set_boolean_cmd.
8445         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8446         and ``set rdiromatzero''.
8447         * maint.c (_initialize_maint_cmds): Update commented out code.
8448         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8449         * target.c (initialize_targets): Update `set
8450         trust-readonly-sections'.
8451         * remote.c (_initialize_remote): Update `set remotebreak'.
8452
8453 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8454
8455         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8456         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8457         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8458         fit into multi-arch framework.
8459         (i386_breakpoint_from_pc): New function.
8460         (i386_gdbarch_init): Adjust for removal of the macros mentioned
8461         above.
8462
8463         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8464         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8465         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8466         (i386_frameless_function_invocation, i386_frame_num_args,
8467         i386_frame_init_saved_regs): Remove prototypes.
8468         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8469         macros mentioned above.
8470
8471 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8472
8473         * cli/cli-decode.c (set_cmd_cfunc): Update.
8474         (set_cmd_sfunc): Update.
8475         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8476         (set_cmd_sfunc, set_cmd_cfunc): Update.
8477         * cli/cli-decode.h: Update.
8478
8479 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8480
8481         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8482         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8483
8484 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
8485
8486         * defs.h (auto_boolean): Declare enum.
8487         * command.h (cmd_auto_boolean): Delete enum.
8488         * mips-tdep.c (mask_address_var): Update.
8489         (mips_mask_address_p): Update.
8490         (show_mask_address): Update.
8491         * remote.c (struct packet_config): Update.
8492         (update_packet_config): Update.
8493         (show_packet_config_cmd): Update.
8494         (packet_ok): Update.
8495         (add_packet_config_cmd): Update.
8496         (_initialize_remote): 
8497         * command.h: Update.
8498         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8499         (do_setshow_command): Update.
8500         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8501         * cli/cli-decode.h: Update.
8502
8503 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8504
8505         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8506         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8507         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8508         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8509         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8510         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8511
8512         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8513         list of DJGPP COFF targets.
8514
8515         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8516         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8517         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8518         (FP0_REGNUM): Remove define.
8519         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8520         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8521         (i386_register_virtual_size): Remove protoype.
8522         * i386-tdep.c (i386_register_virtual_size): Removed.
8523         (i386_extract_return_value, i386_store_return_value): Use
8524         FP0_REGNUM instead of NUM_FREGS to determine whether the
8525         floating-point registers are available.
8526         (i386_gdbarch_init): Tweak FIXME about FPU registers.
8527         Adjust for removal of macros mentioned above.
8528
8529 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8530
8531         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
8532         comments.
8533         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8534         Remove prototypes.
8535         (supply_gregset, fill_gregset): Remove use of register keyword and
8536         remove declaration for regmap.  Use I386_NUM_GREGS instead of
8537         NUM_REGS and NUM_FREGS.
8538         (FPREGSET_FSAVE_OFFSET): Remove.
8539         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8540         NUM_FREGS to determine whether the floating-point registers are
8541         available.
8542
8543         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8544         gnu_store_registers): Replace usage of NUM_GREGS with
8545         I386_NUM_GREGS.
8546
8547         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8548         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8549         usage of NUM_GREGS with I386_NUM_GREGS.
8550
8551         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8552
8553         * i386bsd-nat.c: Include "i386-tdep.h".
8554         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8555         I386_NUM_GREGS.
8556
8557         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8558         and associated comment.  They no longer make any sense, since we
8559         don't use this file anymore on Linux.
8560
8561         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8562         * i386-tdep.c (i386_register_offset, i386_register_size): Use
8563         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8564         elements in these arrays.
8565         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8566         MAX_NUM_REGS.
8567
8568 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
8569
8570         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8571         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8572
8573 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8574
8575         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8576         EXTRACT_RETURN_VALUE.
8577         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8578         EXTRACT_STRUCT_VALUE_ADDRESS.
8579         * gdbarch.h, gdbarch.c: Regenerate.
8580         
8581         * values.c (value_being_returned): Handle
8582         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8583         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8584
8585         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
8586         * arm-tdep.c (arm_gdbarch_init): Update.
8587         * avr-tdep.c (avr_gdbarch_init): Update.
8588         * cris-tdep.c (cris_gdbarch_init): Update.
8589         * d10v-tdep.c (d10v_gdbarch_init): Update.
8590         * ia64-tdep.c (ia64_gdbarch_init): Update.
8591         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8592         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8593         * s390-tdep.c (s390_gdbarch_init): Update.
8594         * sh-tdep.c (sh_gdbarch_init): Update.
8595         * s390-tdep.c (s390_gdbarch_init): Update.
8596         * sparc-tdep.c (sparc_gdbarch_init): Update.
8597         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8598         * v850-tdep.c (v850_gdbarch_init): Update.
8599         * vax-tdep.c (vax_gdbarch_init): Update.
8600         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8601         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8602
8603         * config/arc/tm-arc.h: Update.
8604         * config/d30v/tm-d30v.h: Update.
8605         * config/fr30/tm-fr30.h: Update.
8606         * config/h8300/tm-h8300.h: Update.
8607         * config/h8500/tm-h8500.h: Update.
8608         * config/i386/tm-i386.h: Update.
8609         * config/i386/tm-ptx.h: Update.
8610         * config/i386/tm-symmetry.h: Update.
8611         * config/i960/tm-i960.h: Update.
8612         * config/m32r/tm-m32r.h: Update.
8613         * config/m68k/tm-delta68.h: Update.
8614         * config/m68k/tm-linux.h: Update.
8615         * config/m68k/tm-m68k.h: Update.
8616         * config/m88k/tm-m88k.h: Update.
8617         * config/mcore/tm-mcore.h: Update.
8618         * config/mips/tm-mips.h: Update.
8619         * config/mn10200/tm-mn10200.h: Update.
8620         * config/pa/tm-hppa.h: Update.
8621         * config/pa/tm-hppa64.h: Update.
8622         * config/sparc/tm-sp64.h: Update.
8623         * config/sparc/tm-sparc.h: Update.
8624         * config/sparc/tm-sparclet.h: Update.
8625         * config/z8k/tm-z8k.h: Update.
8626
8627 2002-06-14  Andrew Cagney  <cagney@redhat.com>
8628
8629         * Makefile.in (i386_linux_tdep_h): Define.
8630         (i386_tdep_h, i387_tdep_h): Define.
8631         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8632         $(i386_tdep_h) and $(i387_tdep_h).
8633         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8634
8635 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
8636
8637         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8638         Already covered by the default.
8639
8640         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8641         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
8642         (i386_gdbarch_init): Initialize long_double_format and long_double
8643         bit.
8644
8645         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8646         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
8647         Move these to ...
8648         * config/i386/i386sol2.mh: ... here.
8649         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8650         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8651         (SIGCONTEXT_PC_OFFSET): Remove define.
8652         (IN_SIGTRAMP): Remove define.
8653         * i386-sol2-tdep.c: New file.
8654         
8655         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8656         * config/i386/tm-i386nw.h: Removed.
8657
8658         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8659         USE_STRUCT_CONVENTION): Remove defines.
8660         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8661         (get_longjmp_target): Remove prototype.
8662         (IN_SIGTRAMP): Remove define.
8663         (i386bsd_in_sigtramp): Remove prototype.
8664         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8665         function.  Update comment accordingly
8666         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8667         (FRAME_SAVED_PC): Remove define.
8668         (i386bsd_frame_saved_pc): Remove prototype.
8669         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8670         GET_LONGJMP_TARGET): Remove defines.
8671         (get_longjmp_target): Remove prototype.
8672         (IN_SIGTRAMP): Remove define.
8673         (i386bsd_in_sigtramp): Remove prototype.
8674         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8675         function.  Update comment accordingly
8676         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8677         (FRAME_SAVED_PC): Remove define.
8678         (i386bsd_frame_saved_pc): Remove prototype.
8679         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8680         Remove prototype.
8681         (USE_STRUCT_CONVENTION): Remove prototype.
8682         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8683         declaration.
8684         (_initialize_i386bsd_nat): Revise logic to determine some
8685         constants at compile time when compiling a native GDB.  Warn if
8686         things don't match up with what we expect.
8687         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8688         Remove variables.
8689         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
8690         to use date stored in `struct gdbarch_tdep'.
8691         (i386bsd_sigcontext_offset): Remove varaible.
8692         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
8693         stored in `struct gdbarch_tdep'.
8694         (i386bsd_frame_saved_pc): Make static.
8695         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8696         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8697         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8698         i386fbsd4_sc_pc_offset): New variables.
8699         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8700         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8701         functions.
8702         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8703         functions.
8704         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8705         Modify the value of i386fbsd_sigtramp_start and
8706         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8707         i386fbsd_sigtramp_end.
8708         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8709         function.
8710
8711         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8712         define to i386-linux-tdep.h.
8713         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8714         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8715         defines.
8716         (i386_linux_register_name, i386_linux_register_byte,
8717         i386_linux_register_raw_size): Remove prototypes.
8718         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8719         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8720         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8721         TARGET_WRITE_PC): Remove defines.
8722         (i386_linux_in_sigtramp, i386_linux_frame_chain,
8723         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8724         i386_linux_write_pc): Remove prototypes.
8725         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8726         (get_longjmp_target): Remove prototype.
8727         * i386-linux-tdep.h: New file.
8728         * i386-linux-nat.c: Include "i386-linux-tdep.h".
8729         * i386-linux-tdep.c: Include "i386-tdep.h" and
8730         "i386-linux-tdep.h".
8731         (i386_linux_register_name, i386_linux_register_byte,
8732         i386_linux_register_raw_size, i386_linux_in_sigtramp,
8733         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8734         Make static.
8735         (i386_linux_init_abi): New function.
8736         (_initialize_i386_linux_tdep): New function.
8737
8738         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8739         (i386_saved_pc_after_call): Remove prototype.
8740         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8741         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8742         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8743         (i386_register_name, i386_stab_reg_to_regnum,
8744         i386_dwarf_reg_to_regnum): Remove prototypes.
8745         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8746         SIZEOF_SSE_REGS): Remove defines.
8747         (REGISTER_BYTES): Remove define.
8748         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8749         (i386_register_byte, i386_register_raw_size): Remove prototypes.
8750         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8751         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8752         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8753         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8754         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8755         (get_longjmp_target): Remove prototype.
8756         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8757         (sigtramp_saved_pc): Remove define.
8758         (i386v4_sigtramp_saved_pc): Remove prototype.
8759         * config/i386/tm-go32.h (FRAME_CHAIN,
8760         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8761         (i386go32_frame_saved_pc): Remove prototype.
8762         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8763         (get_longjmp_target): Remove prototype.
8764         * i386-tdep.h: Include "osabi.h".
8765         (enum i386_abi): Removed.
8766         (enum struct_return): New enum.
8767         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8768         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8769         sc_pc_offset members.
8770         (i386_gdbarch_register_os_abi): Remove prototype.
8771         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8772         I386_SSE_NUM_REGS): New defines.
8773         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8774         I386_SSE_SIZEOF_REGS): New defines.
8775         (i386_register_name, i386_register_byte, i386_register_raw_size):
8776         New prototypes.
8777         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8778         (i386bsd_sigtramp_saved_pc): New prototype.
8779         * i386-tdep.c: Don't include "elf-bfd.h".
8780         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8781         i386_frame_chain, i386_saved_pc_after_call): Make static.
8782         (i386_frame_saved_pc): Rewrite to call architecture dependent
8783         function to deal with signal handlers.  Make static.
8784         (i386go32_frame_saved_pc): Removed.
8785         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8786         Removed.
8787         (i386_get_longjmp_target): New function.
8788         (default_struct_convention, pcc_struct_convention,
8789         reg_struct_convention, valid_conventions, struct_convention): New
8790         variables.
8791         (i386_use_struct_convention): New function.
8792         (i386v4_sigtramp_saved_pc): Renamed to
8793         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
8794         (i386_pc_in_sigtramp): New function.
8795         (i386_abi_names): Removed.
8796         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8797         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8798         Removed.
8799         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8800         i386_gdbarch_register_os_abi): Removed.
8801         (struct i386_abi_handler): Removed.
8802         (i386_abi_handler_list): Removed.
8803         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8804         functions.
8805         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8806         i386_nw_init_abi): New functions.
8807         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8808         Use set_gdbarch_xxx() calls instead of relying on macros for a
8809         number of calls.
8810         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8811         (_initialize_i386_tdep): Add new 'struct-convcention' command.
8812         Register the various architecture variants defined in this file.
8813
8814 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
8815
8816         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8817         (struct main_type): Remove arg_types member.  Update comments for
8818         struct field.
8819         (TYPE_ARG_TYPES): Remove.
8820         (TYPE_FN_FIELD_ARGS): Update.
8821         (smash_to_method_type): Update prototype.
8822
8823         * c-typeprint.c (cp_type_print_method_args): Take method type
8824         instead of argument list.  Use new argument layout.  Simplify.
8825         (c_type_print_args): Use new argument layout.  Simplify.
8826         (c_type_print_base): Update call to cp_type_print_method_args.
8827         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8828         argument; use die->type instead.  Update call to
8829         smash_to_method_type.
8830         (read_structure_scope): Update call to dwarf2_add_member_fn.
8831         * gdbtypes.c (allocate_stub_method): Update comment.
8832         (smash_to_method_type): Take new NARGS and VARARGS arguments.
8833         Use new argument layout.
8834         (check_stub_method): Use new argument layout.  Don't count
8835         void as an argument.
8836         (print_arg_types): Update comments.  Use new argument layout.
8837         (recursive_dump_type): Don't print arg_types member.
8838         * hpread.c (hpread_read_struct_type): Use new argument layout.
8839         (fixup_class_method_type): Likewise.
8840         (hpread_type_lookup): Likewise.
8841         * stabsread.c (read_type): Update calls to read_args and
8842         smash_to_method_type.
8843         (read_args): Use new argument layout.  Simplify.
8844         * valops.c (typecmp): Use new argument layout.  Update parameters
8845         and comments.  Simplify.
8846         (hand_function_call): Use new argument layout.
8847         (search_struct_method): Update call to typecmp.
8848         (find_overload_match): Use new argument layout.
8849
8850 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8851
8852         * NEWS: Mention multithreaded debug support for gdbserver.
8853
8854 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8855
8856         * MAINTAINERS: Mention NEWS.
8857
8858 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
8859
8860         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8861         (struct mips_objfile_private, compare_pdr_entries): New.
8862         (non_heuristic_proc_desc): Read the ".pdr" section if it
8863         is present.
8864
8865 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8866
8867         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8868         (arm_debug): New static variable.
8869         (_initialize_arm_tdep): Add ``set debug arm'' command.
8870
8871 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
8872
8873         * Makefile.in (sim_arm_h): Define.
8874         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8875         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8876         (arm_register_sim_regno): New function, map an internal REGNUM
8877         onto a simulator register number.
8878         (arm_gdbarch_init): Set register_sim_regno.
8879
8880 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
8881
8882         * MAINTAINERS: Add self.
8883
8884 2002-06-11  Jim Blandy  <jimb@redhat.com>
8885
8886         * source.c (source_info): Mention whether the symtab has
8887         information about preprocessor macros.
8888
8889         Call the command `info macro', not `show macro'.
8890         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8891         Fix error message.
8892         (_initialize_macrocmd): Register `info_macro_command' in
8893         `infolist', not `showlist'.
8894
8895 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
8896
8897         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8898         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8899         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8900         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8901         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
8902         unconditionally.
8903         (set_mipsfpu_single_command, set_mipsfpu_double_command)
8904         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8905         (_initialize_mips_tdep): Remove dead code.
8906         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8907         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8908         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8909         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8910         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8911         MIPS_LAST_FP_ARG_REGNUM): Remove.
8912
8913 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8914
8915         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8916         (unwind_tmp_obstack_free, parse_frame_info)
8917         (update_context, cfi_read_fp, cfi_write_fp)
8918         (cfi_frame_chain, cfi_init_extra_frame_info)
8919         (cfi_virtual_frame_pointer): Use the above function.
8920         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8921
8922 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
8923
8924         * v850-tdep.c (v850_type_is_scalar): New function.
8925         (v850_use_struct_convention): Match current gcc implementation
8926         as close as possible.
8927         (v850_push_arguments): Fix stack_offset handling.  Don't write
8928         struct_addr into register.  This is done by v850_store_struct_return.
8929         (v850_extract_return_value): Care for structs.
8930         (v850_store_return_value): Ditto.
8931         (v850_store_struct_return): Actually write address.
8932
8933 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
8934
8935         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8936         without debug information too.
8937
8938 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8939
8940         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8941         Make multi-arch pure.
8942         * gdbarch.h, gdbarch.c: Re-generate.
8943         * arm-tdep.c (arm_print_float_info): Update.
8944         * arch-utils.h (default_print_float_info): Update.
8945         * arch-utils.c (default_print_float_info): Update.
8946         * infcmd.c (float_info): Update call.
8947
8948 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8949
8950         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8951         the front of the initialize list.
8952
8953 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
8954
8955         * infrun.c (struct inferior_status): Replace fields
8956         selected_frame_address and selected_level with field
8957         selected_frame_id.
8958         (save_inferior_status): Update.  Use get_frame_id.
8959         (struct restore_selected_frame_args): Delete.
8960         (restore_selected_frame): Update.  Use frame_find_by_id.
8961         (restore_inferior_status): Update.
8962
8963         * breakpoint.h (struct breakpoint): Change type of
8964         watchpoint_frame to frame_id.
8965         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
8966         call to get_current_frame.
8967         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
8968         get_current_frame.
8969         (watchpoint_check): Use frame_find_by_id.
8970
8971         * frame.h (record_selected_frame): Delete declaration.
8972         * stack.c (record_selected_frame): Delete function.
8973         
8974         * frame.h (struct frame_id): Define.
8975         (get_frame_id): Declare.
8976         (frame_find_by_id): Declare.
8977         * frame.c (frame_find_by_id): New function.
8978         (get_frame_id): New function.
8979
8980 2002-06-10  Andrey Volkov <avolkov@transas.com>
8981
8982         * ser-e7kpc.c: Fix duplicated define and call of 
8983         _initialize_ser_e7000pc
8984             
8985 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8986
8987         * signals/signals.c (target_signal_from_host): Fix #ifdef
8988         SIGRTMIN case.
8989         (do_target_signal_to_host): Likewise.
8990
8991 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
8992
8993         * mips-tdep.c (mips_find_abi_section): New function.
8994         (mips_gdbarch_init): Call it.
8995
8996 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
8997
8998         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8999         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
9000         after Andrew's 2002-06-08 gdbarch change.
9001
9002 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9003
9004         * i386-linux-nat.c (suppy_gregset): Don't supply
9005         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9006         register cache.
9007         (fill_gregset): Don't fetch it under the same circumstances.
9008
9009 2002-06-09  Andrew Cagney  <cagney@redhat.com>
9010
9011         * Makefile.in (callback_h): Define.
9012         (remote_sim_h): Update path to remote-sim.h.
9013         (remote-rdp.o): Add $(callback_h).
9014         (remote-sim.o): Use $(callback_h).
9015         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9016         * remote-rdp.c: Include "gdb/callback.h".
9017
9018 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
9019
9020         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9021         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9022
9023 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9024
9025         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9026         * rdi-share/serpardr.c: Ditto.
9027         * rdi-share/unixcomm.c: Ditto.
9028         * rdi-share/serdrv.c: Ditto.
9029         * rdi-share/hostchan.h: Ditto.
9030         * rdi-share/hostchan.c: Ditto.
9031         * rdi-share/host.h: Ditto.
9032         * rdi-share/devsw.c: Ditto.
9033
9034         * objfiles.h: Change type of obj_private to void pointer.
9035         * pa64solib.c: Update copyright.  Don't include "assert.h", use
9036         strcmp instead of STREQ, use LONGEST, do not use PTR
9037         * somsolib.c: Ditto.
9038
9039         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9040         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9041         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9042
9043 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9044
9045         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9046         (default_get_saved_register): Delete function.
9047         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9048         generic_unwind_get_saved_register.
9049         * gdbarch.h, gdbarch.c: Re-generate.
9050         
9051 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9052
9053         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9054         generic_func_frame_chain_valid.
9055         * gdbarch.h, gdbarch.c: Re-generate.
9056         * blockframe.c (generic_func_frame_chain_valid): Only check
9057         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
9058         passing FP to PC_IN_CALL_DUMMY.
9059         Fix PR gdb/360.
9060
9061 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
9062
9063         * gdbarch.sh (struct gdbarch_data): Add field init_p.
9064         (register_gdbarch_data): Initialize init_p.
9065         (gdbarch_data): Initialize data pointer using the init function.
9066         (init_gdbarch_data): Delete function.
9067         (gdbarch_update_p): Update.
9068         (initialize_non_multiarch): Update.
9069         (struct gdbarch): Add field initialized_p.
9070         * gdbarch.h, gdbarch.c: Re-generate.
9071
9072 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
9073
9074         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9075         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9076         better do the things actually here.
9077         * x86-64-tdep.c (x86_64_register_name2nr): New.
9078         (x86_64_register_name): Renamed to x86_64_register_nr2name.
9079         (x86_64_gdbarch_init): Respect the above change.
9080         * x86-64-tdep.h (x86_64_register_name2nr)
9081         (x86_64_register_nr2name): Add prototypes.
9082         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9083
9084 2002-06-06  Michael Snyder  <msnyder@redhat.com>
9085
9086         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9087         Delete extra braces and re-indent.
9088         (d10v_store_return_value): Char return values
9089         must be shifted over by one byte in R0.
9090         (d10v_extract_return_value): Delete extra braces, re-indent.
9091
9092 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9093
9094         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9095         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9096         (d10v_integer_to_address): Rewrite.
9097         (d10v_frame_init_saved_regs): When reading fp and sp registers use
9098         the d10v specific functions which take care of converting to the
9099         correct space.
9100
9101 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
9102
9103         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9104         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9105
9106 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9107
9108         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9109         includes.
9110         * config/tm-linux.h: Ditto.
9111         * config/alpha/tm-alphalinux.h: Ditto.
9112         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9113         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9114         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9115         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9116         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9117         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9118         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9119         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9120         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9121         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9122         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9123         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9124         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9125         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9126         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9127         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9128         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9129         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9130         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9131         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9132         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9133         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9134         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9135         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9136         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9137         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9138         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9139         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9140         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9141         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9142         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9143         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9144         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9145         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9146         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9147         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9148         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9149
9150 2002-05-04  Aidan Skinner <aidan@velvet.net>
9151
9152         * ada-exp.tab.c: New file
9153         * ada-exp.y: New file
9154         * ada-lang.c: New file
9155         * ada-lang.h: New file
9156         * ada-lex.c: New file
9157         * ada-lex.l: New file
9158         * ada-tasks.c: New file
9159         * ada-typeprint.c: New file
9160         * ada-valprint.c: New file
9161         
9162 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9163
9164         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9165         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9166
9167 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
9168
9169         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9170         insetead of ppc-linux-tdep.o.
9171         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9172         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9173
9174 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
9175
9176         2002-05-07 Christian Groessler <chris@groessler.org>
9177         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9178         bit register contents for little endian hosts.
9179
9180 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9181
9182         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9183         any maintainer.
9184
9185 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9186
9187         * gdbarch.h: Regenerate.
9188
9189 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9190
9191         * MAINTAINERS: Add everyone to write-after-approval list.
9192
9193 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
9194
9195         * stack.c (frame_info): Use frame_register_unwind instead of
9196         saved_regs.  Mention when the SP is on the stack or in a register.
9197
9198         * frame.h (frame_register_unwind_ftype): Define.  Document.
9199         (struct frame_info): Add field register_unwind and
9200         register_unwind_cache.
9201         (frame_register_unwind): Declare.
9202         (generic_unwind_get_saved_register): Declare.
9203
9204         * frame.c (frame_register_unwind): New function.
9205         (generic_unwind_get_saved_register): New function.
9206
9207         * blockframe.c (generic_call_dummy_register_unwind): New function.
9208         (frame_saved_regs_register_unwind): New function.
9209         (set_unwind_by_pc): New function.
9210         (create_new_frame): New function.
9211         (get_prev_frame): New function.
9212
9213 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
9214
9215         * a29k-share/: Delete directory.
9216         * remote-vx29k.c: Delete file.
9217
9218 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9219
9220         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9221         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9222
9223 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9224
9225         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9226         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9227         (sparc64nbsd-nat.o)
9228         (sparcnbsd-nat.o)
9229         (sparcnbsd-tdep.o): New dependency lists.
9230         * NEWS: Note new UltraSPARC NetBSD native configuration.
9231         * configure.host (sparc64-*-netbsd*): New host.
9232         * configure.tgt (sparc-*-netbsdelf*)
9233         (sparc-*-netbsd*): Set gdb_target to nbsd.
9234         (sparc64-*-netbsd*): New target.
9235         * sparc64nbsd-nat.c: New file.
9236         * sparcnbsd-nat.c: New file.
9237         * sparcnbsd-tdep.c: New file.
9238         * sparcnbsd-tdep.h: New file.
9239         * config/sparc/nbsd.mt: New file.
9240         * config/sparc/nbsd64.mh: New file.
9241         * config/sparc/nbsd64.mt: New file.
9242         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9243         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9244         (HOST_IPC): Remove.
9245         * config/sparc/nbsdaout.mt: Remove.
9246         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9247         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
9248         (HOST_IPC): Remove.
9249         * config/sparc/nbsdelf.mt: Remove.
9250         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
9251         sparc-nat.c compatiblity defines.
9252         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
9253         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9254         * config/sparc/tm-nbsd64.h: New file.
9255         * config/sparc/tm-nbsdaout.h: Remove.
9256         * config/sparc/xm-nbsd.h: Remove.
9257
9258 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9259
9260         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9261         * sparc-tdep.c: Include osabi.h.
9262         (gdbarch_tdep): Add osabi member.
9263         (_initialize_sparc_tdep): Use gdbarch_register.
9264         (sparc_gdbarch_init): Use generic OS ABI framework.
9265         (sparc_dump_tdep): New function.
9266
9267 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
9268
9269         * corefile.c (do_captured_read_memory_integer): Return non-zero
9270         result.
9271         (safe_read_memory_integer): Copy result of memory read when
9272         status is non-zero.  Also, add comments.
9273
9274 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
9275
9276         * Makefile.in (ppc_tdep_h): Define.
9277         (ppc-linux-nat.o)
9278         (ppc-linux-tdep.o)
9279         (rs6000-tdep.o): Use $(ppc_tdep_h).
9280         (ppc-sysv-tdep.o)
9281         (ppcnbsd-nat.o)
9282         (ppcnbsd-tdep.o): New dependency lists.
9283         * ppc-tdep.h: Use generic OS ABI framework.
9284         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9285         (ppc_linux_init_abi): New functions.
9286         (ppc_sysv_abi_broken_use_struct_convention)
9287         (ppc_sysv_abi_use_struct_convention)
9288         (ppc_sysv_abi_push_arguments): Move to...
9289         * ppc-sysv-tdep.c: ...here.
9290         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9291         * rs6000-tdep.c (process_note_abi_tag_sections)
9292         (get_elfosabi): Remove.
9293         (rs6000_gdbarch_init): Use generic OS ABI framework.
9294         (rs6000_dump_tdep): New function.
9295         (_initialize_rs6000_tdep): Use gdbarch_register.
9296         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9297         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9298         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9299         of ppc-linux-tdep.o.
9300         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9301         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9302         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9303         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9304         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9305         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9306
9307 2002-05-29  Jim Blandy  <jimb@redhat.com>
9308
9309         * macroscope.c (default_macro_scope): Put `void' in empty argument
9310         list.
9311
9312 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
9313
9314         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9315         * arch-utils.c: Include "sim-regno.h".
9316         * gdbarch.sh: Don't include "sim-regno.h".
9317         * gdbarch.h, gdbarch.c: Regenerate.
9318         * sim-regno.h (legacy_register_sim_regno): Move declaration from
9319         here.
9320         * arch-utils.h (legacy_register_sim_regno): To here.
9321         * remote-sim.c (legacy_register_sim_regno): Move function from
9322         here.
9323         * arch-utils.c (legacy_register_sim_regno): To here.
9324
9325 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9326
9327         * sim-regno.h: New file.
9328         * Makefile.in (sim_regno_h): Define.
9329         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9330         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9331         (legacy_register_sim_regno): New function.
9332         (one2one_register_sim_regno): New function.
9333         (gdbsim_fetch_register): Rewrite.
9334         (gdbsim_store_register): Only store a register when
9335         REGISTER_SIM_REGNO is valid.
9336         * d10v-tdep.c: Include "sim-regno.h".
9337         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9338         (d10v_ts3_register_sim_regno): Ditto.
9339         * gdbarch.sh: Include "sim-regno.h".
9340         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9341         * gdbarch.h, gdbarch.c: Regenerate.
9342         * arch-utils.h (default_register_sim_regno): Delete declaration.
9343         * arch-utils.c (default_register_sim_regno): Delete function.
9344
9345 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9346
9347         * ppcnbsd-nat.c: Rewrite.
9348         * ppcnbsd-tdep.c: New file.
9349         * ppcnbsd-tdep.h: New file.
9350         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9351         solib.o, and solib-svr4.o.
9352         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9353         nbsd-tdep.o, and corelow.o.
9354
9355 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
9356
9357         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9358         `tr' and `sed'.  Mention that `broken' targets are not expected to
9359         build.
9360
9361 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
9362
9363         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9364         Let PC point right after the prologue before looking up symbols.
9365         
9366 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
9367
9368         * i386-tdep.c (i386_register_virtual_type): Return 
9369         builtin_type_vec128i for SSE registers.
9370
9371         * gdbtypes.h (builtin_type_vec128i): Declare.
9372
9373         * gdbtypes.c (build_builtin_type_vec128i): New function.
9374         (builtin_type_v2_double, builtin_type_v4_int64): New types.
9375         (builtin_type_vec128i): New type for SSE2 128-bit registers.
9376         (build_gdbtypes): Initialize new builtin vector types.
9377         (_initialize_gdbtypes): Register new vector types with gdbarch.
9378
9379 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9380
9381         * MAINTAINERS: ns32k is not longer an obsolete candidate,
9382         since it has been multi-arch'd.
9383         * NEWS: Note that ns32k-*-* is now partial multi-arch.
9384         Move Alpha and VAX multi-arch news entries to same section
9385         as other multi-arch news.
9386
9387 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9388
9389         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9390         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
9391         static.  Rename some register numbers to put them in ns32k-tdep
9392         private namespace.
9393         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9394         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9395         functions.
9396         (_initialize_ns32k_tdep): Use gdbarch_register.
9397         * ns32k-tdep.h: New file.
9398         * ns32knbsd-tdep.c: New file.
9399         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9400         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9401         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9402         REGISTER_BYTES, REGISTER_BYTE): Remove.
9403         * config/ns32k/tm-ns32k.h: New file.
9404         * config/ns32k/tm-umax.h: Remove.
9405
9406 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9407
9408         * ns32k-tdep.c (ns32k_saved_pc_after_call,
9409         ns32k_store_struct_return, ns32k_extract_return_value,
9410         ns32k_store_return_value, ns32k_extract_struct_value_address): New
9411         functions.
9412         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9413         ns32k_saved_pc_after_call.
9414         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9415         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9416         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9417         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9418         ns32k_extract_struct_value_address.
9419
9420 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9421
9422         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9423         ns32k_fix_call_dummy): New.
9424         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9425         ns32k_call_dummy_words.
9426         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9427         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9428         CALL_DUMMY_NARGS): Remove.
9429         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9430
9431 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9432
9433         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9434         ns32k_frame_saved_pc, ns32k_frame_args_address,
9435         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9436         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9437         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9438         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9439         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9440         (BREAKPOINT): Remove..
9441         (FRAME_CHAIN): Define as ns32k_frame_chain.
9442         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9443         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9444         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9445         (FRAME_FIND_SAVED_REGS): Remove.
9446         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9447         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9448         (POP_FRAME): Define as ns32k_pop_frame.
9449
9450 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9451
9452         * ns32k-tdep.c (ns32k_register_byte_32082,
9453         ns32k_register_byte_32382, ns32k_register_raw_size,
9454         ns32k_register_virtual_size, ns32k_register_virtual_type): New
9455         functions.
9456         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9457         ns32k_register_byte_32382.
9458         * config/ns32k/tm-umax.h: Update copyright years.
9459         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9460         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9461         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9462         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9463         (ns32k_get_enter_addr): Fix prototype.
9464
9465 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
9466
9467         * ns32k-tdep.c: Update copyright years.
9468         (ns32k_register_name_32082): New function.
9469         (ns32k_register_name_32382): Ditto.
9470         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9471         (REGISTER_NAME): Define as ns32k_register_name_32382.
9472         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9473         (REGISTER_NAME): Define as ns32k_register_name_32082.
9474
9475 2002-05-24  Jim Blandy  <jimb@redhat.com>
9476
9477         * dwarf2read.c (free_line_header): Use xfree, not free.
9478
9479 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
9480
9481         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9482         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9483
9484 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9485
9486         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9487
9488 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9489
9490         From Ross Alexander at NEC Europe:
9491         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9492
9493 2002-05-23  Michael Snyder  <msnyder@redhat.com>
9494
9495         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9496         for input, rather than parse_and_eval_address.  
9497
9498 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
9499
9500         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9501         * Makefile.in (sim_d10v_h): Update definition.
9502
9503 2002-05-24  Andrew Cagney  <cagney@redhat.com>
9504
9505         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9506         change `2002-05-22 Michael Snyder' below.
9507         (d10v_push_arguments): Ditto.
9508         (d10v_extract_return_value): Ditto.
9509
9510 2002-05-23  Jim Blandy  <jimb@redhat.com>
9511
9512         * macrotab.c (check_for_redefinition): Don't complain if the new
9513         definition is the same as the previous one.  Take more arguments
9514         to allow the comparison.
9515         (macro_define_object, macro_define_function): Pass more arguments
9516         to check_for_redefinition.
9517
9518 2002-05-22  Michael Snyder  <msnyder@redhat.com>
9519
9520         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9521         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9522         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9523         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9524         Don't bail if return_pc is PC_IN_CALL_DUMMY.
9525         Add a temp variable to save a call (and a memory read).
9526         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9527         if possible (so that PC_IN_CALL_DUMMY will work).
9528
9529 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
9530
9531         * MAINTAINERS: Remove status `OBSOLETE' from v850.
9532
9533 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
9534
9535         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9536         fde->cie_ptr.
9537         (dwarf2_build_frame_info): Corrected handling of eh_frame.
9538         (dwarf2_build_frame_info): Add offset to fde->initial_location 
9539         so that frames of shared libraries are mapped correctly.
9540         (execute_stack_op): Change type of 'result' from ULONGEST to
9541         CORE_ADDR.
9542         
9543 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9544
9545         * config/alpha/tm-nbsd.h: Include solib.h.
9546
9547 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9548
9549         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9550         assumptions about the host's byte order.
9551
9552 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9553
9554         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9555         to dependency list.
9556         * alphanbsd-tdep.c: Include solib-svr4.h.
9557         * shnbsd-tdep.c: Ditto.
9558
9559 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
9560
9561         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9562         nbsd-tdep.h to dependency list.
9563         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9564         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9565         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9566         nbsdaout.mh and nbsdelf.mh consistently.
9567         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9568         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9569         nbsdaout.mt and nbsdelf.mh consistently.
9570         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
9571         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9572         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9573         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
9574         a.out shared library stuff from here...
9575         * config/nm-nbsdaout.h: ...to here.
9576         * config/tm-nbsd.h: Remove.
9577         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9578         * config/arm/nbsd.mh: Remove.
9579         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9580         nbsd-tdep.o.
9581         * config/arm/nbsdaout.mh: New file. 
9582         * config/arm/nbsdelf.mh: New file.
9583         * config/arm/nm-nbsdaout.h: New file.
9584         * config/i386/nbsd.mh: Remove.
9585         * config/i386/nbsd.mt: Remove.
9586         * config/i386/nbsdaout.mh: New file.
9587         * config/i386/nbsdaout.mt: New file.
9588         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9589         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9590         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
9591         i386_register_u_addr): Remove.
9592         * config/i386/nm-nbsdaout.h: New file.
9593         * config/i386/nm-nbsdelf.h: Remove.
9594         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9595         (USE_STRUCT_CONVENTION): Remove.
9596         * config/i386/tm-nbsdaout.h: New file.
9597         * config/i386/tm-nbsdelf.h: Remove.
9598         * config/m68k/nbsd.mh: Remove.
9599         * config/m68k/nbsd.mt: Remove.
9600         * config/m68k/nbsdaout.mh: New file.
9601         * config/m68k/nbsdaout.mt: New file. 
9602         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9603         * config/m68k/nm-nbsdaout.h: New file.
9604         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9605         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9606         * config/ns32k/nbsd.mh: Remove.
9607         * config/ns32k/nbsd.mt: Remove. 
9608         * config/ns32k/nbsdaout.mh: New file.
9609         * config/ns32k/nbsdaout.mt: New file.
9610         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
9611         * config/ns32k/nm-nbsdaout.h: New file.
9612         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
9613         (IN_SOLIB_CALL_TRAMPOLINE): Define.
9614         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9615         (SVR4_SHARED_LIBS): Remove.
9616         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9617         * config/sparc/nbsd.mh: Remove.
9618         * config/sparc/nbsd.mt: Remove.
9619         * config/sparc/nbsdaout.mh: New file.
9620         * config/sparc/nbsdaout.mt: New file.
9621         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9622         * config/sparc/nbsdelf.mt: New file.
9623         * config/sparc/nm-nbsdaout.h: New file.   
9624         * config/sparc/nm-nbsdelf.h: Remove.
9625         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9626         * config/sparc/tm-nbsdaout.h: New file.
9627
9628 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9629
9630         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9631         mipsnbsd-tdep.c
9632         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9633
9634 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9635
9636         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9637         shnbsd-nat.c.
9638         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9639
9640 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9641
9642         * NEWS: Note new MIPS NetBSD native configuration. 
9643         * configure.host (mips*-*-netbsd*): New host. 
9644         * configure.tgt (mips*-*-netbsd*): New target. 
9645         * mipsnbsd-nat.c: New file.
9646         * mipsnbsd-tdep.c: New file.
9647         * mipsnbsd-tdep.h: New file.
9648         * config/mips/nbsd.mh: New file.
9649         * config/mips/nbsd.mt: New file.
9650         * config/mips/nm-nbsd.h: New file.
9651         * config/mips/tm-nbsd.h: New file.
9652
9653 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
9654
9655         * Makefile.in (SFILES): Add osabi.c.
9656         (COMMON_OBS): Add osabi.o.
9657         (osabi.o): New dependency list.
9658         * osabi.c: New file.
9659         * osabi.h: New file.
9660         * doc/gdbint.texinfo: Document new generic OS ABI framework.
9661
9662         * Makefile.in (alpha_tdep_h): Define and use instead of
9663         alpha-tdep.h.
9664         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9665         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9666         Remove.
9667         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9668         * alpha-tdep.h: Include osabi.h.
9669         (alpha_abi): Remove.
9670         (gdbarch_tdep): Use generic OS ABI framework.
9671         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9672         gdbarch_register_osabi.
9673         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9674         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9675         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9676
9677         * Makefile.in (sh_tdep_h): Add osabi.h.
9678         * sh-tdep.h (sh_osabi): Remove.
9679         (gdbarch_tdep): Use generic OS ABI framework.
9680         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9681         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9682         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9683         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9684
9685         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9686         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9687         gdbarch_register_osabi.
9688         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9689         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9690         (get_elfosabi): Rename to...
9691         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
9692         ABI framework support routines.
9693         (arm_gdbarch_init): Use generic OS ABI framework.
9694         (arm_dump_tdep): Likewise.
9695         (_initialize_arm_tdep): Likewise.
9696         * arm-tdep.h: Include osabi.h.
9697         (arm_abi): Remove.
9698         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
9699         osabi member.
9700         (arm_gdbarch_register_os_abi): Remove prototype.
9701         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9702         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9703
9704         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9705         * mips-tdep.c: Include osabi.h.
9706         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9707         OS ABI framework.
9708
9709 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
9710
9711         * h8300-tdep.c: Fix formatting.
9712
9713 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
9714
9715         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9716         printing vector registers.
9717
9718 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9719
9720         From Fernando Nasser:
9721         * remote.c (remote_async_open_1): Re-throw the exception when the
9722         connection fails.
9723         (remote_cisco_open): Ditto.
9724         (remote_open_1): Ditto.
9725
9726 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9727
9728         * remote.c (remote_start_remote_dummy): Add uiout parameter.
9729         (remote_start_remote): Add uiout parameter.  Pass through to
9730         remote_start_remote_dummy.
9731         (remote_open_1): Use catch_exception instead of catch_errors.
9732         (remote_async_open_1): Ditto.
9733         (remote_cisco_open): Ditto.
9734
9735 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
9736
9737         * remote.c (remote_start_remote): Replace PTR with void pointer.
9738         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
9739         static.
9740
9741 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
9742
9743         * gdb_indent.sh: Allow the script to be run in the sim directory.
9744
9745 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
9746
9747         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9748         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9749
9750         * corelow.c (core_open): Only call set_gdbarch_from_file if
9751         exec_bfd is NULL.
9752
9753 2002-05-17  Andrey Volkov <avolkov@transas.com>
9754
9755         * h8300-tdep.c: Add support of EXR register
9756         * config/h8300/tm-h8300.h: Ditto. 
9757         
9758 2002-05-17  Andrey Volkov <avolkov@transas.com>
9759
9760         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
9761         
9762 2002-05-17  Andrey Volkov <avolkov@transas.com>
9763
9764         * h8300-tdep.c: Change literal regnums to REGNO.
9765         
9766 2002-05-17  Jim Blandy  <jimb@redhat.com>
9767
9768         * NEWS: Note addition of macro support.
9769
9770         Expand preprocessor macros in C expressions.
9771         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9772         (scan_macro_expansion, scanning_macro_expansion,
9773         finished_macro_expansion): New function declarations.
9774         (expression_macro_lookup_func, expression_macro_lookup_baton): New
9775         variable declarations.
9776         * parser-defs.h (expression_context_pc): New declaration.
9777         * parse.c (expression_context_pc): New variable.
9778         (parse_exp_1): Set expression_context_pc, as well as
9779         expression_context_block.
9780         * c-exp.y (yylex): If we're not already reading the result of a
9781         macro expansion, try to macro-expand the next token.  When we're
9782         done scanning a macro expansion, switch back to the mainline text.
9783         Commas and `if's in a macro's expansion don't terminate the input.
9784         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9785         (macro_original_text, macro_expanded_text,
9786         expression_macro_lookup_func, expression_macro_lookup_baton): New
9787         variables.
9788         (scan_macro_expansion, scanning_macro_expansion,
9789         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9790         c_preprocess_and_parse): New functions.
9791         (c_language_defn, cplus_language_defn, asm_language_defn): Call
9792         c_preprocess_and_parse, instead of c_parse.
9793         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9794         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9795
9796 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
9797
9798         * sh-tdep.c (gdb_print_insn_sh64): Delete.
9799         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9800         (sh_gdbarch_init): Always use gdb_print_insn_sh.
9801
9802 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
9803
9804         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
9805
9806 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
9807
9808         * Makefile.in (sh_tdep_h): Define and use.
9809         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9810         register enum): Move to...
9811         * * sh-tdep.h: ...here.
9812         * sh-tdep.c: Include sh-tdep.h.
9813         * sh3-rom.c: Likewise.
9814         * shnbsd-tdep.c: Likewise.
9815
9816 2002-05-16  Michael Snyder  <msnyder@redhat.com>
9817
9818         * arm-tdep.c: Spelling fix in comment.
9819
9820 2002-05-16  Jim Blandy  <jimb@redhat.com>
9821
9822         Add commands for manually expanding macros and showing their
9823         definitions.
9824         * macrocmd.c, macroscope.c, macroscope.h: New files.
9825         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9826         (macroscope_h): New variable.
9827         (HFILES_NO_SRCDIR): Add macroscope.h.
9828         (COMMON_OBS): Add macrocmd.o, macroscope.o.
9829         (macroscope.o, macrocmd.o): New rules.
9830
9831         Teach the Dwarf 2 reader to read macro information.
9832         * dwarf2read.c: #include "macrotab.h".
9833         (dwarf_macinfo_buffer): New variable.
9834         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9835         dwarf_macinfo_size.
9836         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9837         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9838         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9839         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9840         dwarf2_macro_spaces_in_definition): New complaints.
9841         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9842         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9843         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9844         the partial symbol table.
9845         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9846         from what's recorded in the partial symbol table.
9847         (read_file_scope): If the compilation unit has a
9848         `DW_AT_macro_info' attribute, read its macro information.
9849         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9850
9851 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
9852
9853         Fix PR gdb/546
9854         * ser-tcp.c: Don't include <netinet/udp.h>.
9855
9856 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
9857
9858         * MAINTAINERS: Update my email address.
9859
9860 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
9861
9862         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9863         include file of the same name.
9864
9865 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9866
9867         * configure.tgt: Mark v850 as multi-arched.
9868         * config/v850/tm-v850.h: Remove file.
9869         * config/v850/v850.mt: Eliminate TM_FILE.
9870
9871 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9872
9873         * v850-tdep.c: Full multi-arch.
9874         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9875         Define GDB_MULTI_ARCH to 2.
9876
9877 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9878
9879         * p-exp.y (current_type): New static variable.
9880         Carries the type of the expression at the position that is parsed.
9881         (push_current_type, pop_current_type): Two new functions. Used
9882         to store/restore current_type in expression on specific tokens.
9883         (search_field): New static variable. Set to one after parsing a point
9884         as at that point only a FIELDNAME token should be searched.
9885         (FIELDNAME): New token. After a point only a token belonging to 
9886         current_type type definition is allowed.
9887         (all over token rules): reset and change current_type according
9888         to rules.
9889         (exp '[' rule): insert implicit array index field if
9890         exp is a pascal string type.
9891
9892 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9893
9894         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
9895         frame info.  Use frame_info's saved_regs instead of matching member
9896         in extra_frame_info throughout.
9897         (v850_frame_init_saved_regs): New function.
9898         (v850_init_extra_frame_info): Move most functionality into
9899         v850_frame_init_saved_regs().
9900         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9901         (v850_frame_find_saved_regs): Remove declaration.
9902         (FRAME_FIND_SAVED_REGS): Remove definition.
9903         (v850_frame_init_saved_regs): Add declaration.
9904         (FRAME_INIT_SAVED_REGS): Add definition.
9905
9906 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
9907
9908         * v850-tdep.c: Begin multi-arch'ing v850.
9909         (v850_target_architecture_hook): Remove function.
9910         (v850_gdbarch_init): New function.  Add code previously in
9911         v850_target_architecture_hook().
9912         (_initialize_v850_tdep): Don't  set target_architecture_hook.
9913         Call register_gdbarch_init() instead.
9914
9915 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
9916
9917         * gdbtypes.h (struct cplus_struct_type): Remove args field.
9918         * hpread.c (hpread_read_struct_type): Remove assignments to args.
9919         (fixup_class_method_type): Likewise.
9920
9921 2002-05-15  Jim Blandy  <jimb@redhat.com>
9922
9923         Add macro structures to GDB's symbol tables.  Nobody puts anything
9924         in them yet.
9925         * symtab.h (struct symtab): New member: `macro_table'.
9926         * buildsym.h (pending_macros): New global variable.
9927         * buildsym.c: #include "macrotab.h".
9928         (buildsym_init): Initialize `pending_macros'.
9929         (end_symtab): If we found macro information while reading a CU's
9930         debugging info, do build a symtab structure for it.  Make the
9931         symtab point to the macro information, and clear the
9932         `pending_macros' pointer which held it while we were reading the
9933         debug info.
9934         (really_free_pendings): Free any pending macro table.
9935         * objfiles.h (struct objfile): New member: `macro_cache'.
9936         * objfiles.c (allocate_objfile): Set allocate and free functions
9937         for the macro cache's objstack.
9938         (free_objfile): Empty the macro cache's obstack.
9939         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9940         set new allocate and free functions for it.
9941         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9942         free functions for the macro cache's objstack.  (Why is this
9943         function building its own objfile?)
9944         * symmisc.c (print_objfile_statistics): Print statistics on the
9945         macro bcache.
9946         * Makefile.in: Note that buildsym.o depends on macrotab.h.
9947
9948 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9949
9950         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9951         (REGISTER_U_ADDR): Delete definition.
9952         (arm_register_u_addr): Delete declaration.
9953
9954 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
9955
9956         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9957         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9958
9959 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
9960
9961         * regcache.c (register_valid): Revise comments refering to "Not
9962         available" and "unavailable".
9963         * frame.c (frame_register_read): Ditto.
9964         * findvar.c (value_of_register): Ditto.
9965
9966 2002-05-15  Andrew Cagney  <cagney@redhat.com>
9967
9968         * Makefile.in (remote_sim_h): Replace remote-sim_h.
9969         (remote-sim.o): Update dependencies.
9970         (d10v-tdep.o): Specify dependencies.
9971         (sim_d10v_h): Define.
9972
9973 2002-05-14  Jim Blandy  <jimb@redhat.com>
9974
9975         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9976         * macrotab.c (macro_lookup_inclusion, find_definition,
9977         new_macro_table): Same.
9978         
9979         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9980         not `! strcmp ()'.  This is a dubious improvement.
9981         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9982
9983         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9984         although it's not necessary, to avoid a warning.
9985
9986 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
9987
9988         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9989         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9990         TYPE_INSTANCE_FLAGS.
9991         (struct main_type): New.
9992         (struct type): Move most members to struct main_type.  Change
9993         cv_type and as_type to new type_chain member.  Add instance_flags.
9994         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9995         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9996         (finish_cv_type): Remove prototype.
9997         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
9998         Set TYPE_CHAIN.
9999         (alloc_type_instance): New function.
10000         (smash_type): New function.
10001         (make_pointer_type, make_reference_type, make_function_type)
10002         (smash_to_member_type, smash_to_method_type): Call smash_type.
10003         (make_qualified_type): New function.
10004         (make_type_with_address_space): Call make_qualified_type.
10005         (make_cv_type): Likewise.
10006         (finish_cv_type): Remove unnecessary function.
10007         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
10008         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10009         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10010         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10011         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10012         * hpread.c (hpread_read_struct_type): Likewise.
10013         * stabsread.c (read_struct_type): Likewise.
10014
10015 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
10016
10017         * configure.tgt: Add a catch all sh* target, for cases like
10018         sh[2,3,4]-elf and sh-hms.
10019
10020 2002-05-14  Keith Seitz  <keiths@redhat.com>
10021
10022         * event-loop.c (create_file_handler): Don't do anything but
10023         update data when we are given a fd which we are already
10024         monitoring.
10025
10026 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
10027
10028         * dwarf2cfi.c (context_cpy): Copy registers correctly.
10029         (update_context): Use __func__ in warnings.
10030         
10031 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
10032
10033         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
10034         and tcp_close to net_open and net_close.
10035         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
10036         using UDP if requested.  Don't try to disable Nagle on UDP
10037         sockets.
10038         * remote.c (remote_serial_open): New function.  Warn about UDP.
10039         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10040
10041 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10042
10043         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10044
10045 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
10046
10047         * configure.tgt: Remove sh-hms target.
10048         * MAINTAINERS: Don't list sh-hms as a separate target.
10049
10050 2002-05-13  Jim Blandy  <jimb@redhat.com>
10051
10052         Add first preprocessor macro-expansion files.
10053         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10054         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10055         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10056         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10057         (COMMON_OBS): Add macrotab.o, macroexp.o.
10058         (macroexp.o, macrotab.o): New rules.
10059
10060 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
10061
10062         * config/m88k/tm-m88k.h: Update copyright.
10063         (m88k_target_write_pc): Declare
10064         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10065         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10066         (SHIFT_INST_REGS): Update definition.
10067         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
10068         using old definition of TARGET_WRITE_PC.
10069         * regcache.c (generic_target_write_pc): Delete code handling
10070         NNPC_REGNUM.
10071         * gdbarch.sh (NNPC_REGNUM): Delete.
10072         * gdbarch.h, gdbarch.c: Regenerate.
10073
10074 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
10075
10076         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10077         builtin reg number.
10078
10079 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
10080
10081         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10082         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10083         (gen_address_of, gen_struct_ref, gen_repeat): Use type
10084         access macros.
10085         * c-typeprint.c (cp_type_print_method_args): Likewise.
10086         (c_type_print_args): Likewise.
10087         * d10v-tdep.c (d10v_push_arguments): Likewise.
10088         (d10v_extract_return_value): Likewise.
10089         * expprint.c (print_subexp): Likewise.
10090         * gdbtypes.c (lookup_primitive_typename): Likewise.
10091         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10092         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10093         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10094         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10095         (TYPE_VECTOR): Likewise.
10096         * hpread.c (hpread_read_struct_type)
10097         (fix_static_member_physnames, fixup_class_method_type)
10098         (hpread_type_lookup): Likewise.
10099         * mdebugread.c (parse_symbol, parse_type): Likewise.
10100         * p-lang.c (is_pascal_string_type): Likewise.
10101         * valops.c (hand_function_call): Likewise.
10102         * x86-64-tdep.c (classify_argument): Likewise.
10103
10104         * hpread.c (hpread_read_function_type)
10105         (hpread_read_doc_function_type): Call replace_type.
10106         * dstread.c (create_new_type): Delete.
10107         (decode_dst_structure, process_dst_function): Call alloc_type.
10108         Use type access macros.
10109
10110 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10111
10112         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10113         the're not supported by the current architecture.
10114         (i387_fill_fxsave): Likewise.
10115
10116 2002-05-12  Fred Fish  <fnf@redhat.com>
10117
10118         * symfile.c (default_symfile_offsets): Arrange for uninitialized
10119         sect_index_xxx members to index the first slot in section_offsets
10120         if all of the section_offsets are zero.
10121
10122 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10123
10124         * configure.tgt (sparc-*openbsd): Remove entry accidentially
10125         checked in with last change.
10126
10127 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
10128
10129         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10130         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
10131         config.sub.
10132
10133 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
10134
10135         * Makefile.in: Update dependencies.
10136
10137 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10138
10139         * language.c (local_hex_string_custom): Simplify.  Do not depend
10140         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10141
10142         * memattr.c (mem_info_command): Replace calls to
10143         longest_local_hex_string and longest_local_hex_string_custom.
10144         * buildsym.c (make_blockvector): Ditto.
10145         * solib.c (info_sharedlibrary_command): Ditto.
10146         * tracepoint.c (tracepoints_info): Ditto.
10147         * symtab.c (print_msymbol_info): Ditto.
10148
10149         * language.c (local_hex_string): Delete.
10150         (local_hex_string_custom): Delete.
10151         (longest_local_hex_string): Rename to local_hex_string.
10152         (longest_local_hex_string_custom): Rename to
10153         local_hex_string_custom.
10154         * language.h (local_hex_string): Change parameter type to LONGEST.
10155         (local_hex_string_custom): Ditto.
10156         (longest_local_hex_string): Delete declaration.
10157         (longest_local_hex_string_custom): Ditto.
10158
10159         * solib.c: Update copyright.
10160         * memattr.c: Update copyright.
10161         
10162 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10163
10164         * arch-utils.h (legacy_register_to_value): Declare.
10165         (legacy_value_to_register): Declare.
10166         (legacy_convert_register_p): Declare.
10167         * arch-utils.c (legacy_register_to_value): New function.
10168         (legacy_value_to_register): New function.
10169         (legacy_convert_register_p): New function.
10170
10171         * gdbarch.sh (REGISTER_TO_VALUE): Define.
10172         (VALUE_TO_REGISTER): Define.
10173         (CONVERT_REGISTER_P): Define.
10174         * gdbarch.h, gdbarch.c: Regenerate.
10175
10176         * valops.c (value_assign): Use CONVERT_REGISTER_P and
10177         VALUE_TO_REGISTER.
10178         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10179         CONVERT_REGISTER_P.
10180
10181 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
10182             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10183
10184         * Makefile.in: Update dependencies for valops.c.
10185         * valops.c: Include "gdb_assert.h".
10186         (typecmp): Skip THIS parameter to methods.
10187         (find_method_list): Remove static_memfuncp argument,
10188         update callers.  Check for stub methods.
10189         (find_value_oload_method_list): Don't set *static_memfuncp.
10190         (find_overload_match): Don't check for stub methods.  Assert
10191         that methods are not stubbed.  Handle static methods.
10192         (value_find_oload_method_list): Remove static_memfuncp argument.
10193         * gdbtypes.c (check_stub_method): Do not add THIS pointer
10194         to the argument list for static stub methods.
10195         * value.h (value_find_oload_method_list): Update prototype.
10196
10197 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10198
10199         * arch-utils.h (generic_register_size): Declare.
10200         (generic_register_raw_size, generic_register_virtual_size): Delete
10201         declarations.
10202         * arch-utils.c (generic_register_raw_size): Delete.
10203         (generic_register_size): New function.
10204         (generic_register_virtual_size): Delete.
10205
10206         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10207         default generic_register_size.
10208         * gdbarch.h, gdbarch.c: Re-generate.
10209         
10210         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10211         register_virtual_size.
10212         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10213         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10214
10215 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10216
10217         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10218         * gdbarch.h, gdbarch.c: Regenerate.
10219         * gnu-v3-abi.c: Update copyright.
10220         (vtable_address_point_offset): Update.
10221         (gnuv3_rtti_type): Update.
10222         (gnuv3_baseclass_offset): Update.
10223         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10224         (init_fetch_link_map_offsets): Update.
10225         * remote.c (get_remote_state): Update.
10226         
10227 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
10228
10229         * TODO: Remove value_headof/value_from_vtable_info comment.
10230         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10231         * values.c (value_headof, value_from_vtable_info): Delete.
10232         * value.h (value_from_vtable_info): Delete prototype.
10233
10234 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
10235
10236         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10237         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10238         $(gdb_regex_h).
10239         (gdb_assert_h): Define.
10240         (gdb_wait_h): Define.
10241         (gdb_regex_h): Define.
10242
10243 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
10244
10245         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10246         * linespec.c (find_methods): Handle GCC 3.x template constructors.
10247
10248 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10249
10250         * nbsd-tdep.c: Fix comment.
10251
10252 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10253
10254         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10255         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10256         (nbsd-tdep.o): New dependency list.
10257         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
10258         nbsd-tdep.h.
10259         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10260         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10261         * nbsd-tdep.c: New file.
10262         * nbsd-tdep.h: New file.
10263         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
10264         nbsd-tdep.h.
10265         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10266         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10267         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10268         * config/sh/nbsd.mt (TDEPFILES): Ditto.
10269
10270 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10271
10272         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10273         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10274         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10275         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10276         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10277         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10278
10279 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10280
10281         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10282         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10283         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10284         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10285         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10286         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10287         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10288
10289 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10290
10291         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
10292         fetch_elfcore_registers to...
10293         * i386nbsd-tdep.c: ...here.
10294         (i386nbsd_use_struct_convention): Rename to...
10295         (i386nbsd_aout_use_struct_convention): ...this.
10296         (i386nbsd_supply_reg): New function.
10297         (i386nbsd_fill_reg): New function.
10298         (fetch_core_registers): Use i386nbsd_supply_reg.
10299         (fetch_elfcore_registers): Likewise.
10300         (_initialize_i386nbsd_tdep): New function.
10301         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10302         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10303         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10304         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10305         (i386nbsd_aout_use_struct_convention): ...this.
10306
10307 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10308
10309         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10310         (store_inferior_registers): Use shnbsd_fill_reg.
10311         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
10312         sh_nbsd_supply_register): Collapse into...
10313         (shnbsd_supply_reg): ...this.
10314         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10315         (shnbsd_fill_reg): ...this.
10316         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10317         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10318         (fetch_core_registers): Use shnbsd_supply_reg.
10319         (fetch_elfcore_registers): Use shnbsd_supply_reg.
10320         (sh_nbsd_core_fns): Rename to...
10321         (shnbsd_core_fns): ...this.
10322         (sh_nbsd_elfcore_fns): Rename to...
10323         (shnbsd_elfcore_fns): ...this.
10324         (sh_nbsd_init_abi): Rename to...
10325         (shnbsd_init_abi): ...this.
10326         (_initialize_sh_nbsd_tdep): Rename to...
10327         (_initialize_shnbsd_tdep): ...this.
10328         * shnbsd-tdep.h (sh_nbsd_supply_registers,
10329         sh_nbsd_supply_register, sh_nbsd_fill_registers,
10330         sh_nbsd_fill_register): Remove prototypes.
10331         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10332
10333 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10334
10335         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10336         (i387-nat.o): Delete dependency list.
10337         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10338         (x86-64-linux-nat.o): Likewise.
10339         * i387-nat.c: Delete file, moving contents to...
10340         * i387-tdep.c: ...here.
10341         * i387-nat.h: Rename...
10342         * i387-tdep.h: ...to this.
10343         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10344         * i386-linux-nat.c: Likewise.
10345         * i386bsd-nat.c: Likewise.
10346         * i386gnu-nat.c: Likewise.
10347         * i386nbsd-nat.c: Likewise.
10348         * i386v4-nat.c: Likewise.
10349         * x86-64-linux-nat.c: Likewise.
10350         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10351         * config/i386/go32.mh (NATDEPFILES): Likewise.
10352         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10353         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10354         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10355         * config/i386/linux.mh (NATDEPFILES): Likewise.
10356         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10357         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10358         * config/i386/obsd.mh (NATDEPFILES): Likewise.
10359         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10360
10361 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10362
10363         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10364         (alphanbsd-nat.o): Remove dependency list.
10365         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10366         * alphanbsd-nat.c: Delete.  Contents moved to...
10367         * alphanbsd-tdep.c: ...here.
10368         (_initialize_alphanbsd_tdep): Register core functions.
10369         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10370
10371 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
10372
10373         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10374         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10375         (alphanbsd-nat.o): Likewise.
10376         (alphabsd-tdep.o): New dependency list.
10377         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10378         (fill_gregset): Use alphabsd_fill_reg.
10379         (supply_fpregset): Use alphabsd_supply_fpreg.
10380         (fill_fpregset): Use alphabsd_fill_fpreg.
10381         (fetch_inferior_registers): Use struct reg and struct fpreg
10382         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
10383         and alphabsd_supply_fpreg.
10384         (store_inferior_registers): Use struct reg and struct fpreg
10385         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
10386         and alphabsd_fill_fpreg.
10387         * alphabsd-tdep.c: New file.
10388         * alphabsd-tdep.h: New file.
10389         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10390         (fetch_elfcore_registers): Use alphabsd_supply_reg and
10391         alphabsd_supply_fpreg.
10392         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10393         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10394
10395 2002-05-11  Eric Christopher  <echristo@redhat.com>
10396
10397         * mips-tdep.c (mips_double_register_type): Fix thinko.
10398         (mips_single_register_type): Ditto.
10399         * MAINTAINERS: Add self.
10400
10401 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
10402
10403         * i387-nat.c (i387_supply_register, i387_fill_fsave,
10404         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10405         right thing on architectures with different endianness and/or
10406         integer sizes.
10407
10408 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
10409
10410         From Christian Limpach <chris@Pin.LU>
10411         * configure.in: Change sed expression which comments out
10412         NATDEPFILES to also comment out continuation lines.
10413         * configure: Regenerate.
10414
10415 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10416
10417         * sh-tdep.c: Clean up code erroneously reintroduced by previous
10418         big patch.
10419
10420 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10421
10422         * sh-tdep.c: Include correct file.
10423
10424 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10425
10426         New support for sh64-elf (sh5) target.
10427
10428         * configure.tgt: For sh64-elf target, default to sh-elf.
10429
10430         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10431         (struct gdbarch_tdep): Add new fields for new registers and ABI
10432         info.
10433
10434         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10435         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10436         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10437         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10438         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10439         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10440         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10441         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10442         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10443         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10444         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10445         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10446         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10447         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10448         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10449         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10450         sh64_get_gdb_regnum, sh64_media_reg_base_num,
10451         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10452         sign_extend, sh64_nofp_frame_init_saved_regs,
10453         sh64_init_extra_frame_info, sh64_get_saved_register,
10454         sh64_extract_struct_value_address, sh64_pop_frame,
10455         sh64_push_arguments, sh64_extract_return_value,
10456         sh64_store_return_value, sh64_show_media_regs,
10457         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10458         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10459         sh_sh64_register_virtual_type,
10460         sh_sh64_register_convert_to_virtual,
10461         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10462         sh64_register_read, sh64_pseudo_register_write,
10463         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10464         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10465         sh64_do_pseudo_register, sh_compact_do_registers_info,
10466         sh64_do_registers_info, sh_gdbarch_init): New functions.
10467
10468 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
10469
10470         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10471
10472 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
10473
10474         * linespec.c (decode_line_1): Check for a double quote after
10475         a filename correctly.
10476
10477 2002-05-10  Jim Blandy  <jimb@redhat.com>
10478
10479         Properly track the size of the current objfile's .debug_line section.
10480         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10481         (DWARF_LINE_SIZE): New macro.
10482         (dwarf2_build_psymtabs_hard): Record the line section's size in
10483         the partial symbol table.
10484         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10485         symbol table.
10486
10487 2002-05-10  Petr Sorfa  <petrs@caldera.com>
10488
10489         * ia64-tdep.c: Handle breakpoints on L instruction type
10490         in MLX instruction bundle by moving the breakpoint to
10491         the third slot (X instruction type) as L holds only data.
10492
10493 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
10494
10495         * dbxread.c (discarding_local_symbols_complaint): New complaint.
10496         (process_one_symbol): Complain about discarding local symbols
10497         due to a misplaced N_LBRAC entry.
10498
10499 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
10500
10501         From Daniel Berlin <dan@cgsoftware.com>
10502         * linespec.c (find_toplevel_char): '<' and '>' also increase and
10503         decrease the depth we are at, in the case of templates.
10504
10505 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10506
10507         * mips-tdep.c (mips_float_register_type): New function.
10508         (mips_double_register_type): New function.
10509         (mips_print_register): Use them.
10510         (do_fp_register_row): Likewise.
10511
10512 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
10513
10514         * signals/signals.c (signals): Remove conditional compilation around
10515         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
10516         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10517
10518 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10519
10520         * remote-rdp.c (remote_rdp_can_run): Remove.
10521
10522 2002-05-09  Tom Tromey  <tromey@redhat.com>
10523
10524         * jv-valprint.c (java_val_print): Handle `char' as a special case
10525         of TYPE_CODE_INT.
10526
10527 2002-05-09  Michael Snyder  <msnyder@redhat.com>
10528
10529         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10530         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10531         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10532         str r(0123),[sp,#nn].
10533         (arm_skip_prologue): Ditto.  Also make disassembly
10534         order-independent by placing it in a loop.
10535
10536 2002-05-06  Michael Snyder  <msnyder@redhat.com>
10537
10538         * stabsread.c (read_type): Add recognition for new attribute:
10539         "@V;" means that an array type is actually a vector.
10540         This is analogous to the vector flag that's been added to dwarf2.
10541
10542 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
10543
10544         * i386-tdep.h (i386_abi): New enum.
10545         (struct gdbarch_tdep): Replace os_ident member with abi.
10546         (i386_gdbarch_register_os_abi): New prototype.
10547         * i386-tdep.c (i386_abi_names): New array.
10548         (process_note_abi_tag_sections): Removed.
10549         (process_note_sections): New function.
10550         (i386_elf_abi_from_note, i386_elf_abi): New functions.
10551         (struct i386_abi_handler): New struct.
10552         (i386_abi_handler_list): New variable.
10553         (i386_gdbarch_register_os_abi): New function.
10554         (i386_gdbarch_init): Adapt for the changes given above.
10555
10556 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
10557
10558         * gregset.h: Say "GNU/Linux".
10559
10560 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
10561
10562         * gdbtypes.c : Add new builtin type for 64 bit vectors.
10563         (build_gdbtypes): Build builtin_type_v2_float.
10564         (_initialize_gdbtypes): Register new builtin type.
10565
10566 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
10567
10568         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10569         (clear_gdbarch_swap): New function.
10570         (initialize_non_multiarch): Call.
10571         (gdbarch_update_p): Before calling init(), swap out and clear the
10572         existing architecture.
10573         * gdbarch.c: Regenerate.
10574
10575 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10576
10577         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10578         alphanbsd-tdep.c.
10579
10580 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10581
10582         * sh-nbsd-nat.c: Rename to...
10583         * shnbsd-nat.c: ...this.
10584         * sh-nbsd-tdep.c: Rename to...
10585         * shnbsd-tdep.c: ...this.
10586         * sh-nbsd-tdep.h: Rename to...
10587         * shnbsd-tdep.h: ...this.
10588         * config/sh/nbsd.mh: Use shnbsd-nat.o.
10589         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10590
10591 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
10592
10593         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10594         concatenation for command help messages.
10595
10596 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10597
10598         * NEWS: Note new sh*-*-netbsdelf* configuration.
10599         * configure.host: Set gdb_host_cpu to sh for all sh*.
10600         (sh*-*-netbsdelf*): New host.
10601         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10602         (sh*-*-netbsdelf*): New target.
10603         * sh-nbsd-nat.c: New file.
10604         * sh-nbsd-tdep.c: New file.
10605         * sh-nbsd-tdep.h: New file.
10606         * config/sh/nbsd.mh: New file.
10607         * config/sh/nbsd.mt: New file.
10608         * config/sh/nm-nbsd.h: New file.
10609         * config/sh/tm-nbsd.h: New file.
10610
10611 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
10612
10613         * sh-tdep.c (sh_osabi_names): Declare.
10614         (process_note_abi_tag_sections): New function.
10615         (get_elfosabi): Ditto.
10616         (sh_gdbarch_register_os_abi): Ditto.
10617         (sh_dump_tdep): Ditto.
10618         _initialize_sh_tdep): Use gdbarch_register to register
10619         sh_gdbarch_init and sh_dump_tdep.
10620         * config/sh/tm-sh.h (sh_osabi): Declare.
10621         (gdbarch_tdep): Add sh_osabi and osabi_name members.
10622
10623 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
10624
10625         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10626         (thumb_scan_prologue): Ditto.
10627         (arm_find_callers_reg): Ditto.
10628         (arm_frame_chain): Ditto.
10629         (arm_init_extra_frame_info): Ditto.
10630         (arm_frame_saved_pc): Ditto.
10631         (arm_pop_frame): Ditto.
10632         (arm_push_return_address): New function.
10633         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10634         call_dummy_location, call_dummy_breakpoint_offset_p,
10635         call_dummy_breakpoint_offset, call_dummy_p,
10636         call_dummy_stack_adjust_p, call_dummy_words,
10637         sizeof_call_dummy_words, call_dummy_start_offset,
10638         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10639         call_dummy_address, push_return_address and push_dummy_frame for
10640         generic dummy frames.
10641
10642 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10643
10644         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10645         size computation for alloca.
10646         (sh_fp_frame_init_saved_regs): Likewise.
10647
10648 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
10649
10650         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10651         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10652         * arm-tdep.c (arm_store_return_value): Use them.
10653         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10654         * remote-rdp.c (remote_rdp_fetch_register): Use
10655         ARM_MAX_REGISTER_RAW_SIZE.
10656         (remote_rdp_store_register): Likewise.
10657
10658 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
10659
10660         * dwarf2cfi.c: Code cleanup, removed unused variables,
10661         added default labels to switch {} statements.
10662         * x86-64-tdep.c: Ditto.
10663         * x86-64-linux-nat.c: Ditto.
10664
10665 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
10666
10667         * solib.h: Protect against multiple inclusion.
10668
10669 2002-05-06  Jim Blandy  <jimb@redhat.com>
10670
10671         Add first preprocessor macro-expansion files.
10672         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10673         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10674         (splay_tree_h, macroexp_h, macrotab_h): New variable.
10675         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10676         (COMMON_OBS): Add macrotab.o, macroexp.o.
10677         (macroexp.o, macrotab.o): New rules.
10678
10679         Separate the job of reading the line number info statement program
10680         header (...expialidocious) out into its own function.
10681         * dwarf2read.c (struct line_head, struct filenames, struct
10682         directories): Replace with...
10683         (struct line_header): New structure, containing the full
10684         contents of the statement program header, including the
10685         include directory and file name tables.
10686         (read_file_scope): If we have line number info, instead of just
10687         calling dwarf_decode_lines to do all the work, call
10688         dwarf_decode_line_header first to get a `struct line_header'
10689         containing the data in the statement program header, and then
10690         pass that to dwarf_decode_lines, which will pick up where that
10691         left off.  Be sure to clean up the `struct line_header' object.
10692         (dwarf_decode_line_header, free_line_header, add_include_dir,
10693         add_file_name): New functions.
10694         (dwarf_decode_lines): Move all the code to read the statement
10695         program header into dwarf_decode_line_header.  Take the line
10696         header it built as the first argument, instead of the offset to
10697         the compilation unit's line number info.  Use the new `struct
10698         line_header' type instead of the old structures.  No need to do
10699         cleanups here now, since we don't allocate anything.
10700         (dwarf2_statement_list_fits_in_line_number_section,
10701         dwarf2_line_header_too_long): New complaints.
10702
10703 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
10704
10705         * gdbtypes.c (init_vector_type): New function.
10706         (build_builtin_type_vec128): Simplify the representation of SIMD
10707         registers.
10708         (build_gdbtypes): Initialize new builtin vector types.
10709         (_initialize_gdbtypes): Register new vector types with gdbarch.
10710         (builtin_type_v4_float, builtin_type_v4_int32,
10711         builtin_type_v8_int16, builtin_type_v16_int8,
10712         builtin_type_v2_int32, builtin_type_v4_int16,
10713         builtin_type_v8_int8): New (renamed) SIMD types.
10714
10715 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
10716
10717         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10718         (i387_fill_fxsave): Likewise.
10719
10720 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
10721
10722         * alpha-tdep.c (alpha_extract_return_value): Don't use
10723         non-constant array size in prototype.
10724
10725 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10726
10727         From Brian Taylor <briant at model dot com>:
10728         * ui-out.c (ui_out_field_core_addr): Use the function
10729         longest_local_hex_string_custom'to format addresses > 32 bits
10730         wide.
10731
10732         * ui-out.c (ui_out_field_core_addr): Update comment.
10733
10734 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10735
10736         * stack.c (select_and_print_frame): Make static.  Delete the
10737         parameter `level'.
10738         (func_command): Update call.
10739         (select_frame_command): Delete code computing the frame level.
10740         * frame.h (select_and_print_frame): Delete declaration.
10741
10742 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10743
10744         * sparc-tdep.c (sparc_get_saved_register): Comment why
10745         get_prev_frame call is safe.
10746
10747 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10748
10749         * frame.h (select_frame): Delete level parameter.
10750         * stack.c (select_frame): Update.  Use frame_relative_level to
10751         obtain the frame's level.
10752         (select_and_print_frame): Update call.
10753         (select_frame_command): Ditto.
10754         (up_silently_base): Ditto.
10755         (down_silently_base): Ditto.
10756         * ocd.c (ocd_start_remote): Ditto.
10757         * remote-rdp.c (remote_rdp_open): Ditto.
10758         * remote-mips.c (mips_initialize): Ditto.
10759         (common_open): Ditto.
10760         * remote-e7000.c (e7000_start_remote): Ditto.
10761         * m3-nat.c (select_thread): Ditto.
10762         * hppa-tdep.c (child_get_current_exception_event): Ditto.
10763         (child_get_current_exception_event): Ditto.
10764         * varobj.c (varobj_create): Ditto.
10765         (varobj_update): Ditto.
10766         (c_value_of_root): Ditto.
10767         * tracepoint.c (finish_tfind_command): Ditto.
10768         * corelow.c (core_open): Ditto.
10769         * arch-utils.c (generic_prepare_to_proceed): Ditto.
10770         * thread.c (info_threads_command): Ditto.
10771         (switch_to_thread): Ditto.
10772         * infrun.c (normal_stop): Ditto.
10773         (restore_selected_frame): Ditto.
10774         (restore_inferior_status): Ditto.
10775         * breakpoint.c (insert_breakpoints): Ditto.
10776         (watchpoint_check): Ditto.
10777         (bpstat_stop_status): Ditto.
10778         (do_enable_breakpoint): Ditto.
10779         * blockframe.c (flush_cached_frames): Ditto.
10780         (reinit_frame_cache): Ditto.
10781
10782 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10783
10784         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10785         maintainer.
10786
10787 2002-05-04  Jim Blandy  <jimb@redhat.com>
10788
10789         * gdbtypes.c (replace_type): Doc fix.
10790
10791 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10792
10793         * valprint.c (strcat_longest): Delete commented out function.
10794         Update copyright.
10795
10796 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10797
10798         * MAINTAINERS: Mark a29k as deleted.
10799         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
10800         Move new configurations to the top.
10801         * configure.tgt: Remove a29k.
10802         * config/a29k/tm-vx29k.h: Delete.
10803         * config/a29k/vx29k.mt: Delete.
10804         * config/a29k/tm-a29k.h: Delete.
10805         * config/a29k/a29k-udi.mt: Delete.
10806         * config/a29k/a29k.mt: Delete.
10807         * a29k-tdep.c: Delete.
10808         * remote-udi.c: Delete.
10809         * remote-mm.c: Delete.
10810         * remote-eb.c: Delete.
10811         * remote-adapt.c: Delete.
10812         * Makefile.in: Remove obsolete code.
10813         * config/s390/s390x.mt: Ditto.
10814         * config/s390/s390.mt: Ditto.
10815         * config/sparc/sparclynx.mh: Ditto.
10816         * config/sparc/linux.mh: Ditto.
10817         * config/pa/hppaosf.mh: Ditto.
10818         * config/pa/hppabsd.mh: Ditto.
10819         * config/ns32k/nbsd.mt: Ditto.
10820         * config/mips/vr5000.mt: Ditto.
10821         * config/m68k/sun3os4.mh: Ditto.
10822         * config/m68k/nbsd.mt: Ditto.
10823         * config/m68k/m68klynx.mh: Ditto.
10824         * config/m32r/m32r.mt: Ditto.
10825         * config/i386/x86-64linux.mt: Ditto.
10826         * config/i386/nbsdelf.mt: Ditto.
10827         * config/i386/nbsd.mt: Ditto.
10828         * config/i386/i386lynx.mh: Ditto.
10829
10830 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
10831
10832         * target.c (debug_print_register): New function.  Handle oversize
10833         registers.
10834         (debug_to_fetch_registers): Call.
10835         (debug_to_store_registers): Call.
10836
10837 2002-05-03  Jim Blandy  <jimb@redhat.com>
10838
10839         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10840         (read_type): Doc fix.
10841         * gdbtypes.c (replace_type): Doc fix.
10842
10843         * stabsread.c (multiply_defined_struct): New complaint.
10844         (read_struct_type): If the type we were passed isn't empty, or
10845         incomplete, don't read the new struct type into it; complain,
10846         and return the original type unchanged.  Take a new `type_code'
10847         argument, which is the type code for the new type.
10848         (read_type): Rather than storing the type's type code here, pass
10849         it as an argument to read_struct_type, and let that take care of
10850         storing it.  That way, we don't overwrite the original type code,
10851         so read_struct_type can use it to decide whether we're overwriting
10852         something we shouldn't.
10853         (complain_about_struct_wipeout): New function.
10854
10855 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
10856
10857         * gdbarch.sh: Assert that gdbarch is non-NULL.
10858         * gdbarch.c: Regenerate.
10859
10860 2002-05-03  Jason Merrill  <jason@redhat.com>
10861
10862         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10863         and return NULL.
10864
10865 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
10866
10867         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10868         (x86_64_dwarf2gdb_regno_map_length),
10869         (x86_64_dwarf2_reg_to_regnum): Added.
10870         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10871         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10872         (_initialize_x86_64_tdep): Synced with the change above.
10873         (x86_64_skip_prologue): Reformulated message.
10874
10875 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
10876
10877         * f-exp.y: Also use new prev_lexptr variable
10878         to improve error reporting. Based on Michael Snyder
10879         2002-04-24 dated patch to c-exp.y.
10880         * jv-exp.y: Likewise.
10881         * m2-exp.y: Likewise.
10882
10883 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
10884
10885         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10886         we are dealing with vectors.
10887
10888 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10889
10890         * config/m68k/tm-nbsd.h: Obvious fix,
10891         correct machine name.
10892
10893 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10894
10895         * p-typeprint.c (pascal_type_print_base): Add support
10896         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10897
10898 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10899
10900         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10901         for fondamental pascal 'char' type.
10902
10903 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
10904
10905         * p-lang.h (is_pascal_string_type): Declaration changed,
10906         new sixth argument of type char ** added.
10907         * p-lang.c (is_pascal_string_type): Implementation
10908         changed. Args length_pos, length_size, string_pos, char_size
10909         can now be NULL. New argument arrayname set to the field
10910         name of the char array. Return value set to char array
10911         field index plus one.
10912         * p-valprint.c (pascal_val_print): Adapt to new declaration of
10913         is_pascal_string_type function.
10914
10915 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10916
10917         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10918         <cagney@redhat.com> change.
10919         * gdbarch.c: Regenerate.
10920
10921 2002-05-02  Andrew Cagney  <cagney@redhat.com>
10922
10923         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10924         before probing for a new one.  Detect errorenous gdbarch_init
10925         functions.
10926         * gdbarch.c: Regenerate.
10927
10928 2002-05-01  Andrew Cagney  <cagney@redhat.com>
10929
10930         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10931         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
10932         * config/v850/tm-v850.h: Ditto.  Update copyright.
10933
10934 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
10935
10936         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10937         current_gdbarch.
10938
10939 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10940
10941         * arm-tdep.c: Whitespace clean-ups.
10942         (arm_skip_prologue): Fix thinko; two lines
10943         should have been removed as part of 4/24 change.
10944
10945 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
10946
10947         * rs6000-tdep.c: Added comment describing how fpscr register
10948         numbers were chosen.
10949
10950 2002-04-30  Michael Snyder  <msnyder@redhat.com>
10951
10952         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10953
10954 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10955
10956         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10957         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10958         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10959
10960 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
10961
10962         From Louis Hamilton <hamilton@redhat.com>:
10963         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10964         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10965         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10966         not bfd-private xcoff data, to determine wordsize.
10967         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10968
10969 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
10970
10971         GDB 5.2 released from 5.2 branch.
10972
10973 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
10974
10975         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10976         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10977         (x86_64_register_info_table): Added comments with register numbers.
10978
10979 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
10980
10981         * rs6000-tdep.c (rs6000_extract_return_value,
10982         rs6000_store_return_value): Handle returning vectors.
10983         (rs6000_gdbarch_init): Use
10984         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10985         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10986         New function.
10987         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10988         vectors.
10989         (ppc_sysv_abi_push_arguments): Handle vector parameters.
10990         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10991
10992 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10993
10994         * hpread.c (hpread_psymtab_to_symtab_1,
10995         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10996         with fprintf_unfiltered (gdb_stderr,...).
10997
10998 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
10999
11000         * remote-array.c (printf_monitor, write_monitor,
11001         array_insert_breakpoint, array_remove_breakpoint ):
11002         Replace fprintf (stderr,...
11003         with fprintf_unfiltered (gdb_stderr,....
11004         * remote-es.c: Likewise.
11005         * remote-os9k.c: Likewise.
11006         * remote-st.c: Likewise.
11007
11008 2002-04-28  Andreas Schwab  <schwab@suse.de>
11009
11010         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11011         linux-proc.o and gcore.o.
11012
11013 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
11014
11015         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11016         code without frame pointers.
11017
11018 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11019
11020         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11021         ON_STACK is needed.
11022
11023 2002-04-26  Ben Elliston  <bje@redhat.com>
11024
11025         * target.c (do_xfer_memory): Correct reference to the new option
11026         "trust-readonly-sections".
11027
11028 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
11029
11030         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11031         * gdbtypes.c (recursive_dump_type): Output the vector flag.
11032         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11033         vectors.
11034         (read_array_type): Record the fact that this array type is really a
11035         vector (i.e. are passed in by value).
11036
11037 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
11038
11039         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11040         * alpha-tdep.c (alpha_sigcontext_addr): New function.
11041         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11042         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11043         * alpha-linux-tdep.c: Include frame.h.
11044         (alpha_linux_sigcontext_addr): New function.
11045         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11046         alpha_linux_sigcontext_addr.
11047         * alpha-osf1-tdep.c: Include gdbcore.h.
11048         (alpha_osf1_sigcontext_addr): New function.
11049         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11050         alpha_osf1_sigcontext_addr.
11051         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11052         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11053
11054 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11055
11056         * stack.c (selected_frame_level):
11057         (select_frame): Do not set selected_frame_level.
11058         * frame.h (selected_frame_level): Delete declaration.
11059
11060 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
11061
11062         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11063         convert_from_func_ptr-addr when AIX / PowerOpen.
11064
11065 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11066
11067         * valops.c (hand_function_call): Call
11068         generic_save_call_dummy_addr.
11069         * frame.h (generic_save_call_dummy_addr): Declare.
11070         * blockframe.c (struct dummy_frame): Add fields call_lo and
11071         call_hi.
11072         (generic_find_dummy_frame): Check for PC in range call_lo to
11073         call_hi instead of entry_point_address.
11074         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11075         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
11076         (generic_save_call_dummy_addr): New function.
11077
11078 2002-04-24  David S. Miller  <davem@redhat.com>
11079
11080         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11081         sparc_skip_prologue.
11082         (sparc_skip_prologue): Kill frameless_p arg, and use line number
11083         information to find prologue when possible.
11084         (sparc_prologue_frameless_p): Call examine_prologue directly.
11085         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11086         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11087         second argument.
11088         (SKIP_PROLOGUE): Likewise.
11089
11090 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11091
11092         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11093         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11094         indicate that the condition it was testing is always true.
11095         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11096         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11097         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11098
11099 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11100
11101         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11102         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11103         tdep->jb_pc and tdep->jb_elt_size.
11104         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11105         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11106         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11107         * alpha-nat.c (get_longjmp_target): Remove.
11108         (JB_ELEMENT_SIZE): Ditto.
11109         (JB_PC): Ditto.
11110         * alpha-tdep.c (alpha_get_longjmp_target): New function.
11111         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
11112         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11113         to alpha_get_longjmp_target.
11114         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11115         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11116         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11117
11118 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11119
11120         * README: Update to GDB 5.2.
11121
11122 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
11123
11124         * gdbarch.sh (LC_ALL): Set to `c'.
11125
11126 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11127
11128         * avr-tdep.c: Ran through gdb_indent.sh.
11129
11130 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11131
11132         * MAINTAINERS: Add myself as AVR maintainer.
11133         * NEWS: Note new target avr.
11134
11135 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11136
11137         * Makefile.in: Add support for AVR target.
11138         * configure.tgt: Add support for AVR target.
11139         * avr-tdep.c: New file
11140         * config/avr/avr.mt: New file.
11141
11142 2002-04-25  Theodore A. Roth  <troth@verinet.com>
11143
11144         * MAINTAINERS: Add myself to write-after-approval.
11145
11146 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
11147
11148         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11149         with fprintf_unfiltered (gdb_stderr,....
11150
11151 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11152
11153         Fix PR gdb/508.
11154         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11155
11156 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
11157
11158         * p-exp.y: Also use new prev_lexptr variable
11159         to improve error reporting. Based on Michael Snyder
11160         2002-04-24 dated patch to c-exp.y.
11161
11162 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11163
11164         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11165         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11166         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
11167         to 0.
11168         * config/alpha/tm-alpha.h: Remove forward decls of struct type
11169         and struct value.
11170         (FUNCTION_START_OFFSET): Remove.
11171         (BREAKPOINT): Ditto.
11172
11173 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
11174
11175         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11176         * NEWS: Ditto.
11177
11178 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11179
11180         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11181         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11182         alpha_linux_pc_in_sigtramp.
11183         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11184         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11185         alpha_osf1_pc_in_sigtramp.
11186         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11187         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11188         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11189         alphafbsd_pc_in_sigtramp.
11190         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11191         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11192         alphanbsd_pc_in_sigtramp.
11193         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11194         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11195
11196 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11197
11198         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11199
11200 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11201
11202         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11203         alphanbsd-tdep.c.
11204         (alphanbsd-nat.o): New dependency list.
11205         (alphanbsd-tdep.o): Ditto.
11206         * NEWS: Note new native NetBSD/alpha configuration.
11207         * alphanbsd-nat.c: New file.
11208         * alphanbsd-tdep.c: Ditto.
11209         * configure.host (alpha*-*-netbsd*): New host.
11210         * configure.tgt (alpha*-*-netbsd*): New target.
11211         * config/alpha/nbsd.mh: New file.
11212         * config/alpha/nbsd.mt: Ditto.
11213         * config/alpha/nm-nbsd.h: Ditto.
11214         * config/alpha/tm-nbsd.h: Ditto.
11215
11216 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11217
11218         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11219         (alpha-osf1-tdep.o): New dependency list.
11220         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11221         and skip_sigtramp_frame members.
11222         * alpha-linux-tdep.c: Include gdbcore.h.
11223         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11224         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11225         * alpha-osf1-tdep.c: New file.
11226         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11227         alpha-osf1-dep.c.
11228         (alpha_frame_past_sigtramp_frame): New function.
11229         (alpha_dynamic_sigtramp_offset): Ditto.
11230         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11231         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11232         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11233         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11234         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11235         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11236         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11237         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11238         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11239         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11240         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
11241         to find_solib_trampoline_target.
11242         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11243         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11244         (SKIP_TRAMPOLINE_CODE): Remove.
11245         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11246         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11247         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11248         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11249         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11250         (PROC_SIGTRAMP_MAGIC): Ditto.
11251         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11252         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11253         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11254         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11255         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11256
11257 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
11258
11259         * NEWS: Note that Alpha targets are now multi-arch.
11260
11261 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11262
11263         * parser-defs.h (prev_lexptr): New external variable.
11264         * parse.c (parse_exp_1): Set prev_lexptr to null before
11265         calling the language-specific parser.
11266         * c-exp.y (yylex): Set prev_lexptr to start of current token.
11267         (yyerror): Use prev_lexptr in error reporting.
11268
11269 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
11270
11271         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11272         * gregset.h: If FILL_FPXREGSET is defined, provide
11273         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11274         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11275         is defined, call fill_fpxregset.
11276
11277 2002-04-24  Roland McGrath  <roland@frob.com>
11278
11279         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11280         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11281         (supply_gregset, supply_fpregset): New functions.
11282
11283         * gnu-nat.c (gnu_find_memory_regions): New function.
11284         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11285         (gnu_xfer_memory): Add a cast.
11286
11287 2002-04-24  Michael Snyder  <msnyder@redhat.com>
11288
11289         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11290         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
11291         of argument regs ("str r(0123), [r11, #-nn"]).
11292         (arm_skip_prologue): Better handling for frameless functions.
11293         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
11294         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11295
11296 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
11297
11298         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11299         NUM_PSEUDO_REGS can be used.
11300
11301 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
11302
11303         * arch-utils.h: Update copyright.
11304
11305         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11306         * gdbarch.h, gdbarch.c: Re-generate.
11307
11308         * inferior.h (IN_SIGTRAMP): Delete definition.
11309         * arch-utils.c (legacy_pc_in_sigtramp): New function.
11310         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11311
11312         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11313         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11314         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
11315         (find_proc_framesize): Ditto.
11316         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11317         (alpha_init_extra_frame_info): Ditto.
11318         * infrun.c (handle_inferior_event): Ditto.
11319         (handle_inferior_event): Ditto.
11320         (check_sigtramp2): Ditto.
11321         * blockframe.c (create_new_frame): Ditto.
11322         (get_prev_frame): Ditto.
11323         * ppc-linux-tdep.c: Update comments.
11324         * i386-linux-tdep.c: Update comments.
11325         * breakpoint.c (bpstat_what): Update comment.
11326
11327 2002-04-24  David S. Miller  <davem@redhat.com>
11328
11329         * i960-tdep.c (register_in_window_p): New function.
11330         (i960_find_saved_register): Use it instead of
11331         REGISTER_IN_WINDOW_P.
11332         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11333
11334         * symtab.h (find_stab_function_addr): Kill extern.
11335         * minsyms.c (find_stab_function_addr): Remove from here...
11336         * dbxread.c: ... to here, and mark it static.
11337
11338 2002-04-20  David S. Miller  <davem@redhat.com>
11339
11340         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11341         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11342
11343 2002-04-21  David S. Miller  <davem@redhat.com>
11344
11345         * remote-vxsparc.c (vx_read_register): Fix typo, we want
11346         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11347         (vx_write_register): Likewise.
11348
11349 2002-04-23  J. Brobecker  <brobecker@gnat.com>
11350
11351         * source.c (is_regular_file): New function.
11352         (openp): Check wether file to open is a regular file
11353         to avoid opening directories.
11354
11355 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11356
11357         * findvar.c (extract_signed_integer): Cast printf argument
11358         to suppress format warning.
11359         (extract_unsigned_integer): Likewise.
11360         * infcmd.c (registers_info): Likewise.
11361         * top.c (get_prompt_1): Likewise.
11362         * valops.c (value_assign): Likewise.
11363         * valprint.c (print_decimal): Likewise.
11364
11365 2002-04-22  H.J. Lu  (hjl@gnu.org)
11366
11367         * c-exp.y (typebase): Support
11368
11369         [long|long long|short] [signed|unsigned] [int|]
11370
11371         and
11372
11373         signed [long|long long|short] int
11374
11375 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11376
11377         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11378         and vax-tdep.h.
11379         * vax-tdep.h: New file.
11380         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11381         Make several routines static.
11382         (vax_get_saved_register): New function.
11383         (vax_gdbarch_init): New function.
11384         (_initialize_vax_tdep): Register vax_gdbarch_init.
11385         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11386         Remove macros now under the control of gdbarch.
11387
11388 2002-04-22  Michael Snyder  <msnyder@redhat.com>
11389
11390         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11391         Some whitespace and coding standards tweaks.
11392
11393 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11394
11395         * vax-tdep.c: Include regcache.h.
11396         (vax_call_dummy_words): New.
11397         (sizeof_vax_call_dummy_words): New.
11398         (vax_fix_call_dummy): New function.
11399         (vax_saved_pc_after_call): Ditto.
11400         * config/vax/tm-vax.h: Don't include regcache.h.
11401         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11402         (CALL_DUMMY): Remove.
11403         (CALL_DUMMY_WORDS): Define.
11404         (SIZEOF_CALL_DUMMY_WORDS): Define.
11405         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11406
11407 2002-04-18  Michael Snyder  <msnyder@redhat.com>
11408
11409         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11410
11411 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11412
11413         * vax-tdep.c (vax_frame_chain): New function.
11414         (vax_push_dummy_frame): Ditto.
11415         (vax_pop_frame): Ditto.
11416         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11417         (FRAMELESS_FUNCTION_INVOCATION): Use
11418         generic_frameless_function_invocation_not.
11419         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11420         (POP_FRAME): Use vax_pop_frame.
11421
11422 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11423
11424         * vax-tdep.c (vax_store_struct_return): New function.
11425         (vax_extract_return_value): Ditto.
11426         (vax_store_return_value): Ditto.
11427         (vax_extract_struct_value_address): Ditto.
11428         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11429         vax_store_struct_return.
11430         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11431         (STORE_RETURN_VALUE): Use vax_store_return_value.
11432         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11433
11434 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11435
11436         * vax-tdep.c (vax_frame_saved_pc): New function.
11437         (vax_frame_args_address_correct): Ditto.
11438         (vax_frame_args_address): Ditto.
11439         (vax_frame_locals_address): Ditto.
11440         (vax_frame_num_args): Move code to be in proximity to
11441         other frame-related functions.
11442         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11443         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11444         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11445         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11446         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11447
11448 2002-04-22  H.J. Lu  (hjl@gnu.org)
11449
11450         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11451         includedir.
11452
11453 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11454
11455         * vax-tdep.c (vax_frame_init_saved_regs): New function.
11456         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11457         (FRAME_INIT_SAVED_REGS): New macro.
11458
11459 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11460
11461         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11462
11463 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11464
11465         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11466         where needed.
11467         (fetch_osf_core_registers): Likewise.
11468         (supply_gregset): Likewise.
11469
11470 2002-04-22  J. Brobecker  <brobecker@gnat.com>
11471
11472         * symfile.h (get_section_index): Define.
11473         * symfile.c (get_section_index): New function.
11474         * mdebugread.c (SC_IS_SBSS): New macro.
11475         (SC_IS_BSS): Return true for the scBss storage class only, as
11476         the scSBss storage class refers to the .sbss section.
11477         (parse_partial_symbols): Discard the symbols which associated
11478         section does not exist.
11479         Make sure to use the .sbss section index for symbols which
11480         storage class is scBss, rather than using the .bss section index.
11481
11482 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
11483
11484         * vax-tdep.c: Update copyright years.
11485         (vax_register_name): New function.
11486         (vax_register_byte): Ditto.
11487         (vax_register_raw_size): Ditto.
11488         (vax_register_virtual_size): Ditto.
11489         (vax_register_virtual_type): Ditto.
11490         * config/vax/tm-vax.h: Update copyright years.
11491         (REGISTER_NAMES): Remove.
11492         (REGISTER_NAME): Define.
11493         (REGISTER_BYTE): Use vax_register_byte.
11494         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11495         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11496         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11497
11498 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11499
11500         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11501         declaration
11502         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11503
11504 2002-04-21  David S. Miller  <davem@redhat.com>
11505
11506         * arch-utils.c (generic_prologue_frameless_p): Kill
11507         SKIP_PROLOGUE_FRAMELESS_P code.
11508         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11509         references.
11510         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11511         * arc-tdep.c (arc_prologue_frameless_p): Implement.
11512         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11513         references.
11514         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11515         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11516         (sparc_gdbarch_init): Pass it to
11517         set_gdbarch_prologue_frameless_p.
11518
11519 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11520
11521         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11522         (alphabsd-nat.o): New dependency list.
11523
11524 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11525
11526         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11527         alphafbsd-tdep.c.
11528         (alpha-linux-tdep.o): New dependency list.
11529         (alphafbsd-tdep.o): Likewise.
11530
11531 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11532
11533         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
11534         to here...
11535         * alpha-tdep.c: ...from here.
11536         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11537
11538 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11539
11540         * config/alpha/tm-alpha.h: Move alpha_software_single_step
11541         prototype from here...
11542         * alpha-tdep.h: ...to here.
11543
11544 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11545
11546         * frame.h (selected_frame_level): Document as deprecated.
11547         (frame_relative_level): Declare.
11548         * stack.c (frame_relative_level): New function.
11549         (selected_frame_level): Document as deprecated.
11550         (select_frame): Do not set the selected_frame_level.
11551
11552         * stack.c (frame_info, record_selected_frame): Update.
11553         (frame_command, current_frame_command): Update.
11554         (up_silently_base, up_command, down_silently_base): Update.
11555         (down_command): Update.
11556         * inflow.c (kill_command): Update.
11557         * tracepoint.c (finish_tfind_command): Update.
11558         * corelow.c (core_open): Update.
11559         * thread.c (info_threads_command): Update.
11560         (do_captured_thread_select): Update.
11561         * infcmd.c (finish_command): Update.
11562         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11563
11564 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11565
11566         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11567
11568 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11569
11570         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
11571         type const.
11572
11573 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11574
11575         * alphafbsd-tdep.c: Update copyright years.  Include
11576         alpha-tdep.h.
11577         (alphafbsd_use_struct_convention): Make static.
11578         (alphafbsd_init_abi): New function.
11579         (_initialize_alphafbsd_tdep): New function.
11580         * config/alpha/tm-fbsd.h: Update copyright years.
11581         (USE_STRUCT_CONVENTION): Remove.
11582
11583 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11584
11585         * alpha-tdep.c (alpha_abi_handler): New structure to describe
11586         an Alpha ABI variant.
11587         (alpha_abi_handler_list): Declare.
11588         (alpha_gdbarch_register_os_abi): New function.
11589         (alpha_gdbarch_init): Give registered ABI variant handlers a
11590         chance to tweak the gdbarch once we have set up defaults.
11591         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11592
11593 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11594
11595         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11596         to standard_coerce_float_to_double.
11597         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11598
11599 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11600
11601         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11602         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11603         from gdbarch_tdep rather than a constant.
11604         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11605         the default text address for all Alpha Unix ABIs.
11606         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11607         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11608
11609 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
11610
11611         * alpha-tdep.h: New file.  Includes several Alpha target constants
11612         taken from...
11613         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
11614         let gdbarch deal with.
11615         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11616         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11617         to dependency list.
11618         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
11619         Alpha target register names.
11620         * alphabsd-nat.c: Likewise.
11621         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
11622         Alpha target register names.  Make serveral routines static.
11623         (alpha_get_saved_register): New function.
11624         (alpha_abi_names): New.
11625         (process_note_abi_tag_sections): New function.
11626         (get_elfosabi): New function.
11627         (alpha_gdbarch_init): New function.
11628         (alpha_dump_tdep): New function.
11629         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11630
11631 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11632
11633         * frame.c (find_saved_register): Delete #ifdef
11634         HAVE_REGISTER_WINDOWS code.
11635         * config/sparc/tm-sparc.h: Update comments.
11636         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11637
11638 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
11639
11640         * i960-tdep.c (i960_find_saved_register): New function.
11641         (i960_get_saved_register): New function.
11642         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11643         (i960_get_saved_register): Declare.
11644         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11645
11646 2002-04-20  David S. Miller  <davem@redhat.com>
11647
11648         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11649
11650 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11651
11652         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11653         instead of NUM_PSEUDO_REGS.
11654
11655 2002-04-20  David S. Miller  <davem@redhat.com>
11656
11657         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11658         GDB_MULTI_ARCH_PARTIAL
11659         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11660         define, let tm-sp64.h do it.
11661
11662 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
11663
11664         * frame.c (find_saved_register): Avoid a NULL pointer
11665         dereference and actually walk the frame list.
11666
11667 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
11668
11669         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11670         sorted in most most-recent-used order.  Document.
11671         * gdbarch.h, gdbarch.c: Regenerate.
11672
11673 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
11674
11675         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11676         instead of ->prev.
11677         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11678         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11679         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11680         instead of ->prev.
11681
11682 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
11683
11684         Fix PR gdb/471.
11685         * gdbtypes.c (init_simd_type): Rewrite using new functions.
11686         (build_builtin_type_vec128): Ditto.
11687         (append_composite_type_field): Fix calculation of type length in
11688         union case.
11689
11690 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
11691
11692         * config/djgpp/README: Update.
11693
11694         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11695         compiler warnings.
11696
11697 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
11698
11699         * alpha-tdep.c (setup_arbitrary_frame): Rename...
11700         (alpha_setup_arbitrary_frame): ...to this.
11701         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11702         for alpha_setup_arbitrary_frame.
11703
11704 2002-04-18  Andrew Cagney  <cagney@redhat.com>
11705
11706         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11707         * gdbarch.h, gdbarch.c: Regenerate.
11708
11709         * defs.h (breakpoint_from_pc_fn): Delete type definition.
11710         * target.h (memory_breakpoint_from_pc): Update declaration.
11711         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11712
11713         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11714         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11715         * mem-break.c (memory_breakpoint_from_pc): Ditto.
11716         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11717         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11718         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11719         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11720         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11721         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11722         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11723         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11724         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11725
11726         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11727         const pointer.
11728         * monitor.c (monitor_insert_breakpoint): Ditto.
11729         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11730
11731         * config/mcore/tm-mcore.h: Update copyright.
11732         * mem-break.c: Ditto.
11733         * xstormy16-tdep.c: Ditto.
11734
11735 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11736
11737         * p-exp.y: Add precedence rule for '^' token.
11738         This removes the shift/reduce conflicts.
11739         Remove the comment concerning these shift/reduce conflicts.
11740
11741 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
11742
11743         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11744         (registers_powerpc_nofp): New register set for processors
11745         without floating point unit.
11746
11747 2002-04-18  David S. Miller  <davem@redhat.com>
11748
11749         * MAINTAINERS: Add myself to write-after-approval.
11750
11751 2002-04-17  Michael Snyder  <msnyder@redhat.com>
11752
11753         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11754
11755 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11756
11757         * rs6000-tdep.c (frame_initial_stack_address): Use
11758         frame_register_read to read the alloca_reg.
11759
11760 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11761
11762         * frame.c (find_saved_register): Find saved registers in the next
11763         not prev frame.
11764         Fix PR gdb/365.
11765
11766 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
11767
11768         * gdbarch.sh (LANG): Set to ``c''.
11769
11770 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11771
11772         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11773
11774 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
11775
11776         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11777         Update copyright.
11778
11779         * hpread.c (hpread_get_lntt): Add declaration.
11780         Also fix PR gdb/391.
11781
11782 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11783
11784         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11785         * aclocal.m4, configure: Re-generate.
11786         Fix PR gdb/391.
11787
11788 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11789
11790         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11791         instead of tm_print_insn.
11792
11793 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
11794
11795         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11796
11797 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
11798
11799         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11800         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11801         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11802
11803 2002-04-12  Don Howard  <dhoward@redhat.com>
11804
11805         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11806         max_user_call_depth.
11807         (init_cmd_lists): Initialize the new value;
11808         * cli/cli-script.c (execute_user_command): Limit the call depth of
11809         user defined commands.  This avoids a core-dump when user commands
11810         are infinitly recursive.
11811
11812 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11813
11814         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11815         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11816         from tdep struct instead of DEFAULT_LR_SAVE.
11817         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11818         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11819         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11820
11821 2002-04-12  Michael Snyder  <msnyder@redhat.com>
11822
11823         * Remote.c: Spelling fix.
11824         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11825         If no symbol found for "sbrk", try "_sbrk".
11826         (make_output_phdrs): Use bfd_section_name.
11827         (gcore_copy_callback): Use bfd_section_name.
11828         * eval.c: Indentation fix-ups.
11829         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11830         in case it gets applied to an address that is already
11831         in the instruction space.
11832         * cli/cli-decode.c (help_list): Allow long lines to wrap.
11833         * symfile.c: Fix indentation, long lines.
11834         * source.c: White space fix-up.
11835
11836 2002-04-12  Andrew Cagney  <cagney@redhat.com>
11837
11838         * defs.h (read_relative_register_raw_bytes): Delete declaration.
11839         * frame.c (frame_register_read): New function.  Return non-zero on
11840         success.
11841         (read_relative_register_raw_bytes_for_frame): Delete.
11842         (read_relative_register_raw_bytes): Delete.
11843         * frame.h (frame_register_read): Declare.
11844         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
11845         * sh-tdep.c: Ditto.
11846         * infcmd.c (do_registers_info): Ditto.
11847         * hppa-tdep.c: Ditto.
11848         * rs6000-tdep.c: Ditto.
11849         * h8500-tdep.c: Ditto.
11850         * mips-tdep.c: Ditto.
11851         * h8300-tdep.c: Ditto.
11852         * z8k-tdep.c: Ditto.
11853
11854 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11855
11856         From Jimi X <jimix@watson.ibm.com>:
11857         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11858         64-bit SysV ABI.
11859
11860 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11861
11862         From Jimi X <jimix@watson.ibm.com>:
11863         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11864         bfd info.
11865
11866 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
11867
11868         From Jimi X <jimix@watson.ibm.com>:
11869         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11870         register sets for these processor variants.
11871
11872 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
11873
11874         * regformats/reg-ppc.dat: Support FPSCR.
11875
11876 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
11877
11878         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11879         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11880         Add fpscr as an invalid/unfetchable register.
11881         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11882         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11883         (fill_fpregset): Add support for register fpscr.
11884         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11885         (fill_gregset): Account for the fact that register ``mq'' might
11886         not exist.
11887         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11888         (registers_power): Add fpscr to register set at slot 71.
11889         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11890         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
11891
11892 2002-04-11  Michael Snyder  <msnyder@redhat.com>
11893
11894         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11895         * configure: Regenerate.
11896         * config.in: Regenerate.
11897         * acconfig.h: Add define for _SYSCALL32.
11898         * core-sol2.c: Remove #define _SYSCALL32.
11899         * solib-legacy.c: Remove #define _SYSCALL32.
11900
11901 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11902
11903         * stack.c (select_frame): Cleanup internal error message, do not
11904         use %p.
11905
11906 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11907
11908         * stack.c (select_frame): Check that selected_frame and the
11909         specified level are as expected.
11910         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11911         Update copyright.
11912         * frame.h (struct frame_info): Add field `level'.  Update
11913         copyright.
11914         Work-in-progress PR gdb/464.
11915
11916 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
11917
11918         * maint.c (maint_print_section_info): Rename print_section_info.
11919         (print_bfd_section_info, print_objfile_section_info): Update.
11920         * inferior.h (struct gdbarch): Add opaque declaration.
11921         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11922         * gdbarch.h: Regenerate.
11923
11924 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
11925
11926         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11927         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11928         (kernel_u_size): Added.
11929         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11930         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11931
11932 2002-04-04  Jim Ingham  <jingham@apple.com>
11933
11934        * valarith.c (find_size_for_pointer_math): New function, either returns
11935        the size for a pointer's target, returns 1 for void *, or errors for
11936        incomplete types.
11937        (value_add, value_sub): use find_size_for_pointer_math.
11938
11939 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11940
11941         * linux-low.c (linux_look_up_symbols): New hook.
11942         (linux_target_ops): Add linux_look_up_symbols.
11943         * remote-utils.c (decode_address): New function.
11944         (look_up_one_symbol): New function.
11945         * server.c (handle_query): Call target look_up_symbols hook.
11946         * server.h (look_up_one_symbol): Add prototype.
11947         * target.h (struct target_ops): Add look_up_symbols hook.
11948
11949 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
11950
11951         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11952         override FP_REGNUM with frame->fp.  Update copyright.
11953         * parse.c (num_std_regs, std_regs): Delete.
11954         (target_map_name_to_register): Do not search std_regs.  Update
11955         function description.
11956         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11957         declarations.  Update copyright.
11958         Fix PR gdb/251.
11959
11960 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
11961
11962         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11963         after the last symbol in a block.
11964
11965 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
11966
11967         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11968         is non zero as a found symbol.
11969
11970 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11971
11972         * findvar.c: Include "builtin-regs.h".
11973         (value_of_register): Call value_of_builtin_reg when applicable.
11974         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11975         (target_map_name_to_register): Call
11976         builtin_reg_map_name_to_regnum.
11977         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11978         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11979         (builtin_regs_h): Define.
11980         (builtin-regs.o): New target.
11981         (findvar.o): Add $(builtin_regs_h).
11982         * builtin-regs.c, builtin-regs.h: New files.
11983         * std-regs.c: New file.
11984         Partial fix for PR gdb/251.
11985
11986 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11987
11988         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11989         it's no longer required.
11990
11991 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
11992
11993         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11994
11995 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
11996
11997         From Jimi X <jimix@watson.ibm.com>:
11998         * rs6000-tdep.c (rs6000_software_single_step): Use
11999         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12000         and size.  Use target_insert_breakpoint() and
12001         target_remove_breakpoint() to insert and remove breakpoints
12002         instead of explicit memory reads and writes.
12003
12004 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12005
12006         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12007         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12008         ELF_OBJECT_FORMAT ifdef.
12009
12010 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12011
12012         From Jimi X <jimix@watson.ibm.com>:
12013         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12014
12015 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
12016
12017         From Jimi X <jimix@watson.ibm.com>:
12018         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12019         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12020
12021 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
12022
12023         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12024         s/asprintf/xasprintf/.
12025         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12026
12027 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12028
12029         I believe Jeff Law denies responsability for this one:
12030         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12031         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12032         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12033         Work-around for PR gdb/366.
12034
12035 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12036
12037         * remote-e7000.c (write_small, e7000_read_inferior_memory,
12038         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12039         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12040
12041 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
12042
12043         * sh-tdep.c (sh_fp_frame_init_saved_regs,
12044         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12045         information.
12046
12047 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12048
12049         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12050         maintainer.
12051
12052 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
12053
12054         * README (Reporting Bugs in GDB): Document the bug web page as the
12055         prefered way of submitting bugs.
12056         Fix PR gdb/402.
12057
12058 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12059
12060         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12061         -1.  Update comment.
12062         * gdbarch.h, gdbarch.c: Re-generate.
12063
12064 2002-04-07  Andreas Schwab  <schwab@suse.de>
12065
12066         * m68klinux-nat.c (fill_fpregset): Properly pass address of
12067         buffer to regcache_collect.
12068
12069 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12070
12071         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
12072         * gdbarch.c, gdbarch.h: Re-generate.
12073
12074 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
12075
12076         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12077         declaration.  Fix -Werror.
12078
12079 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
12080
12081         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12082         * gdbarch.c: Regenerate.
12083
12084 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12085
12086         * breakpoint.c (clear_command): Rewrite middle section to
12087         combine two loops with identical control conditions.
12088         Add a cleanup to eliminate a memory leak.
12089         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12090
12091 2002-04-05  H.J. Lu  (hjl@gnu.org)
12092
12093         * solib-svr4.c (bkpt_names): Add "__start".
12094
12095 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12096
12097         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12098         as test for 64 bit target.
12099
12100 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
12101
12102         * h8500-tdep.c (h8500_write_fp): Delete function.
12103         * dwarf2cfi.c (cfi_write_fp): Document as not used.
12104         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12105         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12106         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12107         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12108         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12109         (s390_write_fp):
12110         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12111         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12112         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12113         (d10v_write_fp): Delete function.
12114         * inferior.h (write_fp, generic_target_write_fp): Delete
12115         declarations.
12116         * regcache.c (generic_target_write_fp): Delete function.
12117         (write_fp): Delete function.
12118         * gdbarch.sh (TARGET_WRITE_FP): Delete.
12119         * gdbarch.h, gdbarch.c: Regenerate.
12120         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12121         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12122         (sparc64_write_fp): Delete declaration.
12123         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12124         (h8500_write_fp): Delete declaration.
12125
12126 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
12127
12128         * sparc-tdep.c (sparc64_write_fp): Delete.
12129         (sparc_push_dummy_frame): Replace write_fp call with code to store
12130         the FP directly.
12131         (sparc_gdbarch_init): Do not initialize write_fp.
12132
12133 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
12134
12135         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12136         clause.
12137
12138 2002-03-29  Jim Blandy  <jimb@redhat.com>
12139
12140         * stack.c (get_selected_block): Add new argument `addr_in_block',
12141         used to return the exact code address we used to select the block,
12142         not just the block.
12143         * blockframe.c (get_frame_block, get_current_block): Same.
12144         * frame.h (get_frame_block, get_current_block,
12145         get_selected_block): Update declarations.
12146         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12147         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12148
12149 2002-04-05  Michael Snyder  <msnyder@redhat.com>
12150
12151         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12152         warning message.
12153
12154 2002-04-05  J. Brobecker  <brobecker@gnat.com>
12155
12156         * utils.c (xfullpath): New function.
12157         * defs.h (xfullpath): Add declaration.
12158         * source.c (openp): Use xfullpath in place of gdb_realpath to
12159         avoid resolving the basename part of filenames when the
12160         associated file is a symbolic link. This fixes a potential
12161         inconsistency between the filenames known to GDB and the
12162         filenames it prints in the annotations.
12163         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12164         to be able to match a filename with either the real filename, or
12165         the name of any symbolic link to this file.
12166         (lookup_partial_symtab): Ditto.
12167
12168 2002-04-04  Michael Snyder  <msnyder@redhat.com>
12169
12170         * breakpoint.c: Add support for hardware breakpoints in overlays.
12171         (overlay_events_enabled): New state variable.
12172         (insert_breakpoints): Use overlay_events_enabled to decide
12173         whether to attempt to set a breakpoint at the overlay load addr.
12174         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12175         (remove_breakpoint): Use overlay_events_enabled to decide
12176         whether breakpoints need to be removed from overlay load addr.
12177         Handle bp_hardware_breakpoint as well as bp_breakpoint.
12178         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12179         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12180         disable_overlay_breakpoints): Update overlay_events_enabled.
12181
12182 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
12183
12184         * dwarf2read.c (struct function_range): New.
12185         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12186         (check_cu_functions): New.
12187         (read_file_scope): Initialize global function lists.
12188         Call dwarf_decode_line after processing children.
12189         (read_func_scope): Add to global function list.
12190         (dwarf_decode_lines): Call check_cu_functions everywhere
12191         record_line is called.  Call record_line with a linenumber
12192         of 0 to mark sequence ends.
12193
12194 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
12195
12196         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12197         change sync with glibc.
12198
12199 2002-04-03  Jim Blandy  <jimb@redhat.com>
12200
12201         * configure.in: Call AC_C_INLINE.
12202         * configure: Regenerated.
12203
12204 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
12205
12206         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12207         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12208
12209 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
12210
12211         * NEWS: Mention gcore support on FreeBSD/i386.
12212
12213         * fbsd-proc.c: New file.
12214         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12215         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12216
12217         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12218         while statement.
12219
12220 2002-03-29  Jim Blandy  <jimb@redhat.com>
12221
12222         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12223         unescaped newlines in string literals, but newer ones don't.  So
12224         escape them.
12225
12226 2002-03-26  Michael Snyder  <msnyder@redhat.com>
12227             Andrew Cagney <cagney@redhat.com>
12228
12229         * cli/cli-dump.c: New file.  Dump memory to file,
12230         restore file to memory.
12231         * cli/cli-dump.h: New file.
12232         * Makefile.in: Add rules, dependencies for cli-dump.o.
12233         * NEWS: Mention new commands.
12234
12235 2002-03-28  Michael Snyder  <msnyder@redhat.com>
12236
12237         * symfile.c (symbol_file_add): Move test for null symbols to later.
12238
12239 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12240
12241         From veksler at il.ibm.com:
12242         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12243         the xstrduped original path.
12244         Fix PR gdb/417.
12245
12246 2002-03-27  Michael Snyder  <msnyder@redhat.com>
12247
12248         * breakpoint.c (_initialize_breakpoint): Clean up help string.
12249         * infcmd.c (_initialize_infcmd): Ditto.
12250         * language.c (_initialize_language): Ditto.
12251         * symfile.c (_initialize_symfile): Ditto.
12252         * top.c (_init_main): Ditto.
12253         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12254
12255 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
12256
12257         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12258         vector registers handling.
12259         (skip_prologue): Handle new AltiVec instructions.  Fill in new
12260         fields of frame data.
12261         (frame_get_saved_regs): Fill in information for AltiVec registers.
12262
12263 2002-03-27  Jim Blandy  <jimb@redhat.com>
12264
12265         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12266         a function; leave this macro here to invoke that function.
12267         (symbol_init_mangled_name): Declaration for that function.
12268         * symtab.c (symbol_init_mangled_name): New function.
12269
12270 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
12271
12272         * valarith.c: Replace strerror with safe_strerror.
12273         * tracepoint.c: Ditto.
12274         * lin-lwp.c: Ditto.
12275         * go32-nat.c: Ditto.
12276         * inflow.c: Ditto.
12277         * gnu-nat.c: Ditto.
12278
12279 2002-03-27  Andreas Schwab  <schwab@suse.de>
12280
12281         * event-top.c (command_line_handler): Remove useless if.
12282
12283 2002-03-27  Andreas Jaeger  <aj@suse.de>
12284
12285         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12286         comment.
12287
12288 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
12289
12290         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12291         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12292         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12293         (x86_64_linux_dr_get_status, supply_gregset),
12294         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12295         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12296         (x86_64_register_info_table): Add.
12297         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12298         (x86_64_register_raw_size, x86_64_register_virtual_type),
12299         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12300         general x86_64_register_info_table.
12301         (i386_gdbarch_init): gdbarch_register_bytes is now set
12302         dynamicaly during initialization.
12303         * regformats/reg-x86-64.dat: Synced with changes to registers above.
12304         * gdbserver/linux-x86-64-low.c: Ditto.
12305
12306 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12307
12308         * gdbserver/server.c (main): Call target_signal_to_host_p
12309         and target_signal_to_host on signals received from the remote.
12310         * gdbserver/remote-utils.c (prepare_resume_reply): Call
12311         target_signal_from_host on signals sent to the remote.
12312         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
12313         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
12314
12315 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12316
12317         * signals/signals.c: Include "server.h" in gdbserver build.
12318         (target_signal_from_name): Don't use STREQ.
12319         (_initialize_signals): Likewise.  Don't include function in
12320         gdbserver build.
12321
12322 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
12323
12324         * signals.c: Moved to...
12325         * signals/signals.c: Here.
12326         * Makefile (signals.o): Update.
12327
12328 2002-03-26  Jeff Law (law@redhat.com)
12329
12330         * somread.c (som_symtab_read): Remove some commented out code and
12331         updated related comments.  Do not set the minimal symbol table to
12332         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12333         in a dynamic executable.
12334         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12335         where we are unable to find the minimal symbol for the given
12336         PC value.
12337
12338 2002-03-25  Jeff Law (law@redhat.com)
12339
12340         * linux-proc.c (read_mapping): Scan up to end of line for filename.
12341
12342 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
12343
12344         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12345
12346 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12347
12348         * command.h: Update copyright.
12349         (struct cmd_list_element): Replace definition with opaque
12350         declaration.
12351         (enum cmd_types): Document that it will eventually be moved to
12352         cli/cli-decode.h
12353         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12354         (MALLOCED_REPLACEMENT): Delete macro.
12355         * Makefile.in (cli_decode_h): Add $(command_h).
12356         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12357         * top.c: Include "cli/cli-decode.h".
12358         * completer.c: Include "cli/cli-decode.h".
12359         * maint.c: Include "cli/cli-decode.h".
12360         * cli/cli-decode.h: Include "command.h".
12361         (enum command_class): Delete.
12362         (enum cmd_types): Comment out.
12363         (enum cmd_auto_boolean): Delete.
12364         (enum var_types): Delete.
12365
12366 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12367
12368         * cli/cli-decode.c: Include "gdb_assert.h".
12369         (add_set_or_show_cmd): New static function.
12370         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
12371         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
12372         all fields, such as func, from the set command.
12373
12374 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12375
12376         * MAINTAINERS (sh-elf): Change warning flag to -w.
12377
12378 2002-03-23  Andrew Cagney  <cagney@redhat.com>
12379
12380         * defs.h (error): Add printf format attribute.
12381         * thread-db.c (thread_from_lwp): Fix error format string.
12382         * stack.c (parse_frame_specification): Ditto.
12383         * cli/cli-decode.c (undef_cmd_error): Ditto.
12384         * scm-lang.c (scm_lookup_name): Ditto.
12385         * tracepoint.c (trace_error): Ditto.
12386         * remote-utils.c (usage): Ditto.
12387         * remote.c (compare_sections_command): Ditto.
12388         Fix PR gdb/328.
12389
12390 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
12391
12392         * gdbtypes.c (append_composite_type_field): New function.
12393         (init_composite_type): New function.
12394         * gdbtypes.h (append_composite_type_field): Declare.
12395         (init_composite_type): Ditto.
12396
12397 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
12398
12399         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12400         function.
12401         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12402         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12403         structure returning convention for SYSV ABI case, but not
12404         for GNU/Linux, FreeBSD, or NetBSD.
12405
12406 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
12407
12408         * symtab.h (lookup_block_symbol): Add mangled_name argument
12409         to prototype.
12410
12411         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12412         with new mangled_name argument.
12413         * linespec.c (decode_line_1): Likewise.
12414         * valops (value_of_this): Likewise.
12415         * symtab.c (lookup_transparent_type): Likewise.
12416         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
12417         (lookup_symbol): If we are given a mangled name, pass it down
12418         to lookup_symbol_aux.
12419         (lookup_block_symbol): If we are given a mangled name to check
12420         against, only return symbols which match it.
12421
12422 2002-03-22  Christopher Faylor  <cgf@redhat.com>
12423
12424         * win32-nat.c (child_create_inferior): Check for proper shell to use
12425         here, in case the user changes it on the fly.
12426         (_initialize_inftarg): Remove shell path considerations.
12427
12428 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
12429
12430         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12431         for gdbarch_max_register_raw_size and max_register_virtual_size.
12432         Adjust copyright year.
12433
12434 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
12435
12436          * dbxread.c (process_one_symbol): Extend the first N_SLINE
12437          in a function to cover the entire beginning of the function
12438          as well if it does not already.
12439
12440 2002-03-21  Tom Rix  <trix@redhat.com>
12441
12442         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12443         (rs6000_ptrace64): Renamed from ptrace64.
12444
12445 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12446
12447         * gdbserver/remote-utils.c (remote_open): Don't call
12448         getprotobyname, we're all using TCP here so just use
12449         IPPROTO_TCP.
12450         * gdbserver/gdbreplay.c (remote_open): Ditto.
12451
12452 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
12453
12454         * regcache.c (_initialize_regcache): No need to call
12455         build_regcache() at this time; it gets called whenever
12456         the gdbarch changes.
12457
12458 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
12459
12460         * sparc-nat.c:  Include sys/param.h where possible.
12461
12462 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
12463
12464         Fix PR gdb/422.
12465         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12466         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12467         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12468         complex types.
12469         * stabsread.c (rs6000_builtin_type): Likewise.
12470         (read_sun_floating_type): Likewise.
12471
12472 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12473
12474         * stabsread.c (read_member_functions): Remove skip code for duplicate
12475         constructor/destructor methods.  Use standard parsing for these
12476         methods and just do not chain them to the list of methods after
12477         parsing.
12478
12479 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
12480
12481         * coffread.c: Remove redundant static declarations.  Replace
12482         occurrences of `PTR' with `void *'.
12483         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12484         * top.h (quit_cover): Likewise.
12485         * defs.h (catch_errors): Likewise.
12486
12487 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12488
12489         * defs.h (XMALLOC): Define.
12490         * gdb-events.sh (XMALLOC): Delete macro.
12491         * gdb-events.c, gdb-events.h: Regenerate.
12492         * gdbarch.sh (XMALLOC): Delete macro.
12493         * gdbarch.c: Regenerate.
12494         * serial.c (XMALLOC): Delete macro.
12495         * ui-file.c (XMALLOC): Ditto.
12496         * ser-unix.h (XMALLOC): Ditto.
12497         * sh-tdep.c (XMALLOC): Ditto.
12498         * ui-out.c (XMALLOC): Ditto.
12499         * utils.c (XMALLOC): Ditto.
12500         * i386-tdep.c (XMALLOC): Ditto.
12501         * gdb-events.c (XMALLOC): Ditto.
12502         * d10v-tdep.c (XMALLOC): Ditto.
12503         * cli-out.c (XMALLOC): Ditto.
12504
12505         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12506         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12507         * ui-file.c, ui-out.c: Ditto.
12508
12509 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
12510
12511         * command.h (struct cmd_list_element): Add field context.
12512         (set_cmd_context, get_cmd_context): Declare.
12513         * cli/cli-decode.h: Ditto.
12514         * cli/cli-decode.c (get_cmd_context): New function.
12515         (set_cmd_context): New function.
12516         (add_cmd): Initialize context.
12517         Part of fixing PR gdb/145 and PR gdb/146.
12518
12519 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12520
12521         * cli/cli-decode.c (cmd_type): New function.
12522         * command.h (cmd_type): Declare.
12523         * infrun.c (set_schedlock_func): Call function cmd_type.
12524         * kod.c (kod_set_os): Call cmd_type.
12525         * cris-tdep.c (cris_version_update): Use function cmd_type.
12526         (cris_mode_update, cris_abi_update): Ditto.
12527
12528         * command.h: (execute_cmd_post_hook): Declare.
12529         (execute_cmd_pre_hook): Declare.
12530         * cli/cli-script.c (clear_hook_in_cleanup): New function.
12531         (execute_cmd_post_hook, execute_cmd_pre_hook): New
12532         functions. Execute pre/post hook while ensuring that afterwords
12533         hook_in is cleared.
12534         * top.c (execute_command): Use execute_cmd_post_hook, and
12535         execute_cmd_pre_hook to execute pre/post commands.
12536         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12537         hook_stop_stub.
12538         (hook_stop_stub): Call execute_cmd_pre_hook.
12539
12540 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12541
12542         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
12543         set'' and this leads to a core dump.  Move xstrdup of
12544         operating_system to after check that it is not NULL.
12545
12546 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
12547
12548         * kod.c (kod_set_os): Remove unnecessary check that
12549         ``command->type'' is set_cmd.
12550
12551         * valprint.c (set_input_radix): Use input_radix.
12552         (set_output_radix): Use output_radix.
12553         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12554         isn't reverted.
12555
12556 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
12557
12558         * value.h (struct value): Delete field ``substring_addr''.  Change
12559         aligner fields to force_doublest_align, force_longest_align,
12560         force_core_addr_align and force_pointer_aligh.
12561
12562         * value.h (struct value): Fix typo in above change.
12563
12564 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12565
12566         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12567         to fix internal_error from ``maintenance print architecture''.
12568
12569 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12570
12571         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12572         for gcc versions after gcc-2.8.1.
12573
12574 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12575
12576         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12577         for method resolution.  Restore adjustment of ``this'' pointer after
12578         calling value_struct_elt, which was accidentally removed during the
12579         HP merge.
12580
12581 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
12582
12583         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12584         value_of_register.
12585         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
12586         get_saved_register.
12587         * value.h (value_of_register): Update.
12588
12589 2002-03-14  Richard Henderson  <rth@redhat.com>
12590
12591         * configure.in: Detect declaration for canonicalize_file_name.
12592         * utils.c (canonicalize_file_name): Declare, if needed.
12593         (gdb_realpath): Prefer realpath if available and usable.
12594         * config.in, configure: Rebuild.
12595
12596 2002-03-14  Richard Henderson  <rth@redhat.com>
12597
12598         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12599         a constant array bound.
12600
12601         * MAINTAINERS: Add myself to write-after-approval.
12602
12603 2002-03-14  Michael Snyder  <msnyder@redhat.com>
12604
12605         * symfile.c (syms_from_objfile): Return immediately if no syms.
12606         (symbol_file_add): Return immediately if no syms.
12607         (find_sym_fns): Return immediately if no syms.
12608
12609 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
12610
12611         * gdbserver/remote-util.c (remote_open): Print remote-side's
12612         IP address when remote debugging over the network.
12613
12614 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
12615
12616         * config/sparc/fbsd.mh: Fix copyright.
12617         * config/sparc/fbsd.mt: Likewise.
12618
12619 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
12620
12621         * MAINTAINERS: Fix typo in name of gdb warnings option.
12622         (x86-64): Fix formating so that this can be parsed by awk.
12623
12624 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12625
12626         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12627         * defs.h: Include "gdb/signals.h".
12628         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12629
12630 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
12631
12632         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12633         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12634         from x86-64-tdep.h
12635
12636 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
12637             Don Howard <dhoward@redhat.com>
12638
12639         * mips-tdep.c (ST0_FR): Define.
12640         (mips2_fp_compat): New function, temporarily disabled.
12641         (mips_read_fp_register_single): New function.
12642         (mips_read_fp_register_double): New function.
12643         (mips_print_register): Use them.
12644         (do_fp_register_row): Likewise.
12645
12646 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
12647
12648         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12649         approval''.
12650
12651 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12652
12653         * stabsread.c (read_member_functions): Fix is_stub test for
12654         static member functions, improve comment.
12655
12656 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12657
12658         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12659         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12660         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12661         commands that set boolean values.
12662         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12663         (arm_rdi_resume): Always initialize PC.
12664         (arm_rdi_open): Don't use rslt as a boolean.
12665         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12666         (arm_rdi_fetch_registers, arm_rdi_store_registers)
12667         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12668         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12669
12670 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
12671
12672         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12673         * configure: Rebuilt.
12674
12675 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12676
12677         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12678         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12679
12680 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
12681
12682         * cli/cli-decode.c (set_cmd_completer): New function.
12683         * command.h (set_cmd_completer): Declare.
12684         * cli/cli-decode.h (set_cmd_completer): Ditto.
12685
12686         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12687         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12688         * win32-nat.c (_initialize_inftarg): Ditto.
12689         * remote-rdi.c (_initialize_remote_rdi): Ditto.
12690         * proc-api.c (_initialize_proc_api): Ditto.
12691         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12692         * source.c (_initialize_source): Ditto.
12693         * exec.c (_initialize_exec): Ditto.
12694         * solib.c (_initialize_solib): Ditto.
12695         * top.c (init_main): Ditto.
12696         * tracepoint.c (_initialize_tracepoint): Ditto.
12697         * symfile.c (_initialize_symfile): Ditto.
12698         * printcmd.c (_initialize_printcmd): Ditto.
12699         * infcmd.c (_initialize_infcmd): Ditto.
12700         * corefile.c (_initialize_core): Ditto.
12701
12702 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12703
12704         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12705
12706 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12707
12708         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12709
12710 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
12711
12712         * NEWS: Update headings, 5.2 has branched.
12713
12714 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
12715
12716         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12717         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12718         (register_addr, REGISTER_RAW_SIZE): Likewise.
12719         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12720         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12721
12722 2002-03-03  Michal Ludvig <mludvig@suse.cz>
12723
12724         * MAINTAINERS (x86-64): Add myself.
12725         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12726         changed value_ptr -> struct value *
12727
12728 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
12729
12730         * configure.host (sparc64-*-freebsd): Add.
12731         * configure.tgt: Likewise.
12732         * config/sparc/fbsd.mh: New file.
12733         * config/sparc/fbsd.mt: Likewise.
12734         * config/sparc/nm-fbsd.h: Likewise.
12735         * config/sparc/tm-fbsd.h: Likewise.
12736
12737 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
12738
12739         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12740         regformats/reg-s390x.dat.
12741
12742 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
12743
12744         * utils.c: Add FIXME explaining true/false problem.
12745
12746 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
12747
12748         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12749
12750 2002-02-28  Michael Chastain  <mec@shout.net>
12751
12752         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12753
12754 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
12755
12756         * gdbserver/linux-s390-low.c: New file.
12757         * regformats/reg-s390.dat: New file.
12758         * regformats/reg-s390x.dat: New file.
12759         * gdbserver/configure.srv: Add S/390.
12760         * gdbserver/Makefile.in: Add S/390.
12761         * configure.tgt: Enable gdbserver for S/390.
12762
12763 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
12764
12765         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12766         first line of the doc string for "info dos", except at the end of
12767         the sentence, since the short help stops at the first period.
12768
12769 2002-02-28  Jason Merrill  <jason@redhat.com>
12770
12771         * dwarf2read.c (dwarf_cfi_name): Add new codes.
12772
12773 2002-02-27  Fred Fish  <fnf@redhat.com>
12774
12775         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12776         comment (dumy -> dummy).
12777
12778 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12779
12780         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12781
12782 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
12783
12784       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12785
12786 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12787
12788         * gdbserver/acconfig.h: New file.
12789         * gdbserver/i387-fp.c: New file.
12790         * gdbserver/i387-fp.h: New file.
12791         * gdbserver/linux-x86-64.c: New file.
12792         * regformats/reg-x86-64.dat: New file.
12793         * configure.tgt: Add x86_64-*-linux* gdbserver support.
12794         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12795         * gdbserver/configure.in: Add support for regsets.
12796         * gdbserver/config.in: Regenerate.
12797         * gdbserver/configure: Regenerate.
12798         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
12799         * gdbserver/linux-low.h: New file.
12800         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
12801         for regsets.
12802         * gdbserver/linux-arm-low.c: Include "linux-low.h".
12803         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12804         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12805         * gdbserver/linux-mips-low.c: Include "linux-low.h".
12806         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12807         * gdbserver/linux-sh-low.c: Include "linux-low.h".
12808         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
12809         "i387-fp.h".  Add PTRACE_GETREGS and friends.
12810         * gdbserver/regcache.c (supply_register): New function.
12811         (supply_register_by_name): New function.
12812         (collect_register): New function.
12813         (collect_register_by_name): New function.
12814
12815 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12816
12817         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12818         (config.status): Add configure.srv dependency.
12819         (server_h): Add config.h dependency.
12820
12821 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
12822
12823         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12824         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12825         * gdbserver/configure.srv: Change i386-*-linux* to use
12826         reg-i386-linux.o.
12827
12828 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12829
12830         * x86-64-tdep.c: Re-indent.  Update copyright date.
12831
12832 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12833
12834         From Michal Ludvig <mludvig@suse.cz>:
12835         * x86-64-tdep.c (value.h): Delete.
12836         (gdb_assert.h): Include.
12837         (x86_64_register_convert_to_virtual,
12838         x86_64_register_convert_to_raw ): Add check which lets only
12839         floating-point values to be converted.
12840         (value_push): Delete.
12841         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12842         (i386_gdbarch_init): Number of register_bytes fixed.
12843
12844 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12845
12846         * MAINTAINERS: Add x86-64 target.
12847
12848 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12849
12850         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12851         * osfsolib.c (solib_map_sections): Ditto.
12852         * irix5-nat.c (solib_map_sections): Ditto.
12853         * corelow.c (gdb_check_format): Ditto.
12854         * symfile.c (symfile_bfd_open): Ditto.
12855         * solib.c (solib_map_sections): Ditto.
12856         Fix PR gdb/354.
12857
12858 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
12859
12860         * remote.c (_initialize_remote): By default, disable ``e'' and
12861         ``E'' step out-of-range packets.
12862
12863 2002-02-26  Andreas Schwab  <schwab@suse.de>
12864
12865         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12866         m68k_linux_frame_saved_pc.
12867         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12868         in_sigtramp.
12869         (SIGCONTEXT_PC_OFFSET): Remove.
12870         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12871         m68k_linux_sigtramp_saved_pc): New functions.
12872         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12873         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12874         (UCONTEXT_PC_OFFSET): Define.
12875         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12876         non-RT and RT signal trampolines.
12877
12878 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
12879
12880         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12881         (TARGET_NBPG, STACK_END_ADDR): Delete
12882         (VARIABLES_INSIDE_BLOCK): Delete.
12883
12884 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
12885
12886         * utils.c (perror_with_name): Make string parameter constant.
12887         (print_sys_errmsg): Ditto.
12888         (query): Ditto.
12889         * defs.h (perror_with_name): Update.
12890         (print_sys_errmsg): Update.
12891         (query): Update.
12892
12893 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
12894
12895         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12896         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12897
12898 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12899
12900         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12901         if it already matches the current architecture from the exec file.
12902         Include arch-utils.h for gdbarch_info_init prototype.
12903         * Makefile.in (rs6000-nat.o): Update dependencies.
12904
12905 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
12906
12907         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12908          list of exported variables.
12909
12910 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
12911
12912         * gdbserver/configure.srv: New file.
12913         * gdbserver/configure.in: Use configure.srv instead
12914         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
12915         from it.
12916         * gdbserver/configure: Regenerated.
12917         * gdbserver/terminal.h: New file.
12918         * gdbserver/Makefile.in: Update for configure changes.  Remove
12919         more unneeded include paths.
12920
12921 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12922
12923         From wiz at danbala:
12924         * config/sparc/tm-sp64.h: Fix grammar and typos.
12925         Fix PR gdb/287.
12926
12927 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
12928
12929         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12930         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
12931         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12932         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12933         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12934         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12935         * s390-tdep.c: Ditto.
12936         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12937         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12938         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12939         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12940         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12941         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12942         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12943         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12944         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12945         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12946         Fix PR gdb/378.
12947
12948 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12949
12950         * lin-thread.c: Delete file.
12951         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12952         to gdb_proc_service.h.
12953         * configure: Re-generate.
12954
12955         * ocd.c (ocd_open): Do not try to open the "ocd" device.
12956         * serial.c (serial_open): Delete check for "ocd".
12957         Fix PR gdb/349.
12958
12959         * Makefile.in (linux-thread.o): Delete target.
12960         * linux-thread.c: Delete file.
12961
12962         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
12963         renamed SH files to be consistent.
12964
12965         * symtab.c (sort_search_symbols): Use xfree.
12966
12967 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
12968
12969         * arm-linux-tdep.c (arm_linux_init_abi): Register
12970         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12971         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12972         definition with undef, since we don't want the sysvr4 definition.
12973         (SKIP_TRAMPOLINE_CODE): Likewise.
12974
12975 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12976
12977         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12978
12979         * configure.in: (AC_CHECK_FUNCS) Added test for
12980         canonicalize_file_name Regenerated.
12981         * config.in, configure: Regenerated.
12982         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12983         defined use canonicalize_file_name.
12984
12985 2002-02-23  Michael Chastain  <mec@shout.net>
12986
12987         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12988
12989 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12990
12991         * README: Remove references to cygnus.com.
12992         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12993         dot com'' form.  Remove references to cygnus.com and sourceware.
12994
12995 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
12996
12997         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12998         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12999         1003.1-2001 no longer allows "head -1".
13000         * gdb/Makefile.in (version.c): Likewise.
13001         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13002         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13003         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
13004
13005 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13006
13007         * cli/cli-decode.c (cmd_cfunc_eq): New function.
13008         * command.h (cmd_cfunc_eq): Declare.
13009         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13010
13011         * cli/cli-cmds.h (is_complete_command): Change parameter to a
13012         ``struct cmd_list_element *''.
13013         * cli/cli-cmds.c (is_complete_command): Update.  Use
13014         cmd_cfunc_eq.
13015         * top.c (execute_command): Pass the command to
13016         is_complete_command.
13017         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13018
13019 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
13020
13021         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13022         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13023         architecture defines.
13024         * s390-tdep.c (s390_gdbarch_init): Likewise.
13025
13026 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13027
13028         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13029         (arm_linux_push_arguments): Likewise.
13030         (arm_linux_init_abi): Register them.  Also register linux-specific
13031         call_dummy_words.
13032         (find_minsym_and_objfile): Use strcmp, not STREQ.
13033         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13034         (arm_linux_call_dummy_words): Delete declaration.
13035         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13036         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13037         declarations.
13038         (LOWEST_PC): Delete.
13039
13040 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13041
13042         * maint.c (print_section_info): Do not prepend `0x' to filepos
13043         output, it will be handled by local_hex_string_custom.
13044
13045 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
13046
13047         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13048         (store_newfpe_double, store_newfpe_extended, store_fpregister)
13049         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13050
13051 2002-02-22  Jim Blandy  <jimb@redhat.com>
13052
13053         Indicate that the bcache functions don't change the strings
13054         they're passed.
13055         * bcache.h (bcache, hash): Add `const' keywords to declarations.
13056         * bcache.c (bcache, hash): Add `const' keywords to definitions.
13057
13058 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
13059
13060         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13061
13062 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13063
13064         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13065         find the complete path to a loaded DLL.
13066
13067 2002-02-21  Fred Fish  <fnf@redhat.com>
13068
13069         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13070         that marks the end of the range of a function, enter a line number
13071         entry that has a line number of zero and a PC offset that matches
13072         the end of the function.  This starts a range of PC's for which no
13073         line number information is known.
13074         * symtab.c (find_pc_sect_line): If our best fit is in a range of
13075         PC's for which no line number info is found (line number is zero)
13076         then we didn't find any valid line information.
13077         * symtab.h: Document use of zero line number entry.
13078
13079 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
13080
13081         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13082         (have_ptrace_getvrregs): Define for run time checks.
13083         (gdb_vrregset_t): New type for Altivec register handling.
13084         (fetch_register, store_register): Fetch/store altivec register
13085         when needed.
13086         (fetch_altivec_register, store_altivec_register): New functions.
13087         (supply_vrregset, fill_vrregset): New functions.
13088         (fetch_altivec_registers, store_altivec_registers): New functions.
13089         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13090         registers as well.
13091
13092 2002-02-21  Jiri Smid  <smid@suse.cz>
13093
13094         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13095
13096 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13097
13098         * Makefile.in (armnbsd-nat.o): Update dependencies.
13099         * armnbsd-nat.c (supply_gregset): New function.  Common code to
13100         supply the integer register set.
13101         (supply_fparegset): New function.  Similar for FPA registers.
13102         (fetch_regs, fetch_fp_regs): Use them.
13103         (fetch_core_registers): Likewise.
13104         (fetch_elfcore_registers): New function.
13105         (arm_netbsd_elfcore_fns): New core-file type specification.
13106         (_initialize_arm_netbsd_nat): Register it.
13107
13108 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
13109
13110         * armnbsd-nat.c: Include gdbcore.h.
13111         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13112         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13113         'void' to declaration, to shut up ARI.
13114         (fetch_core_registers): Make static.  Rewrite using supply_register.
13115         (arm_netbsd_core_fns): New core-file type specification.
13116         (_initialize_arm_netbsd_nat): New function.
13117
13118 2002-02-21  Christopher Faylor  <cgf@redhat.com>
13119
13120         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13121         value.
13122
13123 2002-02-20  Christopher Faylor  <cgf@redhat.com>
13124
13125         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13126         fails.
13127
13128 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13129
13130         * jv-exp.y (parse_number): Change type of implicit longs
13131         to builtin_type_uint64.
13132
13133 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13134
13135         * gdbserver/linux-low.c (mywait): Change argument to waitpid
13136         to be an integer instead of a `union wait'.
13137
13138 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13139
13140         * mips-linux-nat.c: Call the operating system GNU/Linux.
13141         * mips-linux-tdep.c: Likewise.
13142         * mips-tdep.c: Likewise.
13143
13144 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13145
13146         Fix PR gdb/265.
13147         * jv-exp.y (parse_number): Handle 64-bit integers.
13148
13149 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13150
13151         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
13152         AC_STDC_HEADERS to AC_HEADER_STDC.
13153         * gdbserver/configure: Regenerated.
13154
13155 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13156
13157         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13158         is defined.
13159         * sparc-tdep.c (get_longjmp_target): Likewise.
13160
13161 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
13162
13163         * News: Add news about ARM and Multi-arch.  Mention the new target
13164         arm*-*-netbsd*.
13165
13166 2002-02-19  Jim Blandy  <jimb@redhat.com>
13167
13168         * stabsread.c (error_type_complaint): Improve error message.
13169
13170 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
13171
13172         * gdbserver/README: Update documentation.
13173         * gdbserver/configure.in: Update configury to match documentation.
13174         * gdbserver/Makefile.in: Likewise.
13175         * gdbserver/configure: Regenerated.
13176         * gdbserver/aclocal.m4: New file, generated by aclocal.
13177         * gdbserver/config.in: New file, generated by autoheader.
13178
13179 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13180
13181         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13182         armnbsd-nat.c.
13183
13184 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13185
13186         * arm-tdep.h (enum arm_float_model): New enum.
13187         (struct gdbarch_tdep): Add fp_model.
13188         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
13189         up floating-point conversions until we know the floating-point model
13190         in use by the inferior.  Don't complain about being unable to
13191         determine the ABI of the inferior when we don't have one.
13192         (arm_extract_return_value): Support different floating-point models.
13193         (arm_store_return_value): Likewise.
13194         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13195         ARM_FLOAT_SOFT.
13196         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13197
13198 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13199
13200         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13201         of ``current_gdbarch''.
13202
13203 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13204
13205         * armnbsd-nat.c : ANSIfy all function declarations.
13206         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13207         (fetch_inferior_registers): Re-implement in terms of above.
13208         (store_register, store_regs, store_fp_register, store_fp_regs): New.
13209         (store_inferior_registers): Re-implement in terms of above.
13210
13211 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13212
13213         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13214         kernel.
13215         * arm-linux-tdep.c: Likewise.
13216         * config/arm/tm-linux.h: Likewise.
13217
13218 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13219
13220         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13221         * config/arm/nbsd.mt (TM_FILE): Delete.
13222         * config/arm/tm-nbsd.h: Delete.
13223
13224 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13225
13226         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13227         Initialize CALL_DUMMY_LENGTH.
13228
13229 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
13230
13231         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13232         function.
13233         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13234         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13235         defines one thing and that is incorrect for this port.
13236         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13237
13238 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13239
13240         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13241
13242 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
13243
13244         * win32-nat.c (display_selector): New function. Displays information
13245         about the information returned by GetThreadSelectorEntry API function.
13246         (display_selectors): New function. Displays the infomation of
13247         the selector given as argument, or of CS, DS ans FS selectors
13248         if no argument is given.
13249         ( _initialize_inftarg): Add "w32" as info prefix command.
13250         Add "info w32 selector" as command calling display_selectors.
13251
13252 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
13253
13254         * i386-tdep.c (get_longjmp_target): Fix compilation failure
13255         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13256         if not defined.
13257
13258 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13259
13260         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13261
13262 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13263
13264         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13265         (arm_fix_call_dummy): Call it.
13266         (arm_call_dummy_breakpoint_offset): Delete.
13267         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13268         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13269
13270 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
13271
13272         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13273         Default to func_frame_chain_valid.
13274         * gdbarch.h, gdbarch.c: Re-generate.
13275         * frame.h (FRAME_CHAIN_VALID): Delete definition.
13276
13277 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
13278
13279         * ppc-linux-nat.c: Update copyright.
13280         (fetch_register, store_register): Add tid parameter, don't compute
13281         tid here.
13282         (fetch_ppc_registers, store_ppc_registers): Add tid
13283         parameter. Pass it along to callees.
13284         (fetch_inferior_registers, store_inferior_registers): Compute tid
13285         here, and pass it to calleed functions.
13286         (fill_gregset, supply_fpregset): Clean up formatting.
13287
13288 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13289
13290         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13291         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13292
13293 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
13294
13295         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13296         * gdbarch.c gdbarch.h: Regenerate.
13297         * breakpoint.c (create_longjmp_breakpoint): Always compile this
13298         function.
13299         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13300         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13301         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13302
13303         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13304         * arm-tdep.c (arm_get_longjmp_target): New function.
13305         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
13306         this to a positive value register arm_get_longjmp_target as the
13307         longjmp handler.
13308         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13309         (arm_linux_init_abi): Set up longjmp description in tdep.
13310         * armnbsd-nat.c (get_longjmp_target): Delete.
13311         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13312         description in tdep.
13313         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13314         (get_longjmp_target): Delete declaration.
13315         (GET_LONGJMP_TARGET): Delete.
13316         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13317         (GET_LONGJMP_TARGET): Delete.
13318
13319 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
13320
13321         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
13322         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13323         of ``current_gdbarch''.
13324
13325 2002-02-17  Tom Tromey  <tromey@redhat.com>
13326
13327         * cli/cli-cmds.c (compare_strings): New function.
13328         (complete_command): Only print each unique item once.
13329         * completer.h (complete_line): Declare.
13330         * completer.c (complete_line): New function.
13331         (line_completion_function): Use it.
13332
13333 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
13334
13335         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13336         * gdbarch.h, gdbarch.c: Re-generate.
13337
13338 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13339
13340         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13341
13342 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
13343
13344         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13345         * valops.c (value_arg_coerce): Don't take the address of a reference
13346         to convert an argument to a reference.
13347
13348 2002-02-15  Christopher Faylor  <cgf@redhat.com>
13349
13350         * win32-nat.c (get_image_name): New function.
13351         (handle_load_dll): Use get_image_name function.
13352         (get_child_debug_event): Avoid registering debug events until possibly
13353         execed process is started.
13354         (child_create_inferior): Allow invocation via shell so that command
13355         line redirection, etc.  works ok.
13356         (_initialize_inftarg): Add new command: "set shell" to control whether
13357         a shell is used to start a process.
13358
13359 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13360
13361         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13362         instead of find_register_by_number.
13363         (cannot_store_register): Likewise.
13364
13365 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
13366
13367         * dwarf2read.c: Replace fprintf (stderr, ...) by
13368         fprintf_unfiltered (gdb_stderr, ...).
13369
13370 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
13371
13372         * gdbserver/gdbserver.1: Document --attach.
13373
13374 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13375
13376         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13377         descriptions.
13378         * arm-tdep.c (arm_default_arm_le_breakpoint)
13379         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13380         (arm_default_thumb_be_breakpoint): New.  Initialize them from
13381         traditional breakpoint defines.
13382         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13383         (arm_gdbarch_init): Initialize new breakpoint variables.
13384         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13385         (arm_linux_init_abi): Initialize linux-specific breakpoint.
13386         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13387         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13388         code out to ...
13389         (arm_netbsd_init_abi_common): ... here; new function.
13390         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13391         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13392         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13393         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13394
13395 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
13396
13397         * arm-tdep.h (enum arm_abi): New enum.
13398         (struct gdbarch_tdep): New structure.
13399         (LOWEST_PC): Provide a default.
13400         (arm_gdbarch_register_os_abi): Declare new function.
13401         * arm-tdep.c (arm_abi_names): New array.
13402         (process_note_abi_tag_sections): New function.
13403         (get_elfosabi): New function.
13404         (arm_gdbarch_register_os_abi): New function.
13405         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
13406         support for that ABI has been built in, then call the appropriate
13407         configuration routine.  Use gdbarch_num_regs() to get the number
13408         of registers.
13409         (arm_dump_tdep): New function.
13410         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13411         place-holder functions.
13412         (_initialize_arm_tdep): Register them.
13413         * config/arm/tm-arm.h (LOWEST_PC): Delete.
13414
13415         * armnbsd-tdep.c: New file.
13416         * Makefile.in (armnbsd-tdep.o): Add dependencies.
13417         * config/arm/nbsd.mt (TDEPFILES): Add it.
13418         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13419
13420         * armnbsd-nat.c: Include regcache.h.
13421         * Makefile.in (armnbsd-nat.o): Update dependency list.
13422
13423         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13424
13425 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13426
13427         * gdbserver/Makefile.in: Fix typos in target rules.
13428
13429 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13430
13431         Fix part of PR gdb/267.
13432         * linespec.c (find_methods): Handle constructors specially for now.
13433
13434 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
13435
13436         * arm-tdep.c (arm_push_arguments): Eliminate special float type
13437         handling.
13438         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13439         standard_coerce_float_to_double().
13440
13441 2002-02-14  Christopher Faylor  <cgf@redhat.com>
13442
13443         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13444         GDBINIT_FILENAME.
13445
13446 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
13447
13448         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13449         find_variant_by_name, because it confuses the multiarch
13450         framework. Return NULL if there isn't an architecture with the
13451         user supplied name, instead of forcing a different one without
13452         recording the change with the multiarch machinery.
13453         (find_variant_by_name): Delete.
13454
13455 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13456
13457         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13458         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13459
13460 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
13461
13462         * stack.c (print_frame_info_base): When calling
13463         print_frame_info_listing_hook, set current_source_symtab.
13464
13465 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13466
13467         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13468         and remove unused $(INCLUDE_DIR).
13469         Add regcache.c to OBS.
13470         Add generated register protocol files to clean target.
13471         Update dependencies for new objects, obsolete old target code.
13472
13473         * gdbserver/linux-low.c: Remove all platform-specific code to
13474         new files.  Remove various dead code.  Update to use regcache
13475         functionality.
13476         * gdbserver/remote-utils.c (fromhex): Add return statement
13477         to quiet warning.
13478         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13479         constant.
13480         (input_interrupt): Add integer parameter to match prototype
13481         of a signal handler.
13482         (outreg): Use register_data ().
13483         (prepare_resume_reply): Use gdbserver_expedite_regs.
13484         * gdbserver/server.c (main): Dynamically allocate own_buf because
13485         PBUFSIZ is no longer constant.  Use registers_to_string () and
13486         registers_from_string ().
13487         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
13488         for error (), fatal (), and warning ().  Update definition of
13489         PBUFSIZ to use regcache functionality.  Add include guard.
13490         * gdbserver/utils.c (fatal): Add missing ``const''.
13491         (warning): New function.
13492
13493         * regformats/regdat.sh: Include "regcache.h" in generated files.
13494         Provide init_registers () function.
13495         * regformats/regdef.h: Add prototype for set_register_cache ().
13496         Add include guard.
13497
13498         * gdbserver/linux-arm-low.c: New file.
13499         * gdbserver/linux-i386-low.c: New file.
13500         * gdbserver/linux-ia64-low.c: New file.
13501         * gdbserver/linux-m68k-low.c: New file.
13502         * gdbserver/linux-mips-low.c: New file.
13503         * gdbserver/linux-ppc-low.c: New file.
13504         * gdbserver/linux-sh-low.c: New file.
13505
13506         * gdbserver/regcache.c: New file.
13507         * gdbserver/regcache.h: New file.
13508
13509         * gdbserver/low-linux.c: Removed obsolete file.
13510
13511 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13512
13513         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13514         * config/i386/linux.mt: Likewise.
13515         * config/ia64/linux.mt: Likewise.
13516         * config/m68k/linux.mh: Likewise.
13517         * config/powerpc/linux.mh: Likewise.
13518         * config/mips/linux.mt: Likewise.
13519
13520         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13521
13522         * config/i386/i386lynx.mh: Mark gdbserver variables
13523         as (currently) obsolete for this target.
13524         * config/i386/nbsd.mt: Likewise.
13525         * config/i386/nbsdelf.mt: Likewise.
13526         * config/m32r/m32r.mt: Likewise.
13527         * config/m68k/m68klynx.mh: Likewise.
13528         * config/m68k/nbsd.mt: Likewise.
13529         * config/m68k/sun3os4.mh: Likewise.
13530         * config/mips/vr5000.mt: Likewise.
13531         * config/ns32k/nbsd.mt: Likewise.
13532         * config/pa/hppabsd.mh: Likewise.
13533         * config/pa/hppaosf.mh: Likewise.
13534         * config/powerpc/nbsd.mt: Likewise.
13535         * config/rs6000/rs6000lynx.mh: Likewise.
13536         * config/s390/s390.mt: Likewise.
13537         * config/s390/s390x.mt: Likewise.
13538         * config/sparc/sparclynx.mh: Likewise.
13539         * config/sparc/sun4os4.mh: Likewise.
13540         * config/i386/x86-64linux.mt: Likewise.
13541         * config/sparc/linux.mh: Likewise.
13542
13543 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
13544
13545         * configure.tgt: Configure gdbserver only for known working
13546         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
13547         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
13548         SUBDIRS if it is configured.  Update comment for ${nativefile}.
13549         * configure: Regenerated.
13550
13551 2002-02-13  Michael Snyder  <msnyder@redhat.com>
13552
13553         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13554
13555         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13556         (default_gcore_mach): Just return 0, work around a problem in bfd.
13557         (default_gcore_target): OK to return NULL if exec_bfd is null.
13558         (make_mem_sec): Use a cast, avoid a warning.
13559
13560         * procfs.c (find_memory_regions_callback): Use a cast instead of
13561         calling host_pointer_to_address (which complains if
13562         sizeof (host pointer) != sizeof (target pointer)).
13563         (procfs_make_note_section): Avoid overflow in psargs string.
13564
13565         * procfs.c (procfs_make_note_section): Make the default
13566         implementation return an error.
13567
13568 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
13569
13570         * procfs.c (procfs_make_note_section): Provide a default definition
13571         (for alpha-dec-osf4.0f). Fix typos.
13572
13573 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
13574
13575         * linux-proc.c: Add include of regcache.h.
13576         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13577
13578 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
13579
13580         From 2002-01-18 Greg McGary <greg@mcgary.org>:
13581         * memattr.c (create_mem_region): Disallow useless empty region.
13582         Regions are half-open intervals, so allow [A..B) [B..C) as
13583         non-overlapping.
13584
13585 2002-02-13  Michael Chastain <mec@shout.net>
13586
13587         * defs.h: Kill CONST_PTR.
13588         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13589         * c-lang.c (c_builtin_types): Likewise.
13590         * ch-lang.c (ch_builtin_types): Likewise.
13591         * f-lang.c (f_builtin_types): Likewise.
13592         * language.c (unknown_builtin_types): Likewise.
13593         * m2-lang.c (m2_builtin_types): Likewise.
13594         * p-lang.c (pascal_builtin_types): Likewise.
13595         * scm-lang.c (c_builtin_types): Likewise.
13596
13597 2002-02-13  Keith Seitz  <keiths@redhat.com>
13598
13599         * arm-tdep.h (arm_get_next_pc): Add declaration.
13600
13601 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
13602
13603         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
13604         with other related struct-returning functions.
13605         (arm_extract_struct_value_address): New function.
13606         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
13607         initialize float_format, double_format and long_double_format as
13608         appropriate to the endianness of the target.
13609         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13610         (arm_use_struct_convention): Delete declaration.
13611         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13612
13613 2002-02-13  Keith Seitz  <keiths@redhat.com>
13614
13615         * defs.h (core_addr_to_string_nz): New function.
13616
13617 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
13618
13619         Apply missing bits of 2002-01-15 patch.
13620         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13621         (fill_fpregset): Use i387_fill_fsave.
13622
13623 2002-02-12  Keith Seitz  <keiths@redhat.com>
13624
13625         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13626         (core_addr_to_string_nz): New function.
13627
13628 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13629
13630         * arm-linux-nat.c: Really include arm-tdep.h.
13631         * config/arm/tm-linux.h (struct type, struct value): Declare.
13632
13633 2002-02-11  Michael Snyder  <msnyder@redhat.com>
13634
13635         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13636         (gcore section): Ifdef for Solaris and Unixware only.
13637         (procfs_do_thread_registers): Unixware needs one lwpstatus
13638         per thread (not one prstatus or pstatus).
13639         (procfs_make_note_section): Iterate only over kernel threads (lwps),
13640         not over all gdb threads.  For unixware, call elfcore_write_pstatus
13641         once before iterating over threads.
13642
13643 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13644
13645         * arm-tdep.h: New file.
13646         * arm-tdep.c: Include arm-tdep.h.
13647         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13648         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13649         (arm_print_float_info, arm_register_type, convert_to_extended)
13650         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13651         (arm_extract_return_value, arm_register_name): Make static.
13652         (arm_software_single_step): Similarly.  Fix types in declaration.
13653         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13654         (arm_store_return_value, arm_store_struct_return): New functions.
13655         (arm_gdbarch_init): Register the above functions.  Also register
13656         call_dummy_start_offset, sizeof_call_dummy_words,
13657         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13658         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13659         max_register_virtual_size, register_size.  Set up
13660         prologue_cache.saved_regs here, rather than ...
13661         (_initialize_arm_tdep): ... here.
13662         * config/arm/tm-arm.h (struct type, struct value): Delete forward
13663         declarations.
13664         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13665         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13666         (arm_print_float_info, arm_register_type, convert_to_extended)
13667         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13668         (arm_extract_return_value, arm_register_name): Delete declarations.
13669         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13670         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13671         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13672         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13673         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13674         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13675         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13676         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13677         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13678         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13679         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13680         (arm_get_next_pc): No-longer static -- these are needed by the RDI
13681         interface.
13682         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13683         * remote-rdi.c remote-rdp.c: Likewise.
13684         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13685         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13686         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13687         definition.
13688
13689         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13690         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13691         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13692         from non-ARM_ prefixed definitions.
13693         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13694         all uses of above.
13695         * remote-rdi.c remote-rdp.c: Likewise.
13696         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13697
13698 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
13699
13700         * arm-tdep.c (arm_frameless_function_invocation)
13701         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13702         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13703         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13704         (arm_pop_frame, arm_get_next_pc): Make static.
13705         (arm_gdbarch_init): Register above in gdbarch structure.
13706         (arm_read_fp): Renamed from arm_target_read_fp.
13707         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13708         * config/arm/tm-arm.h (arm_frameless_function_invocation)
13709         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13710         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13711         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13712         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13713         (arm_pc_is_thumb_dummy): Delete declarations.
13714         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13715         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13716         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13717         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13718
13719 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
13720
13721         * symtab.c (compare_search_syms): New function.
13722         (sort_search_symbols): New function.
13723         (search_symbols): Sort symbols after searching rather than
13724         before.
13725
13726 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13727
13728         * NEWS: Linux -> GNU/Linux.
13729
13730 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13731
13732         * gdbarch.sh: For for level one methods, disallow a definition
13733         when partially multi-arched.  Add comments explaining rationale.
13734         * gdbarch.h: Re-generate.
13735
13736 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13737
13738         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13739         multi-arch partial.
13740
13741 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13742
13743         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
13744         field.  Use diff -u.
13745         * gdbarch.c: Re-generate.
13746
13747 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13748
13749         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13750         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13751         partial.
13752
13753 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13754
13755         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13756         multi-arch partial.
13757         (PUSH_ARGUMENTS): Switch to using predefault.
13758         * gdbarch.c: Regenerate.
13759
13760 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
13761
13762         * valops.c (PUSH_ARGUMENTS): Delete definition.
13763         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13764         partial.  Default to default_push_arguments.
13765         * gdbarch.h, gdbarch.c: Regenerate.
13766
13767 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13768
13769         * defs.h (throw_exception): Rename return_to_top_level.  Update
13770         comments.
13771         * utils.c (error_stream, internal_verror, quit): Ditto.
13772         * top.c (throw_exception, catcher): Ditto.
13773         * sparclet-rom.c (sparclet_load): Ditto.
13774         * remote.c (interrupt_query, minitelnet): Ditto.
13775         * remote-sds.c (interrupt_query): Ditto.
13776         * remote-mips.c (mips_error, mips_kill): Ditto.
13777         * ocd.c (interrupt_query): Ditto.
13778         * monitor.c (monitor_interrupt_query): Ditto.
13779         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13780         * target.h: Update comment.
13781
13782         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13783
13784 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13785
13786         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13787         default_double_format.
13788         * gdbarch.h, gdbarch.c: Re-generate.
13789         * findvar.c (floatformat_unknown): Delete variable definition.
13790         * doublest.h (floatformat_unknown): Delete variable declaration.
13791
13792 2002-02-09  Jim Blandy  <jimb@redhat.com>
13793
13794         * stabsread.c (read_type): Add code to parse Sun's syntax for
13795         prototyped function types.
13796
13797 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
13798
13799         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13800         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13801
13802 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
13803
13804         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13805         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
13806         now _initialize_xcoffsolib gets called again and overrides the
13807         commands from solib.c in a native configuration.
13808
13809 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
13810
13811         * doublest.c (store_typed_floating): Don't try to return a value.
13812         Fixes PR gdb/290.
13813
13814 2002-02-08  Jim Blandy  <jimb@redhat.com>
13815
13816         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13817         is prototyped and has no arguments, print its argument list as
13818         `(void)'.
13819
13820 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13821
13822         * MAINTAINERS (write-after-approval): Add myself.
13823         (paper-trail): I've escaped!
13824
13825 2002-02-08  Christopher Faylor  <cgf@redhat.com>
13826
13827         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13828         changes.
13829         (_initialize_check_for_gdb_ini): Ditto.
13830
13831 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
13832
13833         * win32-nat.c (cygwin_pid_to_str): Fix typo.
13834         xaprintf -> xasprintf.
13835
13836 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13837
13838         * win32-nat.c: Remove use of printf and sprintf functions.
13839
13840 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
13841
13842         * arm-tdep.c (arm_frame_chain_valid): Make static.
13843         (arm_push_arguments): Likewise.
13844         (arm_gdbarch_init): New function.
13845         (_initialize_arm_tdep): Call it.
13846         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13847         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13848         (FRAME_CHAIN_VALID): Delete.
13849         (arm_frame_chain_valid): Delete declaration.
13850         (PUSH_ARGUMENTS): Delete.
13851         (arm_push_arguments): Delete declaration.
13852         (CALL_DUMMY_P): Delete.
13853
13854 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
13855             Corinna Vinschen  <vinschen@redhat.com>
13856
13857         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13858         on builtin float types.
13859
13860 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
13861
13862         * utils.c: Include <curses.h> before "bfd.h".
13863         * tui/tui-hooks.c: Likewise.
13864         * tui/tui.c: Likewise.
13865         * tui/tuiCommand.c: Likewise.
13866         * tui/tuiData.c: Likewise.
13867         * tui/tuiDataWin.c: Likewise.
13868         * tui/tuiDisassem.c: Likewise.
13869         * tui/tuiGeneralWin.c: Likewise.
13870         * tui/tuiIO.c: Likewise.
13871         * tui/tuiLayout.c: Likewise.
13872         * tui/tuiRegs.c: Likewise.
13873         * tui/tuiSource.c: Likewise.
13874         * tui/tuiSourceWin.c: Likewise.
13875         * tui/tuiStack.c: Likewise.
13876         * tui/tuiWin.c: Likewise.
13877
13878 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
13879
13880         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13881         to include space for pseudoregs as well. Update loops accordingly.
13882         (sh_fp_frame_init_saved_regs): Ditto.
13883         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13884
13885 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13886
13887         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13888         Add Richard Earnshaw to Arm maintainers.
13889
13890 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
13891
13892         * defs.h (warning_begin): Delete declaration.
13893
13894         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13895         Delete macro.
13896
13897 2002-02-07  Michael Snyder  <msnyder@redhat.com>
13898
13899         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13900         Logic bug, remove misplaced else.
13901
13902 2002-02-07  Klee Dienes  <klee@apple.com>
13903
13904         * fork-inferior.c (fork_inferior): Add '!' to the list of
13905         characters that need to be quoted when building a string for the
13906         shell.  Quote '!' specifically with a backslash, since CSH chokes
13907         when trying to evaluate "str!str".
13908
13909 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13910
13911         * rdi-share/host.h: Only provide a typedef for bool if it is not
13912         defined.
13913
13914 2002-02-04  Michael Snyder  <msnyder@redhat.com>
13915
13916         * breakpoint.h (enum bptype): Add new overlay event bp type.
13917         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13918
13919         * breakpoint.c (create_internal_breakpoint): New function.
13920         (internal_breakpoint_number): Moved into create_internal_breakpoint.
13921         (create_longjmp_breakpoint): Use create_internal_breakpoint.
13922         (create_thread_event_breakpoint): Ditto.
13923         (create_solib_event_breakpoint): Ditto.
13924         (create_overlay_event_breakpoint): New function.
13925         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13926         (update_breakpoints_after_exec): Delete and re-initialize
13927         overlay event breakpoints after an exec.  Add FIXME comment
13928         about longjmp breakpoint.
13929         (print_it_typical): Ignore overlay event breakpoints.
13930         (print_one_breakpoint): Ditto.
13931         (mention): Ditto.
13932         (bpstat_what): Do not stop for overlay event breakpoints.
13933         (delete_breakpoint): Don't delete overlay event breakpoints.
13934         (breakpoint_re_set_one): Delete the overlay event breakpoint.
13935         (breakpoint_re_set): Re-create overlay event breakpoint.
13936
13937         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13938         (overlay_manual_command): Disable overlay breakpoints.
13939         (overlay_off_command): Disable overlay breakpoints.
13940
13941 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13942
13943         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13944         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13945         to here from config/tm-arm.h.
13946         (coff_sym_is_thumb): Make static.
13947         (arm_elf_make_msymbol_special): New function.
13948         (arm_coff_make_msymbol_special): New function.
13949         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13950         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13951         (coff_sym_is_thumb): Delete declaration.
13952         (arm_elf_make_msymbol_special): Declare.
13953         (arm_coff_make_msymbol_special): Declare.
13954         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13955         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13956
13957 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13958
13959         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13960
13961 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
13962
13963         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13964         * gdbarch.c gdbarch.h: Regenerate.
13965         * arch-utils.c (default_print_float_info): New function.
13966         * arch-utils.h (default_print_float_info): Prototype it.
13967         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13968         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13969         (PRINT_FLOAT_INFO): Document it.
13970
13971         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13972         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13973         (PRINT_FLOAT_INFO): Define.
13974
13975 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13976
13977         * win32-nat.c (_initialize_check_for_gdb_ini):
13978         Add typecast to sprintf argument to suppress a warning.
13979
13980 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
13981
13982         * win32-nat.c (last_sig): Changed type of variable to target_signal,
13983         to allow easier handling of pass state.
13984         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13985         that gives exception name and address.
13986         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13987         and set last_sig value to ourstatus->value.sig. Some missing
13988         exceptions added.
13989         (child_continue): Correctly report continue_status.
13990         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13991         TARGET_SIGNAL_0 (new default value).
13992         (child_resume): consider sig argument passed to decide if
13993         the exception should be passed to debuggee or not.
13994
13995 2002-02-05  Michael Snyder  <msnyder@redhat.com>
13996
13997         * regcache.c (fetch_register): Call target_fetch_register
13998         only if we don't call FETCH_PSEUDO_REGISTER.
13999         (store_register): Call target_store_register only if we
14000         don't call STORE_PSEUDO_REGISTER.
14001
14002 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
14003
14004         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14005         ELF_MAKE_MSYMBOL_SPECIAL.
14006         * gdbarch.c, gdbarch.h: Regenerate.
14007         * arch-utils.c (default_make_msymbol_special): New function.
14008         * arch-utils.h (default_make_msymbol_special): Export.
14009         * elfread.c (elf_symtab_read): Compile use of
14010         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14011         multiarched.
14012         * coffread.c (coff_symtab_read): Ditto, for
14013         COFF_MAKE_MSYMBOL_SPECIAL.
14014
14015 2002-02-05  Jim Blandy  <jimb@redhat.com>
14016
14017         * solib-svr4.c (svr4_truncate_ptr): New function.
14018         (svr4_relocate_section_addresses): Do the address arithmetic with
14019         the appropriate truncation for target addresses, even when
14020         CORE_ADDR is larger than a target address.
14021
14022 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14023
14024         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14025         to (int *).
14026
14027 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14028
14029         * gdbserver/linux-low.c (kill_inferior): Remove commented out
14030         code.
14031
14032 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14033
14034         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14035
14036 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14037
14038         * gdbserver/linux-low.c: Remove unused include files.
14039
14040 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14041
14042         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14043         (read_inferior_memory): Use it.
14044         (write_inferior_memory): Likewise.
14045
14046 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14047
14048         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14049         grubbing through sys_errlist.
14050
14051 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
14052
14053         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14054
14055 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14056         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14057
14058 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
14059
14060         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14061         (do_sfunc, set_cmd_sfunc): New functions.
14062
14063         * command.h (struct cmd_list_element): Add field func.
14064         * cli/cli-decode.h (struct cmd_list_element): Ditto.
14065         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14066         * cli/cli-decode.h: Ditto.
14067
14068         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14069         (help_all, help_cmd_list): Ditto.
14070         (find_cmd, complete_on_cmdlist): Ditto.
14071         * top.c (execute_command): Ditto.
14072
14073         * cli/cli-setshow.c (do_setshow_command): Call func instead of
14074         function.sfunc.
14075
14076         * infcmd.c (notice_args_read): Fix function signature.
14077
14078         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14079         * cli/cli-decode.c (add_set_cmd): Ditto.
14080         * utils.c (initialize_utils): Ditto.
14081         * maint.c (_initialize_maint_cmds): Ditto.
14082         * infrun.c (_initialize_infrun): Ditto.
14083         * demangle.c (_initialize_demangler): Ditto.
14084         * remote.c (add_packet_config_cmd): Ditto.
14085         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14086         * cris-tdep.c (_initialize_cris_tdep): Ditto.
14087         * proc-api.c (_initialize_proc_api): Ditto.
14088         * kod.c (_initialize_kod): Ditto.
14089         * valprint.c (_initialize_valprint): Ditto.
14090         * top.c (init_main): Ditto.
14091         * infcmd.c (_initialize_infcmd): Ditto.
14092         * corefile.c (_initialize_core): Ditto.
14093         * arm-tdep.c (_initialize_arm_tdep): Ditto.
14094         * arch-utils.c (initialize_current_architecture): Ditto.
14095         (_initialize_gdbarch_utils): Ditto.
14096         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14097
14098         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14099         * wince.c (_initialize_inftarg): Ditto.
14100         * symfile.c (_initialize_symfile): Ditto.
14101         * mips-tdep.c (_initialize_mips_tdep): Ditto.
14102         * language.c (_initialize_language): Ditto.
14103         * arc-tdep.c (_initialize_arc_tdep): Ditto.
14104
14105 2002-02-04  Michael Snyder  <msnyder@redhat.com>
14106
14107         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14108
14109 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14110
14111         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14112         Add rules for building the register data files.
14113
14114 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14115
14116         * regformats/regdat.sh: Add braces to the definition of
14117         expedite_regs_${arch}.
14118
14119 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
14120
14121         * regformats/regdef.h (struct reg): Add comment describing the
14122         requirements for offset and size fields.
14123
14124 2002-02-04  Andreas Schwab  <schwab@suse.de>
14125
14126         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14127         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14128
14129 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
14130
14131         * gdbarch.sh (copyright): Update years in generated header.
14132         (SMASH_TEXT_ADDRESS): Add rule.
14133         * gdbarch.h, gdbarch.c: Re-generate.
14134         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14135         * dbxread.c: Likewise.
14136         * dwarfread.c: Likewise.
14137         * elfread.c: Likewise.
14138         * somread.c: Likewise.
14139
14140         * arm-tdep.c (arm_smash_text_address): New function.
14141         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14142
14143 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
14144
14145         Add support for hardware watchpoints on win32 native.
14146         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14147         CONTEXT_DEBUG_REGISTERS.
14148         (dr variable): New variable. Static array containing a local copy
14149         of debug registers.
14150         (debug_registers_changed): New variable.  Reflects when debug registers
14151         are changed and need to be written to inferior.
14152         (debug_registers_used): New variable. Reflects when any debug register
14153         was set, used when new threads are created.
14154         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14155         i386-nat code.
14156         (thread_rec): Set dr array if id is the thread of current_event .
14157         (child_continue, child_resume): Change the debug registers for all
14158         threads if debug_registers_changed.
14159         (child_add_thread): Change the debug registers if debug_registers_used.
14160         * config/i386/cygwin.mh: Add use of i386-nat.o file.
14161         Link nm.h to new nm-cygwin.h file.
14162         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14163         of hardware registers.
14164
14165 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
14166
14167         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14168         Restore behavour broken by 2002-01-20 Andrew Cagney
14169         <ac131313@redhat.com> IEEE_FLOAT removal.
14170
14171 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14172
14173         * c-valprint.c (c_val_print): Pass a proper valaddr to
14174         cp_print_class_method.
14175         * valops.c (search_struct_method): If there is only one method
14176         and args is NULL, return that method.
14177
14178 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14179
14180         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14181         accessing tag_name directly.
14182
14183 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14184
14185         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14186         of accessing tag_name directly.
14187
14188 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
14189
14190         PR gdb/280
14191         * gdbtypes.c (replace_type): New function.
14192         * gdbtypes.h (replace_type): Add prototype.
14193         * stabsread.c (read_type): Use replace_type.
14194
14195 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
14196
14197         * Makefile.in (memattr.o): Add missing dependencies rule.
14198
14199 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
14200
14201         * breakpoint.c (break_at_finish_command): Really export.
14202         (break_at_finish_at_depth_command): Ditto.
14203         (tbreak_at_finish_command): Ditto.
14204         * hppa-tdep.c: Include completer.h.
14205         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14206         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14207
14208 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14209
14210         * utils.c (do_write): New function.
14211         (error_stream): Rewrite combining the code from error_begin and
14212         verror.
14213         (verror): Rewrite using error_stream.
14214         (error_begin): Delete function.
14215
14216 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14217
14218         * utils.c (error_begin): Make static.
14219         * defs.h (error_begin): Delete declaration.
14220
14221         * linespec.c (cplusplus_error): Replace cplusplus_hint.
14222         (decode_line_1): Use cplusplus_error instead of error_begin,
14223         cplusplus_hint and return_to_top_level.
14224         * coffread.c (coff_symfile_read): Use error instead of error_begin
14225         and return_to_top_level.
14226         * infrun.c (default_skip_permanent_breakpoint): Ditto.
14227
14228 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14229
14230         * language.h (type_error, range_error): Make string parameter
14231         constant.
14232         * language.c (warning_pre_print): Delete extern declaration.
14233         * dwarfread.c (warning_pre_print): Ditto.
14234         * language.c (type_error, range_error): Rewrite to use verror and
14235         vwarning instead of warning_begin.
14236
14237 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14238
14239         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14240         (set_ignore_count): Move misplaced comment back where it belongs.
14241
14242 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
14243
14244         * command.h (NO_FUNCTION): Delete macro.
14245         * cli/cli-decode.h (NO_FUNCTION): Ditto.
14246         * top.c (execute_command): Replace NO_FUNCTION with NULL.
14247         * tracepoint.c (_initialize_tracepoint): Ditto.
14248         * cli/cli-decode.c (add_set_cmd): Ditto.
14249         * cli/cli-cmds.c (init_cli_cmds): Ditto.
14250
14251 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14252
14253         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14254         Update ``this'' pointer when calling virtual functions.
14255
14256 2002-02-01  Michael Snyder  <msnyder@redhat.com>
14257
14258         * breakpoint.c (create_temp_exception_breakpoint): Delete.
14259         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14260
14261 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
14262
14263         * regformats/reg-arm.dat: New file.
14264         * regformats/reg-i386.dat: New file.
14265         * regformats/reg-ia64.dat: New file.
14266         * regformats/reg-m68k.dat: New file.
14267         * regformats/reg-mips.dat: New file.
14268         * regformats/reg-ppc.dat: New file.
14269         * regformats/reg-sh.dat: New file.
14270         * regformats/regdef.h: New file.
14271         * regformats/regdat.sh: New file.
14272
14273 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
14274
14275         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14276         (arm_frame_args_address, arm_frame_locals_address): New functions.
14277         (arm_frame_num_args): New function.
14278         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14279         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14280         (FRMA_NUM_ARGS): Call arm_frame_num_args.
14281
14282 2002-01-31  Michael Snyder  <msnyder@redhat.com>
14283
14284         * breakpoint.c (break_at_finish_command): Export.
14285         (break_at_finish_at_depth_command): Export.
14286         (tbreak_at_finish_command): Export.
14287         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14288         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14289         "txbreak" commands, which are HPPA specific.
14290
14291         * printcmd.c (disassemble_command): Remove an ancient
14292         artifact of an old merge.
14293
14294         * symfile.h (enum overlay_debugging_state):
14295         Define enum constant values for overlay mode.
14296         * symfile.c (overlay_debugging): Use enums instead of literals.
14297         (overlay_is_mapped, overlay_auto_command,
14298         overlay_manual_command): Ditto.
14299
14300         * breakpoint.c (insert_breakpoints, remove_breakpoint,
14301         breakpoint_here_p, breakpoint_inserted_here_p,
14302         breakpoint_thread_match, bpstat_stop_status,
14303         describe_other_breakpoints, check_duplicates, clear_command):
14304         Coding standard fixes.
14305
14306         * target.c (target_xfer_memory): Add spaces, coding standard.
14307         (do_xfer_memory): Add missing line to trust-readonly
14308         code: check bfd SEC_READONLY flag for section.
14309
14310 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
14311
14312         * PROBLEMS: Fix typo, 5.1->5.1.1.
14313
14314 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
14315
14316         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14317         data symbols, since we search based on textlow and texthigh.
14318         (find_pc_sect_symtab): Likewise.
14319
14320 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14321
14322         * defs.h (vwarning): Declare.
14323         * utils.c (vwarning): New function.
14324         (warning): Call vwarning.
14325         (warning_begin): Delete function.
14326
14327         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14328         the warning message.
14329         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14330         warning_begin.
14331
14332 2002-01-30  Michael Snyder  <msnyder@redhat.com>
14333
14334         * NEWS: Mention "set trust-readonly-sections" command.
14335         Mention generate-core-file command.
14336
14337 2002-01-15  Michael Snyder  <msnyder@redhat.com>
14338
14339         * target.c: New command, "set trust-readonly-sections on".
14340         (do_xfer_memory): Honor the suggestion to trust readonly sections
14341         by reading them from the object file instead of from the target.
14342         (initialize_targets): Register command "set trust-readonly-sections".
14343
14344 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14345
14346         * parse.c (target_map_name_to_register): Simplify, search regs and
14347         pseudo-regs using a single loop.
14348
14349 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
14350
14351         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14352
14353 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
14354
14355         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14356         * config/i386/i386v42mp.mh: Add i387-nat.o .
14357         * i386v4-nat.c: Include i387-nat.h.
14358         (supply_fpregset): Use i387_supply_fsave.
14359         (fill_fpregset): Use i387_fill_fsave.
14360
14361 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
14362
14363         * arm-tdep.c (arm_call_dummy_words): Define.
14364         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14365         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14366         (CALL_DUMMY_WORDS): Define.
14367         (arm_call_dummy_words): Declare.
14368         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14369         (arm_linux_call_dummy_words): Declare.
14370
14371 2002-01-30  Andreas Schwab  <schwab@suse.de>
14372
14373         * m68klinux-nat.c: Fix last change to use regcache_collect
14374         instead of referencing registers[] directly.
14375
14376 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
14377
14378         * parse.c (target_map_name_to_register): Delete code wrapped in
14379         #ifdef REGISTER_NAME_ALIAS_HOOK.
14380
14381 2002-01-28  Michael Snyder  <msnyder@redhat.com>
14382
14383         * regcache.c (legacy_read_register_gen): Need to be able to
14384         read pseudo-register as well as real register.
14385         (legacy_write_register_gen): Ditto.
14386
14387 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14388
14389         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14390         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14391         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14392         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14393         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14394         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14395         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14396         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14397         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14398         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14399         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14400         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14401         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14402         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14403         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14404         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14405         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14406         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14407         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14408         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14409
14410 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14411
14412         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14413         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14414         (initialize_current_architecture): Update target_byte_order using
14415         information from BFD.
14416         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14417         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14418
14419 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
14420
14421         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14422         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
14423
14424         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14425         #ifdef INVALID_FLOAT.
14426         * infcmd.c (do_registers_info): Ditto.
14427         * values.c (unpack_double): Ditto.  Add comment.
14428
14429         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14430         already commented out.
14431
14432 2002-01-26  Andreas Schwab  <schwab@suse.de>
14433
14434         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14435         * m68klinux-nat.c: Update ptrace interface for fetching/storing
14436         registers and add support for PTRACE_GETREGS.
14437
14438 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
14439
14440         GDB 5.1.1 released from 5.1 branch.
14441         * NEWS: Add 5.1.1 news.
14442         * README: Sync with 5.1 branch.
14443
14444 2002-01-23  Fred Fish  <fnf@redhat.com>
14445
14446         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14447         stabstring on initial malloc.  Reallocing will copy it for us,
14448         if necessary.
14449
14450 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14451
14452         * Makefile.in (hpread_h): Delete.
14453         (HFILES_NO_SRCDIR): Remove hpread.h.
14454         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14455         (hpread.o): Update dependencies.
14456         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14457
14458         * hp-psymtab-read.c: Remove file.
14459         * hp-symtab-read.c: Remove file.
14460         * hpread.h: Remove file.
14461
14462         * hpread.c: Merge all contents of hp-psymtab-read.c,
14463         hp-symtab-read.c and hpread.h into this file, as it was prior to
14464         January 1999.
14465
14466         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14467         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14468         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14469         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14470
14471 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
14472
14473         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14474         fill_gregset): Call gdbarch_tdep() just once, assign result to
14475         variable and use that, instead of calling the function several
14476         times.
14477
14478 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14479
14480         * configure.host: Accept sparcv9 as alias for sparc64.
14481         * configure.tgt: Likewise.
14482
14483 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
14484
14485         * solib-aix5.c (build_so_list_from_mapfile)
14486         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14487         arguments is not reversed.
14488         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14489         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14490
14491 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
14492
14493         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14494         modified version of obsolete sh_fetch_pseudo_register.
14495         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14496         (sh4_register_read): New function.
14497         (sh_pseudo_register_write): New function. Renamed and modified
14498         version of obsolete sh_store_pseudo_register.
14499         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14500         (sh4_register_write): New function.
14501         (sh_gdbarch_init): Remove setting of gdbarch function
14502         fetch_pseudo_register and store_pseudo_register. Remove setting of
14503         register_convert_to_raw, register_convert_to_virtual,
14504         register_convertible.
14505         (sh_sh4_register_convertible): Delete. No longer needed. All is
14506         taken care by architecture specific functions
14507         register_read/register_write.
14508         (sh_sh4_register_convert_to_virtual): Make static.
14509         (sh_sh4_register_convert_to_raw): Ditto.
14510
14511 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
14512
14513         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14514         (floatformat_is_nan, floatformat_mantissa): Ditto.
14515
14516         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14517         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14518         builtin_type_ieee_double_little,
14519         builtin_type_ieee_double_littlebyte_bigword,
14520         builtin_type_m68881_ext, builtin_type_i960_ext,
14521         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14522         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14523         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14524         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14525
14526 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
14527
14528         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14529         parameter.  Set frameless flag if it exists and depended of
14530         whether the scanned function is frameless or not.
14531         (xstormy16_skip_prologue): If function is frameless, return
14532         result of xstormy16_scan_prologue().
14533         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14534         call.
14535
14536 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
14537
14538         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14539         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14540         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14541         sh_sh4_register_byte, sh_sh4_register_raw_size,
14542         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14543         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14544         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14545         sh_store_pseudo_register, sh_do_pseudo_register): Call
14546         gdbarch_tdep() just once, assign result to variable and use that,
14547         instead of calling the function several times.
14548
14549 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
14550
14551         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14552         macros instead of LAST_FPU_CTRL_REGNUM.
14553         (store_register): Likewise.
14554
14555 2002-01-21  Jim Blandy  <jimb@redhat.com>
14556
14557         * infcmd.c (run_command): Check that the `exec' target layer's BFD
14558         is up-to-date before running the program, not just when a program
14559         exits.
14560
14561 2002-01-21  Fred Fish  <fnf@redhat.com>
14562
14563         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14564         when we have found all instructions we are looking for.
14565
14566 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14567
14568         * arm-tdep.c (arm_register_name): New function.
14569         (arm_registers_names): Make static.
14570         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14571         (arm_register_name): Declare.
14572         (REGISTER_NAME): Use it.
14573
14574 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
14575             Kevin Buettner  <kevinb@redhat.com>
14576
14577         Convert arm targets to new FRAME interface.
14578         * arm-tdep.c (struct frame_extra_info): Remove fsr.
14579         (arm_frame_find_save_regs): Delete.
14580         (arm_frame_init_saved_regs): New.
14581         (arm_init_extra_frame_info): Alloacte saved_regs as required.
14582         Allocate extra_info as required.  Convert all uses of fsr.regs
14583         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14584         to use extra_info.
14585         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14586         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14587         (check_prologue_cache, save_prologue_cache): Likewise.
14588         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14589         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14590         (FRAME_FIND_SAVED_REGS): Delete.
14591         (arm_frame_find_saved_regs): Delete prototype.
14592         (arm_frame_init_saved_regs): New prototype.
14593         (FRAME_INIT_SAVED_REGS): Define.
14594
14595 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14596
14597         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14598
14599 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14600
14601         From Jeff Law <law@redhat.com>:
14602         * infttrace.c: Include <sys/pstat.h>.
14603         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
14604         exec file if the ttrace equivalent fails.
14605
14606 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14607
14608         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14609         (closeLogFile): Ditto.
14610
14611 2002-01-20  Michael Chastain  <mec@shout.net>
14612
14613         * top.c (print_gdb_version): Bump copyright year to 2002.
14614
14615 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14616
14617         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14618         Zannoni and Eli Zaretskii.
14619
14620 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14621
14622         * buildsym.c: Update copyright years.
14623         * c-typeprint.c: Likewise.
14624         * dwarf2read.c: Likewise.
14625         * f-typeprint.c: Likewise.
14626         * gdbtypes.c: Likewise.
14627         * gdbtypes.h: Likewise.
14628         * hp-symtab-read.c: Likewise.
14629         * hpread.c: Likewise.
14630         * mdebugread.c: Likewise.
14631         * p-typeprint.c: Likewise.
14632
14633 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14634
14635         * remote-sim.c (gdbsim_open): Simplify code testing the macro
14636         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
14637         byte-order selectable.
14638         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14639         * arch-utils.c: Ditto.
14640         (set_endian): Ditto.
14641         (set_endian_from_file): Ditto.
14642         * gdbserver/low-sim.c (create_inferior): Ditto.
14643         * gdbarch.sh: Ditto.
14644         * gdbarch.h: Re-generate.
14645         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14646         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14647         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14648         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14649         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14650         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14651         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14652         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14653         macro definition.
14654         * config/mips/tm-wince.h: Remove #undef of macro
14655         TARGET_BYTE_ORDER_SELECTABLE.
14656         * config/sh/tm-wince.h: Ditto.
14657
14658 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14659
14660         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14661         member function fields.  Add accessor macro
14662         TYPE_FN_FIELD_ARTIFICIAL.
14663         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14664         * c-typeprint.c (c_type_print_base): Skip artificial member
14665         functions.
14666
14667 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14668
14669         * f-typeprint.c: Delete unused function f_type_print_args.
14670         * p-typeprint.c: Delete unused function pascal_type_print_args.
14671
14672 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
14673
14674         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
14675         comment.  Add ``artificial'' to ``union field_location''.
14676
14677         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14678
14679         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14680         * mdebugread.c (parse_symbol): Likewise.
14681         * stabsread.c (define_symbol): Likewise.
14682         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14683         initializing TYPE_FIELD_BITPOS to n (obsolete).
14684         (hpread_doc_function_type): Likewise.
14685         * hpread.c (hpread_function_type): Likewise.
14686
14687 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14688
14689         * configure.in (host_makefile_frag): Only require a host makefile
14690         fragment when a native build.
14691         * configure: Re-generate.
14692
14693 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
14694
14695         * doublest.h (floatformat_from_type): Declare.
14696         * doublest.c (floatformat_from_type): New function.
14697         (convert_typed_floating): Use.
14698
14699         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14700         call to function floatformat_from_type.
14701
14702         * gdbarch.sh (IEEE_FLOAT): Delete.
14703         * gdbarch.h, gdbarch.c: Re-generate.
14704         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14705         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14706         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14707         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14708         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14709         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14710         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14711         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14712         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14713         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14714         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14715         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14716
14717         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14718         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14719         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14720         * sh-tdep.c (sh_gdbarch_init): Ditto.
14721         * mips-tdep.c (mips_gdbarch_init): Ditto.
14722         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14723         * cris-tdep.c (cris_gdbarch_init): Ditto.
14724
14725 2002-01-20  Jiri Smid  <smid@suse.cz>
14726
14727         * configure.host, configure.tgt: Support x86-64.
14728         * NEWS: Note new target x86-64.
14729
14730         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14731         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14732         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14733         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14734         x86-64-linux-nat.o): Fix dependencies.
14735
14736 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14737
14738         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14739         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14740         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14741         * config/sparc/xm-sun4os4.h: Delete file.
14742         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14743
14744 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14745
14746         * config/sparc/sparclynx.mh (XM_FILE): Delete.
14747         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14748         * config/m68k/m68klynx.mh (XM_FILE): Delete.
14749         * config/i386/i386lynx.mh (XM_FILE): Delete.
14750         * config/rs6000/xm-rs6000ly.h: Delete file.
14751         * config/sparc/xm-sparclynx.h: Delete file.
14752         * config/m68k/xm-m68klynx.h: Delete file.
14753         * config/i386/xm-i386lynx.h: Delete file.
14754         * config/xm-lynx.h: Delete file.
14755         * config/djgpp/fnchange.lst: Update.
14756
14757 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14758
14759         * alpha-tdep.c (alpha_register_byte): New function.
14760         (alpha_register_raw_size): Ditto.
14761         (alpha_register_virtual_size): Ditto.
14762         (alpha_skip_prologue_internal): Renamed from
14763         alpha_skip_prologue.
14764         (alpha_skip_prologue): New version that calls
14765         alpha_skip_prologue_internal.
14766         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14767         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14768         second argument from alpha_skip_prologue.
14769         (REGISTER_BYTE): Use alpha_register_byte.
14770         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14771         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14772         (FRAMELESS_FUNCTION_INVOCATION): Use
14773         generic_frameless_function_invocation_not.
14774         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14775         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14776
14777 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14778
14779         * config/mips/xm-news-mips.h: Delete file.
14780         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14781
14782         * config/m88k/xm-m88k.h: Delete file.
14783         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14784         * config/m88k/xm-delta88v4.h: Ditto.
14785         * config/m88k/xm-delta88.h: Ditto.
14786
14787         * config/alpha/xm-fbsd.h: Delete file.
14788         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14789
14790         * config/sparc/xm-sparc.h: Delete file.
14791         * Makefile.in (xm-sun4os4.h): Delete dependency.
14792         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14793         * config/sparc/xm-sun4os4.h: Ditto.
14794         * config/sparc/xm-linux.h: Ditto.
14795
14796         * config/i386/xm-windows.h: Delete file.
14797
14798 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
14799
14800         * utils.c: Include <sys/param.h> for MAXPATHLEN.
14801         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14802
14803 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14804
14805         * alpha-tdep.c (alpha_call_dummy_words): New.
14806         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14807         (CALL_DUMMY_P): Define.
14808         (CALL_DUMMY_WORDS): Define.
14809         (SIZEOF_CALL_DUMMY_WORDS): Define.
14810
14811 2002-01-19  Per Bothner  <per@bothner.com>
14812
14813         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
14814         isn't NULL, which can happen with some gcj-3.x-produced code.
14815
14816 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
14817
14818         * alpha-tdep.c (alpha_register_virtual_type): New function.
14819         (alpha_init_frame_pc_first): Ditto.
14820         (alpha_fix_call_dummy): Ditto.
14821         (alpha_store_struct_return): Ditto.
14822         (alpha_extract_struct_value_address): Ditto.
14823         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14824         alpha_register_virtual_type.
14825         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14826         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14827         alpha_extract_struct_value_address.
14828         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14829         (INIT_FRAME_PC): Use init_frame_pc_noop.
14830         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14831
14832 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
14833
14834         * i386gnu-nat.c: Include "i386-tdep.h".
14835         (fetch_fpregs): Simplify code dealing with uninitialized floating
14836         point states such that it doesn't require FP7_REGNUM.
14837
14838 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14839
14840         * alpha-tdep.c (frame_extra_info): New.
14841         (alpha_find_saved_regs): Make static.  Use
14842         frame->extra_info.
14843         (alpha_frame_init_saved_regs): New function.
14844         (alpha_frame_saved_pc): Use frame->extra_info.
14845         (temp_saved_regs): Don't declare as struct frame_saved_regs.
14846         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14847         (init_extra_frame_info): Rename to...
14848         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
14849         (alpha_print_extra_frame_info): New function.
14850         (alpha_frame_locals_address): Ditto.
14851         (alpha_frame_args_address): Ditto.
14852         (alpha_pop_frame): Use frame->extra_info.
14853         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14854         alpha_frame_args_address.
14855         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14856         (alpha_find_saved_regs): Remove prototype.
14857         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14858         (EXTRA_FRAME_INFO): Remove.
14859         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14860         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14861
14862 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14863
14864         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14865         (alpha_cannot_fetch_register): Ditto.
14866         (alpha_cannot_store_register): Ditto.
14867         (alpha_register_convertible): Ditto.
14868         (alpha_use_struct_convention): Ditto.
14869         * config/alpha/tm-alpha.h: Update copyright years.
14870         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14871         (INNER_THAN): Use core_addr_lessthan.
14872         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14873         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14874         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14875         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14876         (FRAME_CHAIN): Remove unnecessary cast.
14877
14878 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14879
14880         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14881         obsolete.
14882
14883 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
14884
14885         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
14886         * monitor.c, remote-array.c, remote-bug.c: Ditto.
14887         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14888         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14889         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14890         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14891         * x86-64-linux-nat.c: Ditto.
14892
14893 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14894
14895         * alpha-tdep.c (alpha_register_name): New function.
14896         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14897         (REGISTER_NAME): Define.
14898
14899 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14900
14901         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14902
14903 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14904
14905         * alpha-tdep.c: Update copyright years.
14906         (alpha_next_pc): New function.
14907         (alpha_software_single_step): Ditto.
14908         * config/alpha/tm-alpha.h: Add prototype for
14909         alpha_software_single_step.
14910
14911 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14912
14913         * alphabsd-nat.c: Update copyright years.
14914         (fill_gregset): Use regcache_collect.
14915         (fill_fpregset): Likewise.
14916         (fetch_inferior_registers): Only fetch integer registers
14917         if requested to do so.
14918         (store_inferior_registers): Only store integer registers
14919         if requested to do so.
14920
14921 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
14922
14923         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14924         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14925         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14926         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14927         * config/alpha/fbsd.mh (XDEPFILES): Delete.
14928         * config/arm/linux.mh (XDEPFILES): Delete.
14929         * config/arm/nbsd.mh (XDEPFILES): Delete.
14930         * config/i386/i386dgux.mh (XDEPFILES): Delete.
14931         * config/i386/i386sol2.mh (XDEPFILES): Delete.
14932         * config/i386/i386m3.mh (XDEPFILES): Delete.
14933         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14934         * config/i386/i386gnu.mh (XDEPFILES): Delete.
14935         * config/i386/fbsd.mh (XDEPFILES): Delete.
14936         * config/i386/i386bsd.mh (XDEPFILES): Delete.
14937         * config/i386/i386sco5.mh (XDEPFILES): Delete.
14938         * config/i386/i386v4.mh (XDEPFILES): Delete.
14939         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14940         * config/i386/i386sco4.mh (XDEPFILES): Delete.
14941         * config/i386/i386aix.mh (XDEPFILES): Delete.
14942         * config/i386/go32.mh (XDEPFILES): Delete.
14943         * config/i386/cygwin.mh (XDEPFILES): Delete.
14944         * config/i386/i386lynx.mh (XDEPFILES): Delete.
14945         * config/i386/i386mach.mh (XDEPFILES): Delete.
14946         * config/i386/i386v32.mh (XDEPFILES): Delete.
14947         * config/i386/linux.mh (XDEPFILES): Delete.
14948         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14949         * config/i386/ncr3000.mh (XDEPFILES): Delete.
14950         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14951         * config/i386/i386sco.mh (XDEPFILES): Delete.
14952         * config/i386/i386v.mh (XDEPFILES): Delete.
14953         * config/i386/nbsd.mh (XDEPFILES): Delete.
14954         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14955         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14956         * config/i386/symmetry.mh (XDEPFILES): Delete.
14957         * config/i386/obsd.mh (XDEPFILES): Delete.
14958         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14959         * config/ia64/linux.mh (XDEPFILES): Delete.
14960         * config/ia64/aix.mh (XDEPFILES): Delete.
14961         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14962         * config/m68k/dpx2.mh (XDEPFILES): Delete.
14963         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14964         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14965         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14966         * config/m68k/linux.mh (XDEPFILES): Delete.
14967         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14968         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14969         * config/m68k/nbsd.mh (XDEPFILES): Delete.
14970         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14971         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14972         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14973         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14974         * config/m88k/delta88.mh (XDEPFILES): Delete.
14975         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14976         * config/m88k/m88k.mh (XDEPFILES): Delete.
14977         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14978         * config/mips/linux.mh (XDEPFILES): Delete.
14979         * config/mips/irix6.mh (XDEPFILES): Delete.
14980         * config/mips/irix5.mh (XDEPFILES): Delete.
14981         * config/mips/irix4.mh (XDEPFILES): Delete.
14982         * config/mips/irix3.mh (XDEPFILES): Delete.
14983         * config/mips/decstation.mh (XDEPFILES): Delete.
14984         * config/mips/mipsm3.mh (XDEPFILES): Delete.
14985         (NATDEPFILES): Move core-aout.o to here.
14986         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14987         * config/pa/hpux1020.mh (XDEPFILES): Delete.
14988         * config/pa/hppabsd.mh (XDEPFILES): Delete.
14989         * config/pa/hppahpux.mh (XDEPFILES): Delete.
14990         * config/pa/hpux11w.mh (XDEPFILES): Delete.
14991         * config/pa/hppaosf.mh (XDEPFILES): Delete.
14992         * config/pa/hpux11.mh (XDEPFILES): Delete.
14993         * config/powerpc/aix.mh (XDEPFILES): Delete.
14994         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14995         * config/powerpc/linux.mh (XDEPFILES): Delete.
14996         * config/romp/rtbsd.mh: Rename XDEPFILES.
14997         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14998         * config/rs6000/aix4.mh (XDEPFILES): Delete.
14999         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15000         * config/s390/s390.mh (XDEPFILES): Delete.
15001         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15002         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15003         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15004         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15005         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15006         * config/sparc/nbsd.mh (XDEPFILES): Delete.
15007         * config/sparc/linux.mh (XDEPFILES): Delete.
15008         * config/vax/vaxult.mh (XDEPFILES): Delete.
15009         * config/vax/vaxult2.mh (XDEPFILES): Delete.
15010         * Makefile.in (DEPFILES): Remove XDEPFILES.
15011
15012 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15013
15014         * utils.c (internal_verror): Fix comments, default is yes not no.
15015         Update queries to match.  Default to quit and dump core.
15016
15017 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
15018
15019         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
15020         copyright.
15021         * defs.h, event-top.c, gdbcmd.h: Ditto.
15022         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15023         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15024         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15025         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15026         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15027         * mi/mi-main.c:Ditto.
15028
15029         * stack.c, symfile.c: Update copyright.
15030
15031 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15032
15033         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15034         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15035         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15036         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15037
15038 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
15039
15040         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15041         * gdbserver/low-lynx.c (myattach): Likewise.
15042         * gdbserver/low-nbsd.c (myattach): Likewise.
15043         * gdbserver/low-sim.c (myattach): Likewise.
15044         * gdbserver/low-sparc.c (myattach): Likewise.
15045         * gdbserver/low-sun3.c (myattach): Likewise.
15046
15047         * gdbserver/low-linux.c (myattach): New function.
15048
15049         * gdbserver/server.c (attach_inferior): New function.
15050         (main): Handle "--attach".
15051
15052 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
15053
15054         * MAINTAINERS (language support): Daniel Jacobwitz is C++
15055         maintainer.
15056
15057 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
15058
15059         * c-typeprint.c (is_type_conversion_operator): Add additional
15060         check for non-conversion operators.
15061
15062 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15063
15064         * linux-proc.c: Add "info proc" command, a la procfs.c.
15065         (read_mapping): New function, abstract and re-use code.
15066         (linux_find_memory_regions): Use new func read_mapping.
15067         (linux_info_proc_cmd): New function, implement "info proc".
15068         (_initialize_linux_proc): Add new command "info proc".
15069
15070 2002-01-15  Michael Snyder  <msnyder@redhat.com>
15071
15072         * symfile.c (generic_load): Use bfd_map_over_sections method
15073         instead of manipulating bfd structure members directly.
15074         (add_section_size_callback): New function, bfd sections callback
15075         used by generic_load.
15076         (load_sections_callback): New function, bfd sections callback
15077         used by generic_load.
15078
15079 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
15080
15081         [Based on work by Jim Blandy]
15082         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15083         (builtin_type_vec128): Export.
15084         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15085         types.
15086         (builtin_type_vec128): New builtin type for 128 bit vector
15087         registers.
15088         (build_gdbtypes): Initialize builtin_type_v16qi and
15089         builtin_type_v8hi. Create the vec128 register builtin type
15090         structure.
15091         (build_builtin_type_vec128): New function.
15092         (_initialize_gdbtypes): Register builtin_type_v16qi and
15093         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15094         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15095         AltiVec register to new builtin type.
15096
15097 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
15098
15099         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15100         to make_cv_type.
15101
15102 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15103
15104         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15105         CLEAN_UP_REGISTER_VALUE.
15106         * regcache.c (supply_register): Update only call.
15107
15108 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
15109
15110         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15111         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15112         a29k-*-vxworks* targets as obsolete.
15113
15114 2002-01-14  Michael Snyder  <msnyder@redhat.com>
15115
15116         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15117         until we can resolve portability issues.
15118         * gregset.h: Remove references to fpxregs.
15119         * gcore.c (gcore_command): Initialize note_sec to NULL.
15120
15121 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15122
15123         * signals.c (target_signal_to_name): Rewrite.  Only use
15124         signals[].name when in bounds and non-NULL.
15125
15126 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15127
15128         From Petr Ledvina <ledvinap@kae.zcu.cz>:
15129         * signals.c (target_signal_to_name): Verify that SIG is within the
15130         bounds of the signals array.
15131
15132 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15133
15134         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15135
15136 2002-01-13  Keith Seitz  <keiths@redhat.com>
15137
15138         * stack.c (print_frame_info_base): Print the frame's pc
15139         only if when print_frame_info_listing_hook is not defined.
15140
15141 2002-01-13  Keith Seitz  <keiths@redhat.com>
15142
15143         * varobj.c (varobj_set_value): Make sure that there were no
15144         errors evaluating the object before attempting to set its
15145         value.
15146         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15147         so this offset adjustment is no longer necessary.
15148         (create_child): Don't set the error flag if the child is
15149         a CPLUS_FAKE_CHILD.
15150         (value_of_child): If value_fetch_lazy fails, return NULL
15151         so that callers will be notified that an error occurred.
15152         (c_value_of_variable): Delay check of variable's validity
15153         until later. We actually want all structs and unions to have
15154         the value "{...}".
15155         Do not return "???" for variables which could not be evaluated.
15156         This error condition must be returned to the caller so that it
15157         can get the error condition from gdb.
15158         (cplus_name_of_child): Adjust index for vptr before figuring
15159         out the name of the child.
15160         (cplus_value_of_child): If a child's (real) parent is not valid,
15161         don't even bother trying to give a value for it. Just return
15162         an error. Change all instances in this function.
15163         (cplus_type_of_child): If our parent is one of the "fake"
15164         parents, we need to get at the type of the real parent, and
15165         derive the child's true type using this information.
15166
15167 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15168
15169         From 2002-01-09 John Marshall <johnm@falch.net>:
15170         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15171         sources.redhat.com, and tweak some related URLs which had
15172         suffered from linkrot.
15173
15174 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
15175
15176         From Jeff law:
15177         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15178         structures passed in registers.
15179
15180 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
15181
15182         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15183         white space which prevented compilation.  Reported by DSK
15184         <dsk@student.unsw.edu.au>.
15185
15186 2002-01-11  Michael Snyder  <msnyder@redhat.com>
15187
15188         * symfile.c (build_section_addr_info_from_section_tab):
15189         Use bfd access method instead of manipulating bfd directly.
15190         (syms_from_objfile): Ditto.
15191         (simple_overlay_update_1): Ditto.
15192         (simple_overlay_update): Ditto.
15193         (generic_load): Ditto.
15194         (overlay_unmapped_address): FIXME comment, bfd access methods.
15195         (sections_overlap): FIXME comment, bfd access methods.
15196         (pc_in_mapped_range): FIXME comment, bfd access methods.
15197         (pc_in_unmapped_range): FIXME comment, bfd access methods.
15198         (section_is_mapped): FIXME comment, bfd access methods.
15199         (section_is_overlay): FIXME comment, bfd access methods.
15200
15201         * symfile.c (generic_load): Whitespace and long line cleanups.
15202         Remove duplicate variable, change several local variables to
15203         more appropriate data types.
15204         (print_transfer_performance): Use %lu instead of %ld for ulongs.
15205
15206 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15207
15208         From Peter Schauer:
15209         * language.c (longest_local_hex_string_custom): Use phex_nz to
15210         convert NUM to a hex string.
15211
15212 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
15213
15214         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15215         the function.
15216         Update Copyright year.
15217
15218 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
15219
15220         * language.c (longest_raw_hex_string): Delete unused function.
15221
15222 2002-01-11  Petr Sorfa  <petrs@caldera.com>
15223
15224         * MAINTAINERS (write-after-approval): Add myself.
15225         * dwarf2read.c (read_tag_string_type): Handling of
15226         DW_AT_byte_size.
15227         (read_tag_string_type): FORTRAN fix to prevent propagation of
15228         first string size.
15229         (set_cu_language): Handling of DW_LANG_Fortran95
15230
15231 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
15232
15233         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15234         GETPID(inferior_ptid).
15235         (store_inferior_registers): Likewise.
15236
15237 2002-01-10  Jason Merrill  <jason@redhat.com>
15238
15239         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15240         Fix DW_OP_minus.
15241
15242 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
15243
15244         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15245         and bfd/elf32-sh-nbsd.c.
15246
15247 2002-01-10  Michael Snyder  <msnyder@redhat.com>
15248
15249         * NEWS: Mention --pid and corefile/proc-id behavior change.
15250
15251         * Makefile.in: Add rules for gcore.o and linux-proc.o.
15252         * gcore.c: Include cli/cli-decode.h instead of command.h.
15253
15254         * main.c (captured_main): Add new command line option "--pid".
15255         If the second command line argument (following the symbol-file)
15256         begins with a digit, try to attach to it before trying to open
15257         it as a corefile.
15258         (print_gdb_help): Document the "--pid" argument.
15259
15260 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
15261
15262         * completer.c (command_completer): New function.
15263
15264         * completer.h <command_completer>: Add prototype.
15265
15266         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15267         completer for the "help" command.
15268
15269 2002-01-09  Jason Merrill  <jason@redhat.com>
15270
15271         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15272
15273 2002-01-09  Michael Snyder  <msnyder@redhat.com>
15274
15275         * i386-linux-nat.c (fill_fpxregset): Make global.
15276         (store_fpxregset): Ditto.
15277
15278         * gregset.h (gdb_fpxregset_t): Define.
15279         (supply_fpxregset): Prototype.
15280         (fill_fpxregset): Prototype.
15281
15282         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15283
15284 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15285
15286         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15287         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15288         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15289
15290 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
15291
15292         * MAINTAINERS: Update target maintainer rules so that any
15293         Maintainer can approve a tested patch for a maintenance-only
15294         target.
15295
15296 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
15297
15298         * MAINTAINERS (write-after-approval): Add myself.
15299
15300         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15301         IN_SIGTRAMP.
15302
15303 2002-01-08  Michael Snyder  <msnyder@redhat.com>
15304
15305         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15306         real name of the executable, rather than the /proc name.
15307
15308 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15309
15310         Implement a "generate-core-file" command in gdb, save target state.
15311         * gcore.c: New file.  Implement new command 'generate-core-file'.
15312         Save a corefile image of the current state of the inferior.
15313         * linux-proc.c: Add linux-specific code for saving corefiles.
15314         * target.h (struct target_ops): Add new target vectors for saving
15315         corefiles; to_find_memory_regions and to_make_corefile_notes.
15316         (target_find_memory_regions): New macro.
15317         (target_make_corefile_notes): New macro.
15318         * target.c (update_current_target): Inherit new target methods.
15319         (dummy_find_memory_regions): New place-holder method.
15320         (dummy_make_corefile_notes): New place-holder method.
15321         (init_dummy_target): Initialize new dummy target vectors.
15322         * exec.c (exec_set_find_memory_regions): New function.
15323         Allow the exec_ops vector for memory regions to be taken over.
15324         (exec_make_note_section): New function, target vector method.
15325         * defs.h (exec_set_find_memory_regions): Export prototype.
15326         * procfs.c (proc_find_memory_regions): New function, corefile method.
15327         (procfs_make_note_section): New function, corefile method.
15328         (init_procfs_ops): Set new target vector pointers.
15329         (find_memory_regions_callback): New function.
15330         (procfs_do_thread_registers): New function.
15331         (procfs_corefile_thread_callback): New function.
15332         * sol-thread.c (sol_find_memory_regions): New function.
15333         (sol_make_note_section): New function.
15334         (init_sol_thread_ops): Initialize new target vectors.
15335         * inftarg.c (inftarg_set_find_memory_regions): New function.
15336         Allow to_find_memory_regions vector to be taken over.
15337         (inftarg_set_make_corefile_notes): New function.
15338         Allow to_make_corefile_notes vector to be taken over.
15339         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15340         interface layer if not target_has_execution (may be a corefile).
15341         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15342         * config/sparc/sun4sol2.mh: Ditto.
15343         * config/alpha/alpha-linux.mh: Ditto.
15344         * config/arm/linux.mh: Ditto.
15345         * config/i386/x86-64linux.mh: Ditto.
15346         * config/ia64/linux.mh: Ditto.
15347         * config/m68k/linux.mh: Ditto.
15348         * config/mips/linux.mh: Ditto.
15349         * config/powerpc/linux.mh: Ditto.
15350         * config/sparc/linux.mh: Ditto.
15351
15352 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15353
15354         * arm-linux-nat.c: Remove references to regcache.c internal data
15355         (registers[] and register_valid[]).
15356
15357 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15358
15359         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
15360         so that attaching to a pid will automatically read the process's
15361         symbol file and shlibs.
15362         * Makefile.in: Add rule for linux-proc.o.
15363         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15364         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15365         * config/arm/linux.mh: Ditto.
15366         * config/i386/linux.mh: Ditto.
15367         * config/i386/x86-64linux.mh: Ditto.
15368         * config/ia64/linux.mh: Ditto.
15369         * config/m68k/linux.mh: Ditto.
15370         * config/mips/linux.mh: Ditto.
15371         * config/powerpc/linux.mh: Ditto.
15372         * config/sparc/linux.mh: Ditto.
15373
15374 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
15375
15376         * win32-nat.c: Add i386-tdep.h dependency.
15377
15378 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15379
15380         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15381         instead of bfd_get_arch_size.  Don't bail out just because
15382         there's no exec_bfd.
15383
15384         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15385         * p-valprint.c (pascal_object_print_value): Ditto.
15386         * somread.c (som_symtab_read): Ditto.
15387         * symfile.c (simple_free_overlay_region_table): Ditto.
15388         * valops.c (value_assign): Ditto.
15389
15390         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15391         use tilde_expand and strerror for opening save-tracepoints file.
15392
15393         * thread-db.c (thread_db_new_objfile): Indendation fix.
15394
15395         * infptrace.c (GDB_MAX_ALLOCA): New define.
15396         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15397         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15398         can be overridden with whatever value is appropriate to the host).
15399         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15400         alloca to allocate potentially large buffer.
15401         * rs6000-nat.c (child_xfer_memory): Ditto.
15402         * symm-nat.c (child_xfer_memory): Ditto.
15403         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15404
15405 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
15406
15407         From Nick Clifton  <nickc@redhat.com>
15408         * d10v-tdep.c: Set STACK_START to 0x200bffe.
15409
15410 2002-01-07  Michael Snyder  <msnyder@redhat.com>
15411
15412         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15413         Don't use exec_bfd if it's NULL.
15414
15415 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
15416
15417         * valops.c (value_arg_coerce): Fix formatting.
15418
15419 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15420
15421         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15422         * gnu-nat.c: Ditto.
15423
15424 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15425
15426         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15427         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15428         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15429         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15430         z8k-coff have not been multi-arched.  Update z8k-coff build
15431         status.
15432
15433 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
15434
15435         * MAINTAINERS: Mark a29k target as obsolete.
15436         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15437         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
15438         comments.
15439         * NEWS: Note that a29k targets are obsolete.
15440         * a29k-tdep.c: Mark as obsolete.
15441         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15442         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15443         a29k-*-vxworks* targets as obsolete.
15444         * remote-adapt.c: Obsolete.
15445         * remote-eb.c: Obsolete.
15446         * remote-mm.c: Obsolete.
15447         * remote-udi.c: Obsolete.
15448         * config/a29k/a29k-udi.mt: Obsolete.
15449         * config/a29k/a29k.mt: Obsolete.
15450         * config/a29k/tm-a29k.h: Obsolete.
15451         * config/a29k/tm-vx29k.h: Obsolete.
15452         * config/a29k/vx29k.mt: Obsolete.
15453
15454 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15455
15456         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15457         with BFD_ENDIAN_BIG.
15458
15459 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15460
15461         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15462         * configure, config.in: Re-generate.
15463         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15464         * defs.h: Do not include <endian.h>.
15465
15466 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
15467
15468         * acconfig.h (HAVE_PT_GETXMMREGS): New.
15469         * config.in: Regenerate.
15470         * configure.in: Update copyright years.
15471         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15472         * configure: Regenerate.
15473         * i386bsd-nat.c: Update copyright years.
15474         (fill_gregset): Use regcache_collect.
15475         (fetch_inferior_registers): Only fetch integer registers
15476         if requested to do so.  Add support for XMM registers
15477         using PT_GETXMMREGS.
15478         (store_inferior_registers): Only store integer registers
15479         if requested to do so.  Add support for XMM registers
15480         using PT_SETXMMREGS.
15481         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15482         (store_inferior_registers): Remove.
15483         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15484         (fetch_elfcore_registers): New function.
15485         (i386nbsd_elfcore_fns): New.
15486         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15487         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15488         i386bsd-nat.o.
15489         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15490         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15491         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15492         * config/i386/tm-nbsd.h: Update copyright years.
15493         (HAVE_SSE_REGS): Define.
15494         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15495         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15496         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15497         (SIGCONTEXT_PC_OFFSET): Remove.
15498         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15499
15500 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
15501
15502         * configure.tgt: Remove powerpc-*-macos* target.
15503         * config/m68k/xm-mpw.h: Delete file.
15504         * config/xm-mpw.h: Delete file.
15505         * ser-mac.c: Delete file.
15506         * mpw-make.sed: Delete file.
15507         * mpw-config.in: Delete file.
15508         * mac-xdep.c: Delete file.
15509         * mac-gdb.r: Delete file.
15510         * mac-defs.h: Delete file.
15511         * mac-nat.c: Delete file.
15512         * config/powerpc/macos.mh: Delete file.
15513         * config/powerpc/macos.mt: Delete file.
15514         * config/powerpc/nm-macos.h: Delete file.
15515         * config/powerpc/tm-macos.h: Delete file.
15516         * source.c (openp, open_source_file): Remove obsolete code.
15517         * top.c (gdb_readline): Ditto.
15518         * utils.c (query): Ditto.
15519         * event-top.c (display_gdb_prompt): Ditto.
15520         * Makefile.in (ser-mac.o): Delete obsolete target.
15521         * NEWS: Update.
15522
15523 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15524
15525         * defs.h (BIG_ENDIAN): Delete macro definition.
15526         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15527         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15528         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15529         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15530         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15531         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15532         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15533         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15534         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15535         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15536         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15537         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15538         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15539         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15540         * gdbarch.c: Re-generate.
15541
15542 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15543
15544         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15545         for core files.
15546
15547 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15548
15549         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15550
15551 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
15552
15553         * value.h (value_ptr): Delete typedef.
15554
15555 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
15556
15557         * i386nbsd-nat.c: Update copyright years.
15558         Include i386-tdep.h.
15559
15560 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
15561
15562         * stabsread.c: Update copyright years.
15563
15564         From Debashis Mahata <debashis.mahata@wipro.com>:
15565         (read_struct_fields): Deal with Sun C compiler erroneous stab
15566         output for structs and unions.
15567         Fix PR gdb/269.
15568
15569 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15570
15571         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15572         prototype.
15573
15574 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15575
15576         * cp-abi.c: Fix whitespace.
15577         (baseclass_offset): New wrapper function.
15578         * cp-abi.h (baseclass_offset): Add prototype.
15579         (struct cp_abi_ops): Add baseclass_offset pointer.
15580
15581         * valops.c (vb_match): Move to...
15582         * gnu-v2-abi.c (vb_match): here.
15583         * valops.c (baseclass_offset): Move to...
15584         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15585
15586         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15587
15588         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15589         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15590         * hpacc-abi.c (init_hpacc_ops): Likewise.
15591
15592 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15593
15594         * valops.c (find_overload_match): Accept obj as a
15595         reference parameter.  Update it before returning.
15596         * value.h (find_overload_match): Update prototype.
15597         * eval.c (evaluate_subexp_standard): Pass object to
15598         find_overload_match by reference.
15599
15600 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
15601
15602         * valarith.c: Replace value_ptr with struct value pointer.  Remove
15603         register attribute from value declarations.
15604         * valops.c: Ditto.
15605         * value.h: Ditto.
15606         * scm-lang.c (scm_lookup_name): Ditto.
15607
15608 2002-01-03  Michael Snyder  <msnyder@redhat.com>
15609
15610         Abstract the functionality of iterating over mapped memory
15611         regions into a general purpose iterator function.
15612         * procfs.c (iterate_over_mappings): New function, general purpose
15613         iterator for memory sections.
15614         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15615         (solib_mappings_callback): New function, callback for above.
15616         (info_proc_mappings): Reimpliment using iterate_over_mappings.
15617         (info_mappings_callback): New function, callback for above.
15618
15619         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15620
15621 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
15622
15623         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15624         * i386-tdep.c: Include "elf-bfd.h".
15625         (process_note_abi_tag_sections): New function.
15626         (i386_gdbarch_init): Add code to recognize various OS/ABI
15627         combinations.
15628
15629         * maint.c (_initialize_maint_cmds): Add missing \ in
15630         string-literal.
15631
15632 For older changes see ChangeLog-2001
15633 \f
15634 Local Variables:
15635 mode: change-log
15636 left-margin: 8
15637 fill-column: 74
15638 version-control: never
15639 End: