* osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2002-09-11  J. Brobecker  <brobecker@gnat.com>
2
3         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4
5 2002-09-11  J. Brobecker  <brobecker@gnat.com>
6
7         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
8         Interix.
9
10 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
11
12         * procfs.c (do_detach): Clear current signal, not just fault.
13         Corrects problem with breakpoint trap signal leaking to detached
14         process on Tru64.
15
16 2002-09-10  Michael Snyder  <msnyder@redhat.com>
17
18         * buildsym.c (finish_block): Protect against null pointer.
19
20 2002-09-10  Andrew Cagney  <cagney@redhat.com>
21
22         * infcmd.c (default_print_registers_info): Send all output to
23         ``file'' instead of ``gdb_stdout''.
24
25 2002-09-10  Michael Snyder  <msnyder@redhat.com>
26
27         * mips-tdep.c (mips_extract_struct_value_address): Make val a
28         LONGEST, and use signed register read (addresses are sign-
29         extended for mips).
30
31 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
32
33         * event-loop.c (gdb_do_one_event): Make public.
34         * event-loop.h (gdb_do_one_event): Declare.
35
36 2002-09-10  Jeff Law  <law@redhat.com>
37
38         * infttrace.c (child_resume): Simplify and rework to avoid
39         TT_PROC_CONTINUE.
40
41 2002-09-09  Fred Fish  <fnf@intrinsity.com>
42
43         * printcmd.c (print_scalar_formatted): "len" is the number of
44         target bytes, NOT the number of target bits.
45
46 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
47
48         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
49         * top.c (init_main): Set rl_terminal_name.
50
51 2002-09-08  Aidan Skinner <aidan@velvet.net>
52
53         * ada-lang.c (ada_array_bound, ada_type_match,
54         _initialize_ada_language): Fix K&R definitions.
55         * ada-tasks.c (get_current_task): Fix K&R definitions.
56         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
57                         
58 2002-09-07  Christopher Faylor  <cgf@redhat.com>
59
60         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
61         Add XP.
62
63 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
64
65         * i386-tdep.c (i386_register_virtual_type,
66         i386_register_convertible, i386_register_convert_to_virtual,
67         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
68         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
69         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
70         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
71         Don't set push_arguments twice.
72
73         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
74         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
75         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
76         sigtramp_end to NULL.
77         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
78         defines.
79         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
80
81         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
82         whitespace.
83
84         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
85         * gdbarch.h, gdbarch.c: Re-generate.
86         * blockframe.c (find_pc_sect_partial_function): Convert to use
87         SIGTRAMP_START_P predicate.
88
89 2002-09-05  Michael Snyder  <msnyder@redhat.com>
90
91         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
92         generic_dummy_frame method and old method.  Also distinguish
93         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
94         (arm_extract_return_value): Use new regcache method.
95
96         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
97         adjustment that doesn't conform to the ABI.
98         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
99         saved regcache, not from current regcache.
100
101 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
102
103         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
104         * README: Update.
105
106 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
107
108         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
109         if arm_apcs_32 is false.
110
111 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
112
113         GDB 5.3 branch created.
114
115 2002-09-03  Theodore A. Roth  <troth@verinet.com>
116
117         * gdb/avr-tdep.c (avr_gdbarch_init): Use
118         generic_unwind_get_saved_register.
119
120 2002-09-03  David Carlton  <carlton@math.stanford.edu>
121
122         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
123         argument (PR gdb/653).  Update call to smash_to_method_type.
124         (read_structure_scope): Update call to dwarf2_add_member_fn.
125
126 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
127
128         * x86-64-linux-tdep.c: Include gdb_string.h
129         * x86-64-linux-nat.c: Ditto.
130
131 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
132
133         * ada-exp.y (yyname, yyrule): Remap global variables that appear
134         when YYDEBUG is set to 1.  
135         * c-exp.y: Likewise.
136         * f-exp.y: Likewise.
137         * jv-exp.y: Likewise.
138         * m2-exp.y: Likewise.
139         * p-exp.y: Likewise.
140
141 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
142
143         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
144         dependency list.
145         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
146         solib_svr4_fetch_link_map_offsets to
147         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
148         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
149         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
150         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
151         solib-svr4.o, and solib-legacy.o.
152         * config/i386/tm-nbsd.h: Include solib.h.
153
154 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
155
156         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
157         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
158         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
159         comment noting that this needs its own target configuration.
160         * config/i386/nbsd.mt: New file.
161         * config/i386/nbsdaout.mt: Remove.
162         * config/i386/nbsdelf.mt: Ditto.
163         * config/i386/tm-nbsdaout.h: Ditto. 
164
165 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
166
167         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
168         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
169         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
170         tdep->sigtramp_end.
171         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
172         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
173         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
174
175 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
176
177         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
178         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
179         * i386-tdep.h (i386bsd_init_abi): New prototype.
180         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
181         function declaration.
182         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
183         for NetBSD-a.out or NetBSD-ELF.
184         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
185         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
186         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
187         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
188         and nbsd-tdep.h.
189         (i386nbsd_pc_in_sigtramp): New function.
190         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
191         i386nbsd_pc_in_sigtramp.
192         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
193         and i386nbsdelf_init_abi OS ABI handlers.
194         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
195         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
196
197 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
198
199         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
200         registers if the target really has them.
201
202 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
203
204         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
205         than nbsd-tdep.h.
206
207 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
208
209         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
210         list.
211         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
212         (alphanbsd_skip_sigtramp_frame): New functions. 
213         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
214         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
215         to alphanbsd_sigcontext_addr. 
216
217 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
218
219         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
220         list.
221         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
222         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
223         nbsd_pc_in_sigtramp. 
224         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
225         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
226         * nbsd-tdep.c: Include gdb_string.h.
227         (nbsd_pc_in_sigtramp): New function. 
228         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
229         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
230         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
231         ppcnbsd_pc_in_sigtramp. 
232         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
233         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
234         shnbsd_pc_in_sigtramp. 
235         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
236         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
237         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
238
239 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
240
241         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
242         watchpoints to NULL.
243         (insert_breakpoints): set val field of watchpoints if NULL.
244
245
246 2002-08-29  Jim Blandy  <jimb@redhat.com>
247
248         * symtab.c (lookup_symbol_aux): In the cases where we find a
249         minimal symbol of an appropriate name and use its address to
250         select a symtab to read and search, use `name' (as passed to us)
251         as the demangled name when searching the symtab's global and
252         static blocks, not the minsym's name.
253
254 2002-08-29  Keith Seitz  <keiths@redhat.com>
255
256         * stack.c (print_frame_info_base): Always set current_source_symtab
257         and current_source_line.
258
259 2002-08-29  Donn Terry  <donnte@microsoft.com>
260
261         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
262
263 2002-08-28  Keith Seitz  <keiths@redhat.com>
264
265         * stack.c (select_frame): Add FIXME concerning selected-frame
266         events.
267         (select_frame_command): Send selected-frame-level-changed
268         event notification, but only if the level actually changed.
269         (up_silently_base): Add selected-frame-level-changed event
270         notification.
271         (down_silently_base): Likewise.
272
273 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
274
275         * Makefile.in: Update dependencies for all gdb/*.c files.
276
277 2002-08-27  Tom Tromey  <tromey@redhat.com>
278
279         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
280         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
281         Update dependencies.
282         * i387-tdep.c: Include gdb_string.h.
283         * osabi.c: Likewise.
284         * i386-linux-nat.c: Likewise.
285         * lin-lwp.c: Likewise.
286         * ax-gdb.c: Likewise.
287         * signals/signals.c: Likewise.
288         * jv-valprint.c: Likewise.
289         * p-lang.c: Likewise.
290         * c-valprint.c: Likewise.
291         * cp-abi.c: Likewise.
292
293 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
294
295         * cli/cli-script.h (copy_command_lines): Export.
296         * breakpoint.c: Include cli/cli-script.h.
297         * Makefile.in (breakpoint.o): Update dependencies.
298
299 2002-08-26  Michael Snyder  <msnyder@redhat.com>
300
301         * breakpoint.c (insert_breakpoints): Protect all references
302         to 'process_warning'.  Shorten long lines.
303
304 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
305
306         * cli/cli-script.c (copy_command_lines): New function.
307         * defs.h (copy_command_lines): Export.
308         * testsuite/gdb.base/commands.exp: New tests for commands
309         attached to a temporary breakpoint, and for commands that
310         delete the breakpoint they are attached to.
311         
312 2002-08-26  Michael Snyder  <msnyder@redhat.com>
313
314         * breakpoint.c (bpstat_stop_status): Instead of copying the 
315         pointer to the breakpoint commands struct, make a new copy
316         of the struct and point to that.
317         (bpstat_clear): Free the commands struct.
318         (bpstat_clear_actions): Free the commands struct.
319         (bpstat_do_actions): Free the command actions.  Also execute
320         the local cleanups, instead of deleting them.
321         (delete_breakpoint): Leave the commands field of the bpstat
322         chain alone -- it will be freed later.
323
324 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
325
326         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
327         deleted in 2002-08-20 commit.  This function is still used by
328         ppc-linux-nat.c.
329
330 2002-08-26  Keith Seitz  <keiths@redhat.com>
331
332         * gdb-events.sh: Add selected-frame-level-changed event.
333         * gdb-events.c: Regenerated.
334         * gdb-events.h: Regenerated.
335         
336 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
337
338         Fix PR gdb/393:
339         * inflow.c (terminal_save_ours): New function to save terminal
340         settings.
341         * inferior.h (terminal_save_ours): Declare.
342         * target.c (debug_to_terminal_save_ours): New function.
343         (cleanup_target): Defaults to_terminal_save_ours.
344         (update_current_target): Inherit to_terminal_save_ours.
345         (setup_target_debug): Set to_terminal_save_ours.
346         * target.h (target_terminal_save_ours): New to save terminal settings.
347         (target_ops): New member to_terminal_save_ours.
348         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
349         * hpux-thread.c (init_hpux_thread_ops): Likewise.
350         * inftarg.c (init_child_ops): Likewise.
351         * m3-nat.c (init_m3_ops): Likewise.
352         * procfs.c (init_procfs_ops): Likewise.
353         * wince.c (init_child_ops): Likewise.
354         * win32-nat.c (init_child_ops): Likewise.
355         * sol-thread.c (init_sol_thread_ops): Likewise.
356
357 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
358
359         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
360         use regcache_* functions.
361         (i386_gdbarch_init): Set store_return_value instead of
362         deprecated_store_return_value.
363
364         * regcache.c (regcache_raw_write_signed,
365         regcache_raw_write_unsigned): New functions.
366         * regcache.h (regcache_raw_write_signed,
367         regcache_raw_write_unsigned): New prototypes.
368
369 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
370
371         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
372         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
373         source file dependencies.  Cleanup corresponding generator rules.
374
375 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
376
377         * regcache.h (register_offset_hack): Declare.
378         (regcache_cooked_read_using_offset_hack): Declare.
379         (regcache_cooked_write_using_offset_hack): Declare.
380
381         * regcache.c (register_offset_hack): New function.
382         (regcache_cooked_read_using_offset_hack): New function.
383         (regcache_cooked_write_using_offset_hack): New function.
384         (regcache_dump): Check that the registers, according to their
385         offset, are packed hard against each other.
386         (cooked_xfer_using_offset_hack): New function.
387
388 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
389
390         * regcache.c (struct regcache_descr): Add field register_type.
391         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
392         in as a parameter
393         (init_regcache_descr): Initialize register_type.  Pass the descr
394         to init_legacy_regcache_descr.  Use register_type instead of
395         REGISTER_VIRTUAL_TYPE.
396         (register_type): New function.
397         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
398         * regcache.h (register_type): Declare.
399
400 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
401
402         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
403         instead of deprecated_store_return_value.  Fix fallout from
404         2002-08-23 Andrew Cagney <cagney@redhat.com>.
405
406 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
407
408         * regcache.c (max_register_size): New function.
409         (init_legacy_regcache_descr): Ensure that max_register_size is
410         large enough for REGISTER_VIRTUAL_SIZE.
411         * regcache.h (max_register_size): Declare.
412
413 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
414
415         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
416         store_return_value.
417         (e500_extract_return_value): Change type of valbuf pointer to
418         void.
419
420 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
421
422         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
423         workaround.
424
425         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
426         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
427         long long) to prevent compiler warning on 64-bit systems.
428
429 2002-08-23  Andrew Cagney  <cagney@redhat.com>
430
431         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
432         (DEPRECATED_STORE_RETURN_VALUE): New method.
433         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
434         * gdbarch.h, gdbarch.c: Re-generate.
435
436         * values.c (set_return_value): Pass current_regcache to
437         STORE_RETURN_VALUE.
438         * arch-utils.h (legacy_store_return_value): Declare.
439         * arch-utils.c (legacy_store_return_value): New function.
440         (legacy_extract_return_value): Update parameters.
441
442         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
443         STORE_RETURN_VALUE.
444         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
445         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
446         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
447         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
448         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
449         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
450         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
451         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
452         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
453         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
454
455         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
456         * i386-tdep.c (i386_extract_return_value): Update.
457         * arch-utils.c (legacy_extract_return_value): Update.
458         * frv-tdep.c (frv_gdbarch_init): Update.
459         * cris-tdep.c (cris_gdbarch_init): Update.
460         * d10v-tdep.c (d10v_gdbarch_init): Update.
461         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
462         * m68k-tdep.c (m68k_gdbarch_init): Update.
463         * mcore-tdep.c (mcore_gdbarch_init): Update.
464         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
465         * s390-tdep.c (s390_gdbarch_init): Update.
466         * sparc-tdep.c (sparc_gdbarch_init): Update.
467         * sh-tdep.c (sh_gdbarch_init): Update.
468         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
469         * v850-tdep.c (v850_gdbarch_init): Update.
470         * avr-tdep.c (avr_gdbarch_init): Update.
471         * ia64-tdep.c (ia64_gdbarch_init): Update.
472         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
473         * vax-tdep.c (vax_gdbarch_init): Update.
474         * alpha-tdep.c (alpha_gdbarch_init): Update.
475         * arm-tdep.c (arm_gdbarch_init): Update.
476         * mips-tdep.c (mips_gdbarch_init): Update.
477         * i386-tdep.c (i386_gdbarch_init): Update.
478
479 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
480
481         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
482         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
483
484 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
485
486         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
487         problems.
488
489 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
490
491         * infrun.c (handle_inferior_event): Move a comment outside of a
492         function call, in order to avoid indent reformatting this part
493         of the code in an unreadable way.
494
495 2002-08-23  Grace Sainsbury  <graces@redhat.com>
496
497         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
498         when breakpoints fail. Move general breakpoint error messages to
499         insert_breakpoints.  
500         * breakpoint.c (insert_breakpoints): Change warnings when
501         breakpoints are nto inserted to specify the type. Remove call to
502         memory_error when hardware breakpoints can't be inserted. Remove
503         multiple calls to warning so all messages are sent to the user at
504         once.
505         (delete_breakpoints): Make insert error messsages more explicit.
506
507 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
508
509         * ChangeLog: Move gdbserver entries after GDB 5.2 to
510         gdbserver/ChangeLog.
511
512 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
513
514         * i386-tdep.c: Include "objfiles.h".
515         (i386_svr4_init_abi): Set in_solib_call_trampoline and
516         skip_trampoline_code.
517         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
518         (CPLUS_MARKER): Define to '.'.
519
520         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
521         member.
522         (linux_corefile_thread_callback): Increase args->num_notes.
523         (linux_make_note_section): Initialize thread_args.num_notes, and
524         use it to determine whether notes for any threads were created.
525
526 2002-08-23  Donn Terry  <donnte@microsoft.com>
527
528         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
529         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
530         and PCUNKILL.
531         (write_with_trace): Conditionalize out the switch branch handling
532         PCSHOLD if the corresponding macro is not defined. Likewise for
533         PRSABORT and PRSTOP.
534         This change will be needed by the Interix port.
535
536 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
537
538         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
539         write_register wherever possible instead of manipulating the
540         register bytes directly.
541         Assign VALUE_CONTENTS to a variable and use that.
542         The GPR numbers are now dependent on the architecture.
543         
544 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
545
546         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
547         ev_offset fields.
548         (skip_prologue): Add support for BookE/e500 instructions.
549         (e500_extract_return_value): New function.
550         (frame_get_saved_regs): Add support for saving ev registers and
551         pseudo gpr's.
552         (e500_store_return_value): New function.
553         (rs6000_gdbarch_init): Move up default intializations of
554         deprecated_extract_return_value and store_return_value.  Overwrite
555         init of store_return_value with e500 specific version.
556         Set extract_return_value for e500.
557         
558 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
559
560         * blockframe.c (generic_call_dummy_register_unwind): Use
561         regcache_cooked_read to catch cases in which the variable is
562         stored in a pseudo register.
563
564 2002-08-22  Andrew Cagney  <cagney@redhat.com>
565
566         * NEWS: Mention that the i960 has been made obsolete.
567         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
568         i960-tdep.c
569         (remote-nrom.o): Obsolete target.
570         (remote-nindy.o, i960-tdep.o): Ditto.
571         * remote-nrom.c: Make file obsolete.
572         * remote-nindy.c, remote-vx960.c: Ditto.
573         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
574         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
575         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
576         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
577         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
578         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
579         i960-*-vxworks* obsolete.
580         * MAINTAINERS: Note that the i960 is obsolete.
581
582 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
583
584         * aix-thread.c (aix_thread_detach): Disable thread debugging on
585         detach to allow reinitialization.
586
587 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
588
589         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
590         attempt).
591
592 2002-08-22  Jim Blandy  <jimb@redhat.com>
593
594         * coffread.c (coff_symfile_read): Don't try to read the line
595         number table from disk if the image file doesn't have a symbol
596         table; we'll never actually look at the info anyway, and Windows
597         ships DLL's with bogus file offsets for the line number data.
598
599 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
600
601         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
602         an e500 executable.
603
604 2002-08-21  Michael Snyder  <msnyder@redhat.com>
605
606         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
607         (MSYMBOL_SIZE): Replace macro with function.
608         (DEFAULT_MIPS_TYPE): Delete unused macro.
609         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
610         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
611
612 2002-08-21  Jim Blandy  <jimb@redhat.com>
613
614         * valops.c (value_cast): Simplify and correct logic for doing a
615         static cast from a pointer to a base class to a pointer to a
616         derived class.
617
618 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
619
620         * infcmd.c (default_print_registers_info): Replace
621         do_registers_info.
622         (registers_info): Use gdbarch_print_registers_info instead of
623         DO_REGISTERS_INFO.
624         * inferior.h (default_print_registers_info): Replace
625         do_registers_info.
626         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
627         (DO_REGISTERS_INFO): Change to a predicate function.
628         * gdbarch.h, gdbarch.c: Regenerate.
629         
630 2002-08-21  Keith Seitz  <keiths@redhat.com>
631
632         * gdb-events.sh: Add target-changed event.
633         * gdb-events.c: Regenerated.
634         * gdb-events.c: Regenerated.
635         * valops.c (value_assign): Add target-changed event notification
636         to inlval_register, lval_memory, and lval_reg_frame_relative.
637
638 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
639
640         * NEWS: Add an entry regarding the improvement of the next/step
641         operation on Alpha Tru64 multi-processor machines.
642
643 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
644
645         * Makefile.in: Update dependencies for mi/ cli/ and tui/
646         directores.
647         * Makefile.in: Update all _h macro definitions.
648         * Makefile.in (install-gdbtk): Move to install section.
649         (rdi-share/libangsd.a): Move to end of file.
650
651 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
652
653         * frame.c (frame_register_unwind): When a register, set addrp to
654         the register's byte.
655
656 2002-08-20  Michael Snyder  <msnyder@redhat.com>
657
658         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
659         used locally, so move them from the target machine header to here.
660         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
661         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
662         Make static.
663         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
664
665 2002-08-20  Andrew Cagney  <cagney@redhat.com>
666
667         * NEWS: Mention that the Apollo line was made obsolete.
668         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
669         m68*-hp-hpux* obsolete.
670         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
671         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
672         * buildsym.c (make_blockvector): Make static.
673         * buildsym.h (make_blockvector): Make extern declaration obsolete.
674         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
675         (ALLDEPFILES): Remove dstread.c.
676         (dstread.o): Obsolete make rule.
677         * dstread.c: Makefile obsolete.
678         * dst.h: Ditto.
679         * config/m68k/hp300hpux.mt: Ditto.
680         * config/m68k/hp300hpux.mh: Ditto.
681         * config/m68k/hp300bsd.mt: Ditto.
682         * config/m68k/hp300bsd.mh: Ditto.
683         * config/m68k/apollo68b.mt: Ditto.
684         * config/m68k/apollo68v.mh: Ditto.
685         * config/m68k/apollo68b.mh: Ditto.
686
687 2002-08-20  Michael Snyder  <msnyder@redhat.com>
688
689         * mips-tdep.c (mips_in_return_stub): Make static.
690         (mips_gdbarch_init): Set in_solib_return_trampoline.
691         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
692
693 2002-08-20  Michael Snyder  <msnyder@redhat.com>
694
695         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
696         * gdbarch.c, gdbarch.h: Regenerate.
697         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
698         Add.
699         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
700
701 2002-08-20  Michael Snyder  <msnyder@redhat.com>
702
703         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
704         (mips_gdbarch_init): Set skip_trampoline_code, 
705         in_solib_call_trampoline.
706         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
707         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
708
709 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
710
711         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
712
713         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
714         vector type for ev registers.
715         (e500_pseudo_register_read): New function.
716         (e500_pseudo_register_write): New function.
717         (e500_dwarf2_reg_to_regnum): New function.
718         (PPC_UISA_NOFP_SPRS): New macro.
719         (PPC_EV_REGS): New macro.
720         (PPC_GPRS_PSEUDO_REGS): New macro.
721         (registers_e500): New register set for e500.
722         (variants): Add e500 variant.
723         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
724         before setting architectural dependent variations.  Initialize ev
725         registers numbers.  Add case for e500 architecture.  Set the
726         number of pseudo registers.
727
728 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
729
730         * rs6000-tdep.c: Clean up comments.
731
732 2002-08-20  Andrew Cagney  <cagney@redhat.com>
733
734         * h8300-tdep.c: Re-indent file.
735
736 2002-08-20  Jim Blandy  <jimb@redhat.com>
737
738         * Makefile.in (LDFLAGS): Allow the configure script to establish a
739         default for this.
740
741 2002-08-20  Keith Seitz  <keiths@redhat.com>
742
743         * breakpoints.c (watch_command_1): Use internal breakpoint
744         when setting a watchpoint_scope breakpoint.
745
746 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
747
748         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
749         (build_builtin_type_vec64i): Ditto.
750         (build_builtin_type_vec128): Ditto.
751         (build_builtin_type_vec128i): Ditto.
752
753 2002-08-19  Michael Snyder  <msnyder@redhat.com>
754
755         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
756         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
757         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
758         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
759         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
760         CALL_DUMMY_ADDRESS): Delete.
761         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
762         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
763         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
764         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
765         push_return_address.
766         (mips_register_raw_size, mips_eabi_use_struct_convention, 
767         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
768         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
769         mips_init_extra_frame_info, mips_eabi_push_arguments, 
770         mips_n32n64_push_arguments, mips_push_return_address,
771         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
772         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
773
774 2002-08-19  Michael Snyder  <msnyder@redhat.com>
775
776         * mips-tdep.c (mips_frame_num_args): New function.
777         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
778         frame_saved_pc, frame_args_address, frame_locals_address, 
779         frame_num_args, and frame_args_skip.
780         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
781         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
782         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
783         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
784
785 2002-08-20  Michael Snyder  <msnyder@redhat.com>
786
787         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
788         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
789         * mips-tdep.c (mips_store_struct_return): New function.
790         (mips_extract_struct_value_address): New function.
791         (mips_gdbarch_init): Set store_struct_return and
792         extract_struct_value_address.
793
794 2002-08-20  David Carlton  <carlton@math.stanford.edu>
795
796         * dwarf2read.c (dwarf2_build_psymtabs): Check that
797         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
798         (read_file_scope): Check that line_header is nonzero before
799         decoding macro information.
800
801 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
802
803         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
804         flag the general-purpose registers as floating-point on targets
805         that don't support the floating-point registers.
806
807 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
808
809         * rs6000-tdep.c (altivec_register_p): Delete.
810         (rs6000_do_altivec_registers): Delete.
811         (rs6000_altivec_registers_info): Delete.
812         (rs6000_do_registers_info): Delete.
813         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
814         (rs6000_gdbarch_init): Remove setting of do_registers_info.
815
816 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
817
818         * infcmd.c (do_registers_info): Print vector registers in hex
819         format only.
820         (print_vector_info): Check that printing registers
821         makes sense.
822         (print_float_info): Ditto.
823
824 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
825
826         * mips-tdep.c (mips_gdbarch_init): Update.
827         (mips_o32_extract_return_value): Rewrite.
828         (mips_o32_store_return_value): Rewrite.
829         (mips_o32_xfer_return_value): New function.
830         (mips_xfer_register): Tweak debug print message.  Allow for
831         buf_offset when dumping the value transfered.
832
833 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
834
835         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
836         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
837         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
838         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
839         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
840
841 2002-08-14  Michael Snyder  <msnyder@redhat.com>
842
843         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
844
845 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
846
847         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
848         register.
849         (P): New macro to define a register as a pseudo register.
850         (R, R4, R8, R16, FR32, R64, R0): Updated.
851         (struct variant): Add new fields for number of pseudo registers
852         and number of total registers.
853         (tot_num_registers): New macro replacing....
854         (num_registers): ...deleted macro.
855         (num_registers): New function.
856         (num_pseudo_registers): New function.
857         (variants): Update all variants to intialize new fields correctly.
858         Postpone initialization of number of pseudo regs and real regs.
859         (init_variants): New function.
860         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
861         registers offsets.
862
863 2002-08-19  David Carlton  <carlton@math.stanford.edu>
864
865         * valops.c (search_struct_field): Change error message to treat
866         return value of 0 from value_static_field as meaning that field is
867         optimized out.
868         (value_struct_elt_for_reference): Ditto.
869         * values.c (value_static_field): Treat an unresolved location the
870         same as a nonexistent symbol.  Fix PR gdb/635.
871         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
872         enclosed.  Fix PR gdb/574.
873         * MAINTAINERS: Add self to Write After Approval list.
874
875 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
876
877         * mips-tdep.c (mips_xfer_register): New function.
878         (mips_n32n64_extract_return_value): Rewrite.
879         (mips_gdbarch_init): For N32 and N64, set extract_return_value
880         instead of deprecated_extract_return_value.
881
882 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
883
884         * rs6000-tdep.c (TDEP): Delete macro.
885         (branch_dest): Replace use of TDEP macro with its body.
886         (rs6000_pop_frame): Ditto.
887         (rs6000_push_arguments): Ditto.
888         (rs6000_skip_trampoline_code): Ditto.
889         (rs6000_frame_saved_pc): Ditto.
890         (rs6000_frame_chain): Ditto.
891         (rs6000_register_name): Ditto.
892         (rs6000_register_byte): Ditto.
893         (rs6000_register_raw_size): Ditto.
894         (rs6000_register_virtual_type): Ditto.
895         (rs6000_register_convertible): Ditto.
896         (rs6000_convert_from_func_ptr_addr): Ditto.
897
898 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
899
900         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
901         conditionally.
902         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
903         MIPS_LINUX_JB_ELEMENT_SIZE.
904         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
905         for MAX_REGISTER_RAW_SIZE arrays.
906         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
907         MIPS_LINUX_JB_ELEMENT_SIZE.
908
909 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
910
911         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
912
913 2002-08-19  Aidan Skinner <aidan@velvet.net>
914
915         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
916         ada-valprint.c ada-tasks.c.
917         (YYFILES): Add ada-exp.y.
918         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
919         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
920         (ada-exp.tab.o): New target.
921                 
922 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
923
924         * regcache.c (regcache_xfer_part): New function.
925         (regcache_raw_read_part): New function.
926         (regcache_raw_write_part): New function.
927         (regcache_cooked_read_part): New function.
928         (regcache_cooked_write_part): New function.
929         * regcache.h (regcache_raw_read_part): Declare.
930         (regcache_raw_write_part): Declare.
931         (regcache_cooked_read_part): Declare.
932         (regcache_cooked_write_part): Declare.
933
934 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
935
936         * remote.c (remote_open_1): Add async_p.
937         (remote_async_open_1): Delete.
938         (open_remote_target): Delete.
939         (remote_open, extended_remote_open): Update calls to remote_open_1.
940         (remote_async_open, extended_remote_async_open): Call
941         remote_open_1 instead of remote_async_open_1.
942
943 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
944
945         * blockframe.c: Fix a few coding standard violations.
946
947 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
948
949         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
950         here from ...
951         * config/i386/tm-i386sco5.h: ... here.  File removed.
952         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
953
954         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
955         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
956         (TM_FILE): Set to tm-i386.h.
957         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
958         * config/i386/tm-i386v.h: Remove file.
959         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
960         instead of "i386/tm-i386v.h".
961         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
962         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
963         "i386/tm-i386v.h".
964         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
965         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
966         "i386/tm-i386.h".
967
968 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
969
970         * config/i386/nm-i386v.h: Add protection against
971         multiple-inclusion.
972         (i386_register_u_addr): Remove prototype.
973         (register_u_addr): New prototype.
974         (REGISTER_U_ADDR): Redefine accordingly.
975         * i386v-nat.c: Improve several comments.
976         (i386_register_u_addr): Change signature and rename to
977         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
978         ubase variable.
979
980 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
981
982         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
983         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
984         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
985         deprecated_extract_return_value.
986         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
987         rename mips_o32o64_push_arguments.
988         (mips_gdbarch_init): Update.
989         (mips_extract_return_value): Delete.
990         (mips_o32_extract_return_value): Clone mips_extract_return_value.
991         (mips_o64_extract_return_value): Clone mips_extract_return_value.
992         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
993         (mips_n32n64_extract_return_value): Clone
994         mips_extract_return_value.
995         (mips_store_return_value): Delete.
996         (mips_o32_store_return_value): Clone mips_store_return_value.
997         (mips_o64_store_return_value): Clone mips_store_return_value.
998         (mips_eabi_store_return_value): Clone mips_store_return_value.
999         (mips_n32n64_store_return_value): Clone mips_store_return_value.
1000
1001 2002-08-18  Aidan Skinner <aidan@velvet.net>
1002
1003         * ada-lang.c: Use gdb_string.h instead of <string.h>.
1004         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1005                 
1006 2002-08-18  Aidan Skinner <aidan@velvet.net>
1007
1008         * ada-lang.c: Run through gdb_indent.sh.
1009         * ada-lang.h: Run through gdb_indent.sh.
1010         * ada-tasks.c: Run through gdb_indent.sh.
1011         * ada-typeprint.c: Run through gdb_indent.sh.
1012         * ada-valprint.c: Run through gdb_indent.sh.
1013
1014 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1015
1016         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1017         ABI.
1018
1019 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
1020
1021         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1022
1023         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1024         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1025
1026         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1027         write_register_gen instead of write_register_bytes.
1028
1029         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1030         i[3456]-*-osf1mk* configurations have been made obsolete.
1031         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1032         i[3456]86-*-osf1mk* hosts obsolete.
1033         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1034         targets obsolete.
1035         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1036         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1037         config/i386/i386m3.mt, config/i386/nm-m3.h,
1038         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1039         config/i386/i386mk.mh, config/i386/i386mk.mt,
1040         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1041         obsolete.
1042         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1043         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1044         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1045
1046 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1047
1048         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1049         (hppa_value_returned_from_stack): Declare.
1050         (hppa_extract_return_value): Declare.
1051         * config/pa/hppa.mt: New file.
1052         * configure.tgt: Recognize hppa*-*-*.
1053         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
1054
1055 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
1056
1057         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1058         comment.
1059
1060 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
1061
1062         * top.c (gdb_rl_operate_and_get_next): Make sure
1063         operate-and-get-next functions correctly even when the history
1064         list is completely filled.
1065
1066 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1067
1068         * MAINTAINERS (Target Instruction Set Architectures): Rename
1069         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
1070         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
1071         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
1072         already listed under Host/Native.
1073
1074         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1075         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
1076         mips*-*-*.
1077
1078 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
1079
1080         * config/ia64/ia64.mt: New file.
1081         * config/alpha/alpha.mt: New file.
1082         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1083         ia64-linux-gnu.  Mention that ia64-elf is broken.
1084         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1085
1086 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
1087
1088         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1089         generic_func_frame_valid instead of func_frame_valid.
1090
1091 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1092
1093         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1094         procfs appears to be broken when debugging on multi-processor
1095         machines. So enable software single stepping in order to avoid
1096         using the procfs interface to do next/step operations, using
1097         internal breakpoints instead.
1098
1099         * infrun.c (handle_inferior_event): Readjust the stop_pc by
1100         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1101         make this pc address equal to the value it would have if the
1102         system stepping capability was used. Also set a new flag used
1103         to ensure that we don't readjust the PC one more time later.
1104
1105         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1106         address by DECR_PC_AFTER_BREAK when software single step is
1107         in use for this architecture, as this has already been taken
1108         care of in handle_inferior_event().
1109
1110 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1111
1112         * infrun.c (handle_inferior_event): Minor reformatting, to make
1113         a rather long condition expression easier to read.
1114
1115 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1116
1117         * Makefile.in (gdbtk.o): Move to end of file.
1118         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1119         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1120         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1121         (gdbtk-wrapper.o, gdbres.o): Ditto.
1122
1123 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1124
1125         * Makefile.in (copying.o): Separate out compile rule.
1126         (hpux-thread.o, procfs.o, signals.o): Ditto.
1127         (v850ice.o, z8k-tdep.o): Ditto.
1128         (tui-file.o): Move to TUI section.
1129         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1130         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1131
1132 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1133
1134         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1135         skip_trampoline_code, for better namespace-proofing.   
1136
1137         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1138
1139 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1140
1141         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1142
1143 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1144
1145         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1146         signal, check whether we hit a breakpoint before checking for a
1147         single step breakpoint. Otherwise, GDB fails to notice that a
1148         breakpoint has been hit when stepping onto a breakpoint.
1149
1150 2002-08-16  Keith Seitz  <keiths@redhat.com>
1151
1152         * gdb-events.sh (clear_gdb_event_hooks): New function.
1153         * gdb-events.c: Regenerate.
1154         * gdb-events.h: Regenerate.
1155
1156 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1157
1158         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1159         not_a_sw_breakpoint.
1160         * breakpoint.h (bpstat_stop_status): Add parameter names.
1161
1162 2002-08-16  Grace Sainsbury  <graces@redhat.com>
1163
1164         * remote.c (remote_insert_hw_breakpoint)
1165         (remote_remove_hw_breakpoint): Fix calculation of length field
1166         for Z-packet.
1167
1168 2002-08-15  Michael Snyder  <msnyder@redhat.com>
1169
1170         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1171         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1172         (supply_fpregset): Ditto.
1173         
1174         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
1175         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
1176         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1177         (TARGET_READ_SP): Delete.
1178         (DO_REGISTERS_INFO): Delete.
1179         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1180         Delete.
1181         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1182         from macros to functions.
1183
1184         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1185         (mips_register_convertible, mips_register_convert_to_virtual,
1186         mips_register_convert_to_raw): Make static.
1187         (mips_read_sp): New function.
1188         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1189         (mips_do_registers_info): Make static.
1190         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1191         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1192         (mips_register_convert_from_type, mips_register_convert_to_type):
1193         New functions.
1194         (mips_gdbarch_init): Set up function_start_offset, 
1195         register_virtual_size, pc_in_sigtramp.
1196
1197 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
1198
1199         * infcmd.c (vector_info): New function.
1200         (_initialize_infcmd): Add command "info vector".
1201         (print_vector_info): New function.
1202
1203         * gdbarch.sh (PRINT_VECTOR_INFO): New method
1204         * gdbarch.h, gdbarch.c: Regenerate.
1205
1206 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
1207
1208         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1209         ``print_all''.  Only print vector registers when ``print_all''.
1210
1211 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
1212
1213         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1214         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1215
1216         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1217         Add `args' parameter.
1218         * gdbarch.h, gdbarch.c: Regenerate.
1219         
1220         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1221         
1222         * infcmd.c (float_info): Call print_float_info.
1223         (print_float_info): New function.  By default, print the
1224         floating-point registers.
1225
1226         * arch-utils.h (default_print_float_info): Delete declaration.
1227         * arch-utils.c (default_print_float_info): Delete function.
1228         
1229 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
1230
1231         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1232         out define.
1233
1234         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1235         FRAME.
1236
1237         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1238         * configure.host: Make i[3456]86-*-aix host obsolete.
1239         * configure.tgt: Make i[3456]86-*-aix target obsolete.
1240         * config/i386/i386aix.mh, config/i386/i386aix.mt,
1241         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1242         config/i386/xm-i386aix.h: Make files obsolete.
1243         * i386aix-nat.c: Make file obsolete.
1244         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1245         (i386aix-nat.o): Make target obsolete.
1246
1247         * config/i386/nm-gnu.h: Removed.
1248         * config/i386/nm-i386gnu.h: New file.
1249         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1250         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1251         Moved here from ...
1252         * config/i386/tm-i386gnu.h: ... here.  Removed.
1253         * config/i386/xm-i386gnu.h: Removed.
1254         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1255         (NAT_FILE): Set to nm-i386gnu.h.
1256         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1257         * i386-tdep.c: New file.
1258         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1259         (i386gnu-tdep.o): Specify dependencies.
1260
1261 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
1262
1263         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1264         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1265         Adjust a few comments to reflect reality a bit closer.
1266         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1267         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1268         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1269         target_insert_watchpoint, target_remove_watchpoint):
1270         Move defines to ...
1271         * config/i386/nm-i386sco5.h: ... here.
1272         (kernel_u_size): Add prototype.  Improve a few comments and add
1273         protection against multiple inclusion.
1274         
1275         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1276         out define.
1277
1278         * uw-thread.c (SP_ARG0): Define if not already defined.
1279         * config/i386/tm-i386.h (SO_ARG0): Remove define.
1280
1281         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1282
1283         * config/i386/tm-i386.h: Don't include "regcache.h".
1284
1285         * i387-tdep.h (i387_print_float_info): New prototype.
1286         * i387-tdep.c (print_i387_value, print_i387_ext,
1287         print_i387_status_word, print_i387_control_word): Add `struct
1288         ui_file *' argument and use it for output.
1289         (i387_print_float_info): Renamed from i387_float_info.  Add
1290         `struct gdbarch *' and `struct ui_file *' arguments and use the
1291         latter for output.
1292         * i386-tdep.c: Include "i387-tdep.h".
1293         (i386_gdbarch_init): Set print_float_info.
1294         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1295         (FLOAT_INFO): Remove define.
1296
1297 2002-08-13  Michael Snyder  <msnyder@redhat.com>
1298
1299         * mips-tdep.c (mips_push_arguments): Rename to
1300         mips_eabi_push_arguments, and tune for EABI.
1301         (MIPS_REGS_HAVE_HOME_P): Delete.
1302         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1303         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1304         Delete references to mips_regs_have_home_p.
1305
1306 2002-08-14  Keith Seitz  <keiths@redhat.com>
1307
1308         * Makefile.in (install-gdbtk): Create insight plugin directory.
1309         Install plugins.tcl file.
1310
1311 2002-08-14  Keith Seitz  <keiths@redhat.com>
1312
1313         * configure.in: Move SUBDIRS to near top of the file so that
1314         --enable options may add things to it.
1315         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1316         * configure: Regenerate.
1317
1318 2002-08-13  Michael Snyder  <msnyder@redhat.com>
1319
1320         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
1321         cloned from mips_push_arguments, tuned for o32/o64 ABI.
1322         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1323
1324 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
1325
1326         * vax-tdep.c (vax_get_saved_register): Delete function.
1327         (vax_gdbarch_init): Update.
1328         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1329         (ns32k_gdbarch_init): Update.
1330         * alpha-tdep.c (alpha_get_saved_register): Delete function.
1331         (alpha_gdbarch_init): Update.
1332
1333 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1334
1335         * regcache.c (init_regcache_descr): Overallocate the
1336         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1337         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1338         nr_raw_registers.
1339         (set_register_cached): Add range checking assertions.  Use
1340         current_regcache.
1341
1342 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
1343
1344         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1345         numbers for MMX registers.
1346
1347 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1348
1349         * i386-tdep.c (i386_gdbarch_init): Use
1350         generic_unwind_get_saved_register.
1351
1352 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
1353
1354         * procfs.c (procfs_can_use_hw_breakpoint): New function.
1355         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1356         target vector.
1357         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1358         Delete.  Add comment regarding this now-deleted target method.
1359
1360 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1361
1362         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1363         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1364         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1365         real PC and the page number (if it's within the memory bank window).
1366         (m68hc11_pseudo_register_write): Likewise when saving.
1367         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1368         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1369         (m68hc11_register_raw_size): And use 32-bit for it.
1370         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1371         16K memory bank is used by the prog; also use the virtual pc.
1372
1373 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1374
1375         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1376         (m68hc11_gdbarch_init): Install it in gdbarch.
1377         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1378         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1379         (MSYMBOL_SIZE): New for documentation.
1380         (insn_return_kind): Enum to specify how a function returns.
1381         (frame_extra_info): Cleanup and record the return mode.
1382         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
1383         register in address computation.
1384         (m68hc11_get_return_insn): New to obtain the return instruction used
1385         by the function.
1386         (m68hc11_frame_init_saved_regs): Take into account the return
1387         instruction used by the function for far and interrupt functions.
1388         (m68hc11_init_extra_frame_info): Take into account page register.
1389         (m68hc11_frame_args_address): Adjust according to the return mode.
1390         (show_regs): Print page register only when it's used.
1391
1392 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1393
1394         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1395         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1396         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1397         registers.
1398         (m68hc11_register_raw_size): Likewise.
1399
1400 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1401
1402         * i386-tdep.c (i386_register_name): Handle mmx registers.
1403         (mmx_regnum_p): New function.
1404         (i386_mmx_names): New array.
1405         (mmx_num_regs): New variable.
1406         (i386_pseudo_register_read): New function.
1407         (i386_pseudo_register_write): New function.
1408         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1409
1410         * regcache.c (regcache_raw_read_unsigned): New function.
1411         (regcache_raw_read_signed): New function.
1412         * regcache.h (regcache_raw_read_unsigned): Declare.
1413         (regcache_raw_read_signed): Declare.
1414
1415 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1416
1417         * regcache.c (regcache_raw_read_as_address): Delete function.
1418         (regcache_cooked_read_signed): New function.
1419         (regcache_cooked_read_unsigned): New function.
1420         * regcache.h (regcache_cooked_read_signed): Declare.
1421         (regcache_cooked_read_unsigned): Declare.
1422         (regcache_raw_read_as_address): Delete declaration.
1423
1424         * blockframe.c (generic_read_register_dummy): Use
1425         regcache_cooked_read_unsigned.
1426         * i386-tdep.c (i386_extract_struct_value_address): Use
1427         regcache_cooked_read_unsigned.
1428
1429 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1430
1431         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1432         double sizes according to ELF ABI flags.
1433         (gdbarch_tdep): Record elf_flags.
1434
1435 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1436
1437         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1438         (m6812_prolog): They can appear in 68HC12 function prologue.
1439         (m68hc11_frame_chain): Cleanup.
1440
1441 2002-08-12  Andrew Cagney  <cagney@redhat.com>
1442
1443         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1444         declarations.
1445         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1446         (i386_linux_register_raw_size): Delete function.
1447         (i386_linux_init_abi): Update.
1448         * i386-tdep.c (i386_register_raw_size): Delete function.
1449         (i386_register_byte): Delete function.
1450         (i386_gdbarch_init): Update.
1451         (i386_register_size): Delete array.
1452         (i386_register_offset): Delete array.
1453
1454         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1455         (REGISTER_RAW_SIZE): Delete macro.
1456         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1457         (REGISTER_BYTE): Delete macro.
1458
1459 2002-08-11  Aidan Skinner <aidan@velvet.net>
1460
1461         * ada-lang.c (ada_lookup_partial_symbol)
1462         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1463         prototype names so that grep ^func works properly.
1464
1465         * ada-lang.c (ada_array_element_type)
1466         (ada_lookup_partial_symbol): Fix typos in parameter list.
1467
1468         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1469         Fix prototype names so that grep ^func works properly.
1470         
1471 2002-08-10  Andrew Cagney  <cagney@redhat.com>
1472             Elena Zannoni  <ezannoni@redhat.com>
1473             Martin M. Hunt  <hunt@redhat.com>
1474
1475         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1476         (build_builtin_type_vec128i): Set the vector bit.
1477         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1478         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1479         (build_builtin_type_vec64): New function.
1480         (build_builtin_type_vec64i): New function.
1481         (build_gdbtypes): Initialize builtin_type_vec64 and
1482         builtin_type_vec64i.
1483
1484 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1485
1486         * regcache.c (regcache_dump): Compare the register offset
1487         with REGISTER_BYTE.
1488         * arch-utils.c (generic_register_byte): New function.
1489         * arch-utils.h (generic_register_byte): Declare.
1490         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1491         * gdbarch.h, gdbarch.c: Regenerate.
1492
1493 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1494
1495         * regcache.c: Include "gdbcmd.h"
1496         (_initialize_regcache): Add commands "maintenance print
1497         registers", "maintenance print raw-registers" and "maintenance
1498         print cooked-registers".
1499         (enum regcache_dump_what): Define.
1500         (dump_endian_bytes): New function.
1501         (regcache_dump): New function.
1502         (regcache_print): New function.
1503         (maintenance_print_registers): New function.
1504         (maintenance_print_raw_registers): New function.
1505         (maintenance_print_cooked_registers): New function.
1506         * Makefile.in (regcache.o): Update dependencies.
1507
1508 2002-08-09  Michael Snyder  <msnyder@redhat.com>
1509
1510         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1511         (mips_push_arguments): Correct some comments.  Use paddr_nz
1512         for printing addresses in debug output.  Replace static
1513         allocation using MAX_REGISTER_RAW_SIZE with alloca.
1514         (mips_n32n64_push_arguments): New function, cloned from
1515         mips_push_arguments and tuned for the n32/n64 ABI.
1516         (mips_push_register): Buffer needs dynamic allocation.
1517         (mips_print_register): Ditto.
1518         (do_gp_register_row): Ditto.
1519         (mips_store_return_value): Ditto.
1520         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1521
1522 2002-08-09  Don Howard  <dhoward@redhat.com>
1523
1524         * memattr.c (mem_info_command): Print special case of upper bound
1525         as max CORE_ADDR + 1.
1526
1527 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1528
1529         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
1530         returns structs by ref if they're too big to fit in two registers.
1531
1532 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1533
1534         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1535         saved regs value.
1536         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1537         mips_find_saved_regs().
1538         (mips_pop_frame): Likewise.
1539
1540 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1541
1542         * blockframe.c (frame_saved_regs_register_unwind): Revise
1543         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1544         frames are in use.
1545
1546 2002-08-09  Grace Sainsbury  <graces@redhat.com>
1547         
1548         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1549         T-packets; the 'a' is not taken as a register number.
1550         (remote_check_watch_resources, remote_stopped_by_watchpoint)
1551         (remote_stopped_data_address): New functions; add to target
1552         vector.
1553         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1554         prototypes to match other implementations of this
1555         function. replace integer argument with pointer -- the length
1556         field in the Z-packet is the length of what is pointed to or 1 if
1557         pointer is null. Add to target vector.
1558         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1559         target vector.
1560
1561         From Mark Salter:
1562         * remote.c (remote_wait): Add support to extract optional
1563         watchpoint information from T-packet. Ignore unrecognized
1564         optional info in T-packet.
1565         (remote_async_wait): Ditto.
1566
1567 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
1568
1569         * cli/cli-dump.c: Change fopen modes to use binary open modes
1570         as defined in include/fopen-bin.h throughout.
1571
1572 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1573
1574         * mips-tdep.c: Minor whitespace and indentation clean-ups.
1575
1576 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1577
1578         * doublest.c (store_floating): Avoid floatformat_from_doublest()
1579         assertion failure by returning early after a warning.
1580
1581 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1582
1583         * mips-tdep.c (mips_find_saved_regs): Make static.
1584         (mips_frame_init_saved_regs): New function.
1585         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1586         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1587         (mips_find_saved_regs): Delete declaration.
1588
1589 2002-08-08  Grace Sainsbury  <graces@redhat.com>
1590
1591         * remote.c (remote_wait, remote_async_wait): Change
1592         thread_num from int to ULONGEST.
1593         (unpack_varlen_hex): Change result parameter from
1594         int * to ULONGEST *.
1595
1596 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
1597
1598         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1599         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1600         powerpc*-*-*.
1601         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1602
1603 2002-08-08  Andrew Cagney  <cagney@redhat.com>
1604
1605         * gcore.c (override_derive_stack_segment): Delete variable.
1606         (preempt_derive_stack_segment): Delete function.
1607         (derive_stack_segment): Delete function.
1608         (default_derive_stack_segment): Renamed to derive_stack_segment.
1609         (override_derive_heap_segment): Delete variable.
1610         (preempt_derive_heap_segment): Delete function.
1611         (derive_heap_segment): Delete function.
1612         (default_derive_heap_segment): Rename to derive_heap_segment.
1613
1614 2002-08-06  Michael Snyder  <msnyder@redhat.com>
1615
1616         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1617         * mips-tdep.c (mips_EABI_use_struct_convention, 
1618         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1619         New functions.  (mips_use_struct_convention): Delete.
1620         (mips_gdbarch_init): set use_gdbarch_convention.
1621
1622 2002-08-06  Michael Snyder  <msnyder@redhat.com>
1623
1624         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1625         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
1626         mips_o32_reg_struct_has_addr): New functions.
1627         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1628
1629 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
1630
1631         * regcache.c (pseudo_register): Delete function.
1632         (fetch_register): Delete function.
1633         (store_register): Delete function.
1634         (regcache_raw_read, legacy_read_register_gen): Use
1635         target_fetch_registers instead of fetch_register.
1636         (legacy_write_register_gen, regcache_raw_write): Use
1637         target_store_register instead of store_register.
1638         (write_register_bytes): Ditto.
1639
1640         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1641         (STORE_PSEUDO_REGISTER): Delete.
1642         * gdbarch.h, gdbarch.c: Regenerate.
1643
1644 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
1645
1646         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1647         write dump file binary.
1648
1649 2002-08-05  Michael Snyder  <msnyder@redhat.com>
1650
1651         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
1652         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
1653         (mips_gdbarch_init): Set N32 target to be mips64.
1654
1655 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
1656
1657         * frame.c (find_saved_register): Break out of loop once saved
1658         register address is found.  Don't mention sparc in loop comment
1659         anymore.
1660
1661 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
1662
1663         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1664         mips_default_saved_regsize to 8.
1665
1666 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
1667
1668         * gcore.c: Do not include <sys/procfs.h>.
1669         * Makefile.in (gcore.o): Update dependencies.
1670
1671 2002-08-06  Andrew Cagney  <cagney@redhat.com>
1672
1673         * configure.tgt: Make arc-*-* obsolete.
1674         * NEWS: Mention that arc-*-* has been identifed as obsolete.
1675         * MAINTAINERS: Make arc-elf obsolete.
1676         * arc-tdep.c: Make file obsolete.
1677         * config/arc/arc.mt: Ditto.
1678         * config/arc/tm-arc.h: Ditto.
1679
1680 2002-08-05  Theodore A. Roth  <troth@verinet.com>
1681
1682         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1683
1684 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
1685
1686         * mcore-tdep.c (mcore_gdbarch_init): Use
1687         generic_unwind_get_saved_register instead of
1688         generic_get_saved_register.
1689         * v850-tdep.c (v850_gdbarch_init): Ditto.
1690         * frv-tdep.c (frv_gdbarch_init): Ditto.
1691         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1692         * s390-tdep.c (s390_gdbarch_init): Ditto.
1693         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1694         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1695         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1696
1697 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
1698
1699         * objfiles.h: Add missing #include "symfile.h"
1700
1701         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1702
1703 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
1704
1705         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1706         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1707         of FIELD_BITSIZE.
1708
1709 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
1710
1711         * NEWS: Cleanup and nitpick.
1712
1713 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
1714
1715         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
1716
1717 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
1718
1719         * Makefile.in (gdbtk-bp.o): Update dependencies.
1720         (gdbtk-register.o): Ditto.
1721         (gdbtk-varobj.o): Ditto.
1722
1723 2002-08-03  Andrew Cagney  <cagney@redhat.com>
1724
1725         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1726         m68hc11_fetch_pseudo_register.
1727         (m68hc11_pseudo_register_write): Replace
1728         m68hc11_store_pseudo_register.
1729         (m68hc11_gdbarch_init): Update.
1730
1731 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
1732
1733         * gdbarch.sh: Include "gdb_string.h".
1734         * gdbarch.c: Regenerate.
1735
1736         * regcache.c: Include "gdb_string.h".
1737         * ax-general.c: Ditto.
1738         * varobj.c: Ditto.
1739         * std-regs.c: Ditto.
1740         * fbsd-proc.c: Ditto.
1741         * thread.c: Ditto.
1742
1743         * Makefile.in (regcache.o): Update dependencies.
1744         (thread.o, gdbarch.o): Ditto.
1745         (ax-general.o, gdbarch.o): Ditto.
1746         (varobj.o, std-regs.o): Ditto.
1747         (fbsd-proc.o): Specify dependencies.
1748
1749 2002-08-02  Andrew Cagney  <cagney@redhat.com>
1750
1751         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1752         regnum.
1753         (regcache_cooked_write): Ditto.
1754
1755 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
1756
1757         * regcache.c (regcache_cooked_read): New function.
1758         (regcache_cooked_write): New function.
1759         (read_register_gen): Rewrite using regcache_cooked_read.
1760         (write_register_gen): Rewrite using regcache_cooked_write.
1761
1762         * regcache.h (regcache_cooked_read, regcache_cooked_write):
1763         Declare.
1764
1765 2002-08-02  Andrew Cagney  <cagney@redhat.com>
1766
1767         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1768         Replace the architecture methods register_read and register_write.
1769         * gdbarch.h, gdbarch.c: Regenerate.
1770         * regcache.c (init_regcache_descr): Update.
1771         (read_register_gen): Update.
1772         (write_register_gen): Update.
1773         (supply_register): Update comment.
1774
1775         * sh-tdep.c (sh_gdbarch_init): Update.
1776         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1777         `regcache' and `gdbarch' parameters.  Make `buffer' a void
1778         pointer.  Update code.
1779         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1780         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
1781         void pointer.  Update code.
1782         (sh64_register_write): Delete.
1783         (sh4_register_read): Delete.
1784         (sh64_register_read): Delete.
1785         (sh4_register_write): Delete.
1786         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1787         void pointer, `to' parameter a void pointer.
1788         (sh_sh64_register_convert_to_raw): Ditto.
1789
1790 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1791
1792         * mips-tdep.c (mips_register_virtual_type): Use architecture
1793         invariant return values.
1794
1795 2002-08-01  Andrew Cagney  <cagney@redhat.com>
1796
1797         * linux-proc.c: Include "gdb_string.h".
1798         * Makefile.in (linux-proc.o): Update dependency list.
1799
1800 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1801
1802         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
1803         comment.
1804
1805 2002-08-01  Grace Sainsbury  <graces@redhat.com>
1806
1807         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1808         to_insert_watchpoint, to_remove_watchpoint,
1809         to_stopped_by_watchpoint, to_stopped_data_address,
1810         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1811         target vecctor. Define their corresponding macros so they call
1812         them.
1813         
1814         * target.c: Add default and debug versions of for
1815         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1816         to_insert_watchpoint, to_remove_watchpoint,
1817         to_stopped_by_watchpoint, to_stopped_data_address,
1818         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1819
1820 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1821
1822         * mips-tdep.c (mips_register_virtual_type): New function.
1823         (mips_gdbarch_init): Register mips_register_virtual_type()
1824         with gdbarch machinery.
1825         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1826         this file instead of tm-bigmips.h.
1827         (MIPS_REGSIZE): Delete this macro.
1828         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
1829         multiarch version in mips-tdep.c will be found.
1830
1831 2002-08-01  Andrew Cagney  <cagney@redhat.com>
1832
1833         * NEWS: Menion that CHILL has been made obsolete.
1834
1835         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1836         * stabsread.c (read_range_type): Ditto.
1837         * gdbtypes.h: Ditto.
1838         * language.c (binop_type_check): Ditto.
1839         (binop_result_type): Ditto.
1840         (integral_type): Ditto.
1841         (character_type): Ditto.
1842         (string_type): Ditto.
1843         (boolean_type): Ditto.
1844         (structured_type): Ditto.
1845         (lang_bool_type): Ditto.
1846         (binop_type_check): Ditto.
1847         * language.h (_LANG_chill): Ditto.
1848         * dwarfread.c (set_cu_language): Ditto.
1849         * dwarfread.c (CHILL_PRODUCER): Ditto.
1850         * dwarfread.c (handle_producer): Ditto.
1851         * expression.h (enum exp_opcode): Ditto.
1852         * eval.c: Ditto for comments.
1853         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1854         * expprint.c (print_subexp): Ditto.
1855         (print_subexp): Ditto.
1856         * valops.c (value_cast): Ditto.
1857         (search_struct_field): Ditto.
1858         * value.h (COERCE_VARYING_ARRAY): Ditto.
1859         * symfile.c (init_filename_language_table): Ditto.
1860         (add_psymbol_with_dem_name_to_list): Ditto.
1861         * valarith.c (value_binop): Ditto.
1862         (value_neg): Ditto.
1863         * valops.c (value_slice): Ditto.
1864         * symtab.h (union language_specific): Ditto.
1865         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1866         (SYMBOL_DEMANGLED_NAME): Ditto.
1867         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1868         * defs.h (enum language): Ditto.
1869         * symtab.c (got_symtab): Ditto.
1870         * utils.c (fprintf_symbol_filtered): Ditto.
1871
1872         * ch-typeprint.c: Make file obsolete.
1873         * ch-valprint.c: Make file obsolete.
1874         * ch-lang.h: Make file obsolete.
1875         * ch-exp.c: Make file obsolete.
1876         * ch-lang.c: Make file obsolete.
1877
1878         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1879         CHILL_LIB.
1880         (TARGET_FLAGS_TO_PASS): Ditto.
1881         (CHILLFLAGS): Obsolete.
1882         (CHILL): Obsolete.
1883         (CHILL_FOR_TARGET): Obsolete.
1884         (CHILL_LIB): Obsolete.
1885         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1886         ch-valprint.c.
1887         (HFILES_NO_SRCDIR): Remove ch-lang.h.
1888         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1889         ch-lang.o.
1890         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1891         targets.
1892
1893 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
1894
1895         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1896         This does not change anything at the moment, but will be helpful
1897         later when full Ada support is integrated.
1898
1899 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1900
1901         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1902         help message.
1903
1904 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1905
1906         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1907         and save it in a local variable.  Use variable in later test.
1908
1909 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1910
1911         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1912         test.  (Thanks to Daniel Jacobowitz.)
1913         
1914 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1915
1916         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1917         (mips_abi_strings): Add "n64".
1918         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
1919
1920 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1921
1922         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1923         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1924
1925 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1926
1927         * utils.c (host_pointer_to_address, address_to_host_pointer):
1928         Use gdb_assert() instead of explicit call to internal_error().
1929
1930 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
1931
1932         * Makefile.in (rs6000-nat.o): Update dependencies.
1933
1934         From Nicholas Duffek:
1935         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1936         (aix-thread.o): New rule.
1937         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1938         * config/powerpc/aix432.mh: New file.
1939
1940 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1941
1942         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1943         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1944         (fetch_core_registers, ppc_linux_supply_gregset)
1945         (ppc_linux_supply_fpregset): New functions.
1946         (ppc_linux_regset_core_fns): New.
1947         (_initialize_ppc_linux_tdep): Call add_core_fns.
1948         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1949         and ppc_linux_supply_gregset.
1950         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1951         (supply_fpregset): Call ppc_linux_supply_fpregset.
1952         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1953         corelow.o.
1954         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1955
1956 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1957
1958         * symtab.c (lookup_symbol): Demangle before lowercasing.
1959
1960 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
1961
1962         * symtab.h: Replace #include "gdb_obstack.h" with opaque
1963         declaration.
1964         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1965         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1966         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1967         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1968         "gdb_string.h".
1969         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1970         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1971         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1972         (avr-tdep.o, mon960-rom.o): Ditto.
1973         (aout_stabs_gnu_h): Define.
1974         (symtab_h): Remove $(gdb_obstack_h).
1975
1976 2002-07-30  Jim Blandy  <jimb@redhat.com>
1977
1978         Patch from David Carlton <carlton@math.stanford.edu>:
1979         * gdbinit.in: Move the `dir' commands that add GDB's own source
1980         directory to the search path to the end, so that the `gdb' source
1981         directory will be searched first.
1982
1983 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1984
1985         * gdb_obstack.h: New file.
1986         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1987         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1988         * objfiles.h: Include "gdb_obstack.h".
1989         * Makefile.in (gdb_obstack_h): Define.
1990         (symtab_h): Add $(gdb_obstack_h).
1991         (objfiles_h): Add $(gdb_obstack_h).
1992         
1993         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1994         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1995         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1996         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1997         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1998         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1999         * symfile.c, coffread.c, c-typeprint.c: Ditto.
2000         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2001
2002         * Makefile.in (bcache.o): Update dependencies.
2003         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2004         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2005         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2006         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2007         (stabsread.o, symfile.o, symmisc.o): Ditto.
2008         (symtab.o, typeprint.o, macroexp.o): Ditto.
2009         (macrotab.o, mdebugread.o): Ditto.
2010         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2011         (coff_ecoff_h, aout_aout64_h): Define.
2012         (aout_stabs_gnu_h, libaout_h): Define.
2013
2014 2002-07-29  Andrew Cagney  <cagney@redhat.com>
2015
2016         * regcache.c (struct regcache_descr): Rename nr_registers to
2017         nr_cooked_registers.  Revise comments describing the structure
2018         member fields.
2019         (init_regcache_descr): Update.
2020         (init_legacy_regcache_descr): Update.
2021         (read_register_gen, write_register_gen): When a cooked register in
2022         the raw register range, directly access the value from the raw
2023         register cache.
2024
2025 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
2026
2027         * z8k-tdep.c: Do not include "obstack.h".
2028         * h8300-tdep.c, h8500-tdep.c: Ditto.
2029         * m68hc11-tdep.c, sh-tdep.c: Ditto.
2030         * valprint.c, v850-tdep.c: Ditto.
2031         * d10v-tdep.c, mn10300-tdep.c: Ditto.
2032         * mn10200-tdep.c: Ditto.
2033
2034         * Makefile.in (z8k-tdep.o): Update dependencies.
2035         (m68hc11-tdep.o, valprint.o): Ditto.
2036         (v850-tdep.o, d10v-tdep.o): Ditto.
2037         (mn10300-tdep.o, sparc-tdep.o): Ditto.
2038         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2039         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2040         (sh_opc_h, gdb_sim_sh_h): Define.
2041         (elf_sh_h, elf_bfd_h): Define.
2042         (opcode_m68hc11_h): Define.
2043         (OPCODES_SRC, OPCODES_DIR): define.
2044         (OPCODES): Use $(OPCODES_DIR).
2045         (gdb_sim_d10v_h): Rename sim_d10v_h.
2046         (gdb_sim_arm_h): Rename sim_arm_h.
2047
2048 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2049
2050         * utils.c (host_pointer_to_address, address_to_host_pointer):
2051         Change internal_error() message to indicate function responsible
2052         for the error.
2053
2054 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2055
2056         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2057         calls to local_hex_string_custom().
2058
2059 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2060
2061         * irix5-nat.c: Move IRIX shared library support from here...
2062         * solib-irix.c: ...to here.  Revised substantially to work with
2063         generic solib framework.
2064
2065         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2066         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2067         * mips-irix-tdep.c: New file.
2068
2069         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2070         (mips-irix-tdep.o, solib-irix.o): New rules.
2071         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2072         solib-irix.o.
2073         * config/mips/irix6.mt (TDEPFILES): Likewise.
2074         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2075
2076 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2077
2078         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2079         disabled (via ``#if 0'') includes.
2080
2081 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2082
2083         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2084         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2085         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2086         Add support for the fpscr register.
2087         * rs6000-nat.c (regmap, fetch_inferior_registers)
2088         (store_inferior_registers, fetch_core_registers): Likewise.
2089
2090 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2091
2092         * rs6000-nat.c (language.h): Include.
2093         (special_regs): Delete this array.
2094         (regmap): New function.
2095         (fetch_register, store_register):  Use regmap() to map gdb
2096         register numbers to ptrace register numbers.  Also, use
2097         outputs from regmap() to make decisions regarding type of
2098         ptrace() call to make.  In particular, don't compare against
2099         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2100         (fetch_inferior_registers, store_inferior_registers): Where
2101         possible, obtain register numbers from tdep struct.  Don't
2102         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2103         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2104         (LAST_UISA_SP_REGNUM): Delete.
2105         
2106 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
2107
2108         * rs6000-nat.c (ppc-tdep.h): Include.
2109         (fetch_registers, store_register, fetch_core_registers): Don't
2110         access registers[] directly.  Instead, use supply_register() or
2111         regcache_collect() as appropriate.
2112         (find_toc_address): Format hex address with local_hex_string().
2113
2114 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
2115
2116         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2117         bfd/elf32-frv.c.
2118
2119 2002-07-24  Tom Tromey  <tromey@redhat.com>
2120
2121         * jv-exp.y: Marked all strings with _().
2122         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2123         internal_error.
2124         (MethodInvocation, CastExpression, parse_number, yyerror,
2125         java_type_from_name, push_expression_name, yylex): Typo fixes.
2126
2127 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
2128
2129         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2130         (tee_file_flush, tee_file_write, tee_file_fputs)
2131         (tee_file_isatty): New.
2132         * ui-file.h (tee_file_new): Add prototype.
2133
2134 2002-07-24  Aidan Skinner <aidan@velvet.net>
2135
2136         * ada-lang.c: Change k&r style function definitions to prototyped
2137         form.
2138         * ada-typeprint.c: Change k&r style function definitions to prototyped
2139         form.
2140         * ada-valprint.c: Change k&r style function definitions to prototyped
2141         form.
2142         
2143 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2144
2145         * README: Remove reference to remote-bug.
2146         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2147         remote-bug.c.
2148         (m88k-nat.o): Delete rule.
2149         (m88k-tdep.o): Delete rule.
2150         (remote-bug.o): Delete rule.
2151         * MAINTAINERS: Mark as obsolete.
2152         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2153         * m88k-tdep.c: Make file obsolete.
2154         * config/m88k/m88k.mh: Ditto.
2155         * config/m88k/delta88v4.mh: Ditto.
2156         * config/m88k/delta88v4.mt: Ditto.
2157         * config/m88k/delta88.mt: Ditto.
2158         * config/m88k/delta88.mh: Ditto.
2159         * remote-bug.c: Ditto.
2160         * config/m88k/tm-delta88.h: Ditto.
2161         * config/m88k/nm-delta88v4.h: Ditto.
2162         * config/m88k/xm-delta88.h: Ditto.
2163         * config/m88k/xm-dgux.h: Ditto.
2164         * config/m88k/tm-m88k.h: Ditto.
2165         * config/m88k/nm-m88k.h: Ditto.
2166         * config/m88k/tm-delta88v4.h: Ditto.
2167         * m88k-nat.c: Ditto.
2168         * cxux-nat.c: Ditto.
2169         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2170         and m88*-*-* obsolete.
2171         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2172         m88*-*-* obsolete.
2173
2174 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2175
2176         * findvar.c (extract_unsigned_integer): Make `addr' parameter
2177         constant.  Same for local pointer variables.
2178         (extract_signed_integer): Ditto.
2179         * defs.h (extract_unsigned_integer): Update.
2180         (extract_signed_integer): Update.
2181
2182 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2183
2184         * regcache.c (regcache_raw_write): Change buf parameter to a
2185         constant void pointer.
2186         (regcache_raw_read): Change buf parameter to a void pointer.
2187         (legacy_write_register_gen): Change myaddr parameter a constant
2188         void pointer.
2189         (supply_register): Change val parameter to a const void pointer.
2190         * regcache.h (regcache_raw_write): Update declaration.
2191         (regcache_raw_read): Update declaration.
2192         (supply_register): Update declaration.
2193
2194 2002-07-24  Tom Tromey  <tromey@redhat.com>
2195
2196         * defs.h (gdb_readline_wrapper): Declare.
2197         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2198         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2199         * top.c (gdb_readline_wrapper): New function.
2200         (command_line_input): Use it.
2201
2202 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2203
2204         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2205         regcache_read and regcache_write.
2206         (regcache_raw_read_as_address): Replace regcache_read_as_address.
2207         * regcache.c: Update.
2208         * sh-tdep.c (sh64_push_arguments): Update comment.
2209         (sh_pseudo_register_read): Update.
2210         (sh_pseudo_register_write): Update.
2211         (sh4_register_read): Update.
2212         (sh4_register_write): Update.
2213         (sh64_pseudo_register_read): Update.
2214         (sh64_pseudo_register_write): Update.
2215         (sh64_register_read): Update.
2216         (sh64_register_write): Update.
2217         * i386-tdep.c (i386_extract_return_value): Update.
2218         (i386_extract_struct_value_address): Update.
2219         (i386_extract_return_value): Update.
2220         * blockframe.c (generic_read_register_dummy): Update.
2221         (generic_call_dummy_register_unwind): Update
2222         * infrun.c (write_inferior_status_register): Update.
2223
2224 2002-07-23  Jim Blandy  <jimb@redhat.com>
2225
2226         * parser-defs.h (expression_context_pc): Make this extern.
2227         (Thanks to Michael Snyder.)
2228
2229 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
2230
2231         GDB 5.2.1 released from 5.2 branch.
2232         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2233         * README: Update to mention 5.2.1.
2234
2235 2002-07-23  Mark Salter  <msalter@redhat.com>
2236
2237         * remote.c (remote_read_bytes): Fix check for error.
2238
2239 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
2240
2241         * aix-thread.c (language.h): Include.
2242         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2243         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2244         Print newlines at end of debug messages.
2245         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2246         (pdc_write_data): Use local_hex_string() instead of %llx formats.
2247
2248 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
2249
2250         * aix-thread.c (ppc-tdep.h): Include.
2251         (special_register_p): New function.
2252         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2253         (store_regs_user_thread): Use register number information from
2254         gdbarch_tdep struct instead of hardcoded offsets relative to
2255         FIRST_UISA_SP_REGNUM.
2256         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
2257         special_register_p() instead of using FPLAST_REGNUM and
2258         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2259         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
2260         will be MQ's register number.
2261
2262 2002-07-22  Michael Snyder  <msnyder@redhat.com>
2263
2264         * aix-thread.c (ops): Rename to aix_thread_ops.
2265         (base_ops): Rename to base_target.
2266         (ops_attach): Rename to aix_thread_attach.
2267         (ops_detach): Rename to aix_thread_detach.
2268         (ops_resume): Rename to aix_thread_detach.
2269         (ops_wait):   Rename to aix_thread_wait.
2270         (ops_kill):   Rename to aix_thread_kill.
2271         (init_ops):   Rename to init_aix_thread_ops.
2272         (ops_fetch_register): Rename to aix_thread_fetch_register.
2273         (ops_store_register): Rename to aix_thread_store_register.
2274         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2275         (ops_thread_alive):   Rename to aix_thread_thread_alive.
2276         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2277         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
2278         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2279         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
2280         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2281         (store_regs_lib):  Rename to store_regs_user_thread.
2282         (store_regs_kern): Rename to store_regs_kernel_thread.
2283
2284 2002-07-22  Michael Snyder  <msnyder@redhat.com>
2285
2286         * aix-thread.c (ops_prepare_to_store): Eliminate.
2287         (init_ops): Don't initialize ops.prepare_to_store.
2288         (store_regs_kern): Pre-fetch register buffers from child, 
2289         because some registers may not be in the cache.  Copy
2290         regs from register cache only if they are cached.
2291         (store_regs_lib): Copy regs from register cache only
2292         if they are cached.
2293         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2294         fill_gprs64): Ditto.
2295
2296 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
2297
2298         * aix-thread.c (gdb_assert.h): Include.
2299         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2300         register sizes (from register cache) match size of buffer holding
2301         register data.
2302         (fill_sprs32): Change parameter types to match those in the ptrace()
2303         buffer.
2304         (store_regs_lib): Likewise, but for 32-bit temporary variables.
2305         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2306
2307 2002-07-22  Michael Snyder  <msnyder@redhat.com>
2308
2309         * aix-thread.c (supply_sprs64): Cosmetic change.
2310         (supply_sprs32): Cosmetic change.
2311         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2312         (fill_sprs64): Use regcache_collect instead of read_register.
2313         (store_regs_lib): Use regcache_collect instead of 
2314         read_register.  Use fill_sprs32 instead of fill_sprs64,
2315         if debugging a 32-bit architecture.
2316         (store_regs_kern): Use fill_gprs64 etc. to pull the values
2317         out of the register cache, instead of passing a pointer into
2318         the register cache directly to ptrace.  Use regcache_collect
2319         insteaad of read_register.
2320         (ops_prepare_to_store): Use target_read_registers instead
2321         of read_register_bytes.
2322
2323 2002-07-20  Aidan Skinner <aidan@velvet.net>
2324
2325         * MAINTAINERS: Add self under write after approval. 
2326                 
2327 2002-07-20  Aidan Skinner <aidan@velvet.net>
2328
2329         * ada-tasks.c: Change k&r style function definitions to prototyped
2330         form.
2331                 
2332 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
2333
2334         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2335         * x86-64-tdep.c: Include "objfiles.h".
2336         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2337         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2338
2339 2002-07-17  Michal Ludvig  <michal@suse.cz>
2340
2341         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2342         (update_context): Initialise cfa variable.
2343
2344 2002-07-17  Michael Snyder  <msnyder@redhat.com>
2345
2346         * aix-thread.c: Shorten some long lines.  
2347         Bring comments into line with code spec.
2348
2349 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
2350
2351         * infrun.c: Re-indent using gdb_indent.sh.
2352
2353 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
2354
2355         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2356         Leave the indentation temporarily untouched, to minimize the diffs.
2357
2358 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
2359
2360         * stabsread.c: Make os9k sections of the code obsolete,
2361         for real this time.
2362         * stabsread.h: Make os9k sections of the code obsolete.
2363
2364 2002-07-18  Michal Ludvig <mludvig@suse.cz>
2365
2366         * linux-low.c (regsets_store_inferior_registers): Add free()
2367         at the end of a loop to prevent memory leak.
2368         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2369         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2370         * config/sparc/tm-sp64linux.h: Make the rest of #endif
2371         line a comment.
2372         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2373
2374 2002-07-17  Jim Blandy  <jimb@redhat.com>
2375
2376         * macrocmd.c (info_macro_command): Remove newline from error
2377         message.
2378
2379 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
2380
2381         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2382         (sh_gdbarch_init): Use it for sh-dsp.
2383
2384 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
2385
2386         * dwarf2read.c (read_initial_length): Handle older, non-standard,
2387         64-bit DWARF2 format.
2388
2389 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
2390
2391         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2392         <sys/proc.h> when not available.
2393
2394 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
2395
2396         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2397         * stabsread.c: Make os9k sections of the code obsolete.
2398         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2399         * config/i386/i386os9k.mt: Make file obsolete.
2400         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2401         (COMMON_OBS): Remove os9kread.o
2402         (SFILES): Remove os9kread.c.
2403         (os9kread.o, remote-os9k.o): Make target obsolete.
2404         * remote-os9k.c: Make file obsolete.
2405         * os9kread.c: Make file obsolete.
2406         * Makefile.in
2407
2408 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
2409
2410         * NEWS: Mention that the FR30 has been made obsolete.
2411         * fr30-tdep.c: Make file obsolete.
2412         * config/fr30/tm-fr30.h: Ditto.
2413         * config/fr30/fr30.mt: Ditto.
2414         * configure.tgt: Make fr30-*-elf obsolete.
2415         * MAINTAINERS: Make fr30-elf obsolete.
2416
2417 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2418
2419         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2420         found is not inside a section.
2421
2422 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2423
2424         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2425         strerror().
2426         (pdc_realloc): Use xrealloc() instead of realloc().
2427
2428 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2429
2430         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2431         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2432         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2433         macros.
2434
2435 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2436
2437         * aix-thread.c (ptrace_check): Eliminate goto.
2438         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
2439         problem.
2440
2441 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2442
2443         * aix-thread.c (gdbcmd.h): Include.
2444         (DEBUG, DBG, DBG2, dbg): Eliminate.
2445         (debug_aix_thread): New static global.
2446         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2447         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2448         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2449         invocations to DBG and DBG2 macros to test against
2450         ``debug_aix_thread'' and call fprintf_unfiltered().
2451         (_initialize_aix_thread): Add new command "set debug aix-thread".
2452
2453 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
2454
2455         From Gerhard Tonn <TON@de.ibm.com>:
2456         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2457         instead of supply_register.
2458
2459 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
2460
2461         * dwarf2cfi.c: Include "gdb_assert.h".
2462         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2463         non-NULL.
2464         (update_context): Do not use __func__.  Add missing ``break''.
2465         (update_context): Do not use __func__.
2466
2467 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
2468
2469         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2470         and its setting.  Set gdbarch instruction printing functions
2471         directly.  For non-rs6000 case use new function
2472         gdb_print_insn_powerpc.
2473         (gdb_print_insn_powerpc): New function.
2474
2475 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
2476
2477         * NEWS: Mention that the d30v has been marked obsolete.
2478         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2479         * configure.tgt: Mark d30v-*-* as obsolete.
2480         * d30v-tdep.c: Mark file as obsolete.
2481         * config/d30v/d30v.mt: Ditto.
2482         * config/d30v/tm-d30v.h: Ditto.
2483
2484 2002-07-13  Aidan Skinner <aidan@velvet.net>
2485
2486         * ada-tasks.c (add_task_entry): replace calls to
2487         malloc() with xmalloc
2488         * ada-tasks.c (init_task_list): replace calls to free with xfree()
2489         
2490         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2491         ada_finish_decode_line_1, all_sals_for_line
2492         ada_breakpoint_rewrite): replace calls to free() with xfree()
2493                 
2494 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2495
2496         From Nicholas Duffek (with minor changes by Martin Hunt, 
2497         Louis Hamilton, and Kevin Buettner):
2498         * aix-thread.c: New file.
2499
2500 2002-07-12  Petr Sorfa <petrs@caldera.com>
2501
2502         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
2503         complaint for invalid attribute class or form.
2504         (read_func_scope): DW_AT_frame_base
2505         better handling of DW_AT_block*.
2506         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2507         better handling of DW_AT_block*.
2508         (read_common_block): DW_AT_location
2509         better handling of DW_AT_block*.
2510         (read_partial_die): DW_AT_location better handling
2511         of DW_AT_block*.
2512         (new_symbol): DW_AT_external better handling of
2513         DW_AT_block*. Proper initialization of variable
2514         "addr".
2515         (attr_form_is_block): New function that returns true
2516         if the attribute's form is of DW_FORM_block*.
2517
2518 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2519
2520         * valops.c (find_method_list): Remove comment about
2521         removed STATIC_MEMFUNCP argument.
2522         (value_find_oload_method_list): Likewise.
2523
2524 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2525
2526         From Nicholas Duffek:
2527         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2528         target_new_objfile_hook.
2529
2530 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2531
2532         From Nicholas Duffek:
2533         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2534         csect.
2535
2536 2002-07-12  Andrew Cagney  <cagney@redhat.com>
2537
2538         * MAINTAINERS: Mention --enable-sim-build-warnings.
2539         (m68hc11-elf): Disable sim build warnings.
2540         (m32r-elf): Mark as broken obsolete candidate.
2541         (x86_64-linux-gnu): Mark as buildable with -Werror.
2542         (arm-elf): Change -w to ``,'' which enables warnings but not
2543         -Werror.
2544
2545 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
2546
2547         * bcache.h: Update copyright.
2548         (struct bstring, struct bcache): Move definition to "bcache.c".
2549         Replaced by opaque declaration.
2550         (bcache_xfree): Replace free_bcache.
2551         (bcache_xmalloc, bcache_memory_used): Declare.
2552         
2553         * bcache.c: Update copyright.
2554         (struct bstring, struct bcache): Moved to here from "bcache.h".
2555         Update comments.
2556         (bcache_xmalloc, bcache_memory_used): New functions.
2557         (bcache_xfree): Replace function free_bcache.
2558         
2559         * Makefile.in (objfiles.o): Add $(bcache_h).
2560         (objfiles_h): Remove $(bcache_h).
2561         (symfile.o): Add $(bcache_h).
2562
2563         * symmisc.c: Update copyright.
2564         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2565         (print_objfile_statistics): Use bcache_memory_used.
2566
2567         * symfile.c: Include "bcache.h".
2568         (reread_symbols): Use bcache_xfree.
2569         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2570         (add_psymbol_to_list): Pass psymbol_cache by value.
2571         (add_psymbol_with_dem_name_to_list): Ditto.
2572
2573         * objfiles.h: Update copyright.
2574         (struct bcache): Declare opaque.  Do not include "bcache.h".
2575         (struct objfile): Change psymbol_cache and macro_cache to ``struct
2576         bcache'' pointers.
2577         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2578
2579         * objfiles.c: Include "bcache.h".  Update copyright.
2580         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2581         macro_cache.
2582         (free_objfile): Use bcache_xfree.
2583
2584 2002-07-11  Grace Sainsbury  <graces@redhat.com>
2585
2586         * monitor.c (monitor_fetch_register): Make name a constant.
2587         (monitor_store_register): Same.
2588
2589 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
2590
2591         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2592         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2593         (finish_block) For non-function blocks, hash the symbol table.  For
2594         function blocks, mark the symbol table as unhashed.
2595         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2596         (msymbol_hash_iw): Likewise.
2597         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2598         value.
2599         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2600         (lookup_minimal_symbol): Likewise for both.
2601         * symtab.h (struct block): Add `hashtable' flag.  Comment the
2602         hashtable.
2603         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2604         (ALL_BLOCK_SYMBOLS): Update.
2605         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2606         (struct symbol): Add `hash_next' pointer.
2607         * symtab.c (lookup_block_symbol): Search using the hash table when
2608         possible.
2609         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2610         (search_symbols, find_addr_symbol): Likewise.
2611
2612         * dstread.c (process_dst_block): Clear hashtable bit for new block.
2613         (read_dst_symtab): Likewise.
2614         * jv-lang.c (get_java_class_symtab): Likewise.
2615         * mdebugread.c: Include "gdb_assert.h".
2616         (shrink_block): Assert that the block being modified is not hashed.
2617         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2618         * symmisc.c (free_symtab_block): Walk the hash table when freeing
2619         symbols.
2620         (dump_symtab): Recognize hashed blocks.
2621         * printcmd.c (print_frame_args):  Assert that function blocks do not
2622         have hashed symbol tables.
2623         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2624         (fill_in_ada_prototype, debug_print_block): Likewise.
2625         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
2626
2627 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
2628
2629         * stack.c (print_frame): Use result of frame_address_in_block()
2630         instead of fi->pc when evaluating symbols.
2631         (backtrace_command_1): Ditto.
2632
2633 2002-07-11  Andrew Cagney  <cagney@redhat.com>
2634
2635         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2636         Make static.
2637
2638         * arm-tdep.c (arm_register_name): Make return type constant.
2639
2640 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
2641
2642         * win32-nat.c (has_detach_ability): Convert to strict ISO C
2643         prototype.
2644         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2645         * s390-tdep.c (s390_fp_regnum): Ditto.
2646         (s390_read_fp): Ditto.
2647         (s390_pop_frame): Ditto.
2648         (_initialize_s390_tdep): Ditto.
2649         * remote.c (get_remote_state): Ditto.
2650         * procfs.c (mappingflags): Ditto.
2651         * memattr.c (_initialize_mem): Ditto.
2652         * mcore-tdep.c (mcore_pop_frame): Ditto.
2653         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2654         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2655         * language.c (set_case_str): Ditto.
2656         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2657         * frv-tdep.c (new_variant): Ditto.
2658         (frv_stopped_data_address): Ditto.
2659         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2660         (context_alloc): Ditto.
2661         (frame_state_alloc): Ditto.
2662         (unwind_tmp_obstack_init): Ditto.
2663         (unwind_tmp_obstack_free): Ditto.
2664         (cfi_read_fp): Ditto.
2665         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2666         (cris_pop_frame): Ditto.
2667         * c-lang.c (scanning_macro_expansion): Ditto.
2668         (finished_macro_expansion): Ditto.
2669         (c_preprocess_and_parse): Ditto.
2670         * gdbarch.sh: Ditto.
2671         * gdbarch.h, gdbarch.c: Regenerate.
2672         * config/mn10200/tm-mn10200.h: Adjust indentation.
2673         * target.c: Adjust indentation.
2674         * symtab.h: Adjust indentation.
2675         * stabsread.h: Adjust indentation.
2676         * remote-es.c: Adjust indentation.
2677         * os9kread.c: Adjust indentation.
2678
2679 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
2680         
2681         * wince.c (_initialize_wince): Rename _initialize_inftarg.
2682         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2683
2684 2002-07-10  Grace Sainsbury  <graces@redhat.com>
2685         
2686         * NEWS: Mention m68k, mcore multi-arching.  
2687         * MAINTAINERS: Change status of m68k, mcore to reflect
2688         multi-arching.
2689
2690 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
2691
2692         * valops.c (find_overload_match): Free oload_syms.
2693
2694 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
2695
2696         Define HAVE_SYS_PROC_H if sys/proc.h exists
2697         * configure.in: Add check for sys/proc.h
2698         * config.in: Regenerate.
2699         * configure: Regenerate.
2700
2701 2002-07-09  Grace Sainsbury  <graces@redhat.com>
2702
2703         * config/m68k/tm-m68k.h: Remove macros wrapped in 
2704         #if !GDB_MULTI_ARCH. 
2705
2706 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
2707
2708         * config.in, configure: Regenerate.
2709
2710 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
2711
2712         * dwarf2cfi.c: Include "gcore.h".
2713         (execute_stack_op): Fix implementation of the
2714         DW_OP_deref and DW_OP_deref_size operators by letting do their
2715         lookup in the target.
2716
2717 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
2718
2719         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2720         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2721         tdep->sc_sp_offset.
2722
2723 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
2724
2725         Fix PR gdb/595, gdb/602
2726         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2727         Don't call value_cast, just read the vtable pointer; update comments
2728         to match.
2729
2730 2002-07-05  Grace Sainsbury  <graces@redhat.com>
2731
2732         * config/mcore/tm-mcore.h: Remove file.
2733         * config/mcore/mcore.mt: Remove definition of TM_FILE
2734         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2735
2736 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
2737
2738         * i386bsd-tdep.c: Include "gdb_string.h".
2739
2740 2002-07-04  Grace Sainsbury  <graces@redhat.com>
2741
2742         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2743         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2744         mcore-tdep.
2745         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2746         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2747         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2748         (RETVAL_REGNUM): Move macros from tm-mcore.h
2749         (mcore_reg_struct_has_addr): New function.
2750         (mcore_gdbarch_init): Added initializations for the macros removed
2751         from tm-mcore.h.
2752
2753 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2754
2755         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2756         traditonal string branding within the ELF header.
2757
2758 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
2759
2760         * symtab.c (remove_params): New function.
2761         (make_symbol_overload_list): Use it instead of cplus_demangle.
2762         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
2763
2764 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2765
2766         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2767
2768         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2769         New variables.
2770         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2771         and tdep->sigtramp_end.
2772         * i386obsd-nat.c: New file.
2773         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2774
2775         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2776         Don't call get_current_frame().
2777
2778 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
2779
2780         * i386-nat.c (child_post_startup_inferior): New function
2781         calling i386_cleanup_dregs if
2782         I386_USE_GENERIC_WATCHPOINTS is defined.
2783         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2784         conditional to acknowledge that i386-nat.c has its
2785         own child_post_startup_inferior function.
2786
2787 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2788
2789         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2790         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2791         instead of MAX_REGISTER_RAW_SIZE.
2792         (i386_extract_return_value, i386_extract_struct_value_address):
2793         Convert to use regcache.
2794         (i386_gdbarch_init): Set max_register_raw_size and
2795         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2796         Set extract_return_value and extract_struct_value_address instead
2797         of their deprecated variants.
2798
2799         Convert i386 target to generic dummy frames.
2800         * i386-tdep.c: Include "symfile.h".
2801         (i386_frameless_signal_p): Consider a function to be frameless if
2802         the pc points at the first instruction of the function.
2803         (i386_frame_chain): Handle (generic) call dummies.
2804         (i386_frame_saved_pc): Likewise.
2805         (i386_frame_init_saved_regs): Remove code dealing with call
2806         dummies on the stack.
2807         (i386_push_dummy_frame): Removed.
2808         (i386_call_dummy_words): Removed.
2809         (i386_fix_call_dummy): Removed.
2810         (i386_push_return_address): New function.
2811         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
2812         parameter, and don't call get_current_frame.
2813         (i386_pop_frame): New function.
2814         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2815         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2816         entry_point_address, set call_dummy_breakpoint_offset to 0, set
2817         call_dummy_length to 0, set call_dummy_words to NULL, set
2818         sizeof_call_dummy_words to 0, set fix_call_dummy to
2819         generic_fix_call_dummy, set pc_in_call_dummy to
2820         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2821         generic_push_dummy_frame, set push_return_address to
2822         i386_push_return_address and set frame_chain_valid to
2823         generic_file_frame_chain_valid.
2824
2825 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2826
2827         * gdbarch.sh (struct regcache): Add opaque declaration.
2828         (EXTRACT_RETURN_VALUE): New architecture method.
2829         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2830         * gdbarch.h, gdbarch.c: Regenerate.
2831         * arch-utils.c (legacy_extract_return_value): New function.
2832         * arch-utils.h (legacy_extract_return_value): Declare.
2833         * values.c (value_being_returned): Re-enable code handling
2834         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
2835         deprecated_grub_regcache_for_registers call to block handling
2836         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2837         (EXTRACT_RETURN_VALUE): Do not define.
2838
2839 2002-07-03  Grace Sainsbury  <graces@redhat.com>
2840
2841         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2842         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2843         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2844         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2845         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2846         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2847         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2848         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2849         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2850         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2851         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2852         argument so the function fits the prototype in the architecture
2853         vector.
2854         (mcore_pop_frame): Remove argument so the function fits the
2855         prototype. Use get_current_frame instead of the argument.
2856         (mcore_push_arguments): Change type of struct_return so the
2857         function can be used in the architecture vector.
2858         (mcore_store_struct_return): Add.
2859         (mcore_frame_init_saved_regs): Add.
2860         (mcore_gdbarch_init): Add function calls to replace the macros
2861         removed from tm-mcore.h
2862
2863 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2864
2865         * infcmd.c (print_return_value): Remove compatibility code calling
2866         deprecated_grub_regcache_for_registers.
2867         
2868         * values.c: Include "regcache.h".
2869         (value_being_returned): Update.  Use
2870         deprecated_grub_regcache_for_registers to extract the register
2871         buffer address.  
2872         * value.h (value_being_returned): Change ``retbuf'' parameter to a
2873         ``struct regcache''.
2874         * Makefile.in (values.o): Add dependency on $(regcache_h).
2875
2876         * inferior.h (run_stack_dummy): Change type of second parameter to
2877         a ``struct regcache''.
2878         * valops.c (hand_function_call): Change type of retbuf to ``struct
2879         regcache''.  Allocate using regcache_xmalloc, clean using
2880         make_cleanup_regcache_xfree.
2881         * infcmd.c (run_stack_dummy): Update.  Use
2882         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2883
2884         * regcache.c (do_regcache_xfree): New function.
2885         (make_cleanup_regcache_xfree): New function.
2886         * regcache.h (make_cleanup_regcache_xfree): Declare.
2887
2888 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2889
2890         * event-top.c (command_line_handler): Don't read past
2891         beginning of buffer.
2892
2893 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2894         
2895         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
2896         struct frame_id. 
2897         (varobj_create): Store frame_id for root.
2898         (varobj_gen_name): Use xasprintf.
2899         (varobj_update): Save and restore frame using get_frame_id() and
2900         frame_find_by_id().
2901         (create_child): Use xasprintf.
2902         (new_root_variable): Initialize frame_id.
2903         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2904         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2905         to prevent memory leak.
2906
2907 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2908
2909         * valops.c (hand_function_call): Move declaration of retbuf to
2910         start of function, allocate using malloc, add a cleanup but before
2911         the inf_status cleanup, cleanup the buffer.  Rename local variable
2912         old_chain to inf_status_cleanup.
2913
2914 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2915
2916         * top.c (execute_command): Use cmd_func() and cmd_func_p().
2917
2918         * cli/cli-decode.c (cmd_func_p): New function.
2919         (cmd_func): New function.
2920
2921         * command.h: Add cmd_func() and cmd_func_p().   
2922         
2923 2002-07-03  Grace Sainsbury  <graces@redhat.com>
2924
2925         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2926         (REGISTER_SIZE): Remove.
2927         (MAX_REGISTER_RAW_SIZE): Remove.
2928         (REGISTER_VIRTUAL_TYPE): Remove.
2929         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2930         (REGISTER_NAME): Remove.
2931         (USE_GENERIC_DUMMY_FRAMES): Remove.
2932         (CALL_DUMMY): Remove.
2933         (CALL_DUMMY_START_OFFSET): Remove.
2934         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2935         (CALL_DUMMY_LOCATION): Remove.
2936         (FIX_CALL_DUMMY): Remove.
2937         (CALL_DUMMY_ADDRESS): Remove.
2938         (SIZEOF_CALL_DUMMY_WORDS): Remove.
2939         (SAVE_DUMMY_FRAME_TOS): Remove.
2940         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2941         (mcore_register_virtual_type): New function.
2942         (mcore_register_byte): New function.
2943         (mcore_register_size): New function.
2944         (mcore_register_name): New function.
2945         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2946         macros removed from tm-mcore.h.
2947         (mcore_dump_tdep): Add.
2948         (_initialize_mcore_tdep): Add gdbarch_register call.
2949
2950 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
2951
2952         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2953         frameless_look_for_prologue, such that we actually call this
2954         function.
2955
2956 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2957
2958         * frame.h (frame_address_in_block): New function.
2959
2960         * blockframe.c (frame_address_in_block): New function extracted
2961         from get_frame_block().
2962         (get_frame_block): Use frame_address_in_block().
2963         (block_innermost_frame): Use frame_address_in_block() to match
2964         the frame pc address against the block boundaries rather than
2965         the frame pc directly. This prevents a failure when a frame pc
2966         is actually a return-address pointing immediately after the end
2967         of the given block. 
2968
2969 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2970
2971         * MAINTAINERS: Add self under write after approval. 
2972
2973 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2974
2975         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2976         used in architecture vector. The default is
2977         m68k_local_breakpoint_from_pc.
2978         (m68k_local_breakpoint_from_pc): Add.
2979         (enum): Add register numbers from tm-m68k.h.
2980         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2981         vector.  
2982         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2983         GDB_MULTI_ARCH_PARTIAL.
2984         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2985         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2986         m68k-tdep.c.
2987         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2988         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2989         to enum in m68k-tdep.c
2990
2991 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2992
2993         * solib-osf.c (open_map): Compute the list of shared libraries
2994         loaded by the inferior, rather than the list of libraries loaded
2995         by GDB itself.  Otherwise, GDB ends up reading the symbols from
2996         the wrong shared libraries...
2997
2998 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
2999
3000         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3001         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3002         macros.
3003         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3004         Remove functions.
3005         (FRAMELESS_SIGNAL): Remove function.
3006         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3007         i386_linux_saved_pc_after_call): Removed.
3008         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3009         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
3010         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3011
3012         * i386-tdep.c (i386_frameless_signal_p): New function.
3013         (i386_frame_chain): Deal with frameless signals.
3014         (i386_sigtramp_saved_sp): New function.
3015         (i386_frame_saved_pc): Deal with frameless signals.
3016         (i386_saved_pc_after_call): Make sure the correct value is
3017         returned just after entry into a sigtramp.
3018         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3019         i386fbsd4_sc_sp_offset): New variables.
3020         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3021         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
3022         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3023         similiar to what we already did for sc_pc_offset.
3024         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3025         tdep->sc_sp_offset.
3026
3027         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3028
3029 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
3030
3031         * config/i386/tm-x86-64linux.h: New.
3032         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3033         definitions.
3034         * config/i386/nm-x86-64.h: Rename to ...
3035         * config/i386/nm-x86-64linux.h: ... this one.
3036         * config/i386/x86-64linux.mh: Reflect the above change.
3037         
3038 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
3039
3040         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3041         with sigcontext_addr.  Add sc_sp_offset.
3042         (i386bsd_sigtramp_saved_pc): Remove prototype.
3043         (i386bsd_sicontext_addr): Add prototype.
3044         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3045         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3046         (i386_svr4_sigtramp_saved_pc): Removed.
3047         (i386_svr4_sigcontext_addr): New function.
3048         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3049         Initialize tdep->sigcontext_addr instead.  Initialize
3050         tdep->sc_pc_offset and tdep->sc_sp_offset.
3051         (i386_gdbarch_init): Likewise.
3052         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3053         any more.
3054         (i386bsd_sigtramp_saved_pc): Remove function.
3055         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3056         Initialize tdep->sigcontext_addr instead.  Initialize
3057         tdep->sc_pc_offset.
3058         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3059         of tdep->sigtramp_saved_pc.
3060         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3061         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
3062         instead.
3063
3064         * i386-tdep.c (i386_frameless_function_invocation,
3065         i386_frame_num_args, i386_frame_init_saved_regs,
3066         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3067         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3068         i386_extract_return_value, i386_store_return_value,
3069         i386_extract_struct_value_address, i386_register_virtual_type,
3070         i386_register_convertible, i386_register_convert_to_virtual,
3071         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3072         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3073         static.
3074
3075 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
3076
3077         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3078
3079         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3080         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3081         this macro.  Include "value.h".
3082
3083 2002-06-30  Aidan Skinner  <aidan@velvet.net>
3084
3085         * ada-exp.tab.c: remove as it's a generated file
3086         * ada-lex.c: remove as it's a generated file
3087                 
3088 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
3089
3090         * config/i386/tm-i386.h (struct frame_info, struct
3091         frame_saved_regs, struct value, struct type): Remove forward
3092         declarations.
3093
3094         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3095         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3096         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3097         (FILL_FPXREGSET): Define.
3098
3099         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3100
3101         * configure.tgt (i[3456]86-*-openbsd*): Fold into
3102         i[3456]86-*-netbsd* case.
3103         * config/i386/tm-obsd.h: Removed.
3104         * config/i386/obsd.mt: Removed.
3105         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3106         core-aout.o.
3107         (MH_CFLAGS): Add -DYYDEBUG=0.
3108
3109         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3110         i386nbsd_sc_pc_offset on OpenBSD too.
3111
3112         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3113         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3114         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3115         define.
3116         * i386bsd-tdep.c: Include "arch-utils.h".
3117         (i386bsd_aout_in_solib_call_trampoline): New function.
3118         (i386bsd_init_abi): Set in_solib_call_trampoline to
3119         i386bsd_aout_in_solib_call_trampoline.
3120         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3121         in_solib_call_trampoline to generic_in_solib_call_trampoline.
3122
3123 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3124
3125         * macrotab.h: Do not include "obstack.h" or "bcache.h".
3126         (struct obstack, struct bcache): Add opaque declarations.
3127         * Makefile.in (macrotab_h): Update
3128
3129 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3130
3131         * blockframe.c (generic_find_dummy_frame): Change return type to
3132         ``struct regcache''.
3133         (struct dummy_frame): Replace field ``registers'' with regcache, a
3134         struct regcache object.
3135         (generic_find_dummy_frame): Update.
3136         (generic_push_dummy_frame): Update.  Use regcache_xfree,
3137         regcache_xmalloc and regcache_cpy.
3138         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
3139         regcache_xfree.
3140         (deprecated_generic_find_dummy_frame): Update.
3141         (generic_read_register_dummy): Update.  Use
3142         regcache_read_as_address.
3143         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
3144         (generic_get_saved_register): Update.  Use regcache_read.
3145
3146 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3147
3148         * Makefile.in (objfiles_h): Add $(bcache_h).
3149         * objfiles.h: Include "bcache.h".
3150
3151         * Makefile.in (symtab_h): Remove $(bcache_h).
3152         * symtab.h: Do not include "bcache.h".
3153
3154 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3155
3156         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3157         generic_func_frame_chain_valid.
3158
3159 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
3160
3161         * config/i386/nm-fbsd.h: Include <sys/param.h>.
3162         * config/i386/tm-fbsd.h: Likewise.
3163
3164 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3165
3166         * rs6000-tdep.c (rs6000_gdbarch_init): Use
3167         generic_unwind_get_saved_register.
3168
3169 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
3170
3171         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3172         * regcache.c (supply_register): Add missing argument to
3173         register_buffer call.
3174
3175 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
3176
3177         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
3178         Solaris /bin/grep does not not like it.  From Peter Schauer.
3179
3180 2002-06-26  Tom Tromey  <tromey@redhat.com>
3181
3182         * command.h (add_setshow_cmd): Declare.
3183         (add_setshow_cmd_full): Declare.
3184         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
3185         returns void.  Use add_setshow_cmd_full.
3186         (add_setshow_cmd_full): New function.
3187         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3188         (add_setshow_boolean_cmd): Likewise.
3189
3190 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
3191
3192         * config/vax/tm-vax.h: Protect from multiple inclusion.
3193         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3194         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3195         * config/vax/tm-vaxbsd.h: ...here.  New file.
3196         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3197
3198 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
3199
3200         * config/vax/tm-vax.h (BREAKPOINT): Remove.
3201         (BELIEVE_PCC_PROMOTION): Remove.
3202         (AP_REGNUM): Move to...
3203         * config/vax/nm-vax.h: ...here.
3204         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3205         (vax_breakpoint_from_pc): New function.
3206         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3207         and gdbarch_believe_pcc_promotion.
3208
3209 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
3210
3211         * Makefile.in (vax_tdep_h): Define.  
3212         (vax-tdep.o): Use $(vax_tdep_h).
3213         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3214         (vax_dump_tdep): New function. 
3215         (_initialize_vax_tdep): Register vax_dump_tdep.
3216         * vax-tdep.h: Include osabi.h.     
3217         (struct gdbarch_tdep): New. 
3218
3219 2002-06-26  Andrew Cagney  <cagney@redhat.com>
3220
3221         * frame.h (deprecated_generic_find_dummy_frame): Rename
3222         generic_find_dummy_frame.
3223         * blockframe.c (generic_find_dummy_frame): Make static.
3224         (deprecated_generic_find_dummy_frame): New function.
3225         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3226         generic_find_dummy_frame with deprecated_find_dummy_frame.
3227         (sh64_nofp_frame_init_saved_regs): Ditto.
3228         (sh_fp_frame_init_saved_regs): Ditto.
3229         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3230         (s390_frame_chain): Ditto.
3231         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3232
3233 2002-06-26  Grace Sainsbury  <graces@redhat.com>
3234
3235         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3236         gdbarch vector are at the top.
3237         (NUM_REGS): Remove.
3238         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3239         (FRAME_ARGS_ADDRESS): Remove.
3240         (FRAME_LOCALS_ADDRESS): Remove.
3241         (FRAME_NUM_ARGS): Remove.
3242         (FRAME_ARGS_SKIP): Remove.  
3243         * m68k-tdep.c (enum): Add eumeration of special register numbers.
3244         (m68k_gdbarch_init): Add gdbarch initializations for macros
3245         undefined in tm-m68k.h
3246
3247 2002-06-26  Grace Sainsbury  <graces@redhat.com>
3248
3249         * monitor.h: Add the function regname to monitor_ops
3250         structure. This way NUM_REGS does not have to be a constant.
3251         * monitor.c (monitor_fetch_register): Added support for regname
3252         function. The function is called if the array regnames is NULL.
3253         (monitor_store_register): Same.
3254         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3255         regnames array.
3256         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3257         cpu32bug_cmds.regname to point to new function.
3258         * abug-rom.c (abug_regname): Same as above.
3259         (init_abug_cmds): Same.
3260         * dbug-rom.c (dbug_regname): Same as above.
3261         (init_dbug_cmds): Same.
3262         * remote-est.c (est_regname): Same. 
3263         (init_est_cmds): Same.
3264         * rom68k-rom.c (rom68k_regname): Same. 
3265         (init_rom68k_cmds): Same.
3266
3267 2002-06-25  Tom Tromey  <tromey@redhat.com>
3268
3269         * breakpoint.c (delete_command): Don't repeat `delete' commands.
3270
3271 2002-06-25  Andrew Cagney  <cagney@redhat.com>
3272
3273         * infrun.c (stop_registers): Change variable's type to ``struct
3274         regcache'''.
3275         (xmalloc_inferior_status): Delete function.
3276         (free_inferior_status): Delete function.
3277         (normal_stop): Use regcache_cpy.
3278         (struct inferior_status): Change type of fields ``stop_registers''
3279         and ``registers'' to ``struct regcache''.
3280         (write_inferior_status_register): Use regcache_write.
3281         (save_inferior_status): Instead of calling
3282         xmalloc_inferior_status, allocate the inf_status buffer directly.
3283         Use regcache_dup_no_passthrough and regcache_dup to save the
3284         buffers.
3285         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3286         Replace the stop_registers regcache instead of overriding it.  Use
3287         regcache_xfree.  Instead of calling free_inferior_status, xfree
3288         the buffer directly.
3289         (discard_inferior_status): Use regcache_xfree.  Instead of calling
3290         free_inferior_status, xfree the buffer directly.
3291         (build_infrun): Use regcache_xmalloc.
3292         (_initialize_infrun): Delete redundant call to build_infrun.
3293
3294         * Makefile.in (infcmd.o): Add $(regcache_h).
3295
3296         * infcmd.c: Include "regcache.h".
3297         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3298         obtain the address of `stop_registers' register buffer.
3299         (print_return_value): Ditto.
3300
3301         * inferior.h (struct regcache): Add opaque declaration.
3302         (stop_registers): Change variable's declared type to ``struct
3303         regcache''.
3304
3305 2002-06-24  Tom Tromey  <tromey@redhat.com>
3306
3307         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3308         * target.c (initialize_targets): Fixed typo in
3309         trust-readonly-sections `show' documentation.
3310
3311         * main.c: Marked all strings with _().
3312
3313 2002-06-24  Don Howard  <dhoward@redhat.com>
3314
3315         * memattr.c (create_mem_region): Treat hi == 0 as a special case
3316         that means max CORE_ADDR+1.
3317         (lookup_mem_region): Ditto.
3318         (mem_info_command): Ditto.
3319
3320 2002-06-24  Grace Sainsbury  <graces@redhat.com>
3321
3322         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3323         (REGISTER_BYTES_OK): Remove.
3324         (REGISTER_BYTES): Remove.
3325         (STORE_STRUCT_RETURN): Remove.
3326         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3327         (STORE_RETURN_VALUE): Remove.
3328         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3329         (FRAME_CHAIN): Remove.
3330         (FRAMELESS_FUNCTION_INVOCATION): Remove.
3331         (FRAME_SAVED_PC): Remove.  
3332         * m68k-tdep.c (m68k_register_bytes_ok):Add.
3333         (m68k_store_struct_return): Add.
3334         (m68k_deprecated_extract_return_value): Add.
3335         (m68k_deprecated_extract_struct_value_address): Add.
3336         (m68k_store_return_value): Add.
3337         (m68k_frame_chain): Add.
3338         (m68k_frameless_function_invocation): Add.
3339         (m68k_frame_saved_pc): Add.
3340         (m68k_gdbarch_init): added set_gdbarch calls for new 
3341         functions and deleted macros.
3342
3343 2002-06-23  Tom Tromey  <tromey@redhat.com>
3344
3345         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3346         (ALLDEPFILES): Likewise.
3347         (udiheaders): Removed.
3348         (udip2soc.o): Likewise.
3349         (udi2go32.o): Likewise.
3350         (udr.o): Likewise.
3351         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3352
3353 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
3354
3355         * infrun.c (_initialize_infrun): Delete unnecessary call to
3356         build_infrun.
3357
3358         * regcache.h: Update comments describing the regcache_cpy family
3359         of functions.
3360         (regcache_save, regcache_restore): Delete declaration.
3361         (regcache_save_no_passthrough): Delete declaration.
3362         (regcache_restore_no_passthrough): Delete declaration.
3363         * regcache.c (regcache_save): Delete function.
3364         (regcache_save_no_passthrough): Delete function.
3365         (regcache_restore): Delete function.
3366         (regcache_restore_no_passthrough): Delete function.
3367
3368 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
3369
3370         * config/m68k/tm-m68k.h: Fix typo.
3371         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3372         (m68k_frame_init_saved_regs): Declare.
3373
3374 2002-06-21  Jim Blandy  <jimb@redhat.com>
3375
3376         Remove some vestiges of Harris 88k support.
3377         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3378         register numbering quirk.
3379         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3380         odd symbols occurring in Harris 88k ELF targets.
3381
3382 2002-06-21  Tom Tromey  <tromey@redhat.com>
3383
3384         * gdb_locale.h: New file.
3385         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3386         (defs_h): Added gdb_locale.h.
3387         * configure, config.in: Rebuilt.
3388         * configure.in (PACKAGE): Define.
3389         * defs.h: Include gdb_locale.h.
3390         * main.c (captured_main): Call setlocale, bindtextdomain,
3391         textdomain.
3392
3393 2002-06-21  Dave Brolley  <brolley@redhat.com>
3394
3395         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3396         * config/frv/frv.mt: New file.
3397         * config/frv/tm-frv.h: New file.
3398         * configure.tgt: Support frv-*-*.
3399         * Makefile.in (frv-tdep.o): New target.
3400         * frv-tdep.c: New file.
3401         * NEWS: Mention frv.
3402
3403 2002-06-21  Dave Brolley  <brolley@redhat.com>
3404
3405         * MAINTAINERS: Add self to "Write After Approval" list.
3406
3407 2002-06-21  Grace Sainsbury  <graces@redhat.com>
3408
3409         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3410         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3411         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3412         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3413         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3414
3415         * m68k-tdep.c: Include arch-utils.h
3416         (m68k_register_raw_size): Add.
3417         (m68k_register_virtual_size): Add.
3418         (m68k_register_virtual_type): Add.
3419         (m68k_register_name): Add.
3420         (m68k_stack_align): Add.
3421         (m68k_register_byte): Add.
3422         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3423         tm-m68k.h.
3424
3425 2002-06-21  Grace Sainsbury  <graces@redhat.com>
3426
3427         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3428         m68k_find_saved_regs.
3429         (m68k_pop_frame): Removed saved_regs structure, and replaced
3430         references to it with frame->saved_regs.
3431         (m68k_gdbarch_init): Added function calls to initialize the
3432         gdbarch structure.
3433         (m68k_fix_call_dummy): Add. 
3434         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3435         (CALL_DUMMY): Remove.
3436         (CALL_DUMMY_LENGTH): Remove.
3437         (CALL_DUMMY_START_OFFSET): Remove.
3438         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3439         (FIX_CALL_DUMMY): Remove.
3440         (PUSH_DUMMY_FRAME): Remove.
3441         (POP_FRAME): Remove.
3442
3443 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
3444
3445         * parse.c (parse_fprintf): New function used to avoid calls to
3446         fprintf in bison parser generated debug code.
3447         * parser-defs.h: Declaration of new parse_fprintf function.
3448         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3449         Set YYDEBUG to 1 by default.
3450         Set YYFPRINTF as parse_fprintf.
3451
3452 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
3453
3454         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
3455         encoding anymore.
3456         (pointer_encoding, enum ptr_encoding): New.
3457         (execute_cfa_program): Take care about pointer encoding.        
3458         (dwarf2_build_frame_info): Only call parse_frame_info for 
3459         .debug_frame and .eh_frame.
3460         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3461         fixed augmentation handling, added relative addressing, 
3462         ignore duplicate FDEs. Added comments.
3463         * dwarf2cfi.c: Reindented.
3464         
3465 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
3466
3467         * event-top.c (command_handler): Don't use space_at_cmd_start
3468         unless there is sbrk() on the host. Assign time and space data
3469         to union fields of the appropriate length.
3470
3471 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
3472
3473         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
3474         x86_64_register_name. Return type changed to 'const char *'.
3475         (x86_64_register_name2nr): Rename to x86_64_register_number.
3476         (x86_64_gdbarch_init): Update to reflect the change.
3477         * x86-64-tdep.h: Ditto.
3478         * x86-64-linux-nat.c (x86_64_fxsave_offset)
3479         (supply_fpregset): Ditto.
3480
3481 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3482
3483         * regcache.h: Update copyright.
3484         (struct regcache, struct gdbarch): Add opaque declarations.
3485         (current_regcache): Declare global variable.
3486         (regcache_read, regcache_write): Add gdbarch parameter.
3487         (regcache_save, regcache_save_no_passthrough)
3488         (regcache_restore, regcache_restore_no_passthrough)
3489         (regcache_dup, regcache_dup_no_passthrough)
3490         (regcache_cpy, regcache_cpy_no_passthrough)
3491         (deprecated_grub_regcache_for_registers)
3492         (deprecated_grub_regcache_for_register_valid)
3493         (regcache_valid_p): Add function declarations.
3494         
3495         * regcache.c: Update copyright.
3496         (regcache_descr_handle): New global variable.
3497         (struct regcache_descr): Define.
3498         (init_legacy_regcache_descr, init_regcache_descr): New functions.
3499         (regcache_descr, xfree_regcache_descr): New functions.
3500         (struct regcache): Define.
3501         (regcache_xmalloc, regcache_xfree): New functions.
3502         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3503         (regcache_dup, regcache_dup_no_passthrough): New functions.
3504         (regcache_valid_p, regcache_read_as_address): New functions.
3505         (deprecated_grub_regcache_for_registers): New function.
3506         (deprecated_grub_regcache_for_register_valid): New function.
3507         (current_regcache): New global variable.
3508         (register_buffer): Add regcache parameter.  Update calls.
3509         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
3510         (read_register_gen, write_register_gen): Update register_buffer
3511         call.  Test for legacy_p instead of gdbarch_register_read_p or
3512         gdbarch_register_write_p.
3513         (regcache_collect): Update register_buffer call.
3514         (build_regcache): Rewrite.  Use deprecated grub functions.
3515         (regcache_save, regcache_save_no_passthrough): New functions.
3516         (regcache_restore, regcache_restore_no_passthrough): New
3517         functions.
3518         (_initialize_regcache): Create the regcache_data_handle. Swap
3519         current_regcache global variable.
3520         
3521         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3522         parameter to regcache_read and regcache_write calls.
3523         (sh4_register_read): Ditto.
3524         (sh64_pseudo_register_read): Ditto.
3525         (sh64_register_read): Ditto.
3526         (sh_pseudo_register_write): Ditto.
3527         (sh4_register_write): Ditto.
3528         (sh64_pseudo_register_write): Ditto.
3529         (sh64_register_write): Ditto.
3530
3531         * defs.h (XCALLOC): Define.
3532
3533 2002-06-19  Grace Sainsbury  <graces@redhat.com>
3534
3535         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3536         * m68k-tdep.c (m68k_gdbarch_init): Added.
3537         (m68k_dump_tdep): Added.
3538
3539 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3540
3541         * ada-lang.c (fill_in_ada_prototype): Update comment.
3542
3543 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3544
3545         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
3546         MIPS_ABI_LAST.
3547         (mips_abi_string, mips_abi_strings): New.
3548         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3549         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
3550         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
3551         O32 if no ABI is found.
3552         (mips_dump_tdep): Use mips_abi_strings.
3553         (mips_abi_update): New function.
3554         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
3555         ``set mips abi'' and ``show mips abi''.  Check the size of
3556         mips_abi_strings.
3557
3558 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3559
3560         * i386-linux-tdep.c (i386_linux_register_name): Make return type
3561         constant.
3562
3563 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
3564
3565         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
3566         current frame using only the first stack size adjustment. All
3567         subsequent size adjustments are not considered to be part of
3568         the "static" part of the current frame.
3569         Compute the address of the saved registers relative to the
3570         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3571         in use in this frame.
3572
3573 2002-06-18  Don Howard  <dhoward@redhat.com>
3574  
3575         * valops.c (value_ind): Use value_at_lazy() when dereferencing
3576         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
3577         suggesting this solution.
3578
3579 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
3580
3581         * config/romp/xm-rtbsd.h: Delete file.
3582         * config/romp/rtbsd.mh: Delete file.
3583
3584 2002-06-18  Keith Seitz  <keiths@redhat.com>
3585
3586         * breakpoint.c (condition_command): Post breakpoint_modify
3587         when a condition is added to an existing breakpoint.
3588         (commands_command): Likewise for commands.
3589         (set_ignore_count): Likewise for ignore counts.
3590         If no tty, do not simply return, still need to send event
3591         notification.
3592         (ignore_command): Only print a newline if the command came
3593         from a tty.
3594         Don't call breakpoints_changed, since this is now properly
3595         handled by set_ignore_count.
3596
3597 2002-06-18  Andrew Cagney  <cagney@redhat.com>
3598
3599         * MAINTAINERS: Note that cris-elf target can be compiled with
3600         -Werror.
3601         * cris-tdep.c (cris_register_name): Make return type constant.
3602         (cris_breakpoint_from_pc): Ditto.
3603
3604 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
3605
3606         * frame.h (struct frame_info): Change type of context to 
3607         'struct context'.
3608
3609 2002-06-17  Andrew Cagney  <cagney@redhat.com>
3610
3611         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3612         pointer.
3613         * gdbarch.h, gdbarch.c: Regenerate.
3614         * config/mips/tm-mips.h (mips_register_name): Update.
3615         * i386-tdep.h (i386_register_name): Update.
3616         * mips-tdep.c (mips_register_name): Update
3617         * alpha-tdep.c (alpha_register_name): Update.
3618         * arch-utils.c (legacy_register_name): Update.
3619         * arch-utils.h (legacy_register_name): Update.
3620         * avr-tdep.c (avr_register_name): Update.
3621         * ia64-tdep.c (ia64_register_name): Update.
3622         * i386-tdep.c (i386_register_name): Update.
3623         * sparc-tdep.c (sparc32_register_name): Update.
3624         (sparc64_register_name): Update.
3625         (sparclite_register_name): Update.
3626         (sparclet_register_name): Update.
3627         * sh-tdep.c (sh_generic_register_name): Update.
3628         (sh_sh_register_name): Update.
3629         (sh_sh3_register_name): Update.
3630         (sh_sh3e_register_name): Update.
3631         (sh_sh_dsp_register_name): Update.
3632         (sh_sh3_dsp_register_name): Update.
3633         (sh_sh4_register_name): Update.
3634         (sh_sh64_register_name): Update.
3635         * s390-tdep.c (s390_register_name): Update.
3636         * rs6000-tdep.c (rs6000_register_name): Update.
3637         * ns32k-tdep.c (ns32k_register_name_32082): Update.
3638         (ns32k_register_name_32382): Update.
3639         * d10v-tdep.c (d10v_ts2_register_name): Update.
3640         (d10v_ts3_register_name): Update.
3641         * xstormy16-tdep.c (xstormy16_register_name): Update.
3642         * vax-tdep.c (vax_register_name): Update.
3643         * v850-tdep.c (v850_register_name): Update.
3644         * m68hc11-tdep.c (m68hc11_register_name): Update.
3645         * mn10300-tdep.c (mn10300_generic_register_name): Update.
3646         (am33_register_name): Update.
3647
3648 2002-06-17  Grace Sainsbury  <graces@redhat.com>
3649
3650         * m68k-tdep.c: Reindented.
3651
3652 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
3653
3654         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3655         list of predefined types.
3656
3657 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
3658
3659         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3660         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3661         REGISTER_CONVERT_TO_RAW): Remove defines.
3662         (i386_register_virtual_type, i386_register_convertible,
3663         i386_register_convert_to_virtual, i386_register_convert_to_raw):
3664         Remove prototypes.
3665         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3666         macros mentioned above.
3667
3668         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3669         (i386lynx_saved_pc_after_call): Remove prototype.
3670         * i386ly-tdep.c: Include "i386-tdep.h".
3671         (i386lynx_saved_pc_after_call): Make static.  Use
3672         read_memory_nobpt instead of read_memory.  Use
3673         read_memory_unsigned_integer instead of read_memory_integer.
3674         (i386lynx_init_abi): New function.
3675         (i386lynx_coff_osabi_sniffer): New function.
3676         (_initialize_i386bsd_tdep): New function.
3677
3678         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3679         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3680         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3681         (i386_fix_call_dummy): Remove prototype.
3682         * i386-tdep.c (i386_call_dummy_words): New variable.
3683         (i386_gdbarch_init): Adjust for removal of the
3684         macros mentioned above.
3685
3686 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3687
3688         * command.h (add_setshow_auto_boolean_cmd): Replace
3689         add_set_auto_boolean_cmd.
3690         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3691         add_set_auto_boolean_cmd.
3692         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3693         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3694         mask-address'' command.
3695         (show_mask_address): Add cmd parameter.
3696         * remote.c (add_packet_config_cmd): Update.  Change type of
3697         set_func and show_func to cmd_sfunc_ftype.
3698         (_initialize_remote): Update `set remote Z-packet'
3699         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3700         (show_remote_protocol_e_packet_cmd): Ditto.
3701         (show_remote_protocol_E_packet_cmd): Ditto.
3702         (show_remote_protocol_P_packet_cmd): Ditto.
3703         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3704         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3705         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3706         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3707         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3708         (show_remote_protocol_Z_packet_cmd): Ditto.
3709         (show_remote_protocol_binary_download_cmd): Ditto.
3710         (show_remote_cmd): Pass NULL to all of above.
3711
3712 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3713
3714         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3715         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3716         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3717         POP_FRAME): Remove defines.
3718         (i386_push_arguments, i386_store_struct_return,
3719         i386_extract_return_value, i386_store_return_value,
3720         i386_extract_struct_value_address, i386_push_dummy_frame,
3721         i386_pop_frame): Renove prototypes.
3722         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3723         macros mentioned above.
3724
3725 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3726
3727         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3728         add_set_boolean_cmd.
3729         (add_setshow_cmd): New function.
3730         * command.h (add_setshow_boolean_cmd): Replace
3731         add_set_boolean_cmd.
3732         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3733         and ``set rdiromatzero''.
3734         * maint.c (_initialize_maint_cmds): Update commented out code.
3735         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3736         * target.c (initialize_targets): Update `set
3737         trust-readonly-sections'.
3738         * remote.c (_initialize_remote): Update `set remotebreak'.
3739
3740 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3741
3742         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3743         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3744         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3745         fit into multi-arch framework.
3746         (i386_breakpoint_from_pc): New function.
3747         (i386_gdbarch_init): Adjust for removal of the macros mentioned
3748         above.
3749
3750         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3751         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3752         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3753         (i386_frameless_function_invocation, i386_frame_num_args,
3754         i386_frame_init_saved_regs): Remove prototypes.
3755         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3756         macros mentioned above.
3757
3758 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3759
3760         * cli/cli-decode.c (set_cmd_cfunc): Update.
3761         (set_cmd_sfunc): Update.
3762         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3763         (set_cmd_sfunc, set_cmd_cfunc): Update.
3764         * cli/cli-decode.h: Update.
3765
3766 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3767
3768         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3769         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3770
3771 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3772
3773         * defs.h (auto_boolean): Declare enum.
3774         * command.h (cmd_auto_boolean): Delete enum.
3775         * mips-tdep.c (mask_address_var): Update.
3776         (mips_mask_address_p): Update.
3777         (show_mask_address): Update.
3778         * remote.c (struct packet_config): Update.
3779         (update_packet_config): Update.
3780         (show_packet_config_cmd): Update.
3781         (packet_ok): Update.
3782         (add_packet_config_cmd): Update.
3783         (_initialize_remote): 
3784         * command.h: Update.
3785         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3786         (do_setshow_command): Update.
3787         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3788         * cli/cli-decode.h: Update.
3789
3790 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3791
3792         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3793         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3794         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3795         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3796         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3797         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3798
3799         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3800         list of DJGPP COFF targets.
3801
3802         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3803         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3804         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3805         (FP0_REGNUM): Remove define.
3806         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3807         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3808         (i386_register_virtual_size): Remove protoype.
3809         * i386-tdep.c (i386_register_virtual_size): Removed.
3810         (i386_extract_return_value, i386_store_return_value): Use
3811         FP0_REGNUM instead of NUM_FREGS to determine whether the
3812         floating-point registers are available.
3813         (i386_gdbarch_init): Tweak FIXME about FPU registers.
3814         Adjust for removal of macros mentioned above.
3815
3816 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3817
3818         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
3819         comments.
3820         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3821         Remove prototypes.
3822         (supply_gregset, fill_gregset): Remove use of register keyword and
3823         remove declaration for regmap.  Use I386_NUM_GREGS instead of
3824         NUM_REGS and NUM_FREGS.
3825         (FPREGSET_FSAVE_OFFSET): Remove.
3826         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3827         NUM_FREGS to determine whether the floating-point registers are
3828         available.
3829
3830         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3831         gnu_store_registers): Replace usage of NUM_GREGS with
3832         I386_NUM_GREGS.
3833
3834         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3835         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3836         usage of NUM_GREGS with I386_NUM_GREGS.
3837
3838         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3839
3840         * i386bsd-nat.c: Include "i386-tdep.h".
3841         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3842         I386_NUM_GREGS.
3843
3844         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3845         and associated comment.  They no longer make any sense, since we
3846         don't use this file anymore on Linux.
3847
3848         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3849         * i386-tdep.c (i386_register_offset, i386_register_size): Use
3850         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3851         elements in these arrays.
3852         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3853         MAX_NUM_REGS.
3854
3855 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3856
3857         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3858         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3859
3860 2002-06-14  Andrew Cagney  <cagney@redhat.com>
3861
3862         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3863         EXTRACT_RETURN_VALUE.
3864         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3865         EXTRACT_STRUCT_VALUE_ADDRESS.
3866         * gdbarch.h, gdbarch.c: Regenerate.
3867         
3868         * values.c (value_being_returned): Handle
3869         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3870         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3871
3872         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
3873         * arm-tdep.c (arm_gdbarch_init): Update.
3874         * avr-tdep.c (avr_gdbarch_init): Update.
3875         * cris-tdep.c (cris_gdbarch_init): Update.
3876         * d10v-tdep.c (d10v_gdbarch_init): Update.
3877         * ia64-tdep.c (ia64_gdbarch_init): Update.
3878         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3879         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3880         * s390-tdep.c (s390_gdbarch_init): Update.
3881         * sh-tdep.c (sh_gdbarch_init): Update.
3882         * s390-tdep.c (s390_gdbarch_init): Update.
3883         * sparc-tdep.c (sparc_gdbarch_init): Update.
3884         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3885         * v850-tdep.c (v850_gdbarch_init): Update.
3886         * vax-tdep.c (vax_gdbarch_init): Update.
3887         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3888         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3889
3890         * config/arc/tm-arc.h: Update.
3891         * config/d30v/tm-d30v.h: Update.
3892         * config/fr30/tm-fr30.h: Update.
3893         * config/h8300/tm-h8300.h: Update.
3894         * config/h8500/tm-h8500.h: Update.
3895         * config/i386/tm-i386.h: Update.
3896         * config/i386/tm-ptx.h: Update.
3897         * config/i386/tm-symmetry.h: Update.
3898         * config/i960/tm-i960.h: Update.
3899         * config/m32r/tm-m32r.h: Update.
3900         * config/m68k/tm-delta68.h: Update.
3901         * config/m68k/tm-linux.h: Update.
3902         * config/m68k/tm-m68k.h: Update.
3903         * config/m88k/tm-m88k.h: Update.
3904         * config/mcore/tm-mcore.h: Update.
3905         * config/mips/tm-mips.h: Update.
3906         * config/mn10200/tm-mn10200.h: Update.
3907         * config/pa/tm-hppa.h: Update.
3908         * config/pa/tm-hppa64.h: Update.
3909         * config/sparc/tm-sp64.h: Update.
3910         * config/sparc/tm-sparc.h: Update.
3911         * config/sparc/tm-sparclet.h: Update.
3912         * config/z8k/tm-z8k.h: Update.
3913
3914 2002-06-14  Andrew Cagney  <cagney@redhat.com>
3915
3916         * Makefile.in (i386_linux_tdep_h): Define.
3917         (i386_tdep_h, i387_tdep_h): Define.
3918         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3919         $(i386_tdep_h) and $(i387_tdep_h).
3920         * i386-linux-nat.c: Include "i386-linux-tdep.h".
3921
3922 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
3923
3924         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3925         Already covered by the default.
3926
3927         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3928         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
3929         (i386_gdbarch_init): Initialize long_double_format and long_double
3930         bit.
3931
3932         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3933         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
3934         Move these to ...
3935         * config/i386/i386sol2.mh: ... here.
3936         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3937         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3938         (SIGCONTEXT_PC_OFFSET): Remove define.
3939         (IN_SIGTRAMP): Remove define.
3940         * i386-sol2-tdep.c: New file.
3941         
3942         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3943         * config/i386/tm-i386nw.h: Removed.
3944
3945         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3946         USE_STRUCT_CONVENTION): Remove defines.
3947         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3948         (get_longjmp_target): Remove prototype.
3949         (IN_SIGTRAMP): Remove define.
3950         (i386bsd_in_sigtramp): Remove prototype.
3951         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3952         function.  Update comment accordingly
3953         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3954         (FRAME_SAVED_PC): Remove define.
3955         (i386bsd_frame_saved_pc): Remove prototype.
3956         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3957         GET_LONGJMP_TARGET): Remove defines.
3958         (get_longjmp_target): Remove prototype.
3959         (IN_SIGTRAMP): Remove define.
3960         (i386bsd_in_sigtramp): Remove prototype.
3961         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3962         function.  Update comment accordingly
3963         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3964         (FRAME_SAVED_PC): Remove define.
3965         (i386bsd_frame_saved_pc): Remove prototype.
3966         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3967         Remove prototype.
3968         (USE_STRUCT_CONVENTION): Remove prototype.
3969         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3970         declaration.
3971         (_initialize_i386bsd_nat): Revise logic to determine some
3972         constants at compile time when compiling a native GDB.  Warn if
3973         things don't match up with what we expect.
3974         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3975         Remove variables.
3976         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
3977         to use date stored in `struct gdbarch_tdep'.
3978         (i386bsd_sigcontext_offset): Remove varaible.
3979         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
3980         stored in `struct gdbarch_tdep'.
3981         (i386bsd_frame_saved_pc): Make static.
3982         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3983         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3984         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3985         i386fbsd4_sc_pc_offset): New variables.
3986         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3987         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3988         functions.
3989         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3990         functions.
3991         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3992         Modify the value of i386fbsd_sigtramp_start and
3993         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3994         i386fbsd_sigtramp_end.
3995         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3996         function.
3997
3998         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3999         define to i386-linux-tdep.h.
4000         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4001         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4002         defines.
4003         (i386_linux_register_name, i386_linux_register_byte,
4004         i386_linux_register_raw_size): Remove prototypes.
4005         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4006         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4007         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4008         TARGET_WRITE_PC): Remove defines.
4009         (i386_linux_in_sigtramp, i386_linux_frame_chain,
4010         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4011         i386_linux_write_pc): Remove prototypes.
4012         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4013         (get_longjmp_target): Remove prototype.
4014         * i386-linux-tdep.h: New file.
4015         * i386-linux-nat.c: Include "i386-linux-tdep.h".
4016         * i386-linux-tdep.c: Include "i386-tdep.h" and
4017         "i386-linux-tdep.h".
4018         (i386_linux_register_name, i386_linux_register_byte,
4019         i386_linux_register_raw_size, i386_linux_in_sigtramp,
4020         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4021         Make static.
4022         (i386_linux_init_abi): New function.
4023         (_initialize_i386_linux_tdep): New function.
4024
4025         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4026         (i386_saved_pc_after_call): Remove prototype.
4027         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4028         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4029         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4030         (i386_register_name, i386_stab_reg_to_regnum,
4031         i386_dwarf_reg_to_regnum): Remove prototypes.
4032         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4033         SIZEOF_SSE_REGS): Remove defines.
4034         (REGISTER_BYTES): Remove define.
4035         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4036         (i386_register_byte, i386_register_raw_size): Remove prototypes.
4037         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4038         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4039         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4040         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4041         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4042         (get_longjmp_target): Remove prototype.
4043         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4044         (sigtramp_saved_pc): Remove define.
4045         (i386v4_sigtramp_saved_pc): Remove prototype.
4046         * config/i386/tm-go32.h (FRAME_CHAIN,
4047         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4048         (i386go32_frame_saved_pc): Remove prototype.
4049         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4050         (get_longjmp_target): Remove prototype.
4051         * i386-tdep.h: Include "osabi.h".
4052         (enum i386_abi): Removed.
4053         (enum struct_return): New enum.
4054         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4055         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4056         sc_pc_offset members.
4057         (i386_gdbarch_register_os_abi): Remove prototype.
4058         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4059         I386_SSE_NUM_REGS): New defines.
4060         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4061         I386_SSE_SIZEOF_REGS): New defines.
4062         (i386_register_name, i386_register_byte, i386_register_raw_size):
4063         New prototypes.
4064         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4065         (i386bsd_sigtramp_saved_pc): New prototype.
4066         * i386-tdep.c: Don't include "elf-bfd.h".
4067         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4068         i386_frame_chain, i386_saved_pc_after_call): Make static.
4069         (i386_frame_saved_pc): Rewrite to call architecture dependent
4070         function to deal with signal handlers.  Make static.
4071         (i386go32_frame_saved_pc): Removed.
4072         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4073         Removed.
4074         (i386_get_longjmp_target): New function.
4075         (default_struct_convention, pcc_struct_convention,
4076         reg_struct_convention, valid_conventions, struct_convention): New
4077         variables.
4078         (i386_use_struct_convention): New function.
4079         (i386v4_sigtramp_saved_pc): Renamed to
4080         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
4081         (i386_pc_in_sigtramp): New function.
4082         (i386_abi_names): Removed.
4083         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4084         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4085         Removed.
4086         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4087         i386_gdbarch_register_os_abi): Removed.
4088         (struct i386_abi_handler): Removed.
4089         (i386_abi_handler_list): Removed.
4090         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4091         functions.
4092         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4093         i386_nw_init_abi): New functions.
4094         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4095         Use set_gdbarch_xxx() calls instead of relying on macros for a
4096         number of calls.
4097         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4098         (_initialize_i386_tdep): Add new 'struct-convcention' command.
4099         Register the various architecture variants defined in this file.
4100
4101 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
4102
4103         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4104         (struct main_type): Remove arg_types member.  Update comments for
4105         struct field.
4106         (TYPE_ARG_TYPES): Remove.
4107         (TYPE_FN_FIELD_ARGS): Update.
4108         (smash_to_method_type): Update prototype.
4109
4110         * c-typeprint.c (cp_type_print_method_args): Take method type
4111         instead of argument list.  Use new argument layout.  Simplify.
4112         (c_type_print_args): Use new argument layout.  Simplify.
4113         (c_type_print_base): Update call to cp_type_print_method_args.
4114         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4115         argument; use die->type instead.  Update call to
4116         smash_to_method_type.
4117         (read_structure_scope): Update call to dwarf2_add_member_fn.
4118         * gdbtypes.c (allocate_stub_method): Update comment.
4119         (smash_to_method_type): Take new NARGS and VARARGS arguments.
4120         Use new argument layout.
4121         (check_stub_method): Use new argument layout.  Don't count
4122         void as an argument.
4123         (print_arg_types): Update comments.  Use new argument layout.
4124         (recursive_dump_type): Don't print arg_types member.
4125         * hpread.c (hpread_read_struct_type): Use new argument layout.
4126         (fixup_class_method_type): Likewise.
4127         (hpread_type_lookup): Likewise.
4128         * stabsread.c (read_type): Update calls to read_args and
4129         smash_to_method_type.
4130         (read_args): Use new argument layout.  Simplify.
4131         * valops.c (typecmp): Use new argument layout.  Update parameters
4132         and comments.  Simplify.
4133         (hand_function_call): Use new argument layout.
4134         (search_struct_method): Update call to typecmp.
4135         (find_overload_match): Use new argument layout.
4136
4137 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4138
4139         * NEWS: Mention multithreaded debug support for gdbserver.
4140
4141 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4142
4143         * MAINTAINERS: Mention NEWS.
4144
4145 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4146
4147         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4148         (struct mips_objfile_private, compare_pdr_entries): New.
4149         (non_heuristic_proc_desc): Read the ".pdr" section if it
4150         is present.
4151
4152 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
4153
4154         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4155         (arm_debug): New static variable.
4156         (_initialize_arm_tdep): Add ``set debug arm'' command.
4157
4158 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
4159
4160         * Makefile.in (sim_arm_h): Define.
4161         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4162         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4163         (arm_register_sim_regno): New function, map an internal REGNUM
4164         onto a simulator register number.
4165         (arm_gdbarch_init): Set register_sim_regno.
4166
4167 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
4168
4169         * MAINTAINERS: Add self.
4170
4171 2002-06-11  Jim Blandy  <jimb@redhat.com>
4172
4173         * source.c (source_info): Mention whether the symtab has
4174         information about preprocessor macros.
4175
4176         Call the command `info macro', not `show macro'.
4177         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4178         Fix error message.
4179         (_initialize_macrocmd): Register `info_macro_command' in
4180         `infolist', not `showlist'.
4181
4182 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
4183
4184         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4185         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4186         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4187         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4188         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
4189         unconditionally.
4190         (set_mipsfpu_single_command, set_mipsfpu_double_command)
4191         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4192         (_initialize_mips_tdep): Remove dead code.
4193         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4194         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4195         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4196         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4197         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4198         MIPS_LAST_FP_ARG_REGNUM): Remove.
4199
4200 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
4201
4202         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4203         (unwind_tmp_obstack_free, parse_frame_info)
4204         (update_context, cfi_read_fp, cfi_write_fp)
4205         (cfi_frame_chain, cfi_init_extra_frame_info)
4206         (cfi_virtual_frame_pointer): Use the above function.
4207         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4208
4209 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
4210
4211         * v850-tdep.c (v850_type_is_scalar): New function.
4212         (v850_use_struct_convention): Match current gcc implementation
4213         as close as possible.
4214         (v850_push_arguments): Fix stack_offset handling.  Don't write
4215         struct_addr into register.  This is done by v850_store_struct_return.
4216         (v850_extract_return_value): Care for structs.
4217         (v850_store_return_value): Ditto.
4218         (v850_store_struct_return): Actually write address.
4219
4220 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
4221
4222         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4223         without debug information too.
4224
4225 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
4226
4227         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4228         Make multi-arch pure.
4229         * gdbarch.h, gdbarch.c: Re-generate.
4230         * arm-tdep.c (arm_print_float_info): Update.
4231         * arch-utils.h (default_print_float_info): Update.
4232         * arch-utils.c (default_print_float_info): Update.
4233         * infcmd.c (float_info): Update call.
4234
4235 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
4236
4237         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4238         the front of the initialize list.
4239
4240 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
4241
4242         * infrun.c (struct inferior_status): Replace fields
4243         selected_frame_address and selected_level with field
4244         selected_frame_id.
4245         (save_inferior_status): Update.  Use get_frame_id.
4246         (struct restore_selected_frame_args): Delete.
4247         (restore_selected_frame): Update.  Use frame_find_by_id.
4248         (restore_inferior_status): Update.
4249
4250         * breakpoint.h (struct breakpoint): Change type of
4251         watchpoint_frame to frame_id.
4252         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
4253         call to get_current_frame.
4254         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
4255         get_current_frame.
4256         (watchpoint_check): Use frame_find_by_id.
4257
4258         * frame.h (record_selected_frame): Delete declaration.
4259         * stack.c (record_selected_frame): Delete function.
4260         
4261         * frame.h (struct frame_id): Define.
4262         (get_frame_id): Declare.
4263         (frame_find_by_id): Declare.
4264         * frame.c (frame_find_by_id): New function.
4265         (get_frame_id): New function.
4266
4267 2002-06-10  Andrey Volkov <avolkov@transas.com>
4268
4269         * ser-e7kpc.c: Fix duplicated define and call of 
4270         _initialize_ser_e7000pc
4271             
4272 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
4273
4274         * signals/signals.c (target_signal_from_host): Fix #ifdef
4275         SIGRTMIN case.
4276         (do_target_signal_to_host): Likewise.
4277
4278 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
4279
4280         * mips-tdep.c (mips_find_abi_section): New function.
4281         (mips_gdbarch_init): Call it.
4282
4283 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
4284
4285         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4286         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
4287         after Andrew's 2002-06-08 gdbarch change.
4288
4289 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
4290
4291         * i386-linux-nat.c (suppy_gregset): Don't supply
4292         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4293         register cache.
4294         (fill_gregset): Don't fetch it under the same circumstances.
4295
4296 2002-06-09  Andrew Cagney  <cagney@redhat.com>
4297
4298         * Makefile.in (callback_h): Define.
4299         (remote_sim_h): Update path to remote-sim.h.
4300         (remote-rdp.o): Add $(callback_h).
4301         (remote-sim.o): Use $(callback_h).
4302         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4303         * remote-rdp.c: Include "gdb/callback.h".
4304
4305 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
4306
4307         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4308         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4309
4310 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4311
4312         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4313         * rdi-share/serpardr.c: Ditto.
4314         * rdi-share/unixcomm.c: Ditto.
4315         * rdi-share/serdrv.c: Ditto.
4316         * rdi-share/hostchan.h: Ditto.
4317         * rdi-share/hostchan.c: Ditto.
4318         * rdi-share/host.h: Ditto.
4319         * rdi-share/devsw.c: Ditto.
4320
4321         * objfiles.h: Change type of obj_private to void pointer.
4322         * pa64solib.c: Update copyright.  Don't include "assert.h", use
4323         strcmp instead of STREQ, use LONGEST, do not use PTR
4324         * somsolib.c: Ditto.
4325
4326         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4327         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4328         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4329
4330 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4331
4332         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4333         (default_get_saved_register): Delete function.
4334         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4335         generic_unwind_get_saved_register.
4336         * gdbarch.h, gdbarch.c: Re-generate.
4337         
4338 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4339
4340         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4341         generic_func_frame_chain_valid.
4342         * gdbarch.h, gdbarch.c: Re-generate.
4343         * blockframe.c (generic_func_frame_chain_valid): Only check
4344         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
4345         passing FP to PC_IN_CALL_DUMMY.
4346         Fix PR gdb/360.
4347
4348 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4349
4350         * gdbarch.sh (struct gdbarch_data): Add field init_p.
4351         (register_gdbarch_data): Initialize init_p.
4352         (gdbarch_data): Initialize data pointer using the init function.
4353         (init_gdbarch_data): Delete function.
4354         (gdbarch_update_p): Update.
4355         (initialize_non_multiarch): Update.
4356         (struct gdbarch): Add field initialized_p.
4357         * gdbarch.h, gdbarch.c: Re-generate.
4358
4359 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
4360
4361         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4362         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4363         better do the things actually here.
4364         * x86-64-tdep.c (x86_64_register_name2nr): New.
4365         (x86_64_register_name): Renamed to x86_64_register_nr2name.
4366         (x86_64_gdbarch_init): Respect the above change.
4367         * x86-64-tdep.h (x86_64_register_name2nr)
4368         (x86_64_register_nr2name): Add prototypes.
4369         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4370
4371 2002-06-06  Michael Snyder  <msnyder@redhat.com>
4372
4373         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4374         Delete extra braces and re-indent.
4375         (d10v_store_return_value): Char return values
4376         must be shifted over by one byte in R0.
4377         (d10v_extract_return_value): Delete extra braces, re-indent.
4378
4379 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
4380
4381         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4382         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4383         (d10v_integer_to_address): Rewrite.
4384         (d10v_frame_init_saved_regs): When reading fp and sp registers use
4385         the d10v specific functions which take care of converting to the
4386         correct space.
4387
4388 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
4389
4390         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4391         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4392
4393 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
4394
4395         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4396         includes.
4397         * config/tm-linux.h: Ditto.
4398         * config/alpha/tm-alphalinux.h: Ditto.
4399         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4400         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4401         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4402         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4403         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4404         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4405         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4406         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4407         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4408         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4409         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4410         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4411         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4412         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4413         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4414         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4415         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4416         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4417         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4418         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4419         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4420         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4421         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4422         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4423         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4424         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4425         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4426         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4427         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4428         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4429         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4430         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4431         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4432         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4433         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4434         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4435         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4436
4437 2002-05-04  Aidan Skinner <aidan@velvet.net>
4438
4439         * ada-exp.tab.c: New file
4440         * ada-exp.y: New file
4441         * ada-lang.c: New file
4442         * ada-lang.h: New file
4443         * ada-lex.c: New file
4444         * ada-lex.l: New file
4445         * ada-tasks.c: New file
4446         * ada-typeprint.c: New file
4447         * ada-valprint.c: New file
4448         
4449 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
4450
4451         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4452         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4453
4454 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
4455
4456         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4457         insetead of ppc-linux-tdep.o.
4458         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4459         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4460
4461 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
4462
4463         2002-05-07 Christian Groessler <chris@groessler.org>
4464         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4465         bit register contents for little endian hosts.
4466
4467 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4468
4469         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4470         any maintainer.
4471
4472 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4473
4474         * gdbarch.h: Regenerate.
4475
4476 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4477
4478         * MAINTAINERS: Add everyone to write-after-approval list.
4479
4480 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4481
4482         * stack.c (frame_info): Use frame_register_unwind instead of
4483         saved_regs.  Mention when the SP is on the stack or in a register.
4484
4485         * frame.h (frame_register_unwind_ftype): Define.  Document.
4486         (struct frame_info): Add field register_unwind and
4487         register_unwind_cache.
4488         (frame_register_unwind): Declare.
4489         (generic_unwind_get_saved_register): Declare.
4490
4491         * frame.c (frame_register_unwind): New function.
4492         (generic_unwind_get_saved_register): New function.
4493
4494         * blockframe.c (generic_call_dummy_register_unwind): New function.
4495         (frame_saved_regs_register_unwind): New function.
4496         (set_unwind_by_pc): New function.
4497         (create_new_frame): New function.
4498         (get_prev_frame): New function.
4499
4500 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
4501
4502         * a29k-share/: Delete directory.
4503         * remote-vx29k.c: Delete file.
4504
4505 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4506
4507         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4508         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4509
4510 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4511
4512         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4513         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4514         (sparc64nbsd-nat.o)
4515         (sparcnbsd-nat.o)
4516         (sparcnbsd-tdep.o): New dependency lists.
4517         * NEWS: Note new UltraSPARC NetBSD native configuration.
4518         * configure.host (sparc64-*-netbsd*): New host.
4519         * configure.tgt (sparc-*-netbsdelf*)
4520         (sparc-*-netbsd*): Set gdb_target to nbsd.
4521         (sparc64-*-netbsd*): New target.
4522         * sparc64nbsd-nat.c: New file.
4523         * sparcnbsd-nat.c: New file.
4524         * sparcnbsd-tdep.c: New file.
4525         * sparcnbsd-tdep.h: New file.
4526         * config/sparc/nbsd.mt: New file.
4527         * config/sparc/nbsd64.mh: New file.
4528         * config/sparc/nbsd64.mt: New file.
4529         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4530         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4531         (HOST_IPC): Remove.
4532         * config/sparc/nbsdaout.mt: Remove.
4533         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4534         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4535         (HOST_IPC): Remove.
4536         * config/sparc/nbsdelf.mt: Remove.
4537         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
4538         sparc-nat.c compatiblity defines.
4539         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
4540         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4541         * config/sparc/tm-nbsd64.h: New file.
4542         * config/sparc/tm-nbsdaout.h: Remove.
4543         * config/sparc/xm-nbsd.h: Remove.
4544
4545 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4546
4547         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4548         * sparc-tdep.c: Include osabi.h.
4549         (gdbarch_tdep): Add osabi member.
4550         (_initialize_sparc_tdep): Use gdbarch_register.
4551         (sparc_gdbarch_init): Use generic OS ABI framework.
4552         (sparc_dump_tdep): New function.
4553
4554 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
4555
4556         * corefile.c (do_captured_read_memory_integer): Return non-zero
4557         result.
4558         (safe_read_memory_integer): Copy result of memory read when
4559         status is non-zero.  Also, add comments.
4560
4561 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
4562
4563         * Makefile.in (ppc_tdep_h): Define.
4564         (ppc-linux-nat.o)
4565         (ppc-linux-tdep.o)
4566         (rs6000-tdep.o): Use $(ppc_tdep_h).
4567         (ppc-sysv-tdep.o)
4568         (ppcnbsd-nat.o)
4569         (ppcnbsd-tdep.o): New dependency lists.
4570         * ppc-tdep.h: Use generic OS ABI framework.
4571         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4572         (ppc_linux_init_abi): New functions.
4573         (ppc_sysv_abi_broken_use_struct_convention)
4574         (ppc_sysv_abi_use_struct_convention)
4575         (ppc_sysv_abi_push_arguments): Move to...
4576         * ppc-sysv-tdep.c: ...here.
4577         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4578         * rs6000-tdep.c (process_note_abi_tag_sections)
4579         (get_elfosabi): Remove.
4580         (rs6000_gdbarch_init): Use generic OS ABI framework.
4581         (rs6000_dump_tdep): New function.
4582         (_initialize_rs6000_tdep): Use gdbarch_register.
4583         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4584         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4585         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4586         of ppc-linux-tdep.o.
4587         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4588         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4589         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4590         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4591         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4592         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4593
4594 2002-05-29  Jim Blandy  <jimb@redhat.com>
4595
4596         * macroscope.c (default_macro_scope): Put `void' in empty argument
4597         list.
4598
4599 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
4600
4601         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4602         * arch-utils.c: Include "sim-regno.h".
4603         * gdbarch.sh: Don't include "sim-regno.h".
4604         * gdbarch.h, gdbarch.c: Regenerate.
4605         * sim-regno.h (legacy_register_sim_regno): Move declaration from
4606         here.
4607         * arch-utils.h (legacy_register_sim_regno): To here.
4608         * remote-sim.c (legacy_register_sim_regno): Move function from
4609         here.
4610         * arch-utils.c (legacy_register_sim_regno): To here.
4611
4612 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
4613
4614         * sim-regno.h: New file.
4615         * Makefile.in (sim_regno_h): Define.
4616         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4617         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4618         (legacy_register_sim_regno): New function.
4619         (one2one_register_sim_regno): New function.
4620         (gdbsim_fetch_register): Rewrite.
4621         (gdbsim_store_register): Only store a register when
4622         REGISTER_SIM_REGNO is valid.
4623         * d10v-tdep.c: Include "sim-regno.h".
4624         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4625         (d10v_ts3_register_sim_regno): Ditto.
4626         * gdbarch.sh: Include "sim-regno.h".
4627         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4628         * gdbarch.h, gdbarch.c: Regenerate.
4629         * arch-utils.h (default_register_sim_regno): Delete declaration.
4630         * arch-utils.c (default_register_sim_regno): Delete function.
4631
4632 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
4633
4634         * ppcnbsd-nat.c: Rewrite.
4635         * ppcnbsd-tdep.c: New file.
4636         * ppcnbsd-tdep.h: New file.
4637         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4638         solib.o, and solib-svr4.o.
4639         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4640         nbsd-tdep.o, and corelow.o.
4641
4642 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
4643
4644         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4645         `tr' and `sed'.  Mention that `broken' targets are not expected to
4646         build.
4647
4648 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
4649
4650         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4651         Let PC point right after the prologue before looking up symbols.
4652         
4653 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
4654
4655         * i386-tdep.c (i386_register_virtual_type): Return 
4656         builtin_type_vec128i for SSE registers.
4657
4658         * gdbtypes.h (builtin_type_vec128i): Declare.
4659
4660         * gdbtypes.c (build_builtin_type_vec128i): New function.
4661         (builtin_type_v2_double, builtin_type_v4_int64): New types.
4662         (builtin_type_vec128i): New type for SSE2 128-bit registers.
4663         (build_gdbtypes): Initialize new builtin vector types.
4664         (_initialize_gdbtypes): Register new vector types with gdbarch.
4665
4666 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4667
4668         * MAINTAINERS: ns32k is not longer an obsolete candidate,
4669         since it has been multi-arch'd.
4670         * NEWS: Note that ns32k-*-* is now partial multi-arch.
4671         Move Alpha and VAX multi-arch news entries to same section
4672         as other multi-arch news.
4673
4674 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4675
4676         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4677         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
4678         static.  Rename some register numbers to put them in ns32k-tdep
4679         private namespace.
4680         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4681         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4682         functions.
4683         (_initialize_ns32k_tdep): Use gdbarch_register.
4684         * ns32k-tdep.h: New file.
4685         * ns32knbsd-tdep.c: New file.
4686         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4687         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4688         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4689         REGISTER_BYTES, REGISTER_BYTE): Remove.
4690         * config/ns32k/tm-ns32k.h: New file.
4691         * config/ns32k/tm-umax.h: Remove.
4692
4693 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4694
4695         * ns32k-tdep.c (ns32k_saved_pc_after_call,
4696         ns32k_store_struct_return, ns32k_extract_return_value,
4697         ns32k_store_return_value, ns32k_extract_struct_value_address): New
4698         functions.
4699         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4700         ns32k_saved_pc_after_call.
4701         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4702         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4703         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4704         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4705         ns32k_extract_struct_value_address.
4706
4707 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4708
4709         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4710         ns32k_fix_call_dummy): New.
4711         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4712         ns32k_call_dummy_words.
4713         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4714         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4715         CALL_DUMMY_NARGS): Remove.
4716         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4717
4718 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4719
4720         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4721         ns32k_frame_saved_pc, ns32k_frame_args_address,
4722         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4723         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4724         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4725         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4726         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4727         (BREAKPOINT): Remove..
4728         (FRAME_CHAIN): Define as ns32k_frame_chain.
4729         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4730         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4731         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4732         (FRAME_FIND_SAVED_REGS): Remove.
4733         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4734         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4735         (POP_FRAME): Define as ns32k_pop_frame.
4736
4737 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4738
4739         * ns32k-tdep.c (ns32k_register_byte_32082,
4740         ns32k_register_byte_32382, ns32k_register_raw_size,
4741         ns32k_register_virtual_size, ns32k_register_virtual_type): New
4742         functions.
4743         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4744         ns32k_register_byte_32382.
4745         * config/ns32k/tm-umax.h: Update copyright years.
4746         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4747         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4748         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4749         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4750         (ns32k_get_enter_addr): Fix prototype.
4751
4752 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4753
4754         * ns32k-tdep.c: Update copyright years.
4755         (ns32k_register_name_32082): New function.
4756         (ns32k_register_name_32382): Ditto.
4757         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4758         (REGISTER_NAME): Define as ns32k_register_name_32382.
4759         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4760         (REGISTER_NAME): Define as ns32k_register_name_32082.
4761
4762 2002-05-24  Jim Blandy  <jimb@redhat.com>
4763
4764         * dwarf2read.c (free_line_header): Use xfree, not free.
4765
4766 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
4767
4768         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4769         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4770
4771 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4772
4773         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4774
4775 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4776
4777         From Ross Alexander at NEC Europe:
4778         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4779
4780 2002-05-23  Michael Snyder  <msnyder@redhat.com>
4781
4782         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4783         for input, rather than parse_and_eval_address.  
4784
4785 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4786
4787         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4788         * Makefile.in (sim_d10v_h): Update definition.
4789
4790 2002-05-24  Andrew Cagney  <cagney@redhat.com>
4791
4792         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4793         change `2002-05-22 Michael Snyder' below.
4794         (d10v_push_arguments): Ditto.
4795         (d10v_extract_return_value): Ditto.
4796
4797 2002-05-23  Jim Blandy  <jimb@redhat.com>
4798
4799         * macrotab.c (check_for_redefinition): Don't complain if the new
4800         definition is the same as the previous one.  Take more arguments
4801         to allow the comparison.
4802         (macro_define_object, macro_define_function): Pass more arguments
4803         to check_for_redefinition.
4804
4805 2002-05-22  Michael Snyder  <msnyder@redhat.com>
4806
4807         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4808         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4809         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4810         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4811         Don't bail if return_pc is PC_IN_CALL_DUMMY.
4812         Add a temp variable to save a call (and a memory read).
4813         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4814         if possible (so that PC_IN_CALL_DUMMY will work).
4815
4816 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
4817
4818         * MAINTAINERS: Remove status `OBSOLETE' from v850.
4819
4820 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
4821
4822         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4823         fde->cie_ptr.
4824         (dwarf2_build_frame_info): Corrected handling of eh_frame.
4825         (dwarf2_build_frame_info): Add offset to fde->initial_location 
4826         so that frames of shared libraries are mapped correctly.
4827         (execute_stack_op): Change type of 'result' from ULONGEST to
4828         CORE_ADDR.
4829         
4830 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4831
4832         * config/alpha/tm-nbsd.h: Include solib.h.
4833
4834 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4835
4836         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4837         assumptions about the host's byte order.
4838
4839 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4840
4841         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4842         to dependency list.
4843         * alphanbsd-tdep.c: Include solib-svr4.h.
4844         * shnbsd-tdep.c: Ditto.
4845
4846 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4847
4848         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4849         nbsd-tdep.h to dependency list.
4850         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4851         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4852         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4853         nbsdaout.mh and nbsdelf.mh consistently.
4854         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4855         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4856         nbsdaout.mt and nbsdelf.mh consistently.
4857         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
4858         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4859         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4860         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
4861         a.out shared library stuff from here...
4862         * config/nm-nbsdaout.h: ...to here.
4863         * config/tm-nbsd.h: Remove.
4864         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4865         * config/arm/nbsd.mh: Remove.
4866         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4867         nbsd-tdep.o.
4868         * config/arm/nbsdaout.mh: New file. 
4869         * config/arm/nbsdelf.mh: New file.
4870         * config/arm/nm-nbsdaout.h: New file.
4871         * config/i386/nbsd.mh: Remove.
4872         * config/i386/nbsd.mt: Remove.
4873         * config/i386/nbsdaout.mh: New file.
4874         * config/i386/nbsdaout.mt: New file.
4875         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4876         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4877         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
4878         i386_register_u_addr): Remove.
4879         * config/i386/nm-nbsdaout.h: New file.
4880         * config/i386/nm-nbsdelf.h: Remove.
4881         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4882         (USE_STRUCT_CONVENTION): Remove.
4883         * config/i386/tm-nbsdaout.h: New file.
4884         * config/i386/tm-nbsdelf.h: Remove.
4885         * config/m68k/nbsd.mh: Remove.
4886         * config/m68k/nbsd.mt: Remove.
4887         * config/m68k/nbsdaout.mh: New file.
4888         * config/m68k/nbsdaout.mt: New file. 
4889         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4890         * config/m68k/nm-nbsdaout.h: New file.
4891         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4892         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4893         * config/ns32k/nbsd.mh: Remove.
4894         * config/ns32k/nbsd.mt: Remove. 
4895         * config/ns32k/nbsdaout.mh: New file.
4896         * config/ns32k/nbsdaout.mt: New file.
4897         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
4898         * config/ns32k/nm-nbsdaout.h: New file.
4899         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
4900         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4901         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4902         (SVR4_SHARED_LIBS): Remove.
4903         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4904         * config/sparc/nbsd.mh: Remove.
4905         * config/sparc/nbsd.mt: Remove.
4906         * config/sparc/nbsdaout.mh: New file.
4907         * config/sparc/nbsdaout.mt: New file.
4908         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4909         * config/sparc/nbsdelf.mt: New file.
4910         * config/sparc/nm-nbsdaout.h: New file.   
4911         * config/sparc/nm-nbsdelf.h: Remove.
4912         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4913         * config/sparc/tm-nbsdaout.h: New file.
4914
4915 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4916
4917         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4918         mipsnbsd-tdep.c
4919         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4920
4921 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4922
4923         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4924         shnbsd-nat.c.
4925         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4926
4927 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4928
4929         * NEWS: Note new MIPS NetBSD native configuration. 
4930         * configure.host (mips*-*-netbsd*): New host. 
4931         * configure.tgt (mips*-*-netbsd*): New target. 
4932         * mipsnbsd-nat.c: New file.
4933         * mipsnbsd-tdep.c: New file.
4934         * mipsnbsd-tdep.h: New file.
4935         * config/mips/nbsd.mh: New file.
4936         * config/mips/nbsd.mt: New file.
4937         * config/mips/nm-nbsd.h: New file.
4938         * config/mips/tm-nbsd.h: New file.
4939
4940 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4941
4942         * Makefile.in (SFILES): Add osabi.c.
4943         (COMMON_OBS): Add osabi.o.
4944         (osabi.o): New dependency list.
4945         * osabi.c: New file.
4946         * osabi.h: New file.
4947         * doc/gdbint.texinfo: Document new generic OS ABI framework.
4948
4949         * Makefile.in (alpha_tdep_h): Define and use instead of
4950         alpha-tdep.h.
4951         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4952         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4953         Remove.
4954         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4955         * alpha-tdep.h: Include osabi.h.
4956         (alpha_abi): Remove.
4957         (gdbarch_tdep): Use generic OS ABI framework.
4958         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4959         gdbarch_register_osabi.
4960         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4961         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4962         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4963
4964         * Makefile.in (sh_tdep_h): Add osabi.h.
4965         * sh-tdep.h (sh_osabi): Remove.
4966         (gdbarch_tdep): Use generic OS ABI framework.
4967         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4968         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4969         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4970         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4971
4972         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4973         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4974         gdbarch_register_osabi.
4975         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4976         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4977         (get_elfosabi): Rename to...
4978         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
4979         ABI framework support routines.
4980         (arm_gdbarch_init): Use generic OS ABI framework.
4981         (arm_dump_tdep): Likewise.
4982         (_initialize_arm_tdep): Likewise.
4983         * arm-tdep.h: Include osabi.h.
4984         (arm_abi): Remove.
4985         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
4986         osabi member.
4987         (arm_gdbarch_register_os_abi): Remove prototype.
4988         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4989         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4990
4991         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4992         * mips-tdep.c: Include osabi.h.
4993         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4994         OS ABI framework.
4995
4996 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
4997
4998         * h8300-tdep.c: Fix formatting.
4999
5000 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
5001
5002         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5003         printing vector registers.
5004
5005 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
5006
5007         From Fernando Nasser:
5008         * remote.c (remote_async_open_1): Re-throw the exception when the
5009         connection fails.
5010         (remote_cisco_open): Ditto.
5011         (remote_open_1): Ditto.
5012
5013 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
5014
5015         * remote.c (remote_start_remote_dummy): Add uiout parameter.
5016         (remote_start_remote): Add uiout parameter.  Pass through to
5017         remote_start_remote_dummy.
5018         (remote_open_1): Use catch_exception instead of catch_errors.
5019         (remote_async_open_1): Ditto.
5020         (remote_cisco_open): Ditto.
5021
5022 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
5023
5024         * remote.c (remote_start_remote): Replace PTR with void pointer.
5025         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
5026         static.
5027
5028 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
5029
5030         * gdb_indent.sh: Allow the script to be run in the sim directory.
5031
5032 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
5033
5034         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5035         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5036
5037         * corelow.c (core_open): Only call set_gdbarch_from_file if
5038         exec_bfd is NULL.
5039
5040 2002-05-17  Andrey Volkov <avolkov@transas.com>
5041
5042         * h8300-tdep.c: Add support of EXR register
5043         * config/h8300/tm-h8300.h: Ditto. 
5044         
5045 2002-05-17  Andrey Volkov <avolkov@transas.com>
5046
5047         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
5048         
5049 2002-05-17  Andrey Volkov <avolkov@transas.com>
5050
5051         * h8300-tdep.c: Change literal regnums to REGNO.
5052         
5053 2002-05-17  Jim Blandy  <jimb@redhat.com>
5054
5055         * NEWS: Note addition of macro support.
5056
5057         Expand preprocessor macros in C expressions.
5058         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5059         (scan_macro_expansion, scanning_macro_expansion,
5060         finished_macro_expansion): New function declarations.
5061         (expression_macro_lookup_func, expression_macro_lookup_baton): New
5062         variable declarations.
5063         * parser-defs.h (expression_context_pc): New declaration.
5064         * parse.c (expression_context_pc): New variable.
5065         (parse_exp_1): Set expression_context_pc, as well as
5066         expression_context_block.
5067         * c-exp.y (yylex): If we're not already reading the result of a
5068         macro expansion, try to macro-expand the next token.  When we're
5069         done scanning a macro expansion, switch back to the mainline text.
5070         Commas and `if's in a macro's expansion don't terminate the input.
5071         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5072         (macro_original_text, macro_expanded_text,
5073         expression_macro_lookup_func, expression_macro_lookup_baton): New
5074         variables.
5075         (scan_macro_expansion, scanning_macro_expansion,
5076         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5077         c_preprocess_and_parse): New functions.
5078         (c_language_defn, cplus_language_defn, asm_language_defn): Call
5079         c_preprocess_and_parse, instead of c_parse.
5080         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5081         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5082
5083 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
5084
5085         * sh-tdep.c (gdb_print_insn_sh64): Delete.
5086         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5087         (sh_gdbarch_init): Always use gdb_print_insn_sh.
5088
5089 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
5090
5091         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
5092
5093 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
5094
5095         * Makefile.in (sh_tdep_h): Define and use.
5096         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5097         register enum): Move to...
5098         * * sh-tdep.h: ...here.
5099         * sh-tdep.c: Include sh-tdep.h.
5100         * sh3-rom.c: Likewise.
5101         * shnbsd-tdep.c: Likewise.
5102
5103 2002-05-16  Michael Snyder  <msnyder@redhat.com>
5104
5105         * arm-tdep.c: Spelling fix in comment.
5106
5107 2002-05-16  Jim Blandy  <jimb@redhat.com>
5108
5109         Add commands for manually expanding macros and showing their
5110         definitions.
5111         * macrocmd.c, macroscope.c, macroscope.h: New files.
5112         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5113         (macroscope_h): New variable.
5114         (HFILES_NO_SRCDIR): Add macroscope.h.
5115         (COMMON_OBS): Add macrocmd.o, macroscope.o.
5116         (macroscope.o, macrocmd.o): New rules.
5117
5118         Teach the Dwarf 2 reader to read macro information.
5119         * dwarf2read.c: #include "macrotab.h".
5120         (dwarf_macinfo_buffer): New variable.
5121         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5122         dwarf_macinfo_size.
5123         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5124         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5125         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5126         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5127         dwarf2_macro_spaces_in_definition): New complaints.
5128         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5129         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5130         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5131         the partial symbol table.
5132         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5133         from what's recorded in the partial symbol table.
5134         (read_file_scope): If the compilation unit has a
5135         `DW_AT_macro_info' attribute, read its macro information.
5136         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5137
5138 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
5139
5140         Fix PR gdb/546
5141         * ser-tcp.c: Don't include <netinet/udp.h>.
5142
5143 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
5144
5145         * MAINTAINERS: Update my email address.
5146
5147 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
5148
5149         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5150         include file of the same name.
5151
5152 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5153
5154         * configure.tgt: Mark v850 as multi-arched.
5155         * config/v850/tm-v850.h: Remove file.
5156         * config/v850/v850.mt: Eliminate TM_FILE.
5157
5158 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5159
5160         * v850-tdep.c: Full multi-arch.
5161         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5162         Define GDB_MULTI_ARCH to 2.
5163
5164 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
5165
5166         * p-exp.y (current_type): New static variable.
5167         Carries the type of the expression at the position that is parsed.
5168         (push_current_type, pop_current_type): Two new functions. Used
5169         to store/restore current_type in expression on specific tokens.
5170         (search_field): New static variable. Set to one after parsing a point
5171         as at that point only a FIELDNAME token should be searched.
5172         (FIELDNAME): New token. After a point only a token belonging to 
5173         current_type type definition is allowed.
5174         (all over token rules): reset and change current_type according
5175         to rules.
5176         (exp '[' rule): insert implicit array index field if
5177         exp is a pascal string type.
5178
5179 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5180
5181         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
5182         frame info.  Use frame_info's saved_regs instead of matching member
5183         in extra_frame_info throughout.
5184         (v850_frame_init_saved_regs): New function.
5185         (v850_init_extra_frame_info): Move most functionality into
5186         v850_frame_init_saved_regs().
5187         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5188         (v850_frame_find_saved_regs): Remove declaration.
5189         (FRAME_FIND_SAVED_REGS): Remove definition.
5190         (v850_frame_init_saved_regs): Add declaration.
5191         (FRAME_INIT_SAVED_REGS): Add definition.
5192
5193 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5194
5195         * v850-tdep.c: Begin multi-arch'ing v850.
5196         (v850_target_architecture_hook): Remove function.
5197         (v850_gdbarch_init): New function.  Add code previously in
5198         v850_target_architecture_hook().
5199         (_initialize_v850_tdep): Don't  set target_architecture_hook.
5200         Call register_gdbarch_init() instead.
5201
5202 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
5203
5204         * gdbtypes.h (struct cplus_struct_type): Remove args field.
5205         * hpread.c (hpread_read_struct_type): Remove assignments to args.
5206         (fixup_class_method_type): Likewise.
5207
5208 2002-05-15  Jim Blandy  <jimb@redhat.com>
5209
5210         Add macro structures to GDB's symbol tables.  Nobody puts anything
5211         in them yet.
5212         * symtab.h (struct symtab): New member: `macro_table'.
5213         * buildsym.h (pending_macros): New global variable.
5214         * buildsym.c: #include "macrotab.h".
5215         (buildsym_init): Initialize `pending_macros'.
5216         (end_symtab): If we found macro information while reading a CU's
5217         debugging info, do build a symtab structure for it.  Make the
5218         symtab point to the macro information, and clear the
5219         `pending_macros' pointer which held it while we were reading the
5220         debug info.
5221         (really_free_pendings): Free any pending macro table.
5222         * objfiles.h (struct objfile): New member: `macro_cache'.
5223         * objfiles.c (allocate_objfile): Set allocate and free functions
5224         for the macro cache's objstack.
5225         (free_objfile): Empty the macro cache's obstack.
5226         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5227         set new allocate and free functions for it.
5228         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5229         free functions for the macro cache's objstack.  (Why is this
5230         function building its own objfile?)
5231         * symmisc.c (print_objfile_statistics): Print statistics on the
5232         macro bcache.
5233         * Makefile.in: Note that buildsym.o depends on macrotab.h.
5234
5235 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
5236
5237         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5238         (REGISTER_U_ADDR): Delete definition.
5239         (arm_register_u_addr): Delete declaration.
5240
5241 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
5242
5243         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5244         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5245
5246 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
5247
5248         * regcache.c (register_valid): Revise comments refering to "Not
5249         available" and "unavailable".
5250         * frame.c (frame_register_read): Ditto.
5251         * findvar.c (value_of_register): Ditto.
5252
5253 2002-05-15  Andrew Cagney  <cagney@redhat.com>
5254
5255         * Makefile.in (remote_sim_h): Replace remote-sim_h.
5256         (remote-sim.o): Update dependencies.
5257         (d10v-tdep.o): Specify dependencies.
5258         (sim_d10v_h): Define.
5259
5260 2002-05-14  Jim Blandy  <jimb@redhat.com>
5261
5262         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5263         * macrotab.c (macro_lookup_inclusion, find_definition,
5264         new_macro_table): Same.
5265         
5266         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5267         not `! strcmp ()'.  This is a dubious improvement.
5268         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5269
5270         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5271         although it's not necessary, to avoid a warning.
5272
5273 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
5274
5275         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5276         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5277         TYPE_INSTANCE_FLAGS.
5278         (struct main_type): New.
5279         (struct type): Move most members to struct main_type.  Change
5280         cv_type and as_type to new type_chain member.  Add instance_flags.
5281         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5282         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5283         (finish_cv_type): Remove prototype.
5284         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
5285         Set TYPE_CHAIN.
5286         (alloc_type_instance): New function.
5287         (smash_type): New function.
5288         (make_pointer_type, make_reference_type, make_function_type)
5289         (smash_to_member_type, smash_to_method_type): Call smash_type.
5290         (make_qualified_type): New function.
5291         (make_type_with_address_space): Call make_qualified_type.
5292         (make_cv_type): Likewise.
5293         (finish_cv_type): Remove unnecessary function.
5294         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
5295         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5296         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5297         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5298         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5299         * hpread.c (hpread_read_struct_type): Likewise.
5300         * stabsread.c (read_struct_type): Likewise.
5301
5302 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
5303
5304         * configure.tgt: Add a catch all sh* target, for cases like
5305         sh[2,3,4]-elf and sh-hms.
5306
5307 2002-05-14  Keith Seitz  <keiths@redhat.com>
5308
5309         * event-loop.c (create_file_handler): Don't do anything but
5310         update data when we are given a fd which we are already
5311         monitoring.
5312
5313 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
5314
5315         * dwarf2cfi.c (context_cpy): Copy registers correctly.
5316         (update_context): Use __func__ in warnings.
5317         
5318 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
5319
5320         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
5321         and tcp_close to net_open and net_close.
5322         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
5323         using UDP if requested.  Don't try to disable Nagle on UDP
5324         sockets.
5325         * remote.c (remote_serial_open): New function.  Warn about UDP.
5326         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5327
5328 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
5329
5330         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5331
5332 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
5333
5334         * configure.tgt: Remove sh-hms target.
5335         * MAINTAINERS: Don't list sh-hms as a separate target.
5336
5337 2002-05-13  Jim Blandy  <jimb@redhat.com>
5338
5339         Add first preprocessor macro-expansion files.
5340         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5341         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5342         (splay_tree_h, macroexp_h, macrotab_h): New variable.
5343         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5344         (COMMON_OBS): Add macrotab.o, macroexp.o.
5345         (macroexp.o, macrotab.o): New rules.
5346
5347 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
5348
5349         * config/m88k/tm-m88k.h: Update copyright.
5350         (m88k_target_write_pc): Declare
5351         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5352         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5353         (SHIFT_INST_REGS): Update definition.
5354         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
5355         using old definition of TARGET_WRITE_PC.
5356         * regcache.c (generic_target_write_pc): Delete code handling
5357         NNPC_REGNUM.
5358         * gdbarch.sh (NNPC_REGNUM): Delete.
5359         * gdbarch.h, gdbarch.c: Regenerate.
5360
5361 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
5362
5363         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5364         builtin reg number.
5365
5366 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
5367
5368         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5369         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5370         (gen_address_of, gen_struct_ref, gen_repeat): Use type
5371         access macros.
5372         * c-typeprint.c (cp_type_print_method_args): Likewise.
5373         (c_type_print_args): Likewise.
5374         * d10v-tdep.c (d10v_push_arguments): Likewise.
5375         (d10v_extract_return_value): Likewise.
5376         * expprint.c (print_subexp): Likewise.
5377         * gdbtypes.c (lookup_primitive_typename): Likewise.
5378         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5379         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5380         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5381         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5382         (TYPE_VECTOR): Likewise.
5383         * hpread.c (hpread_read_struct_type)
5384         (fix_static_member_physnames, fixup_class_method_type)
5385         (hpread_type_lookup): Likewise.
5386         * mdebugread.c (parse_symbol, parse_type): Likewise.
5387         * p-lang.c (is_pascal_string_type): Likewise.
5388         * valops.c (hand_function_call): Likewise.
5389         * x86-64-tdep.c (classify_argument): Likewise.
5390
5391         * hpread.c (hpread_read_function_type)
5392         (hpread_read_doc_function_type): Call replace_type.
5393         * dstread.c (create_new_type): Delete.
5394         (decode_dst_structure, process_dst_function): Call alloc_type.
5395         Use type access macros.
5396
5397 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5398
5399         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5400         the're not supported by the current architecture.
5401         (i387_fill_fxsave): Likewise.
5402
5403 2002-05-12  Fred Fish  <fnf@redhat.com>
5404
5405         * symfile.c (default_symfile_offsets): Arrange for uninitialized
5406         sect_index_xxx members to index the first slot in section_offsets
5407         if all of the section_offsets are zero.
5408
5409 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5410
5411         * configure.tgt (sparc-*openbsd): Remove entry accidentially
5412         checked in with last change.
5413
5414 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5415
5416         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5417         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
5418         config.sub.
5419
5420 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
5421
5422         * Makefile.in: Update dependencies.
5423
5424 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5425
5426         * language.c (local_hex_string_custom): Simplify.  Do not depend
5427         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5428
5429         * memattr.c (mem_info_command): Replace calls to
5430         longest_local_hex_string and longest_local_hex_string_custom.
5431         * buildsym.c (make_blockvector): Ditto.
5432         * solib.c (info_sharedlibrary_command): Ditto.
5433         * tracepoint.c (tracepoints_info): Ditto.
5434         * symtab.c (print_msymbol_info): Ditto.
5435
5436         * language.c (local_hex_string): Delete.
5437         (local_hex_string_custom): Delete.
5438         (longest_local_hex_string): Rename to local_hex_string.
5439         (longest_local_hex_string_custom): Rename to
5440         local_hex_string_custom.
5441         * language.h (local_hex_string): Change parameter type to LONGEST.
5442         (local_hex_string_custom): Ditto.
5443         (longest_local_hex_string): Delete declaration.
5444         (longest_local_hex_string_custom): Ditto.
5445
5446         * solib.c: Update copyright.
5447         * memattr.c: Update copyright.
5448         
5449 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5450
5451         * arch-utils.h (legacy_register_to_value): Declare.
5452         (legacy_value_to_register): Declare.
5453         (legacy_convert_register_p): Declare.
5454         * arch-utils.c (legacy_register_to_value): New function.
5455         (legacy_value_to_register): New function.
5456         (legacy_convert_register_p): New function.
5457
5458         * gdbarch.sh (REGISTER_TO_VALUE): Define.
5459         (VALUE_TO_REGISTER): Define.
5460         (CONVERT_REGISTER_P): Define.
5461         * gdbarch.h, gdbarch.c: Regenerate.
5462
5463         * valops.c (value_assign): Use CONVERT_REGISTER_P and
5464         VALUE_TO_REGISTER.
5465         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5466         CONVERT_REGISTER_P.
5467
5468 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
5469             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5470
5471         * Makefile.in: Update dependencies for valops.c.
5472         * valops.c: Include "gdb_assert.h".
5473         (typecmp): Skip THIS parameter to methods.
5474         (find_method_list): Remove static_memfuncp argument,
5475         update callers.  Check for stub methods.
5476         (find_value_oload_method_list): Don't set *static_memfuncp.
5477         (find_overload_match): Don't check for stub methods.  Assert
5478         that methods are not stubbed.  Handle static methods.
5479         (value_find_oload_method_list): Remove static_memfuncp argument.
5480         * gdbtypes.c (check_stub_method): Do not add THIS pointer
5481         to the argument list for static stub methods.
5482         * value.h (value_find_oload_method_list): Update prototype.
5483
5484 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5485
5486         * arch-utils.h (generic_register_size): Declare.
5487         (generic_register_raw_size, generic_register_virtual_size): Delete
5488         declarations.
5489         * arch-utils.c (generic_register_raw_size): Delete.
5490         (generic_register_size): New function.
5491         (generic_register_virtual_size): Delete.
5492
5493         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5494         default generic_register_size.
5495         * gdbarch.h, gdbarch.c: Re-generate.
5496         
5497         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5498         register_virtual_size.
5499         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5500         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5501
5502 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5503
5504         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5505         * gdbarch.h, gdbarch.c: Regenerate.
5506         * gnu-v3-abi.c: Update copyright.
5507         (vtable_address_point_offset): Update.
5508         (gnuv3_rtti_type): Update.
5509         (gnuv3_baseclass_offset): Update.
5510         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5511         (init_fetch_link_map_offsets): Update.
5512         * remote.c (get_remote_state): Update.
5513         
5514 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
5515
5516         * TODO: Remove value_headof/value_from_vtable_info comment.
5517         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5518         * values.c (value_headof, value_from_vtable_info): Delete.
5519         * value.h (value_from_vtable_info): Delete prototype.
5520
5521 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5522
5523         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5524         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5525         $(gdb_regex_h).
5526         (gdb_assert_h): Define.
5527         (gdb_wait_h): Define.
5528         (gdb_regex_h): Define.
5529
5530 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
5531
5532         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5533         * linespec.c (find_methods): Handle GCC 3.x template constructors.
5534
5535 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5536
5537         * nbsd-tdep.c: Fix comment.
5538
5539 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5540
5541         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5542         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5543         (nbsd-tdep.o): New dependency list.
5544         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
5545         nbsd-tdep.h.
5546         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5547         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5548         * nbsd-tdep.c: New file.
5549         * nbsd-tdep.h: New file.
5550         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
5551         nbsd-tdep.h.
5552         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5553         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5554         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5555         * config/sh/nbsd.mt (TDEPFILES): Ditto.
5556
5557 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5558
5559         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5560         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5561         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5562         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5563         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5564         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5565
5566 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5567
5568         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5569         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5570         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5571         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5572         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5573         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5574         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5575
5576 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5577
5578         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
5579         fetch_elfcore_registers to...
5580         * i386nbsd-tdep.c: ...here.
5581         (i386nbsd_use_struct_convention): Rename to...
5582         (i386nbsd_aout_use_struct_convention): ...this.
5583         (i386nbsd_supply_reg): New function.
5584         (i386nbsd_fill_reg): New function.
5585         (fetch_core_registers): Use i386nbsd_supply_reg.
5586         (fetch_elfcore_registers): Likewise.
5587         (_initialize_i386nbsd_tdep): New function.
5588         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5589         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5590         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5591         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5592         (i386nbsd_aout_use_struct_convention): ...this.
5593
5594 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5595
5596         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5597         (store_inferior_registers): Use shnbsd_fill_reg.
5598         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
5599         sh_nbsd_supply_register): Collapse into...
5600         (shnbsd_supply_reg): ...this.
5601         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5602         (shnbsd_fill_reg): ...this.
5603         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5604         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5605         (fetch_core_registers): Use shnbsd_supply_reg.
5606         (fetch_elfcore_registers): Use shnbsd_supply_reg.
5607         (sh_nbsd_core_fns): Rename to...
5608         (shnbsd_core_fns): ...this.
5609         (sh_nbsd_elfcore_fns): Rename to...
5610         (shnbsd_elfcore_fns): ...this.
5611         (sh_nbsd_init_abi): Rename to...
5612         (shnbsd_init_abi): ...this.
5613         (_initialize_sh_nbsd_tdep): Rename to...
5614         (_initialize_shnbsd_tdep): ...this.
5615         * shnbsd-tdep.h (sh_nbsd_supply_registers,
5616         sh_nbsd_supply_register, sh_nbsd_fill_registers,
5617         sh_nbsd_fill_register): Remove prototypes.
5618         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5619
5620 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5621
5622         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5623         (i387-nat.o): Delete dependency list.
5624         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5625         (x86-64-linux-nat.o): Likewise.
5626         * i387-nat.c: Delete file, moving contents to...
5627         * i387-tdep.c: ...here.
5628         * i387-nat.h: Rename...
5629         * i387-tdep.h: ...to this.
5630         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5631         * i386-linux-nat.c: Likewise.
5632         * i386bsd-nat.c: Likewise.
5633         * i386gnu-nat.c: Likewise.
5634         * i386nbsd-nat.c: Likewise.
5635         * i386v4-nat.c: Likewise.
5636         * x86-64-linux-nat.c: Likewise.
5637         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5638         * config/i386/go32.mh (NATDEPFILES): Likewise.
5639         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5640         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5641         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5642         * config/i386/linux.mh (NATDEPFILES): Likewise.
5643         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5644         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5645         * config/i386/obsd.mh (NATDEPFILES): Likewise.
5646         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5647
5648 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5649
5650         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5651         (alphanbsd-nat.o): Remove dependency list.
5652         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5653         * alphanbsd-nat.c: Delete.  Contents moved to...
5654         * alphanbsd-tdep.c: ...here.
5655         (_initialize_alphanbsd_tdep): Register core functions.
5656         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5657
5658 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5659
5660         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5661         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5662         (alphanbsd-nat.o): Likewise.
5663         (alphabsd-tdep.o): New dependency list.
5664         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5665         (fill_gregset): Use alphabsd_fill_reg.
5666         (supply_fpregset): Use alphabsd_supply_fpreg.
5667         (fill_fpregset): Use alphabsd_fill_fpreg.
5668         (fetch_inferior_registers): Use struct reg and struct fpreg
5669         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
5670         and alphabsd_supply_fpreg.
5671         (store_inferior_registers): Use struct reg and struct fpreg
5672         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
5673         and alphabsd_fill_fpreg.
5674         * alphabsd-tdep.c: New file.
5675         * alphabsd-tdep.h: New file.
5676         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5677         (fetch_elfcore_registers): Use alphabsd_supply_reg and
5678         alphabsd_supply_fpreg.
5679         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5680         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5681
5682 2002-05-11  Eric Christopher  <echristo@redhat.com>
5683
5684         * mips-tdep.c (mips_double_register_type): Fix thinko.
5685         (mips_single_register_type): Ditto.
5686         * MAINTAINERS: Add self.
5687
5688 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
5689
5690         * i387-nat.c (i387_supply_register, i387_fill_fsave,
5691         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5692         right thing on architectures with different endianness and/or
5693         integer sizes.
5694
5695 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
5696
5697         From Christian Limpach <chris@Pin.LU>
5698         * configure.in: Change sed expression which comments out
5699         NATDEPFILES to also comment out continuation lines.
5700         * configure: Regenerate.
5701
5702 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5703
5704         * sh-tdep.c: Clean up code erroneously reintroduced by previous
5705         big patch.
5706
5707 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5708
5709         * sh-tdep.c: Include correct file.
5710
5711 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5712
5713         New support for sh64-elf (sh5) target.
5714
5715         * configure.tgt: For sh64-elf target, default to sh-elf.
5716
5717         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5718         (struct gdbarch_tdep): Add new fields for new registers and ABI
5719         info.
5720
5721         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5722         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5723         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5724         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5725         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5726         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5727         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5728         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5729         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5730         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5731         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5732         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5733         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5734         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5735         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5736         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5737         sh64_get_gdb_regnum, sh64_media_reg_base_num,
5738         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5739         sign_extend, sh64_nofp_frame_init_saved_regs,
5740         sh64_init_extra_frame_info, sh64_get_saved_register,
5741         sh64_extract_struct_value_address, sh64_pop_frame,
5742         sh64_push_arguments, sh64_extract_return_value,
5743         sh64_store_return_value, sh64_show_media_regs,
5744         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5745         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5746         sh_sh64_register_virtual_type,
5747         sh_sh64_register_convert_to_virtual,
5748         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5749         sh64_register_read, sh64_pseudo_register_write,
5750         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5751         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5752         sh64_do_pseudo_register, sh_compact_do_registers_info,
5753         sh64_do_registers_info, sh_gdbarch_init): New functions.
5754
5755 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5756
5757         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5758
5759 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
5760
5761         * linespec.c (decode_line_1): Check for a double quote after
5762         a filename correctly.
5763
5764 2002-05-10  Jim Blandy  <jimb@redhat.com>
5765
5766         Properly track the size of the current objfile's .debug_line section.
5767         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5768         (DWARF_LINE_SIZE): New macro.
5769         (dwarf2_build_psymtabs_hard): Record the line section's size in
5770         the partial symbol table.
5771         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5772         symbol table.
5773
5774 2002-05-10  Petr Sorfa  <petrs@caldera.com>
5775
5776         * ia64-tdep.c: Handle breakpoints on L instruction type
5777         in MLX instruction bundle by moving the breakpoint to
5778         the third slot (X instruction type) as L holds only data.
5779
5780 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
5781
5782         * dbxread.c (discarding_local_symbols_complaint): New complaint.
5783         (process_one_symbol): Complain about discarding local symbols
5784         due to a misplaced N_LBRAC entry.
5785
5786 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
5787
5788         From Daniel Berlin <dan@cgsoftware.com>
5789         * linespec.c (find_toplevel_char): '<' and '>' also increase and
5790         decrease the depth we are at, in the case of templates.
5791
5792 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5793
5794         * mips-tdep.c (mips_float_register_type): New function.
5795         (mips_double_register_type): New function.
5796         (mips_print_register): Use them.
5797         (do_fp_register_row): Likewise.
5798
5799 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5800
5801         * signals/signals.c (signals): Remove conditional compilation around
5802         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
5803         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5804
5805 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5806
5807         * remote-rdp.c (remote_rdp_can_run): Remove.
5808
5809 2002-05-09  Tom Tromey  <tromey@redhat.com>
5810
5811         * jv-valprint.c (java_val_print): Handle `char' as a special case
5812         of TYPE_CODE_INT.
5813
5814 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5815
5816         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5817         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5818         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5819         str r(0123),[sp,#nn].
5820         (arm_skip_prologue): Ditto.  Also make disassembly
5821         order-independent by placing it in a loop.
5822
5823 2002-05-06  Michael Snyder  <msnyder@redhat.com>
5824
5825         * stabsread.c (read_type): Add recognition for new attribute:
5826         "@V;" means that an array type is actually a vector.
5827         This is analogous to the vector flag that's been added to dwarf2.
5828
5829 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
5830
5831         * i386-tdep.h (i386_abi): New enum.
5832         (struct gdbarch_tdep): Replace os_ident member with abi.
5833         (i386_gdbarch_register_os_abi): New prototype.
5834         * i386-tdep.c (i386_abi_names): New array.
5835         (process_note_abi_tag_sections): Removed.
5836         (process_note_sections): New function.
5837         (i386_elf_abi_from_note, i386_elf_abi): New functions.
5838         (struct i386_abi_handler): New struct.
5839         (i386_abi_handler_list): New variable.
5840         (i386_gdbarch_register_os_abi): New function.
5841         (i386_gdbarch_init): Adapt for the changes given above.
5842
5843 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
5844
5845         * gregset.h: Say "GNU/Linux".
5846
5847 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
5848
5849         * gdbtypes.c : Add new builtin type for 64 bit vectors.
5850         (build_gdbtypes): Build builtin_type_v2_float.
5851         (_initialize_gdbtypes): Register new builtin type.
5852
5853 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
5854
5855         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5856         (clear_gdbarch_swap): New function.
5857         (initialize_non_multiarch): Call.
5858         (gdbarch_update_p): Before calling init(), swap out and clear the
5859         existing architecture.
5860         * gdbarch.c: Regenerate.
5861
5862 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5863
5864         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5865         alphanbsd-tdep.c.
5866
5867 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5868
5869         * sh-nbsd-nat.c: Rename to...
5870         * shnbsd-nat.c: ...this.
5871         * sh-nbsd-tdep.c: Rename to...
5872         * shnbsd-tdep.c: ...this.
5873         * sh-nbsd-tdep.h: Rename to...
5874         * shnbsd-tdep.h: ...this.
5875         * config/sh/nbsd.mh: Use shnbsd-nat.o.
5876         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5877
5878 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
5879
5880         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5881         concatenation for command help messages.
5882
5883 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5884
5885         * NEWS: Note new sh*-*-netbsdelf* configuration.
5886         * configure.host: Set gdb_host_cpu to sh for all sh*.
5887         (sh*-*-netbsdelf*): New host.
5888         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5889         (sh*-*-netbsdelf*): New target.
5890         * sh-nbsd-nat.c: New file.
5891         * sh-nbsd-tdep.c: New file.
5892         * sh-nbsd-tdep.h: New file.
5893         * config/sh/nbsd.mh: New file.
5894         * config/sh/nbsd.mt: New file.
5895         * config/sh/nm-nbsd.h: New file.
5896         * config/sh/tm-nbsd.h: New file.
5897
5898 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5899
5900         * sh-tdep.c (sh_osabi_names): Declare.
5901         (process_note_abi_tag_sections): New function.
5902         (get_elfosabi): Ditto.
5903         (sh_gdbarch_register_os_abi): Ditto.
5904         (sh_dump_tdep): Ditto.
5905         _initialize_sh_tdep): Use gdbarch_register to register
5906         sh_gdbarch_init and sh_dump_tdep.
5907         * config/sh/tm-sh.h (sh_osabi): Declare.
5908         (gdbarch_tdep): Add sh_osabi and osabi_name members.
5909
5910 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
5911
5912         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5913         (thumb_scan_prologue): Ditto.
5914         (arm_find_callers_reg): Ditto.
5915         (arm_frame_chain): Ditto.
5916         (arm_init_extra_frame_info): Ditto.
5917         (arm_frame_saved_pc): Ditto.
5918         (arm_pop_frame): Ditto.
5919         (arm_push_return_address): New function.
5920         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5921         call_dummy_location, call_dummy_breakpoint_offset_p,
5922         call_dummy_breakpoint_offset, call_dummy_p,
5923         call_dummy_stack_adjust_p, call_dummy_words,
5924         sizeof_call_dummy_words, call_dummy_start_offset,
5925         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5926         call_dummy_address, push_return_address and push_dummy_frame for
5927         generic dummy frames.
5928
5929 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5930
5931         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5932         size computation for alloca.
5933         (sh_fp_frame_init_saved_regs): Likewise.
5934
5935 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
5936
5937         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5938         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5939         * arm-tdep.c (arm_store_return_value): Use them.
5940         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5941         * remote-rdp.c (remote_rdp_fetch_register): Use
5942         ARM_MAX_REGISTER_RAW_SIZE.
5943         (remote_rdp_store_register): Likewise.
5944
5945 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
5946
5947         * dwarf2cfi.c: Code cleanup, removed unused variables,
5948         added default labels to switch {} statements.
5949         * x86-64-tdep.c: Ditto.
5950         * x86-64-linux-nat.c: Ditto.
5951
5952 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5953
5954         * solib.h: Protect against multiple inclusion.
5955
5956 2002-05-06  Jim Blandy  <jimb@redhat.com>
5957
5958         Add first preprocessor macro-expansion files.
5959         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5960         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5961         (splay_tree_h, macroexp_h, macrotab_h): New variable.
5962         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5963         (COMMON_OBS): Add macrotab.o, macroexp.o.
5964         (macroexp.o, macrotab.o): New rules.
5965
5966         Separate the job of reading the line number info statement program
5967         header (...expialidocious) out into its own function.
5968         * dwarf2read.c (struct line_head, struct filenames, struct
5969         directories): Replace with...
5970         (struct line_header): New structure, containing the full
5971         contents of the statement program header, including the
5972         include directory and file name tables.
5973         (read_file_scope): If we have line number info, instead of just
5974         calling dwarf_decode_lines to do all the work, call
5975         dwarf_decode_line_header first to get a `struct line_header'
5976         containing the data in the statement program header, and then
5977         pass that to dwarf_decode_lines, which will pick up where that
5978         left off.  Be sure to clean up the `struct line_header' object.
5979         (dwarf_decode_line_header, free_line_header, add_include_dir,
5980         add_file_name): New functions.
5981         (dwarf_decode_lines): Move all the code to read the statement
5982         program header into dwarf_decode_line_header.  Take the line
5983         header it built as the first argument, instead of the offset to
5984         the compilation unit's line number info.  Use the new `struct
5985         line_header' type instead of the old structures.  No need to do
5986         cleanups here now, since we don't allocate anything.
5987         (dwarf2_statement_list_fits_in_line_number_section,
5988         dwarf2_line_header_too_long): New complaints.
5989
5990 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
5991
5992         * gdbtypes.c (init_vector_type): New function.
5993         (build_builtin_type_vec128): Simplify the representation of SIMD
5994         registers.
5995         (build_gdbtypes): Initialize new builtin vector types.
5996         (_initialize_gdbtypes): Register new vector types with gdbarch.
5997         (builtin_type_v4_float, builtin_type_v4_int32,
5998         builtin_type_v8_int16, builtin_type_v16_int8,
5999         builtin_type_v2_int32, builtin_type_v4_int16,
6000         builtin_type_v8_int8): New (renamed) SIMD types.
6001
6002 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
6003
6004         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6005         (i387_fill_fxsave): Likewise.
6006
6007 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
6008
6009         * alpha-tdep.c (alpha_extract_return_value): Don't use
6010         non-constant array size in prototype.
6011
6012 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6013
6014         From Brian Taylor <briant at model dot com>:
6015         * ui-out.c (ui_out_field_core_addr): Use the function
6016         longest_local_hex_string_custom'to format addresses > 32 bits
6017         wide.
6018
6019         * ui-out.c (ui_out_field_core_addr): Update comment.
6020
6021 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6022
6023         * stack.c (select_and_print_frame): Make static.  Delete the
6024         parameter `level'.
6025         (func_command): Update call.
6026         (select_frame_command): Delete code computing the frame level.
6027         * frame.h (select_and_print_frame): Delete declaration.
6028
6029 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6030
6031         * sparc-tdep.c (sparc_get_saved_register): Comment why
6032         get_prev_frame call is safe.
6033
6034 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6035
6036         * frame.h (select_frame): Delete level parameter.
6037         * stack.c (select_frame): Update.  Use frame_relative_level to
6038         obtain the frame's level.
6039         (select_and_print_frame): Update call.
6040         (select_frame_command): Ditto.
6041         (up_silently_base): Ditto.
6042         (down_silently_base): Ditto.
6043         * ocd.c (ocd_start_remote): Ditto.
6044         * remote-rdp.c (remote_rdp_open): Ditto.
6045         * remote-mips.c (mips_initialize): Ditto.
6046         (common_open): Ditto.
6047         * remote-e7000.c (e7000_start_remote): Ditto.
6048         * m3-nat.c (select_thread): Ditto.
6049         * hppa-tdep.c (child_get_current_exception_event): Ditto.
6050         (child_get_current_exception_event): Ditto.
6051         * varobj.c (varobj_create): Ditto.
6052         (varobj_update): Ditto.
6053         (c_value_of_root): Ditto.
6054         * tracepoint.c (finish_tfind_command): Ditto.
6055         * corelow.c (core_open): Ditto.
6056         * arch-utils.c (generic_prepare_to_proceed): Ditto.
6057         * thread.c (info_threads_command): Ditto.
6058         (switch_to_thread): Ditto.
6059         * infrun.c (normal_stop): Ditto.
6060         (restore_selected_frame): Ditto.
6061         (restore_inferior_status): Ditto.
6062         * breakpoint.c (insert_breakpoints): Ditto.
6063         (watchpoint_check): Ditto.
6064         (bpstat_stop_status): Ditto.
6065         (do_enable_breakpoint): Ditto.
6066         * blockframe.c (flush_cached_frames): Ditto.
6067         (reinit_frame_cache): Ditto.
6068
6069 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6070
6071         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6072         maintainer.
6073
6074 2002-05-04  Jim Blandy  <jimb@redhat.com>
6075
6076         * gdbtypes.c (replace_type): Doc fix.
6077
6078 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6079
6080         * valprint.c (strcat_longest): Delete commented out function.
6081         Update copyright.
6082
6083 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6084
6085         * MAINTAINERS: Mark a29k as deleted.
6086         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
6087         Move new configurations to the top.
6088         * configure.tgt: Remove a29k.
6089         * config/a29k/tm-vx29k.h: Delete.
6090         * config/a29k/vx29k.mt: Delete.
6091         * config/a29k/tm-a29k.h: Delete.
6092         * config/a29k/a29k-udi.mt: Delete.
6093         * config/a29k/a29k.mt: Delete.
6094         * a29k-tdep.c: Delete.
6095         * remote-udi.c: Delete.
6096         * remote-mm.c: Delete.
6097         * remote-eb.c: Delete.
6098         * remote-adapt.c: Delete.
6099         * Makefile.in: Remove obsolete code.
6100         * config/s390/s390x.mt: Ditto.
6101         * config/s390/s390.mt: Ditto.
6102         * config/sparc/sparclynx.mh: Ditto.
6103         * config/sparc/linux.mh: Ditto.
6104         * config/pa/hppaosf.mh: Ditto.
6105         * config/pa/hppabsd.mh: Ditto.
6106         * config/ns32k/nbsd.mt: Ditto.
6107         * config/mips/vr5000.mt: Ditto.
6108         * config/m68k/sun3os4.mh: Ditto.
6109         * config/m68k/nbsd.mt: Ditto.
6110         * config/m68k/m68klynx.mh: Ditto.
6111         * config/m32r/m32r.mt: Ditto.
6112         * config/i386/x86-64linux.mt: Ditto.
6113         * config/i386/nbsdelf.mt: Ditto.
6114         * config/i386/nbsd.mt: Ditto.
6115         * config/i386/i386lynx.mh: Ditto.
6116
6117 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6118
6119         * target.c (debug_print_register): New function.  Handle oversize
6120         registers.
6121         (debug_to_fetch_registers): Call.
6122         (debug_to_store_registers): Call.
6123
6124 2002-05-03  Jim Blandy  <jimb@redhat.com>
6125
6126         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6127         (read_type): Doc fix.
6128         * gdbtypes.c (replace_type): Doc fix.
6129
6130         * stabsread.c (multiply_defined_struct): New complaint.
6131         (read_struct_type): If the type we were passed isn't empty, or
6132         incomplete, don't read the new struct type into it; complain,
6133         and return the original type unchanged.  Take a new `type_code'
6134         argument, which is the type code for the new type.
6135         (read_type): Rather than storing the type's type code here, pass
6136         it as an argument to read_struct_type, and let that take care of
6137         storing it.  That way, we don't overwrite the original type code,
6138         so read_struct_type can use it to decide whether we're overwriting
6139         something we shouldn't.
6140         (complain_about_struct_wipeout): New function.
6141
6142 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
6143
6144         * gdbarch.sh: Assert that gdbarch is non-NULL.
6145         * gdbarch.c: Regenerate.
6146
6147 2002-05-03  Jason Merrill  <jason@redhat.com>
6148
6149         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6150         and return NULL.
6151
6152 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
6153
6154         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6155         (x86_64_dwarf2gdb_regno_map_length),
6156         (x86_64_dwarf2_reg_to_regnum): Added.
6157         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6158         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6159         (_initialize_x86_64_tdep): Synced with the change above.
6160         (x86_64_skip_prologue): Reformulated message.
6161
6162 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6163
6164         * f-exp.y: Also use new prev_lexptr variable
6165         to improve error reporting. Based on Michael Snyder
6166         2002-04-24 dated patch to c-exp.y.
6167         * jv-exp.y: Likewise.
6168         * m2-exp.y: Likewise.
6169
6170 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
6171
6172         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6173         we are dealing with vectors.
6174
6175 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6176
6177         * config/m68k/tm-nbsd.h: Obvious fix,
6178         correct machine name.
6179
6180 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6181
6182         * p-typeprint.c (pascal_type_print_base): Add support
6183         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6184
6185 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6186
6187         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6188         for fondamental pascal 'char' type.
6189
6190 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6191
6192         * p-lang.h (is_pascal_string_type): Declaration changed,
6193         new sixth argument of type char ** added.
6194         * p-lang.c (is_pascal_string_type): Implementation
6195         changed. Args length_pos, length_size, string_pos, char_size
6196         can now be NULL. New argument arrayname set to the field
6197         name of the char array. Return value set to char array
6198         field index plus one.
6199         * p-valprint.c (pascal_val_print): Adapt to new declaration of
6200         is_pascal_string_type function.
6201
6202 2002-05-02  Andrew Cagney  <cagney@redhat.com>
6203
6204         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6205         <cagney@redhat.com> change.
6206         * gdbarch.c: Regenerate.
6207
6208 2002-05-02  Andrew Cagney  <cagney@redhat.com>
6209
6210         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6211         before probing for a new one.  Detect errorenous gdbarch_init
6212         functions.
6213         * gdbarch.c: Regenerate.
6214
6215 2002-05-01  Andrew Cagney  <cagney@redhat.com>
6216
6217         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6218         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
6219         * config/v850/tm-v850.h: Ditto.  Update copyright.
6220
6221 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
6222
6223         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6224         current_gdbarch.
6225
6226 2002-04-30  Michael Snyder  <msnyder@redhat.com>
6227
6228         * arm-tdep.c: Whitespace clean-ups.
6229         (arm_skip_prologue): Fix thinko; two lines
6230         should have been removed as part of 4/24 change.
6231
6232 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
6233
6234         * rs6000-tdep.c: Added comment describing how fpscr register
6235         numbers were chosen.
6236
6237 2002-04-30  Michael Snyder  <msnyder@redhat.com>
6238
6239         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6240
6241 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
6242
6243         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6244         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6245         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6246
6247 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
6248
6249         From Louis Hamilton <hamilton@redhat.com>:
6250         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6251         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6252         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6253         not bfd-private xcoff data, to determine wordsize.
6254         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6255
6256 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
6257
6258         GDB 5.2 released from 5.2 branch.
6259
6260 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
6261
6262         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6263         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6264         (x86_64_register_info_table): Added comments with register numbers.
6265
6266 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
6267
6268         * rs6000-tdep.c (rs6000_extract_return_value,
6269         rs6000_store_return_value): Handle returning vectors.
6270         (rs6000_gdbarch_init): Use
6271         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6272         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6273         New function.
6274         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6275         vectors.
6276         (ppc_sysv_abi_push_arguments): Handle vector parameters.
6277         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6278
6279 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6280
6281         * hpread.c (hpread_psymtab_to_symtab_1,
6282         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6283         with fprintf_unfiltered (gdb_stderr,...).
6284
6285 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6286
6287         * remote-array.c (printf_monitor, write_monitor,
6288         array_insert_breakpoint, array_remove_breakpoint ):
6289         Replace fprintf (stderr,...
6290         with fprintf_unfiltered (gdb_stderr,....
6291         * remote-es.c: Likewise.
6292         * remote-os9k.c: Likewise.
6293         * remote-st.c: Likewise.
6294
6295 2002-04-28  Andreas Schwab  <schwab@suse.de>
6296
6297         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6298         linux-proc.o and gcore.o.
6299
6300 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
6301
6302         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6303         code without frame pointers.
6304
6305 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6306
6307         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6308         ON_STACK is needed.
6309
6310 2002-04-26  Ben Elliston  <bje@redhat.com>
6311
6312         * target.c (do_xfer_memory): Correct reference to the new option
6313         "trust-readonly-sections".
6314
6315 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
6316
6317         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6318         * gdbtypes.c (recursive_dump_type): Output the vector flag.
6319         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6320         vectors.
6321         (read_array_type): Record the fact that this array type is really a
6322         vector (i.e. are passed in by value).
6323
6324 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
6325
6326         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6327         * alpha-tdep.c (alpha_sigcontext_addr): New function.
6328         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6329         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6330         * alpha-linux-tdep.c: Include frame.h.
6331         (alpha_linux_sigcontext_addr): New function.
6332         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6333         alpha_linux_sigcontext_addr.
6334         * alpha-osf1-tdep.c: Include gdbcore.h.
6335         (alpha_osf1_sigcontext_addr): New function.
6336         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6337         alpha_osf1_sigcontext_addr.
6338         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6339         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6340
6341 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6342
6343         * stack.c (selected_frame_level):
6344         (select_frame): Do not set selected_frame_level.
6345         * frame.h (selected_frame_level): Delete declaration.
6346
6347 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6348
6349         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6350         convert_from_func_ptr-addr when AIX / PowerOpen.
6351
6352 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6353
6354         * valops.c (hand_function_call): Call
6355         generic_save_call_dummy_addr.
6356         * frame.h (generic_save_call_dummy_addr): Declare.
6357         * blockframe.c (struct dummy_frame): Add fields call_lo and
6358         call_hi.
6359         (generic_find_dummy_frame): Check for PC in range call_lo to
6360         call_hi instead of entry_point_address.
6361         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6362         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
6363         (generic_save_call_dummy_addr): New function.
6364
6365 2002-04-24  David S. Miller  <davem@redhat.com>
6366
6367         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6368         sparc_skip_prologue.
6369         (sparc_skip_prologue): Kill frameless_p arg, and use line number
6370         information to find prologue when possible.
6371         (sparc_prologue_frameless_p): Call examine_prologue directly.
6372         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6373         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6374         second argument.
6375         (SKIP_PROLOGUE): Likewise.
6376
6377 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6378
6379         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6380         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6381         indicate that the condition it was testing is always true.
6382         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6383         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6384         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6385
6386 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6387
6388         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6389         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6390         tdep->jb_pc and tdep->jb_elt_size.
6391         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6392         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6393         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6394         * alpha-nat.c (get_longjmp_target): Remove.
6395         (JB_ELEMENT_SIZE): Ditto.
6396         (JB_PC): Ditto.
6397         * alpha-tdep.c (alpha_get_longjmp_target): New function.
6398         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
6399         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6400         to alpha_get_longjmp_target.
6401         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6402         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6403         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6404
6405 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6406
6407         * README: Update to GDB 5.2.
6408
6409 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6410
6411         * gdbarch.sh (LC_ALL): Set to `c'.
6412
6413 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6414
6415         * avr-tdep.c: Ran through gdb_indent.sh.
6416
6417 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6418
6419         * MAINTAINERS: Add myself as AVR maintainer.
6420         * NEWS: Note new target avr.
6421
6422 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6423
6424         * Makefile.in: Add support for AVR target.
6425         * configure.tgt: Add support for AVR target.
6426         * avr-tdep.c: New file
6427         * config/avr/avr.mt: New file.
6428
6429 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6430
6431         * MAINTAINERS: Add myself to write-after-approval.
6432
6433 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6434
6435         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6436         with fprintf_unfiltered (gdb_stderr,....
6437
6438 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6439
6440         Fix PR gdb/508.
6441         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6442
6443 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6444
6445         * p-exp.y: Also use new prev_lexptr variable
6446         to improve error reporting. Based on Michael Snyder
6447         2002-04-24 dated patch to c-exp.y.
6448
6449 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6450
6451         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6452         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6453         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
6454         to 0.
6455         * config/alpha/tm-alpha.h: Remove forward decls of struct type
6456         and struct value.
6457         (FUNCTION_START_OFFSET): Remove.
6458         (BREAKPOINT): Ditto.
6459
6460 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6461
6462         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6463         * NEWS: Ditto.
6464
6465 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6466
6467         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6468         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6469         alpha_linux_pc_in_sigtramp.
6470         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6471         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6472         alpha_osf1_pc_in_sigtramp.
6473         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6474         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6475         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6476         alphafbsd_pc_in_sigtramp.
6477         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6478         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6479         alphanbsd_pc_in_sigtramp.
6480         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6481         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6482
6483 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6484
6485         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6486
6487 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6488
6489         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6490         alphanbsd-tdep.c.
6491         (alphanbsd-nat.o): New dependency list.
6492         (alphanbsd-tdep.o): Ditto.
6493         * NEWS: Note new native NetBSD/alpha configuration.
6494         * alphanbsd-nat.c: New file.
6495         * alphanbsd-tdep.c: Ditto.
6496         * configure.host (alpha*-*-netbsd*): New host.
6497         * configure.tgt (alpha*-*-netbsd*): New target.
6498         * config/alpha/nbsd.mh: New file.
6499         * config/alpha/nbsd.mt: Ditto.
6500         * config/alpha/nm-nbsd.h: Ditto.
6501         * config/alpha/tm-nbsd.h: Ditto.
6502
6503 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6504
6505         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6506         (alpha-osf1-tdep.o): New dependency list.
6507         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6508         and skip_sigtramp_frame members.
6509         * alpha-linux-tdep.c: Include gdbcore.h.
6510         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6511         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6512         * alpha-osf1-tdep.c: New file.
6513         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6514         alpha-osf1-dep.c.
6515         (alpha_frame_past_sigtramp_frame): New function.
6516         (alpha_dynamic_sigtramp_offset): Ditto.
6517         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6518         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6519         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6520         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6521         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6522         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6523         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6524         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6525         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6526         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6527         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
6528         to find_solib_trampoline_target.
6529         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6530         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6531         (SKIP_TRAMPOLINE_CODE): Remove.
6532         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6533         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6534         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6535         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6536         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6537         (PROC_SIGTRAMP_MAGIC): Ditto.
6538         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6539         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6540         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6541         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6542         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6543
6544 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6545
6546         * NEWS: Note that Alpha targets are now multi-arch.
6547
6548 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6549
6550         * parser-defs.h (prev_lexptr): New external variable.
6551         * parse.c (parse_exp_1): Set prev_lexptr to null before
6552         calling the language-specific parser.
6553         * c-exp.y (yylex): Set prev_lexptr to start of current token.
6554         (yyerror): Use prev_lexptr in error reporting.
6555
6556 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
6557
6558         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6559         * gregset.h: If FILL_FPXREGSET is defined, provide
6560         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6561         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6562         is defined, call fill_fpxregset.
6563
6564 2002-04-24  Roland McGrath  <roland@frob.com>
6565
6566         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6567         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6568         (supply_gregset, supply_fpregset): New functions.
6569
6570         * gnu-nat.c (gnu_find_memory_regions): New function.
6571         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6572         (gnu_xfer_memory): Add a cast.
6573
6574 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6575
6576         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6577         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
6578         of argument regs ("str r(0123), [r11, #-nn"]).
6579         (arm_skip_prologue): Better handling for frameless functions.
6580         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
6581         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6582
6583 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
6584
6585         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6586         NUM_PSEUDO_REGS can be used.
6587
6588 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
6589
6590         * arch-utils.h: Update copyright.
6591
6592         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6593         * gdbarch.h, gdbarch.c: Re-generate.
6594
6595         * inferior.h (IN_SIGTRAMP): Delete definition.
6596         * arch-utils.c (legacy_pc_in_sigtramp): New function.
6597         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6598
6599         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6600         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6601         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
6602         (find_proc_framesize): Ditto.
6603         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6604         (alpha_init_extra_frame_info): Ditto.
6605         * infrun.c (handle_inferior_event): Ditto.
6606         (handle_inferior_event): Ditto.
6607         (check_sigtramp2): Ditto.
6608         * blockframe.c (create_new_frame): Ditto.
6609         (get_prev_frame): Ditto.
6610         * ppc-linux-tdep.c: Update comments.
6611         * i386-linux-tdep.c: Update comments.
6612         * breakpoint.c (bpstat_what): Update comment.
6613
6614 2002-04-24  David S. Miller  <davem@redhat.com>
6615
6616         * i960-tdep.c (register_in_window_p): New function.
6617         (i960_find_saved_register): Use it instead of
6618         REGISTER_IN_WINDOW_P.
6619         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6620
6621         * symtab.h (find_stab_function_addr): Kill extern.
6622         * minsyms.c (find_stab_function_addr): Remove from here...
6623         * dbxread.c: ... to here, and mark it static.
6624
6625 2002-04-20  David S. Miller  <davem@redhat.com>
6626
6627         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6628         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6629
6630 2002-04-21  David S. Miller  <davem@redhat.com>
6631
6632         * remote-vxsparc.c (vx_read_register): Fix typo, we want
6633         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6634         (vx_write_register): Likewise.
6635
6636 2002-04-23  J. Brobecker  <brobecker@gnat.com>
6637
6638         * source.c (is_regular_file): New function.
6639         (openp): Check wether file to open is a regular file
6640         to avoid opening directories.
6641
6642 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6643
6644         * findvar.c (extract_signed_integer): Cast printf argument
6645         to suppress format warning.
6646         (extract_unsigned_integer): Likewise.
6647         * infcmd.c (registers_info): Likewise.
6648         * top.c (get_prompt_1): Likewise.
6649         * valops.c (value_assign): Likewise.
6650         * valprint.c (print_decimal): Likewise.
6651
6652 2002-04-22  H.J. Lu  (hjl@gnu.org)
6653
6654         * c-exp.y (typebase): Support
6655
6656         [long|long long|short] [signed|unsigned] [int|]
6657
6658         and
6659
6660         signed [long|long long|short] int
6661
6662 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6663
6664         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6665         and vax-tdep.h.
6666         * vax-tdep.h: New file.
6667         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6668         Make several routines static.
6669         (vax_get_saved_register): New function.
6670         (vax_gdbarch_init): New function.
6671         (_initialize_vax_tdep): Register vax_gdbarch_init.
6672         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6673         Remove macros now under the control of gdbarch.
6674
6675 2002-04-22  Michael Snyder  <msnyder@redhat.com>
6676
6677         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6678         Some whitespace and coding standards tweaks.
6679
6680 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6681
6682         * vax-tdep.c: Include regcache.h.
6683         (vax_call_dummy_words): New.
6684         (sizeof_vax_call_dummy_words): New.
6685         (vax_fix_call_dummy): New function.
6686         (vax_saved_pc_after_call): Ditto.
6687         * config/vax/tm-vax.h: Don't include regcache.h.
6688         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6689         (CALL_DUMMY): Remove.
6690         (CALL_DUMMY_WORDS): Define.
6691         (SIZEOF_CALL_DUMMY_WORDS): Define.
6692         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6693
6694 2002-04-18  Michael Snyder  <msnyder@redhat.com>
6695
6696         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6697
6698 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6699
6700         * vax-tdep.c (vax_frame_chain): New function.
6701         (vax_push_dummy_frame): Ditto.
6702         (vax_pop_frame): Ditto.
6703         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6704         (FRAMELESS_FUNCTION_INVOCATION): Use
6705         generic_frameless_function_invocation_not.
6706         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6707         (POP_FRAME): Use vax_pop_frame.
6708
6709 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6710
6711         * vax-tdep.c (vax_store_struct_return): New function.
6712         (vax_extract_return_value): Ditto.
6713         (vax_store_return_value): Ditto.
6714         (vax_extract_struct_value_address): Ditto.
6715         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6716         vax_store_struct_return.
6717         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6718         (STORE_RETURN_VALUE): Use vax_store_return_value.
6719         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6720
6721 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6722
6723         * vax-tdep.c (vax_frame_saved_pc): New function.
6724         (vax_frame_args_address_correct): Ditto.
6725         (vax_frame_args_address): Ditto.
6726         (vax_frame_locals_address): Ditto.
6727         (vax_frame_num_args): Move code to be in proximity to
6728         other frame-related functions.
6729         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6730         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6731         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6732         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6733         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6734
6735 2002-04-22  H.J. Lu  (hjl@gnu.org)
6736
6737         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6738         includedir.
6739
6740 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6741
6742         * vax-tdep.c (vax_frame_init_saved_regs): New function.
6743         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6744         (FRAME_INIT_SAVED_REGS): New macro.
6745
6746 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6747
6748         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6749
6750 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6751
6752         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6753         where needed.
6754         (fetch_osf_core_registers): Likewise.
6755         (supply_gregset): Likewise.
6756
6757 2002-04-22  J. Brobecker  <brobecker@gnat.com>
6758
6759         * symfile.h (get_section_index): Define.
6760         * symfile.c (get_section_index): New function.
6761         * mdebugread.c (SC_IS_SBSS): New macro.
6762         (SC_IS_BSS): Return true for the scBss storage class only, as
6763         the scSBss storage class refers to the .sbss section.
6764         (parse_partial_symbols): Discard the symbols which associated
6765         section does not exist.
6766         Make sure to use the .sbss section index for symbols which
6767         storage class is scBss, rather than using the .bss section index.
6768
6769 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6770
6771         * vax-tdep.c: Update copyright years.
6772         (vax_register_name): New function.
6773         (vax_register_byte): Ditto.
6774         (vax_register_raw_size): Ditto.
6775         (vax_register_virtual_size): Ditto.
6776         (vax_register_virtual_type): Ditto.
6777         * config/vax/tm-vax.h: Update copyright years.
6778         (REGISTER_NAMES): Remove.
6779         (REGISTER_NAME): Define.
6780         (REGISTER_BYTE): Use vax_register_byte.
6781         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6782         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6783         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6784
6785 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6786
6787         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6788         declaration
6789         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6790
6791 2002-04-21  David S. Miller  <davem@redhat.com>
6792
6793         * arch-utils.c (generic_prologue_frameless_p): Kill
6794         SKIP_PROLOGUE_FRAMELESS_P code.
6795         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6796         references.
6797         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6798         * arc-tdep.c (arc_prologue_frameless_p): Implement.
6799         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6800         references.
6801         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6802         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6803         (sparc_gdbarch_init): Pass it to
6804         set_gdbarch_prologue_frameless_p.
6805
6806 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6807
6808         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6809         (alphabsd-nat.o): New dependency list.
6810
6811 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6812
6813         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6814         alphafbsd-tdep.c.
6815         (alpha-linux-tdep.o): New dependency list.
6816         (alphafbsd-tdep.o): Likewise.
6817
6818 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6819
6820         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
6821         to here...
6822         * alpha-tdep.c: ...from here.
6823         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6824
6825 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6826
6827         * config/alpha/tm-alpha.h: Move alpha_software_single_step
6828         prototype from here...
6829         * alpha-tdep.h: ...to here.
6830
6831 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6832
6833         * frame.h (selected_frame_level): Document as deprecated.
6834         (frame_relative_level): Declare.
6835         * stack.c (frame_relative_level): New function.
6836         (selected_frame_level): Document as deprecated.
6837         (select_frame): Do not set the selected_frame_level.
6838
6839         * stack.c (frame_info, record_selected_frame): Update.
6840         (frame_command, current_frame_command): Update.
6841         (up_silently_base, up_command, down_silently_base): Update.
6842         (down_command): Update.
6843         * inflow.c (kill_command): Update.
6844         * tracepoint.c (finish_tfind_command): Update.
6845         * corelow.c (core_open): Update.
6846         * thread.c (info_threads_command): Update.
6847         (do_captured_thread_select): Update.
6848         * infcmd.c (finish_command): Update.
6849         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6850
6851 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6852
6853         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6854
6855 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6856
6857         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
6858         type const.
6859
6860 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6861
6862         * alphafbsd-tdep.c: Update copyright years.  Include
6863         alpha-tdep.h.
6864         (alphafbsd_use_struct_convention): Make static.
6865         (alphafbsd_init_abi): New function.
6866         (_initialize_alphafbsd_tdep): New function.
6867         * config/alpha/tm-fbsd.h: Update copyright years.
6868         (USE_STRUCT_CONVENTION): Remove.
6869
6870 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6871
6872         * alpha-tdep.c (alpha_abi_handler): New structure to describe
6873         an Alpha ABI variant.
6874         (alpha_abi_handler_list): Declare.
6875         (alpha_gdbarch_register_os_abi): New function.
6876         (alpha_gdbarch_init): Give registered ABI variant handlers a
6877         chance to tweak the gdbarch once we have set up defaults.
6878         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6879
6880 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6881
6882         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6883         to standard_coerce_float_to_double.
6884         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6885
6886 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6887
6888         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6889         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6890         from gdbarch_tdep rather than a constant.
6891         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6892         the default text address for all Alpha Unix ABIs.
6893         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6894         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6895
6896 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6897
6898         * alpha-tdep.h: New file.  Includes several Alpha target constants
6899         taken from...
6900         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
6901         let gdbarch deal with.
6902         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6903         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6904         to dependency list.
6905         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
6906         Alpha target register names.
6907         * alphabsd-nat.c: Likewise.
6908         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
6909         Alpha target register names.  Make serveral routines static.
6910         (alpha_get_saved_register): New function.
6911         (alpha_abi_names): New.
6912         (process_note_abi_tag_sections): New function.
6913         (get_elfosabi): New function.
6914         (alpha_gdbarch_init): New function.
6915         (alpha_dump_tdep): New function.
6916         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6917
6918 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6919
6920         * frame.c (find_saved_register): Delete #ifdef
6921         HAVE_REGISTER_WINDOWS code.
6922         * config/sparc/tm-sparc.h: Update comments.
6923         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6924
6925 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6926
6927         * i960-tdep.c (i960_find_saved_register): New function.
6928         (i960_get_saved_register): New function.
6929         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6930         (i960_get_saved_register): Declare.
6931         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6932
6933 2002-04-20  David S. Miller  <davem@redhat.com>
6934
6935         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6936
6937 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6938
6939         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6940         instead of NUM_PSEUDO_REGS.
6941
6942 2002-04-20  David S. Miller  <davem@redhat.com>
6943
6944         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6945         GDB_MULTI_ARCH_PARTIAL
6946         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6947         define, let tm-sp64.h do it.
6948
6949 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
6950
6951         * frame.c (find_saved_register): Avoid a NULL pointer
6952         dereference and actually walk the frame list.
6953
6954 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6955
6956         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6957         sorted in most most-recent-used order.  Document.
6958         * gdbarch.h, gdbarch.c: Regenerate.
6959
6960 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
6961
6962         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6963         instead of ->prev.
6964         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6965         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6966         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6967         instead of ->prev.
6968
6969 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
6970
6971         Fix PR gdb/471.
6972         * gdbtypes.c (init_simd_type): Rewrite using new functions.
6973         (build_builtin_type_vec128): Ditto.
6974         (append_composite_type_field): Fix calculation of type length in
6975         union case.
6976
6977 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
6978
6979         * config/djgpp/README: Update.
6980
6981         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6982         compiler warnings.
6983
6984 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
6985
6986         * alpha-tdep.c (setup_arbitrary_frame): Rename...
6987         (alpha_setup_arbitrary_frame): ...to this.
6988         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6989         for alpha_setup_arbitrary_frame.
6990
6991 2002-04-18  Andrew Cagney  <cagney@redhat.com>
6992
6993         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6994         * gdbarch.h, gdbarch.c: Regenerate.
6995
6996         * defs.h (breakpoint_from_pc_fn): Delete type definition.
6997         * target.h (memory_breakpoint_from_pc): Update declaration.
6998         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6999
7000         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7001         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7002         * mem-break.c (memory_breakpoint_from_pc): Ditto.
7003         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7004         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7005         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7006         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7007         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7008         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7009         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7010         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7011         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7012
7013         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7014         const pointer.
7015         * monitor.c (monitor_insert_breakpoint): Ditto.
7016         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7017
7018         * config/mcore/tm-mcore.h: Update copyright.
7019         * mem-break.c: Ditto.
7020         * xstormy16-tdep.c: Ditto.
7021
7022 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7023
7024         * p-exp.y: Add precedence rule for '^' token.
7025         This removes the shift/reduce conflicts.
7026         Remove the comment concerning these shift/reduce conflicts.
7027
7028 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
7029
7030         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7031         (registers_powerpc_nofp): New register set for processors
7032         without floating point unit.
7033
7034 2002-04-18  David S. Miller  <davem@redhat.com>
7035
7036         * MAINTAINERS: Add myself to write-after-approval.
7037
7038 2002-04-17  Michael Snyder  <msnyder@redhat.com>
7039
7040         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7041
7042 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
7043
7044         * rs6000-tdep.c (frame_initial_stack_address): Use
7045         frame_register_read to read the alloca_reg.
7046
7047 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
7048
7049         * frame.c (find_saved_register): Find saved registers in the next
7050         not prev frame.
7051         Fix PR gdb/365.
7052
7053 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
7054
7055         * gdbarch.sh (LANG): Set to ``c''.
7056
7057 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
7058
7059         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7060
7061 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
7062
7063         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7064         Update copyright.
7065
7066         * hpread.c (hpread_get_lntt): Add declaration.
7067         Also fix PR gdb/391.
7068
7069 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
7070
7071         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7072         * aclocal.m4, configure: Re-generate.
7073         Fix PR gdb/391.
7074
7075 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
7076
7077         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7078         instead of tm_print_insn.
7079
7080 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
7081
7082         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7083
7084 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
7085
7086         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7087         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7088         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7089
7090 2002-04-12  Don Howard  <dhoward@redhat.com>
7091
7092         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7093         max_user_call_depth.
7094         (init_cmd_lists): Initialize the new value;
7095         * cli/cli-script.c (execute_user_command): Limit the call depth of
7096         user defined commands.  This avoids a core-dump when user commands
7097         are infinitly recursive.
7098
7099 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7100
7101         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7102         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7103         from tdep struct instead of DEFAULT_LR_SAVE.
7104         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7105         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7106         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7107
7108 2002-04-12  Michael Snyder  <msnyder@redhat.com>
7109
7110         * Remote.c: Spelling fix.
7111         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7112         If no symbol found for "sbrk", try "_sbrk".
7113         (make_output_phdrs): Use bfd_section_name.
7114         (gcore_copy_callback): Use bfd_section_name.
7115         * eval.c: Indentation fix-ups.
7116         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7117         in case it gets applied to an address that is already
7118         in the instruction space.
7119         * cli/cli-decode.c (help_list): Allow long lines to wrap.
7120         * symfile.c: Fix indentation, long lines.
7121         * source.c: White space fix-up.
7122
7123 2002-04-12  Andrew Cagney  <cagney@redhat.com>
7124
7125         * defs.h (read_relative_register_raw_bytes): Delete declaration.
7126         * frame.c (frame_register_read): New function.  Return non-zero on
7127         success.
7128         (read_relative_register_raw_bytes_for_frame): Delete.
7129         (read_relative_register_raw_bytes): Delete.
7130         * frame.h (frame_register_read): Declare.
7131         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
7132         * sh-tdep.c: Ditto.
7133         * infcmd.c (do_registers_info): Ditto.
7134         * hppa-tdep.c: Ditto.
7135         * rs6000-tdep.c: Ditto.
7136         * h8500-tdep.c: Ditto.
7137         * mips-tdep.c: Ditto.
7138         * h8300-tdep.c: Ditto.
7139         * z8k-tdep.c: Ditto.
7140
7141 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7142
7143         From Jimi X <jimix@watson.ibm.com>:
7144         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7145         64-bit SysV ABI.
7146
7147 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7148
7149         From Jimi X <jimix@watson.ibm.com>:
7150         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7151         bfd info.
7152
7153 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7154
7155         From Jimi X <jimix@watson.ibm.com>:
7156         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7157         register sets for these processor variants.
7158
7159 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
7160
7161         * regformats/reg-ppc.dat: Support FPSCR.
7162
7163 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
7164
7165         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7166         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7167         Add fpscr as an invalid/unfetchable register.
7168         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7169         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7170         (fill_fpregset): Add support for register fpscr.
7171         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7172         (fill_gregset): Account for the fact that register ``mq'' might
7173         not exist.
7174         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7175         (registers_power): Add fpscr to register set at slot 71.
7176         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7177         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
7178
7179 2002-04-11  Michael Snyder  <msnyder@redhat.com>
7180
7181         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7182         * configure: Regenerate.
7183         * config.in: Regenerate.
7184         * acconfig.h: Add define for _SYSCALL32.
7185         * core-sol2.c: Remove #define _SYSCALL32.
7186         * solib-legacy.c: Remove #define _SYSCALL32.
7187
7188 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
7189
7190         * stack.c (select_frame): Cleanup internal error message, do not
7191         use %p.
7192
7193 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
7194
7195         * stack.c (select_frame): Check that selected_frame and the
7196         specified level are as expected.
7197         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7198         Update copyright.
7199         * frame.h (struct frame_info): Add field `level'.  Update
7200         copyright.
7201         Work-in-progress PR gdb/464.
7202
7203 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
7204
7205         * maint.c (maint_print_section_info): Rename print_section_info.
7206         (print_bfd_section_info, print_objfile_section_info): Update.
7207         * inferior.h (struct gdbarch): Add opaque declaration.
7208         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7209         * gdbarch.h: Regenerate.
7210
7211 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
7212
7213         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7214         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7215         (kernel_u_size): Added.
7216         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7217         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7218
7219 2002-04-04  Jim Ingham  <jingham@apple.com>
7220
7221        * valarith.c (find_size_for_pointer_math): New function, either returns
7222        the size for a pointer's target, returns 1 for void *, or errors for
7223        incomplete types.
7224        (value_add, value_sub): use find_size_for_pointer_math.
7225
7226 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
7227
7228         * linux-low.c (linux_look_up_symbols): New hook.
7229         (linux_target_ops): Add linux_look_up_symbols.
7230         * remote-utils.c (decode_address): New function.
7231         (look_up_one_symbol): New function.
7232         * server.c (handle_query): Call target look_up_symbols hook.
7233         * server.h (look_up_one_symbol): Add prototype.
7234         * target.h (struct target_ops): Add look_up_symbols hook.
7235
7236 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
7237
7238         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7239         override FP_REGNUM with frame->fp.  Update copyright.
7240         * parse.c (num_std_regs, std_regs): Delete.
7241         (target_map_name_to_register): Do not search std_regs.  Update
7242         function description.
7243         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7244         declarations.  Update copyright.
7245         Fix PR gdb/251.
7246
7247 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
7248
7249         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7250         after the last symbol in a block.
7251
7252 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
7253
7254         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7255         is non zero as a found symbol.
7256
7257 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
7258
7259         * findvar.c: Include "builtin-regs.h".
7260         (value_of_register): Call value_of_builtin_reg when applicable.
7261         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7262         (target_map_name_to_register): Call
7263         builtin_reg_map_name_to_regnum.
7264         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7265         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7266         (builtin_regs_h): Define.
7267         (builtin-regs.o): New target.
7268         (findvar.o): Add $(builtin_regs_h).
7269         * builtin-regs.c, builtin-regs.h: New files.
7270         * std-regs.c: New file.
7271         Partial fix for PR gdb/251.
7272
7273 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7274
7275         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7276         it's no longer required.
7277
7278 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
7279
7280         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7281
7282 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7283
7284         From Jimi X <jimix@watson.ibm.com>:
7285         * rs6000-tdep.c (rs6000_software_single_step): Use
7286         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7287         and size.  Use target_insert_breakpoint() and
7288         target_remove_breakpoint() to insert and remove breakpoints
7289         instead of explicit memory reads and writes.
7290
7291 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7292
7293         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7294         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7295         ELF_OBJECT_FORMAT ifdef.
7296
7297 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7298
7299         From Jimi X <jimix@watson.ibm.com>:
7300         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7301
7302 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7303
7304         From Jimi X <jimix@watson.ibm.com>:
7305         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7306         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7307
7308 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
7309
7310         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7311         s/asprintf/xasprintf/.
7312         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7313
7314 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7315
7316         I believe Jeff Law denies responsability for this one:
7317         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7318         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7319         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7320         Work-around for PR gdb/366.
7321
7322 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
7323
7324         * remote-e7000.c (write_small, e7000_read_inferior_memory,
7325         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7326         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7327
7328 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
7329
7330         * sh-tdep.c (sh_fp_frame_init_saved_regs,
7331         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7332         information.
7333
7334 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7335
7336         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7337         maintainer.
7338
7339 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7340
7341         * README (Reporting Bugs in GDB): Document the bug web page as the
7342         prefered way of submitting bugs.
7343         Fix PR gdb/402.
7344
7345 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7346
7347         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7348         -1.  Update comment.
7349         * gdbarch.h, gdbarch.c: Re-generate.
7350
7351 2002-04-07  Andreas Schwab  <schwab@suse.de>
7352
7353         * m68klinux-nat.c (fill_fpregset): Properly pass address of
7354         buffer to regcache_collect.
7355
7356 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7357
7358         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
7359         * gdbarch.c, gdbarch.h: Re-generate.
7360
7361 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7362
7363         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7364         declaration.  Fix -Werror.
7365
7366 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
7367
7368         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7369         * gdbarch.c: Regenerate.
7370
7371 2002-04-05  Michael Snyder  <msnyder@redhat.com>
7372
7373         * breakpoint.c (clear_command): Rewrite middle section to
7374         combine two loops with identical control conditions.
7375         Add a cleanup to eliminate a memory leak.
7376         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7377
7378 2002-04-05  H.J. Lu  (hjl@gnu.org)
7379
7380         * solib-svr4.c (bkpt_names): Add "__start".
7381
7382 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
7383
7384         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7385         as test for 64 bit target.
7386
7387 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
7388
7389         * h8500-tdep.c (h8500_write_fp): Delete function.
7390         * dwarf2cfi.c (cfi_write_fp): Document as not used.
7391         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7392         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7393         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7394         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7395         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7396         (s390_write_fp):
7397         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7398         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7399         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7400         (d10v_write_fp): Delete function.
7401         * inferior.h (write_fp, generic_target_write_fp): Delete
7402         declarations.
7403         * regcache.c (generic_target_write_fp): Delete function.
7404         (write_fp): Delete function.
7405         * gdbarch.sh (TARGET_WRITE_FP): Delete.
7406         * gdbarch.h, gdbarch.c: Regenerate.
7407         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7408         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7409         (sparc64_write_fp): Delete declaration.
7410         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7411         (h8500_write_fp): Delete declaration.
7412
7413 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
7414
7415         * sparc-tdep.c (sparc64_write_fp): Delete.
7416         (sparc_push_dummy_frame): Replace write_fp call with code to store
7417         the FP directly.
7418         (sparc_gdbarch_init): Do not initialize write_fp.
7419
7420 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
7421
7422         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7423         clause.
7424
7425 2002-03-29  Jim Blandy  <jimb@redhat.com>
7426
7427         * stack.c (get_selected_block): Add new argument `addr_in_block',
7428         used to return the exact code address we used to select the block,
7429         not just the block.
7430         * blockframe.c (get_frame_block, get_current_block): Same.
7431         * frame.h (get_frame_block, get_current_block,
7432         get_selected_block): Update declarations.
7433         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7434         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7435
7436 2002-04-05  Michael Snyder  <msnyder@redhat.com>
7437
7438         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7439         warning message.
7440
7441 2002-04-05  J. Brobecker  <brobecker@gnat.com>
7442
7443         * utils.c (xfullpath): New function.
7444         * defs.h (xfullpath): Add declaration.
7445         * source.c (openp): Use xfullpath in place of gdb_realpath to
7446         avoid resolving the basename part of filenames when the
7447         associated file is a symbolic link. This fixes a potential
7448         inconsistency between the filenames known to GDB and the
7449         filenames it prints in the annotations.
7450         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7451         to be able to match a filename with either the real filename, or
7452         the name of any symbolic link to this file.
7453         (lookup_partial_symtab): Ditto.
7454
7455 2002-04-04  Michael Snyder  <msnyder@redhat.com>
7456
7457         * breakpoint.c: Add support for hardware breakpoints in overlays.
7458         (overlay_events_enabled): New state variable.
7459         (insert_breakpoints): Use overlay_events_enabled to decide
7460         whether to attempt to set a breakpoint at the overlay load addr.
7461         Handle bp_hardware_breakpoint as well as bp_breakpoint.
7462         (remove_breakpoint): Use overlay_events_enabled to decide
7463         whether breakpoints need to be removed from overlay load addr.
7464         Handle bp_hardware_breakpoint as well as bp_breakpoint.
7465         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7466         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7467         disable_overlay_breakpoints): Update overlay_events_enabled.
7468
7469 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
7470
7471         * dwarf2read.c (struct function_range): New.
7472         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7473         (check_cu_functions): New.
7474         (read_file_scope): Initialize global function lists.
7475         Call dwarf_decode_line after processing children.
7476         (read_func_scope): Add to global function list.
7477         (dwarf_decode_lines): Call check_cu_functions everywhere
7478         record_line is called.  Call record_line with a linenumber
7479         of 0 to mark sequence ends.
7480
7481 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
7482
7483         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7484         change sync with glibc.
7485
7486 2002-04-03  Jim Blandy  <jimb@redhat.com>
7487
7488         * configure.in: Call AC_C_INLINE.
7489         * configure: Regenerated.
7490
7491 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
7492
7493         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7494         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7495
7496 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
7497
7498         * NEWS: Mention gcore support on FreeBSD/i386.
7499
7500         * fbsd-proc.c: New file.
7501         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7502         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7503
7504         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7505         while statement.
7506
7507 2002-03-29  Jim Blandy  <jimb@redhat.com>
7508
7509         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7510         unescaped newlines in string literals, but newer ones don't.  So
7511         escape them.
7512
7513 2002-03-26  Michael Snyder  <msnyder@redhat.com>
7514             Andrew Cagney <cagney@redhat.com>
7515
7516         * cli/cli-dump.c: New file.  Dump memory to file,
7517         restore file to memory.
7518         * cli/cli-dump.h: New file.
7519         * Makefile.in: Add rules, dependencies for cli-dump.o.
7520         * NEWS: Mention new commands.
7521
7522 2002-03-28  Michael Snyder  <msnyder@redhat.com>
7523
7524         * symfile.c (symbol_file_add): Move test for null symbols to later.
7525
7526 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7527
7528         From veksler at il.ibm.com:
7529         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7530         the xstrduped original path.
7531         Fix PR gdb/417.
7532
7533 2002-03-27  Michael Snyder  <msnyder@redhat.com>
7534
7535         * breakpoint.c (_initialize_breakpoint): Clean up help string.
7536         * infcmd.c (_initialize_infcmd): Ditto.
7537         * language.c (_initialize_language): Ditto.
7538         * symfile.c (_initialize_symfile): Ditto.
7539         * top.c (_init_main): Ditto.
7540         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7541
7542 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
7543
7544         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7545         vector registers handling.
7546         (skip_prologue): Handle new AltiVec instructions.  Fill in new
7547         fields of frame data.
7548         (frame_get_saved_regs): Fill in information for AltiVec registers.
7549
7550 2002-03-27  Jim Blandy  <jimb@redhat.com>
7551
7552         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7553         a function; leave this macro here to invoke that function.
7554         (symbol_init_mangled_name): Declaration for that function.
7555         * symtab.c (symbol_init_mangled_name): New function.
7556
7557 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7558
7559         * valarith.c: Replace strerror with safe_strerror.
7560         * tracepoint.c: Ditto.
7561         * lin-lwp.c: Ditto.
7562         * go32-nat.c: Ditto.
7563         * inflow.c: Ditto.
7564         * gnu-nat.c: Ditto.
7565
7566 2002-03-27  Andreas Schwab  <schwab@suse.de>
7567
7568         * event-top.c (command_line_handler): Remove useless if.
7569
7570 2002-03-27  Andreas Jaeger  <aj@suse.de>
7571
7572         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7573         comment.
7574
7575 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
7576
7577         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7578         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7579         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7580         (x86_64_linux_dr_get_status, supply_gregset),
7581         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7582         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7583         (x86_64_register_info_table): Add.
7584         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7585         (x86_64_register_raw_size, x86_64_register_virtual_type),
7586         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7587         general x86_64_register_info_table.
7588         (i386_gdbarch_init): gdbarch_register_bytes is now set
7589         dynamicaly during initialization.
7590         * regformats/reg-x86-64.dat: Synced with changes to registers above.
7591         * gdbserver/linux-x86-64-low.c: Ditto.
7592
7593 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7594
7595         * gdbserver/server.c (main): Call target_signal_to_host_p
7596         and target_signal_to_host on signals received from the remote.
7597         * gdbserver/remote-utils.c (prepare_resume_reply): Call
7598         target_signal_from_host on signals sent to the remote.
7599         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
7600         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
7601
7602 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7603
7604         * signals/signals.c: Include "server.h" in gdbserver build.
7605         (target_signal_from_name): Don't use STREQ.
7606         (_initialize_signals): Likewise.  Don't include function in
7607         gdbserver build.
7608
7609 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7610
7611         * signals.c: Moved to...
7612         * signals/signals.c: Here.
7613         * Makefile (signals.o): Update.
7614
7615 2002-03-26  Jeff Law (law@redhat.com)
7616
7617         * somread.c (som_symtab_read): Remove some commented out code and
7618         updated related comments.  Do not set the minimal symbol table to
7619         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7620         in a dynamic executable.
7621         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7622         where we are unable to find the minimal symbol for the given
7623         PC value.
7624
7625 2002-03-25  Jeff Law (law@redhat.com)
7626
7627         * linux-proc.c (read_mapping): Scan up to end of line for filename.
7628
7629 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
7630
7631         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7632
7633 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7634
7635         * command.h: Update copyright.
7636         (struct cmd_list_element): Replace definition with opaque
7637         declaration.
7638         (enum cmd_types): Document that it will eventually be moved to
7639         cli/cli-decode.h
7640         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7641         (MALLOCED_REPLACEMENT): Delete macro.
7642         * Makefile.in (cli_decode_h): Add $(command_h).
7643         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7644         * top.c: Include "cli/cli-decode.h".
7645         * completer.c: Include "cli/cli-decode.h".
7646         * maint.c: Include "cli/cli-decode.h".
7647         * cli/cli-decode.h: Include "command.h".
7648         (enum command_class): Delete.
7649         (enum cmd_types): Comment out.
7650         (enum cmd_auto_boolean): Delete.
7651         (enum var_types): Delete.
7652
7653 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7654
7655         * cli/cli-decode.c: Include "gdb_assert.h".
7656         (add_set_or_show_cmd): New static function.
7657         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
7658         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
7659         all fields, such as func, from the set command.
7660
7661 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7662
7663         * MAINTAINERS (sh-elf): Change warning flag to -w.
7664
7665 2002-03-23  Andrew Cagney  <cagney@redhat.com>
7666
7667         * defs.h (error): Add printf format attribute.
7668         * thread-db.c (thread_from_lwp): Fix error format string.
7669         * stack.c (parse_frame_specification): Ditto.
7670         * cli/cli-decode.c (undef_cmd_error): Ditto.
7671         * scm-lang.c (scm_lookup_name): Ditto.
7672         * tracepoint.c (trace_error): Ditto.
7673         * remote-utils.c (usage): Ditto.
7674         * remote.c (compare_sections_command): Ditto.
7675         Fix PR gdb/328.
7676
7677 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
7678
7679         * gdbtypes.c (append_composite_type_field): New function.
7680         (init_composite_type): New function.
7681         * gdbtypes.h (append_composite_type_field): Declare.
7682         (init_composite_type): Ditto.
7683
7684 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
7685
7686         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7687         function.
7688         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7689         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7690         structure returning convention for SYSV ABI case, but not
7691         for GNU/Linux, FreeBSD, or NetBSD.
7692
7693 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
7694
7695         * symtab.h (lookup_block_symbol): Add mangled_name argument
7696         to prototype.
7697
7698         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7699         with new mangled_name argument.
7700         * linespec.c (decode_line_1): Likewise.
7701         * valops (value_of_this): Likewise.
7702         * symtab.c (lookup_transparent_type): Likewise.
7703         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
7704         (lookup_symbol): If we are given a mangled name, pass it down
7705         to lookup_symbol_aux.
7706         (lookup_block_symbol): If we are given a mangled name to check
7707         against, only return symbols which match it.
7708
7709 2002-03-22  Christopher Faylor  <cgf@redhat.com>
7710
7711         * win32-nat.c (child_create_inferior): Check for proper shell to use
7712         here, in case the user changes it on the fly.
7713         (_initialize_inftarg): Remove shell path considerations.
7714
7715 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
7716
7717         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7718         for gdbarch_max_register_raw_size and max_register_virtual_size.
7719         Adjust copyright year.
7720
7721 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
7722
7723          * dbxread.c (process_one_symbol): Extend the first N_SLINE
7724          in a function to cover the entire beginning of the function
7725          as well if it does not already.
7726
7727 2002-03-21  Tom Rix  <trix@redhat.com>
7728
7729         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7730         (rs6000_ptrace64): Renamed from ptrace64.
7731
7732 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7733
7734         * gdbserver/remote-utils.c (remote_open): Don't call
7735         getprotobyname, we're all using TCP here so just use
7736         IPPROTO_TCP.
7737         * gdbserver/gdbreplay.c (remote_open): Ditto.
7738
7739 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7740
7741         * regcache.c (_initialize_regcache): No need to call
7742         build_regcache() at this time; it gets called whenever
7743         the gdbarch changes.
7744
7745 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
7746
7747         * sparc-nat.c:  Include sys/param.h where possible.
7748
7749 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
7750
7751         Fix PR gdb/422.
7752         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7753         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7754         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7755         complex types.
7756         * stabsread.c (rs6000_builtin_type): Likewise.
7757         (read_sun_floating_type): Likewise.
7758
7759 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7760
7761         * stabsread.c (read_member_functions): Remove skip code for duplicate
7762         constructor/destructor methods.  Use standard parsing for these
7763         methods and just do not chain them to the list of methods after
7764         parsing.
7765
7766 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
7767
7768         * coffread.c: Remove redundant static declarations.  Replace
7769         occurrences of `PTR' with `void *'.
7770         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7771         * top.h (quit_cover): Likewise.
7772         * defs.h (catch_errors): Likewise.
7773
7774 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7775
7776         * defs.h (XMALLOC): Define.
7777         * gdb-events.sh (XMALLOC): Delete macro.
7778         * gdb-events.c, gdb-events.h: Regenerate.
7779         * gdbarch.sh (XMALLOC): Delete macro.
7780         * gdbarch.c: Regenerate.
7781         * serial.c (XMALLOC): Delete macro.
7782         * ui-file.c (XMALLOC): Ditto.
7783         * ser-unix.h (XMALLOC): Ditto.
7784         * sh-tdep.c (XMALLOC): Ditto.
7785         * ui-out.c (XMALLOC): Ditto.
7786         * utils.c (XMALLOC): Ditto.
7787         * i386-tdep.c (XMALLOC): Ditto.
7788         * gdb-events.c (XMALLOC): Ditto.
7789         * d10v-tdep.c (XMALLOC): Ditto.
7790         * cli-out.c (XMALLOC): Ditto.
7791
7792         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7793         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7794         * ui-file.c, ui-out.c: Ditto.
7795
7796 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7797
7798         * command.h (struct cmd_list_element): Add field context.
7799         (set_cmd_context, get_cmd_context): Declare.
7800         * cli/cli-decode.h: Ditto.
7801         * cli/cli-decode.c (get_cmd_context): New function.
7802         (set_cmd_context): New function.
7803         (add_cmd): Initialize context.
7804         Part of fixing PR gdb/145 and PR gdb/146.
7805
7806 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7807
7808         * cli/cli-decode.c (cmd_type): New function.
7809         * command.h (cmd_type): Declare.
7810         * infrun.c (set_schedlock_func): Call function cmd_type.
7811         * kod.c (kod_set_os): Call cmd_type.
7812         * cris-tdep.c (cris_version_update): Use function cmd_type.
7813         (cris_mode_update, cris_abi_update): Ditto.
7814
7815         * command.h: (execute_cmd_post_hook): Declare.
7816         (execute_cmd_pre_hook): Declare.
7817         * cli/cli-script.c (clear_hook_in_cleanup): New function.
7818         (execute_cmd_post_hook, execute_cmd_pre_hook): New
7819         functions. Execute pre/post hook while ensuring that afterwords
7820         hook_in is cleared.
7821         * top.c (execute_command): Use execute_cmd_post_hook, and
7822         execute_cmd_pre_hook to execute pre/post commands.
7823         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7824         hook_stop_stub.
7825         (hook_stop_stub): Call execute_cmd_pre_hook.
7826
7827 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7828
7829         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
7830         set'' and this leads to a core dump.  Move xstrdup of
7831         operating_system to after check that it is not NULL.
7832
7833 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7834
7835         * kod.c (kod_set_os): Remove unnecessary check that
7836         ``command->type'' is set_cmd.
7837
7838         * valprint.c (set_input_radix): Use input_radix.
7839         (set_output_radix): Use output_radix.
7840         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7841         isn't reverted.
7842
7843 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
7844
7845         * value.h (struct value): Delete field ``substring_addr''.  Change
7846         aligner fields to force_doublest_align, force_longest_align,
7847         force_core_addr_align and force_pointer_aligh.
7848
7849         * value.h (struct value): Fix typo in above change.
7850
7851 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7852
7853         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7854         to fix internal_error from ``maintenance print architecture''.
7855
7856 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7857
7858         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7859         for gcc versions after gcc-2.8.1.
7860
7861 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7862
7863         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7864         for method resolution.  Restore adjustment of ``this'' pointer after
7865         calling value_struct_elt, which was accidentally removed during the
7866         HP merge.
7867
7868 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
7869
7870         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7871         value_of_register.
7872         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
7873         get_saved_register.
7874         * value.h (value_of_register): Update.
7875
7876 2002-03-14  Richard Henderson  <rth@redhat.com>
7877
7878         * configure.in: Detect declaration for canonicalize_file_name.
7879         * utils.c (canonicalize_file_name): Declare, if needed.
7880         (gdb_realpath): Prefer realpath if available and usable.
7881         * config.in, configure: Rebuild.
7882
7883 2002-03-14  Richard Henderson  <rth@redhat.com>
7884
7885         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7886         a constant array bound.
7887
7888         * MAINTAINERS: Add myself to write-after-approval.
7889
7890 2002-03-14  Michael Snyder  <msnyder@redhat.com>
7891
7892         * symfile.c (syms_from_objfile): Return immediately if no syms.
7893         (symbol_file_add): Return immediately if no syms.
7894         (find_sym_fns): Return immediately if no syms.
7895
7896 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
7897
7898         * gdbserver/remote-util.c (remote_open): Print remote-side's
7899         IP address when remote debugging over the network.
7900
7901 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
7902
7903         * config/sparc/fbsd.mh: Fix copyright.
7904         * config/sparc/fbsd.mt: Likewise.
7905
7906 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
7907
7908         * MAINTAINERS: Fix typo in name of gdb warnings option.
7909         (x86-64): Fix formating so that this can be parsed by awk.
7910
7911 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7912
7913         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7914         * defs.h: Include "gdb/signals.h".
7915         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7916
7917 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
7918
7919         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7920         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7921         from x86-64-tdep.h
7922
7923 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7924             Don Howard <dhoward@redhat.com>
7925
7926         * mips-tdep.c (ST0_FR): Define.
7927         (mips2_fp_compat): New function, temporarily disabled.
7928         (mips_read_fp_register_single): New function.
7929         (mips_read_fp_register_double): New function.
7930         (mips_print_register): Use them.
7931         (do_fp_register_row): Likewise.
7932
7933 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
7934
7935         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7936         approval''.
7937
7938 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7939
7940         * stabsread.c (read_member_functions): Fix is_stub test for
7941         static member functions, improve comment.
7942
7943 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
7944
7945         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7946         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7947         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7948         commands that set boolean values.
7949         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7950         (arm_rdi_resume): Always initialize PC.
7951         (arm_rdi_open): Don't use rslt as a boolean.
7952         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7953         (arm_rdi_fetch_registers, arm_rdi_store_registers)
7954         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7955         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7956
7957 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
7958
7959         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7960         * configure: Rebuilt.
7961
7962 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7963
7964         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7965         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7966
7967 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
7968
7969         * cli/cli-decode.c (set_cmd_completer): New function.
7970         * command.h (set_cmd_completer): Declare.
7971         * cli/cli-decode.h (set_cmd_completer): Ditto.
7972
7973         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7974         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7975         * win32-nat.c (_initialize_inftarg): Ditto.
7976         * remote-rdi.c (_initialize_remote_rdi): Ditto.
7977         * proc-api.c (_initialize_proc_api): Ditto.
7978         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7979         * source.c (_initialize_source): Ditto.
7980         * exec.c (_initialize_exec): Ditto.
7981         * solib.c (_initialize_solib): Ditto.
7982         * top.c (init_main): Ditto.
7983         * tracepoint.c (_initialize_tracepoint): Ditto.
7984         * symfile.c (_initialize_symfile): Ditto.
7985         * printcmd.c (_initialize_printcmd): Ditto.
7986         * infcmd.c (_initialize_infcmd): Ditto.
7987         * corefile.c (_initialize_core): Ditto.
7988
7989 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7990
7991         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7992
7993 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7994
7995         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7996
7997 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7998
7999         * NEWS: Update headings, 5.2 has branched.
8000
8001 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
8002
8003         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8004         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8005         (register_addr, REGISTER_RAW_SIZE): Likewise.
8006         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8007         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8008
8009 2002-03-03  Michal Ludvig <mludvig@suse.cz>
8010
8011         * MAINTAINERS (x86-64): Add myself.
8012         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8013         changed value_ptr -> struct value *
8014
8015 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
8016
8017         * configure.host (sparc64-*-freebsd): Add.
8018         * configure.tgt: Likewise.
8019         * config/sparc/fbsd.mh: New file.
8020         * config/sparc/fbsd.mt: Likewise.
8021         * config/sparc/nm-fbsd.h: Likewise.
8022         * config/sparc/tm-fbsd.h: Likewise.
8023
8024 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
8025
8026         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8027         regformats/reg-s390x.dat.
8028
8029 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
8030
8031         * utils.c: Add FIXME explaining true/false problem.
8032
8033 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
8034
8035         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8036
8037 2002-02-28  Michael Chastain  <mec@shout.net>
8038
8039         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8040
8041 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
8042
8043         * gdbserver/linux-s390-low.c: New file.
8044         * regformats/reg-s390.dat: New file.
8045         * regformats/reg-s390x.dat: New file.
8046         * gdbserver/configure.srv: Add S/390.
8047         * gdbserver/Makefile.in: Add S/390.
8048         * configure.tgt: Enable gdbserver for S/390.
8049
8050 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
8051
8052         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8053         first line of the doc string for "info dos", except at the end of
8054         the sentence, since the short help stops at the first period.
8055
8056 2002-02-28  Jason Merrill  <jason@redhat.com>
8057
8058         * dwarf2read.c (dwarf_cfi_name): Add new codes.
8059
8060 2002-02-27  Fred Fish  <fnf@redhat.com>
8061
8062         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8063         comment (dumy -> dummy).
8064
8065 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8066
8067         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8068
8069 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
8070
8071       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8072
8073 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8074
8075         * gdbserver/acconfig.h: New file.
8076         * gdbserver/i387-fp.c: New file.
8077         * gdbserver/i387-fp.h: New file.
8078         * gdbserver/linux-x86-64.c: New file.
8079         * regformats/reg-x86-64.dat: New file.
8080         * configure.tgt: Add x86_64-*-linux* gdbserver support.
8081         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8082         * gdbserver/configure.in: Add support for regsets.
8083         * gdbserver/config.in: Regenerate.
8084         * gdbserver/configure: Regenerate.
8085         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
8086         * gdbserver/linux-low.h: New file.
8087         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
8088         for regsets.
8089         * gdbserver/linux-arm-low.c: Include "linux-low.h".
8090         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8091         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8092         * gdbserver/linux-mips-low.c: Include "linux-low.h".
8093         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8094         * gdbserver/linux-sh-low.c: Include "linux-low.h".
8095         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
8096         "i387-fp.h".  Add PTRACE_GETREGS and friends.
8097         * gdbserver/regcache.c (supply_register): New function.
8098         (supply_register_by_name): New function.
8099         (collect_register): New function.
8100         (collect_register_by_name): New function.
8101
8102 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8103
8104         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8105         (config.status): Add configure.srv dependency.
8106         (server_h): Add config.h dependency.
8107
8108 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8109
8110         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8111         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8112         * gdbserver/configure.srv: Change i386-*-linux* to use
8113         reg-i386-linux.o.
8114
8115 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8116
8117         * x86-64-tdep.c: Re-indent.  Update copyright date.
8118
8119 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8120
8121         From Michal Ludvig <mludvig@suse.cz>:
8122         * x86-64-tdep.c (value.h): Delete.
8123         (gdb_assert.h): Include.
8124         (x86_64_register_convert_to_virtual,
8125         x86_64_register_convert_to_raw ): Add check which lets only
8126         floating-point values to be converted.
8127         (value_push): Delete.
8128         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8129         (i386_gdbarch_init): Number of register_bytes fixed.
8130
8131 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8132
8133         * MAINTAINERS: Add x86-64 target.
8134
8135 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8136
8137         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8138         * osfsolib.c (solib_map_sections): Ditto.
8139         * irix5-nat.c (solib_map_sections): Ditto.
8140         * corelow.c (gdb_check_format): Ditto.
8141         * symfile.c (symfile_bfd_open): Ditto.
8142         * solib.c (solib_map_sections): Ditto.
8143         Fix PR gdb/354.
8144
8145 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8146
8147         * remote.c (_initialize_remote): By default, disable ``e'' and
8148         ``E'' step out-of-range packets.
8149
8150 2002-02-26  Andreas Schwab  <schwab@suse.de>
8151
8152         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8153         m68k_linux_frame_saved_pc.
8154         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8155         in_sigtramp.
8156         (SIGCONTEXT_PC_OFFSET): Remove.
8157         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8158         m68k_linux_sigtramp_saved_pc): New functions.
8159         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8160         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8161         (UCONTEXT_PC_OFFSET): Define.
8162         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8163         non-RT and RT signal trampolines.
8164
8165 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
8166
8167         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8168         (TARGET_NBPG, STACK_END_ADDR): Delete
8169         (VARIABLES_INSIDE_BLOCK): Delete.
8170
8171 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
8172
8173         * utils.c (perror_with_name): Make string parameter constant.
8174         (print_sys_errmsg): Ditto.
8175         (query): Ditto.
8176         * defs.h (perror_with_name): Update.
8177         (print_sys_errmsg): Update.
8178         (query): Update.
8179
8180 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
8181
8182         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8183         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8184
8185 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8186
8187         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8188         if it already matches the current architecture from the exec file.
8189         Include arch-utils.h for gdbarch_info_init prototype.
8190         * Makefile.in (rs6000-nat.o): Update dependencies.
8191
8192 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
8193
8194         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8195          list of exported variables.
8196
8197 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
8198
8199         * gdbserver/configure.srv: New file.
8200         * gdbserver/configure.in: Use configure.srv instead
8201         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
8202         from it.
8203         * gdbserver/configure: Regenerated.
8204         * gdbserver/terminal.h: New file.
8205         * gdbserver/Makefile.in: Update for configure changes.  Remove
8206         more unneeded include paths.
8207
8208 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
8209
8210         From wiz at danbala:
8211         * config/sparc/tm-sp64.h: Fix grammar and typos.
8212         Fix PR gdb/287.
8213
8214 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
8215
8216         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8217         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
8218         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8219         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8220         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8221         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8222         * s390-tdep.c: Ditto.
8223         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8224         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8225         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8226         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8227         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8228         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8229         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8230         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8231         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8232         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8233         Fix PR gdb/378.
8234
8235 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8236
8237         * lin-thread.c: Delete file.
8238         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8239         to gdb_proc_service.h.
8240         * configure: Re-generate.
8241
8242         * ocd.c (ocd_open): Do not try to open the "ocd" device.
8243         * serial.c (serial_open): Delete check for "ocd".
8244         Fix PR gdb/349.
8245
8246         * Makefile.in (linux-thread.o): Delete target.
8247         * linux-thread.c: Delete file.
8248
8249         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
8250         renamed SH files to be consistent.
8251
8252         * symtab.c (sort_search_symbols): Use xfree.
8253
8254 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8255
8256         * arm-linux-tdep.c (arm_linux_init_abi): Register
8257         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8258         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8259         definition with undef, since we don't want the sysvr4 definition.
8260         (SKIP_TRAMPOLINE_CODE): Likewise.
8261
8262 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8263
8264         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8265
8266         * configure.in: (AC_CHECK_FUNCS) Added test for
8267         canonicalize_file_name Regenerated.
8268         * config.in, configure: Regenerated.
8269         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8270         defined use canonicalize_file_name.
8271
8272 2002-02-23  Michael Chastain  <mec@shout.net>
8273
8274         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8275
8276 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8277
8278         * README: Remove references to cygnus.com.
8279         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8280         dot com'' form.  Remove references to cygnus.com and sourceware.
8281
8282 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8283
8284         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8285         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8286         1003.1-2001 no longer allows "head -1".
8287         * gdb/Makefile.in (version.c): Likewise.
8288         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8289         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8290         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
8291
8292 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8293
8294         * cli/cli-decode.c (cmd_cfunc_eq): New function.
8295         * command.h (cmd_cfunc_eq): Declare.
8296         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8297
8298         * cli/cli-cmds.h (is_complete_command): Change parameter to a
8299         ``struct cmd_list_element *''.
8300         * cli/cli-cmds.c (is_complete_command): Update.  Use
8301         cmd_cfunc_eq.
8302         * top.c (execute_command): Pass the command to
8303         is_complete_command.
8304         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8305
8306 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8307
8308         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8309         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8310         architecture defines.
8311         * s390-tdep.c (s390_gdbarch_init): Likewise.
8312
8313 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8314
8315         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8316         (arm_linux_push_arguments): Likewise.
8317         (arm_linux_init_abi): Register them.  Also register linux-specific
8318         call_dummy_words.
8319         (find_minsym_and_objfile): Use strcmp, not STREQ.
8320         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8321         (arm_linux_call_dummy_words): Delete declaration.
8322         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8323         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8324         declarations.
8325         (LOWEST_PC): Delete.
8326
8327 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8328
8329         * maint.c (print_section_info): Do not prepend `0x' to filepos
8330         output, it will be handled by local_hex_string_custom.
8331
8332 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8333
8334         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8335         (store_newfpe_double, store_newfpe_extended, store_fpregister)
8336         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8337
8338 2002-02-22  Jim Blandy  <jimb@redhat.com>
8339
8340         Indicate that the bcache functions don't change the strings
8341         they're passed.
8342         * bcache.h (bcache, hash): Add `const' keywords to declarations.
8343         * bcache.c (bcache, hash): Add `const' keywords to definitions.
8344
8345 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
8346
8347         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8348
8349 2002-02-21  Christopher Faylor  <cgf@redhat.com>
8350
8351         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8352         find the complete path to a loaded DLL.
8353
8354 2002-02-21  Fred Fish  <fnf@redhat.com>
8355
8356         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8357         that marks the end of the range of a function, enter a line number
8358         entry that has a line number of zero and a PC offset that matches
8359         the end of the function.  This starts a range of PC's for which no
8360         line number information is known.
8361         * symtab.c (find_pc_sect_line): If our best fit is in a range of
8362         PC's for which no line number info is found (line number is zero)
8363         then we didn't find any valid line information.
8364         * symtab.h: Document use of zero line number entry.
8365
8366 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
8367
8368         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8369         (have_ptrace_getvrregs): Define for run time checks.
8370         (gdb_vrregset_t): New type for Altivec register handling.
8371         (fetch_register, store_register): Fetch/store altivec register
8372         when needed.
8373         (fetch_altivec_register, store_altivec_register): New functions.
8374         (supply_vrregset, fill_vrregset): New functions.
8375         (fetch_altivec_registers, store_altivec_registers): New functions.
8376         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8377         registers as well.
8378
8379 2002-02-21  Jiri Smid  <smid@suse.cz>
8380
8381         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8382
8383 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
8384
8385         * Makefile.in (armnbsd-nat.o): Update dependencies.
8386         * armnbsd-nat.c (supply_gregset): New function.  Common code to
8387         supply the integer register set.
8388         (supply_fparegset): New function.  Similar for FPA registers.
8389         (fetch_regs, fetch_fp_regs): Use them.
8390         (fetch_core_registers): Likewise.
8391         (fetch_elfcore_registers): New function.
8392         (arm_netbsd_elfcore_fns): New core-file type specification.
8393         (_initialize_arm_netbsd_nat): Register it.
8394
8395 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
8396
8397         * armnbsd-nat.c: Include gdbcore.h.
8398         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8399         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8400         'void' to declaration, to shut up ARI.
8401         (fetch_core_registers): Make static.  Rewrite using supply_register.
8402         (arm_netbsd_core_fns): New core-file type specification.
8403         (_initialize_arm_netbsd_nat): New function.
8404
8405 2002-02-21  Christopher Faylor  <cgf@redhat.com>
8406
8407         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8408         value.
8409
8410 2002-02-20  Christopher Faylor  <cgf@redhat.com>
8411
8412         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8413         fails.
8414
8415 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8416
8417         * jv-exp.y (parse_number): Change type of implicit longs
8418         to builtin_type_uint64.
8419
8420 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8421
8422         * gdbserver/linux-low.c (mywait): Change argument to waitpid
8423         to be an integer instead of a `union wait'.
8424
8425 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8426
8427         * mips-linux-nat.c: Call the operating system GNU/Linux.
8428         * mips-linux-tdep.c: Likewise.
8429         * mips-tdep.c: Likewise.
8430
8431 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8432
8433         Fix PR gdb/265.
8434         * jv-exp.y (parse_number): Handle 64-bit integers.
8435
8436 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8437
8438         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
8439         AC_STDC_HEADERS to AC_HEADER_STDC.
8440         * gdbserver/configure: Regenerated.
8441
8442 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
8443
8444         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8445         is defined.
8446         * sparc-tdep.c (get_longjmp_target): Likewise.
8447
8448 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
8449
8450         * News: Add news about ARM and Multi-arch.  Mention the new target
8451         arm*-*-netbsd*.
8452
8453 2002-02-19  Jim Blandy  <jimb@redhat.com>
8454
8455         * stabsread.c (error_type_complaint): Improve error message.
8456
8457 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
8458
8459         * gdbserver/README: Update documentation.
8460         * gdbserver/configure.in: Update configury to match documentation.
8461         * gdbserver/Makefile.in: Likewise.
8462         * gdbserver/configure: Regenerated.
8463         * gdbserver/aclocal.m4: New file, generated by aclocal.
8464         * gdbserver/config.in: New file, generated by autoheader.
8465
8466 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8467
8468         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8469         armnbsd-nat.c.
8470
8471 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8472
8473         * arm-tdep.h (enum arm_float_model): New enum.
8474         (struct gdbarch_tdep): Add fp_model.
8475         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
8476         up floating-point conversions until we know the floating-point model
8477         in use by the inferior.  Don't complain about being unable to
8478         determine the ABI of the inferior when we don't have one.
8479         (arm_extract_return_value): Support different floating-point models.
8480         (arm_store_return_value): Likewise.
8481         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8482         ARM_FLOAT_SOFT.
8483         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8484
8485 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8486
8487         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8488         of ``current_gdbarch''.
8489
8490 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8491
8492         * armnbsd-nat.c : ANSIfy all function declarations.
8493         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8494         (fetch_inferior_registers): Re-implement in terms of above.
8495         (store_register, store_regs, store_fp_register, store_fp_regs): New.
8496         (store_inferior_registers): Re-implement in terms of above.
8497
8498 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8499
8500         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8501         kernel.
8502         * arm-linux-tdep.c: Likewise.
8503         * config/arm/tm-linux.h: Likewise.
8504
8505 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8506
8507         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8508         * config/arm/nbsd.mt (TM_FILE): Delete.
8509         * config/arm/tm-nbsd.h: Delete.
8510
8511 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8512
8513         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8514         Initialize CALL_DUMMY_LENGTH.
8515
8516 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8517
8518         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8519         function.
8520         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8521         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8522         defines one thing and that is incorrect for this port.
8523         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8524
8525 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8526
8527         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8528
8529 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8530
8531         * win32-nat.c (display_selector): New function. Displays information
8532         about the information returned by GetThreadSelectorEntry API function.
8533         (display_selectors): New function. Displays the infomation of
8534         the selector given as argument, or of CS, DS ans FS selectors
8535         if no argument is given.
8536         ( _initialize_inftarg): Add "w32" as info prefix command.
8537         Add "info w32 selector" as command calling display_selectors.
8538
8539 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8540
8541         * i386-tdep.c (get_longjmp_target): Fix compilation failure
8542         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8543         if not defined.
8544
8545 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8546
8547         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8548
8549 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8550
8551         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8552         (arm_fix_call_dummy): Call it.
8553         (arm_call_dummy_breakpoint_offset): Delete.
8554         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8555         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8556
8557 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
8558
8559         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8560         Default to func_frame_chain_valid.
8561         * gdbarch.h, gdbarch.c: Re-generate.
8562         * frame.h (FRAME_CHAIN_VALID): Delete definition.
8563
8564 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
8565
8566         * ppc-linux-nat.c: Update copyright.
8567         (fetch_register, store_register): Add tid parameter, don't compute
8568         tid here.
8569         (fetch_ppc_registers, store_ppc_registers): Add tid
8570         parameter. Pass it along to callees.
8571         (fetch_inferior_registers, store_inferior_registers): Compute tid
8572         here, and pass it to calleed functions.
8573         (fill_gregset, supply_fpregset): Clean up formatting.
8574
8575 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8576
8577         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8578         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8579
8580 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8581
8582         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8583         * gdbarch.c gdbarch.h: Regenerate.
8584         * breakpoint.c (create_longjmp_breakpoint): Always compile this
8585         function.
8586         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8587         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8588         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8589
8590         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8591         * arm-tdep.c (arm_get_longjmp_target): New function.
8592         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
8593         this to a positive value register arm_get_longjmp_target as the
8594         longjmp handler.
8595         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8596         (arm_linux_init_abi): Set up longjmp description in tdep.
8597         * armnbsd-nat.c (get_longjmp_target): Delete.
8598         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8599         description in tdep.
8600         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8601         (get_longjmp_target): Delete declaration.
8602         (GET_LONGJMP_TARGET): Delete.
8603         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8604         (GET_LONGJMP_TARGET): Delete.
8605
8606 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
8607
8608         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
8609         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8610         of ``current_gdbarch''.
8611
8612 2002-02-17  Tom Tromey  <tromey@redhat.com>
8613
8614         * cli/cli-cmds.c (compare_strings): New function.
8615         (complete_command): Only print each unique item once.
8616         * completer.h (complete_line): Declare.
8617         * completer.c (complete_line): New function.
8618         (line_completion_function): Use it.
8619
8620 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
8621
8622         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8623         * gdbarch.h, gdbarch.c: Re-generate.
8624
8625 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8626
8627         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8628
8629 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8630
8631         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8632         * valops.c (value_arg_coerce): Don't take the address of a reference
8633         to convert an argument to a reference.
8634
8635 2002-02-15  Christopher Faylor  <cgf@redhat.com>
8636
8637         * win32-nat.c (get_image_name): New function.
8638         (handle_load_dll): Use get_image_name function.
8639         (get_child_debug_event): Avoid registering debug events until possibly
8640         execed process is started.
8641         (child_create_inferior): Allow invocation via shell so that command
8642         line redirection, etc.  works ok.
8643         (_initialize_inftarg): Add new command: "set shell" to control whether
8644         a shell is used to start a process.
8645
8646 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8647
8648         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8649         instead of find_register_by_number.
8650         (cannot_store_register): Likewise.
8651
8652 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8653
8654         * dwarf2read.c: Replace fprintf (stderr, ...) by
8655         fprintf_unfiltered (gdb_stderr, ...).
8656
8657 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8658
8659         * gdbserver/gdbserver.1: Document --attach.
8660
8661 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8662
8663         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8664         descriptions.
8665         * arm-tdep.c (arm_default_arm_le_breakpoint)
8666         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8667         (arm_default_thumb_be_breakpoint): New.  Initialize them from
8668         traditional breakpoint defines.
8669         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8670         (arm_gdbarch_init): Initialize new breakpoint variables.
8671         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8672         (arm_linux_init_abi): Initialize linux-specific breakpoint.
8673         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8674         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8675         code out to ...
8676         (arm_netbsd_init_abi_common): ... here; new function.
8677         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8678         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8679         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8680         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8681
8682 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8683
8684         * arm-tdep.h (enum arm_abi): New enum.
8685         (struct gdbarch_tdep): New structure.
8686         (LOWEST_PC): Provide a default.
8687         (arm_gdbarch_register_os_abi): Declare new function.
8688         * arm-tdep.c (arm_abi_names): New array.
8689         (process_note_abi_tag_sections): New function.
8690         (get_elfosabi): New function.
8691         (arm_gdbarch_register_os_abi): New function.
8692         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
8693         support for that ABI has been built in, then call the appropriate
8694         configuration routine.  Use gdbarch_num_regs() to get the number
8695         of registers.
8696         (arm_dump_tdep): New function.
8697         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8698         place-holder functions.
8699         (_initialize_arm_tdep): Register them.
8700         * config/arm/tm-arm.h (LOWEST_PC): Delete.
8701
8702         * armnbsd-tdep.c: New file.
8703         * Makefile.in (armnbsd-tdep.o): Add dependencies.
8704         * config/arm/nbsd.mt (TDEPFILES): Add it.
8705         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8706
8707         * armnbsd-nat.c: Include regcache.h.
8708         * Makefile.in (armnbsd-nat.o): Update dependency list.
8709
8710         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8711
8712 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8713
8714         * gdbserver/Makefile.in: Fix typos in target rules.
8715
8716 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8717
8718         Fix part of PR gdb/267.
8719         * linespec.c (find_methods): Handle constructors specially for now.
8720
8721 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
8722
8723         * arm-tdep.c (arm_push_arguments): Eliminate special float type
8724         handling.
8725         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8726         standard_coerce_float_to_double().
8727
8728 2002-02-14  Christopher Faylor  <cgf@redhat.com>
8729
8730         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8731         GDBINIT_FILENAME.
8732
8733 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
8734
8735         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8736         find_variant_by_name, because it confuses the multiarch
8737         framework. Return NULL if there isn't an architecture with the
8738         user supplied name, instead of forcing a different one without
8739         recording the change with the multiarch machinery.
8740         (find_variant_by_name): Delete.
8741
8742 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8743
8744         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8745         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8746
8747 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
8748
8749         * stack.c (print_frame_info_base): When calling
8750         print_frame_info_listing_hook, set current_source_symtab.
8751
8752 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8753
8754         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8755         and remove unused $(INCLUDE_DIR).
8756         Add regcache.c to OBS.
8757         Add generated register protocol files to clean target.
8758         Update dependencies for new objects, obsolete old target code.
8759
8760         * gdbserver/linux-low.c: Remove all platform-specific code to
8761         new files.  Remove various dead code.  Update to use regcache
8762         functionality.
8763         * gdbserver/remote-utils.c (fromhex): Add return statement
8764         to quiet warning.
8765         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8766         constant.
8767         (input_interrupt): Add integer parameter to match prototype
8768         of a signal handler.
8769         (outreg): Use register_data ().
8770         (prepare_resume_reply): Use gdbserver_expedite_regs.
8771         * gdbserver/server.c (main): Dynamically allocate own_buf because
8772         PBUFSIZ is no longer constant.  Use registers_to_string () and
8773         registers_from_string ().
8774         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
8775         for error (), fatal (), and warning ().  Update definition of
8776         PBUFSIZ to use regcache functionality.  Add include guard.
8777         * gdbserver/utils.c (fatal): Add missing ``const''.
8778         (warning): New function.
8779
8780         * regformats/regdat.sh: Include "regcache.h" in generated files.
8781         Provide init_registers () function.
8782         * regformats/regdef.h: Add prototype for set_register_cache ().
8783         Add include guard.
8784
8785         * gdbserver/linux-arm-low.c: New file.
8786         * gdbserver/linux-i386-low.c: New file.
8787         * gdbserver/linux-ia64-low.c: New file.
8788         * gdbserver/linux-m68k-low.c: New file.
8789         * gdbserver/linux-mips-low.c: New file.
8790         * gdbserver/linux-ppc-low.c: New file.
8791         * gdbserver/linux-sh-low.c: New file.
8792
8793         * gdbserver/regcache.c: New file.
8794         * gdbserver/regcache.h: New file.
8795
8796         * gdbserver/low-linux.c: Removed obsolete file.
8797
8798 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8799
8800         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8801         * config/i386/linux.mt: Likewise.
8802         * config/ia64/linux.mt: Likewise.
8803         * config/m68k/linux.mh: Likewise.
8804         * config/powerpc/linux.mh: Likewise.
8805         * config/mips/linux.mt: Likewise.
8806
8807         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8808
8809         * config/i386/i386lynx.mh: Mark gdbserver variables
8810         as (currently) obsolete for this target.
8811         * config/i386/nbsd.mt: Likewise.
8812         * config/i386/nbsdelf.mt: Likewise.
8813         * config/m32r/m32r.mt: Likewise.
8814         * config/m68k/m68klynx.mh: Likewise.
8815         * config/m68k/nbsd.mt: Likewise.
8816         * config/m68k/sun3os4.mh: Likewise.
8817         * config/mips/vr5000.mt: Likewise.
8818         * config/ns32k/nbsd.mt: Likewise.
8819         * config/pa/hppabsd.mh: Likewise.
8820         * config/pa/hppaosf.mh: Likewise.
8821         * config/powerpc/nbsd.mt: Likewise.
8822         * config/rs6000/rs6000lynx.mh: Likewise.
8823         * config/s390/s390.mt: Likewise.
8824         * config/s390/s390x.mt: Likewise.
8825         * config/sparc/sparclynx.mh: Likewise.
8826         * config/sparc/sun4os4.mh: Likewise.
8827         * config/i386/x86-64linux.mt: Likewise.
8828         * config/sparc/linux.mh: Likewise.
8829
8830 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8831
8832         * configure.tgt: Configure gdbserver only for known working
8833         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
8834         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
8835         SUBDIRS if it is configured.  Update comment for ${nativefile}.
8836         * configure: Regenerated.
8837
8838 2002-02-13  Michael Snyder  <msnyder@redhat.com>
8839
8840         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8841
8842         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8843         (default_gcore_mach): Just return 0, work around a problem in bfd.
8844         (default_gcore_target): OK to return NULL if exec_bfd is null.
8845         (make_mem_sec): Use a cast, avoid a warning.
8846
8847         * procfs.c (find_memory_regions_callback): Use a cast instead of
8848         calling host_pointer_to_address (which complains if
8849         sizeof (host pointer) != sizeof (target pointer)).
8850         (procfs_make_note_section): Avoid overflow in psargs string.
8851
8852         * procfs.c (procfs_make_note_section): Make the default
8853         implementation return an error.
8854
8855 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
8856
8857         * procfs.c (procfs_make_note_section): Provide a default definition
8858         (for alpha-dec-osf4.0f). Fix typos.
8859
8860 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
8861
8862         * linux-proc.c: Add include of regcache.h.
8863         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8864
8865 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
8866
8867         From 2002-01-18 Greg McGary <greg@mcgary.org>:
8868         * memattr.c (create_mem_region): Disallow useless empty region.
8869         Regions are half-open intervals, so allow [A..B) [B..C) as
8870         non-overlapping.
8871
8872 2002-02-13  Michael Chastain <mec@shout.net>
8873
8874         * defs.h: Kill CONST_PTR.
8875         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8876         * c-lang.c (c_builtin_types): Likewise.
8877         * ch-lang.c (ch_builtin_types): Likewise.
8878         * f-lang.c (f_builtin_types): Likewise.
8879         * language.c (unknown_builtin_types): Likewise.
8880         * m2-lang.c (m2_builtin_types): Likewise.
8881         * p-lang.c (pascal_builtin_types): Likewise.
8882         * scm-lang.c (c_builtin_types): Likewise.
8883
8884 2002-02-13  Keith Seitz  <keiths@redhat.com>
8885
8886         * arm-tdep.h (arm_get_next_pc): Add declaration.
8887
8888 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
8889
8890         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
8891         with other related struct-returning functions.
8892         (arm_extract_struct_value_address): New function.
8893         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
8894         initialize float_format, double_format and long_double_format as
8895         appropriate to the endianness of the target.
8896         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8897         (arm_use_struct_convention): Delete declaration.
8898         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8899
8900 2002-02-13  Keith Seitz  <keiths@redhat.com>
8901
8902         * defs.h (core_addr_to_string_nz): New function.
8903
8904 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
8905
8906         Apply missing bits of 2002-01-15 patch.
8907         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8908         (fill_fpregset): Use i387_fill_fsave.
8909
8910 2002-02-12  Keith Seitz  <keiths@redhat.com>
8911
8912         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8913         (core_addr_to_string_nz): New function.
8914
8915 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8916
8917         * arm-linux-nat.c: Really include arm-tdep.h.
8918         * config/arm/tm-linux.h (struct type, struct value): Declare.
8919
8920 2002-02-11  Michael Snyder  <msnyder@redhat.com>
8921
8922         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8923         (gcore section): Ifdef for Solaris and Unixware only.
8924         (procfs_do_thread_registers): Unixware needs one lwpstatus
8925         per thread (not one prstatus or pstatus).
8926         (procfs_make_note_section): Iterate only over kernel threads (lwps),
8927         not over all gdb threads.  For unixware, call elfcore_write_pstatus
8928         once before iterating over threads.
8929
8930 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8931
8932         * arm-tdep.h: New file.
8933         * arm-tdep.c: Include arm-tdep.h.
8934         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8935         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8936         (arm_print_float_info, arm_register_type, convert_to_extended)
8937         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8938         (arm_extract_return_value, arm_register_name): Make static.
8939         (arm_software_single_step): Similarly.  Fix types in declaration.
8940         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8941         (arm_store_return_value, arm_store_struct_return): New functions.
8942         (arm_gdbarch_init): Register the above functions.  Also register
8943         call_dummy_start_offset, sizeof_call_dummy_words,
8944         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8945         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8946         max_register_virtual_size, register_size.  Set up
8947         prologue_cache.saved_regs here, rather than ...
8948         (_initialize_arm_tdep): ... here.
8949         * config/arm/tm-arm.h (struct type, struct value): Delete forward
8950         declarations.
8951         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8952         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8953         (arm_print_float_info, arm_register_type, convert_to_extended)
8954         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8955         (arm_extract_return_value, arm_register_name): Delete declarations.
8956         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8957         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8958         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8959         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8960         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8961         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8962         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8963         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8964         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8965         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8966         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8967         (arm_get_next_pc): No-longer static -- these are needed by the RDI
8968         interface.
8969         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8970         * remote-rdi.c remote-rdp.c: Likewise.
8971         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8972         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8973         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8974         definition.
8975
8976         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8977         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8978         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8979         from non-ARM_ prefixed definitions.
8980         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8981         all uses of above.
8982         * remote-rdi.c remote-rdp.c: Likewise.
8983         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8984
8985 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8986
8987         * arm-tdep.c (arm_frameless_function_invocation)
8988         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8989         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8990         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8991         (arm_pop_frame, arm_get_next_pc): Make static.
8992         (arm_gdbarch_init): Register above in gdbarch structure.
8993         (arm_read_fp): Renamed from arm_target_read_fp.
8994         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8995         * config/arm/tm-arm.h (arm_frameless_function_invocation)
8996         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8997         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8998         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8999         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9000         (arm_pc_is_thumb_dummy): Delete declarations.
9001         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9002         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9003         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9004         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9005
9006 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
9007
9008         * symtab.c (compare_search_syms): New function.
9009         (sort_search_symbols): New function.
9010         (search_symbols): Sort symbols after searching rather than
9011         before.
9012
9013 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9014
9015         * NEWS: Linux -> GNU/Linux.
9016
9017 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9018
9019         * gdbarch.sh: For for level one methods, disallow a definition
9020         when partially multi-arched.  Add comments explaining rationale.
9021         * gdbarch.h: Re-generate.
9022
9023 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9024
9025         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9026         multi-arch partial.
9027
9028 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9029
9030         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
9031         field.  Use diff -u.
9032         * gdbarch.c: Re-generate.
9033
9034 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9035
9036         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9037         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9038         partial.
9039
9040 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9041
9042         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9043         multi-arch partial.
9044         (PUSH_ARGUMENTS): Switch to using predefault.
9045         * gdbarch.c: Regenerate.
9046
9047 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9048
9049         * valops.c (PUSH_ARGUMENTS): Delete definition.
9050         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9051         partial.  Default to default_push_arguments.
9052         * gdbarch.h, gdbarch.c: Regenerate.
9053
9054 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9055
9056         * defs.h (throw_exception): Rename return_to_top_level.  Update
9057         comments.
9058         * utils.c (error_stream, internal_verror, quit): Ditto.
9059         * top.c (throw_exception, catcher): Ditto.
9060         * sparclet-rom.c (sparclet_load): Ditto.
9061         * remote.c (interrupt_query, minitelnet): Ditto.
9062         * remote-sds.c (interrupt_query): Ditto.
9063         * remote-mips.c (mips_error, mips_kill): Ditto.
9064         * ocd.c (interrupt_query): Ditto.
9065         * monitor.c (monitor_interrupt_query): Ditto.
9066         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9067         * target.h: Update comment.
9068
9069         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9070
9071 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9072
9073         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9074         default_double_format.
9075         * gdbarch.h, gdbarch.c: Re-generate.
9076         * findvar.c (floatformat_unknown): Delete variable definition.
9077         * doublest.h (floatformat_unknown): Delete variable declaration.
9078
9079 2002-02-09  Jim Blandy  <jimb@redhat.com>
9080
9081         * stabsread.c (read_type): Add code to parse Sun's syntax for
9082         prototyped function types.
9083
9084 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9085
9086         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9087         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9088
9089 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9090
9091         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9092         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
9093         now _initialize_xcoffsolib gets called again and overrides the
9094         commands from solib.c in a native configuration.
9095
9096 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
9097
9098         * doublest.c (store_typed_floating): Don't try to return a value.
9099         Fixes PR gdb/290.
9100
9101 2002-02-08  Jim Blandy  <jimb@redhat.com>
9102
9103         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9104         is prototyped and has no arguments, print its argument list as
9105         `(void)'.
9106
9107 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9108
9109         * MAINTAINERS (write-after-approval): Add myself.
9110         (paper-trail): I've escaped!
9111
9112 2002-02-08  Christopher Faylor  <cgf@redhat.com>
9113
9114         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9115         changes.
9116         (_initialize_check_for_gdb_ini): Ditto.
9117
9118 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
9119
9120         * win32-nat.c (cygwin_pid_to_str): Fix typo.
9121         xaprintf -> xasprintf.
9122
9123 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
9124
9125         * win32-nat.c: Remove use of printf and sprintf functions.
9126
9127 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
9128
9129         * arm-tdep.c (arm_frame_chain_valid): Make static.
9130         (arm_push_arguments): Likewise.
9131         (arm_gdbarch_init): New function.
9132         (_initialize_arm_tdep): Call it.
9133         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9134         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9135         (FRAME_CHAIN_VALID): Delete.
9136         (arm_frame_chain_valid): Delete declaration.
9137         (PUSH_ARGUMENTS): Delete.
9138         (arm_push_arguments): Delete declaration.
9139         (CALL_DUMMY_P): Delete.
9140
9141 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
9142             Corinna Vinschen  <vinschen@redhat.com>
9143
9144         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9145         on builtin float types.
9146
9147 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9148
9149         * utils.c: Include <curses.h> before "bfd.h".
9150         * tui/tui-hooks.c: Likewise.
9151         * tui/tui.c: Likewise.
9152         * tui/tuiCommand.c: Likewise.
9153         * tui/tuiData.c: Likewise.
9154         * tui/tuiDataWin.c: Likewise.
9155         * tui/tuiDisassem.c: Likewise.
9156         * tui/tuiGeneralWin.c: Likewise.
9157         * tui/tuiIO.c: Likewise.
9158         * tui/tuiLayout.c: Likewise.
9159         * tui/tuiRegs.c: Likewise.
9160         * tui/tuiSource.c: Likewise.
9161         * tui/tuiSourceWin.c: Likewise.
9162         * tui/tuiStack.c: Likewise.
9163         * tui/tuiWin.c: Likewise.
9164
9165 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
9166
9167         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9168         to include space for pseudoregs as well. Update loops accordingly.
9169         (sh_fp_frame_init_saved_regs): Ditto.
9170         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9171
9172 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
9173
9174         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9175         Add Richard Earnshaw to Arm maintainers.
9176
9177 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
9178
9179         * defs.h (warning_begin): Delete declaration.
9180
9181         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9182         Delete macro.
9183
9184 2002-02-07  Michael Snyder  <msnyder@redhat.com>
9185
9186         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9187         Logic bug, remove misplaced else.
9188
9189 2002-02-07  Klee Dienes  <klee@apple.com>
9190
9191         * fork-inferior.c (fork_inferior): Add '!' to the list of
9192         characters that need to be quoted when building a string for the
9193         shell.  Quote '!' specifically with a backslash, since CSH chokes
9194         when trying to evaluate "str!str".
9195
9196 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
9197
9198         * rdi-share/host.h: Only provide a typedef for bool if it is not
9199         defined.
9200
9201 2002-02-04  Michael Snyder  <msnyder@redhat.com>
9202
9203         * breakpoint.h (enum bptype): Add new overlay event bp type.
9204         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9205
9206         * breakpoint.c (create_internal_breakpoint): New function.
9207         (internal_breakpoint_number): Moved into create_internal_breakpoint.
9208         (create_longjmp_breakpoint): Use create_internal_breakpoint.
9209         (create_thread_event_breakpoint): Ditto.
9210         (create_solib_event_breakpoint): Ditto.
9211         (create_overlay_event_breakpoint): New function.
9212         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9213         (update_breakpoints_after_exec): Delete and re-initialize
9214         overlay event breakpoints after an exec.  Add FIXME comment
9215         about longjmp breakpoint.
9216         (print_it_typical): Ignore overlay event breakpoints.
9217         (print_one_breakpoint): Ditto.
9218         (mention): Ditto.
9219         (bpstat_what): Do not stop for overlay event breakpoints.
9220         (delete_breakpoint): Don't delete overlay event breakpoints.
9221         (breakpoint_re_set_one): Delete the overlay event breakpoint.
9222         (breakpoint_re_set): Re-create overlay event breakpoint.
9223
9224         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9225         (overlay_manual_command): Disable overlay breakpoints.
9226         (overlay_off_command): Disable overlay breakpoints.
9227
9228 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
9229
9230         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9231         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9232         to here from config/tm-arm.h.
9233         (coff_sym_is_thumb): Make static.
9234         (arm_elf_make_msymbol_special): New function.
9235         (arm_coff_make_msymbol_special): New function.
9236         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9237         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9238         (coff_sym_is_thumb): Delete declaration.
9239         (arm_elf_make_msymbol_special): Declare.
9240         (arm_coff_make_msymbol_special): Declare.
9241         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9242         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9243
9244 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
9245
9246         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9247
9248 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
9249
9250         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9251         * gdbarch.c gdbarch.h: Regenerate.
9252         * arch-utils.c (default_print_float_info): New function.
9253         * arch-utils.h (default_print_float_info): Prototype it.
9254         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9255         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9256         (PRINT_FLOAT_INFO): Document it.
9257
9258         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9259         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9260         (PRINT_FLOAT_INFO): Define.
9261
9262 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
9263
9264         * win32-nat.c (_initialize_check_for_gdb_ini):
9265         Add typecast to sprintf argument to suppress a warning.
9266
9267 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
9268
9269         * win32-nat.c (last_sig): Changed type of variable to target_signal,
9270         to allow easier handling of pass state.
9271         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9272         that gives exception name and address.
9273         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9274         and set last_sig value to ourstatus->value.sig. Some missing
9275         exceptions added.
9276         (child_continue): Correctly report continue_status.
9277         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9278         TARGET_SIGNAL_0 (new default value).
9279         (child_resume): consider sig argument passed to decide if
9280         the exception should be passed to debuggee or not.
9281
9282 2002-02-05  Michael Snyder  <msnyder@redhat.com>
9283
9284         * regcache.c (fetch_register): Call target_fetch_register
9285         only if we don't call FETCH_PSEUDO_REGISTER.
9286         (store_register): Call target_store_register only if we
9287         don't call STORE_PSEUDO_REGISTER.
9288
9289 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
9290
9291         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9292         ELF_MAKE_MSYMBOL_SPECIAL.
9293         * gdbarch.c, gdbarch.h: Regenerate.
9294         * arch-utils.c (default_make_msymbol_special): New function.
9295         * arch-utils.h (default_make_msymbol_special): Export.
9296         * elfread.c (elf_symtab_read): Compile use of
9297         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9298         multiarched.
9299         * coffread.c (coff_symtab_read): Ditto, for
9300         COFF_MAKE_MSYMBOL_SPECIAL.
9301
9302 2002-02-05  Jim Blandy  <jimb@redhat.com>
9303
9304         * solib-svr4.c (svr4_truncate_ptr): New function.
9305         (svr4_relocate_section_addresses): Do the address arithmetic with
9306         the appropriate truncation for target addresses, even when
9307         CORE_ADDR is larger than a target address.
9308
9309 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9310
9311         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9312         to (int *).
9313
9314 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9315
9316         * gdbserver/linux-low.c (kill_inferior): Remove commented out
9317         code.
9318
9319 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9320
9321         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9322
9323 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9324
9325         * gdbserver/linux-low.c: Remove unused include files.
9326
9327 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9328
9329         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9330         (read_inferior_memory): Use it.
9331         (write_inferior_memory): Likewise.
9332
9333 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9334
9335         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9336         grubbing through sys_errlist.
9337
9338 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9339
9340         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9341
9342 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
9343         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9344
9345 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
9346
9347         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9348         (do_sfunc, set_cmd_sfunc): New functions.
9349
9350         * command.h (struct cmd_list_element): Add field func.
9351         * cli/cli-decode.h (struct cmd_list_element): Ditto.
9352         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9353         * cli/cli-decode.h: Ditto.
9354
9355         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9356         (help_all, help_cmd_list): Ditto.
9357         (find_cmd, complete_on_cmdlist): Ditto.
9358         * top.c (execute_command): Ditto.
9359
9360         * cli/cli-setshow.c (do_setshow_command): Call func instead of
9361         function.sfunc.
9362
9363         * infcmd.c (notice_args_read): Fix function signature.
9364
9365         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9366         * cli/cli-decode.c (add_set_cmd): Ditto.
9367         * utils.c (initialize_utils): Ditto.
9368         * maint.c (_initialize_maint_cmds): Ditto.
9369         * infrun.c (_initialize_infrun): Ditto.
9370         * demangle.c (_initialize_demangler): Ditto.
9371         * remote.c (add_packet_config_cmd): Ditto.
9372         * mips-tdep.c (_initialize_mips_tdep): Ditto.
9373         * cris-tdep.c (_initialize_cris_tdep): Ditto.
9374         * proc-api.c (_initialize_proc_api): Ditto.
9375         * kod.c (_initialize_kod): Ditto.
9376         * valprint.c (_initialize_valprint): Ditto.
9377         * top.c (init_main): Ditto.
9378         * infcmd.c (_initialize_infcmd): Ditto.
9379         * corefile.c (_initialize_core): Ditto.
9380         * arm-tdep.c (_initialize_arm_tdep): Ditto.
9381         * arch-utils.c (initialize_current_architecture): Ditto.
9382         (_initialize_gdbarch_utils): Ditto.
9383         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9384
9385         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9386         * wince.c (_initialize_inftarg): Ditto.
9387         * symfile.c (_initialize_symfile): Ditto.
9388         * mips-tdep.c (_initialize_mips_tdep): Ditto.
9389         * language.c (_initialize_language): Ditto.
9390         * arc-tdep.c (_initialize_arc_tdep): Ditto.
9391
9392 2002-02-04  Michael Snyder  <msnyder@redhat.com>
9393
9394         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9395
9396 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9397
9398         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9399         Add rules for building the register data files.
9400
9401 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9402
9403         * regformats/regdat.sh: Add braces to the definition of
9404         expedite_regs_${arch}.
9405
9406 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9407
9408         * regformats/regdef.h (struct reg): Add comment describing the
9409         requirements for offset and size fields.
9410
9411 2002-02-04  Andreas Schwab  <schwab@suse.de>
9412
9413         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9414         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9415
9416 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
9417
9418         * gdbarch.sh (copyright): Update years in generated header.
9419         (SMASH_TEXT_ADDRESS): Add rule.
9420         * gdbarch.h, gdbarch.c: Re-generate.
9421         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9422         * dbxread.c: Likewise.
9423         * dwarfread.c: Likewise.
9424         * elfread.c: Likewise.
9425         * somread.c: Likewise.
9426
9427         * arm-tdep.c (arm_smash_text_address): New function.
9428         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9429
9430 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
9431
9432         Add support for hardware watchpoints on win32 native.
9433         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9434         CONTEXT_DEBUG_REGISTERS.
9435         (dr variable): New variable. Static array containing a local copy
9436         of debug registers.
9437         (debug_registers_changed): New variable.  Reflects when debug registers
9438         are changed and need to be written to inferior.
9439         (debug_registers_used): New variable. Reflects when any debug register
9440         was set, used when new threads are created.
9441         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9442         i386-nat code.
9443         (thread_rec): Set dr array if id is the thread of current_event .
9444         (child_continue, child_resume): Change the debug registers for all
9445         threads if debug_registers_changed.
9446         (child_add_thread): Change the debug registers if debug_registers_used.
9447         * config/i386/cygwin.mh: Add use of i386-nat.o file.
9448         Link nm.h to new nm-cygwin.h file.
9449         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9450         of hardware registers.
9451
9452 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
9453
9454         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9455         Restore behavour broken by 2002-01-20 Andrew Cagney
9456         <ac131313@redhat.com> IEEE_FLOAT removal.
9457
9458 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9459
9460         * c-valprint.c (c_val_print): Pass a proper valaddr to
9461         cp_print_class_method.
9462         * valops.c (search_struct_method): If there is only one method
9463         and args is NULL, return that method.
9464
9465 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9466
9467         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9468         accessing tag_name directly.
9469
9470 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9471
9472         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9473         of accessing tag_name directly.
9474
9475 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9476
9477         PR gdb/280
9478         * gdbtypes.c (replace_type): New function.
9479         * gdbtypes.h (replace_type): Add prototype.
9480         * stabsread.c (read_type): Use replace_type.
9481
9482 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
9483
9484         * Makefile.in (memattr.o): Add missing dependencies rule.
9485
9486 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9487
9488         * breakpoint.c (break_at_finish_command): Really export.
9489         (break_at_finish_at_depth_command): Ditto.
9490         (tbreak_at_finish_command): Ditto.
9491         * hppa-tdep.c: Include completer.h.
9492         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9493         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9494
9495 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9496
9497         * utils.c (do_write): New function.
9498         (error_stream): Rewrite combining the code from error_begin and
9499         verror.
9500         (verror): Rewrite using error_stream.
9501         (error_begin): Delete function.
9502
9503 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9504
9505         * utils.c (error_begin): Make static.
9506         * defs.h (error_begin): Delete declaration.
9507
9508         * linespec.c (cplusplus_error): Replace cplusplus_hint.
9509         (decode_line_1): Use cplusplus_error instead of error_begin,
9510         cplusplus_hint and return_to_top_level.
9511         * coffread.c (coff_symfile_read): Use error instead of error_begin
9512         and return_to_top_level.
9513         * infrun.c (default_skip_permanent_breakpoint): Ditto.
9514
9515 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9516
9517         * language.h (type_error, range_error): Make string parameter
9518         constant.
9519         * language.c (warning_pre_print): Delete extern declaration.
9520         * dwarfread.c (warning_pre_print): Ditto.
9521         * language.c (type_error, range_error): Rewrite to use verror and
9522         vwarning instead of warning_begin.
9523
9524 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9525
9526         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9527         (set_ignore_count): Move misplaced comment back where it belongs.
9528
9529 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9530
9531         * command.h (NO_FUNCTION): Delete macro.
9532         * cli/cli-decode.h (NO_FUNCTION): Ditto.
9533         * top.c (execute_command): Replace NO_FUNCTION with NULL.
9534         * tracepoint.c (_initialize_tracepoint): Ditto.
9535         * cli/cli-decode.c (add_set_cmd): Ditto.
9536         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9537
9538 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9539
9540         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9541         Update ``this'' pointer when calling virtual functions.
9542
9543 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9544
9545         * breakpoint.c (create_temp_exception_breakpoint): Delete.
9546         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9547
9548 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9549
9550         * regformats/reg-arm.dat: New file.
9551         * regformats/reg-i386.dat: New file.
9552         * regformats/reg-ia64.dat: New file.
9553         * regformats/reg-m68k.dat: New file.
9554         * regformats/reg-mips.dat: New file.
9555         * regformats/reg-ppc.dat: New file.
9556         * regformats/reg-sh.dat: New file.
9557         * regformats/regdef.h: New file.
9558         * regformats/regdat.sh: New file.
9559
9560 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
9561
9562         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9563         (arm_frame_args_address, arm_frame_locals_address): New functions.
9564         (arm_frame_num_args): New function.
9565         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9566         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9567         (FRMA_NUM_ARGS): Call arm_frame_num_args.
9568
9569 2002-01-31  Michael Snyder  <msnyder@redhat.com>
9570
9571         * breakpoint.c (break_at_finish_command): Export.
9572         (break_at_finish_at_depth_command): Export.
9573         (tbreak_at_finish_command): Export.
9574         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9575         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9576         "tbreak" commands, which are HPPA specific.
9577
9578         * printcmd.c (disassemble_command): Remove an ancient
9579         artifact of an old merge.
9580
9581         * symfile.h (enum overlay_debugging_state):
9582         Define enum constant values for overlay mode.
9583         * symfile.c (overlay_debugging): Use enums instead of literals.
9584         (overlay_is_mapped, overlay_auto_command,
9585         overlay_manual_command): Ditto.
9586
9587         * breakpoint.c (insert_breakpoints, remove_breakpoint,
9588         breakpoint_here_p, breakpoint_inserted_here_p,
9589         breakpoint_thread_match, bpstat_stop_status,
9590         describe_other_breakpoints, check_duplicates, clear_command):
9591         Coding standard fixes.
9592
9593         * target.c (target_xfer_memory): Add spaces, coding standard.
9594         (do_xfer_memory): Add missing line to trust-readonly
9595         code: check bfd SEC_READONLY flag for section.
9596
9597 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
9598
9599         * PROBLEMS: Fix typo, 5.1->5.1.1.
9600
9601 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
9602
9603         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9604         data symbols, since we search based on textlow and texthigh.
9605         (find_pc_sect_symtab): Likewise.
9606
9607 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9608
9609         * defs.h (vwarning): Declare.
9610         * utils.c (vwarning): New function.
9611         (warning): Call vwarning.
9612         (warning_begin): Delete function.
9613
9614         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9615         the warning message.
9616         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9617         warning_begin.
9618
9619 2002-01-30  Michael Snyder  <msnyder@redhat.com>
9620
9621         * NEWS: Mention "set trust-readonly-sections" command.
9622         Mention generate-core-file command.
9623
9624 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9625
9626         * target.c: New command, "set trust-readonly-sections on".
9627         (do_xfer_memory): Honor the suggestion to trust readonly sections
9628         by reading them from the object file instead of from the target.
9629         (initialize_targets): Register command "set trust-readonly-sections".
9630
9631 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9632
9633         * parse.c (target_map_name_to_register): Simplify, search regs and
9634         pseudo-regs using a single loop.
9635
9636 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9637
9638         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9639
9640 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
9641
9642         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9643         * config/i386/i386v42mp.mh: Add i387-nat.o .
9644         * i386v4-nat.c: Include i387-nat.h.
9645         (supply_fpregset): Use i387_supply_fsave.
9646         (fill_fpregset): Use i387_fill_fsave.
9647
9648 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
9649
9650         * arm-tdep.c (arm_call_dummy_words): Define.
9651         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9652         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9653         (CALL_DUMMY_WORDS): Define.
9654         (arm_call_dummy_words): Declare.
9655         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9656         (arm_linux_call_dummy_words): Declare.
9657
9658 2002-01-30  Andreas Schwab  <schwab@suse.de>
9659
9660         * m68klinux-nat.c: Fix last change to use regcache_collect
9661         instead of referencing registers[] directly.
9662
9663 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9664
9665         * parse.c (target_map_name_to_register): Delete code wrapped in
9666         #ifdef REGISTER_NAME_ALIAS_HOOK.
9667
9668 2002-01-28  Michael Snyder  <msnyder@redhat.com>
9669
9670         * regcache.c (legacy_read_register_gen): Need to be able to
9671         read pseudo-register as well as real register.
9672         (legacy_write_register_gen): Ditto.
9673
9674 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9675
9676         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9677         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9678         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9679         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9680         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9681         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9682         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9683         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9684         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9685         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9686         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9687         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9688         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9689         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9690         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9691         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9692         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9693         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9694         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9695         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9696
9697 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9698
9699         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9700         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9701         (initialize_current_architecture): Update target_byte_order using
9702         information from BFD.
9703         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9704         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9705
9706 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9707
9708         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9709         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
9710
9711         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9712         #ifdef INVALID_FLOAT.
9713         * infcmd.c (do_registers_info): Ditto.
9714         * values.c (unpack_double): Ditto.  Add comment.
9715
9716         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9717         already commented out.
9718
9719 2002-01-26  Andreas Schwab  <schwab@suse.de>
9720
9721         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9722         * m68klinux-nat.c: Update ptrace interface for fetching/storing
9723         registers and add support for PTRACE_GETREGS.
9724
9725 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
9726
9727         GDB 5.1.1 released from 5.1 branch.
9728         * NEWS: Add 5.1.1 news.
9729         * README: Sync with 5.1 branch.
9730
9731 2002-01-23  Fred Fish  <fnf@redhat.com>
9732
9733         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9734         stabstring on initial malloc.  Reallocing will copy it for us,
9735         if necessary.
9736
9737 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9738
9739         * Makefile.in (hpread_h): Delete.
9740         (HFILES_NO_SRCDIR): Remove hpread.h.
9741         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9742         (hpread.o): Update dependencies.
9743         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9744
9745         * hp-psymtab-read.c: Remove file.
9746         * hp-symtab-read.c: Remove file.
9747         * hpread.h: Remove file.
9748
9749         * hpread.c: Merge all contents of hp-psymtab-read.c,
9750         hp-symtab-read.c and hpread.h into this file, as it was prior to
9751         January 1999.
9752
9753         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9754         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9755         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9756         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9757
9758 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9759
9760         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9761         fill_gregset): Call gdbarch_tdep() just once, assign result to
9762         variable and use that, instead of calling the function several
9763         times.
9764
9765 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9766
9767         * configure.host: Accept sparcv9 as alias for sparc64.
9768         * configure.tgt: Likewise.
9769
9770 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
9771
9772         * solib-aix5.c (build_so_list_from_mapfile)
9773         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9774         arguments is not reversed.
9775         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9776         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9777
9778 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
9779
9780         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9781         modified version of obsolete sh_fetch_pseudo_register.
9782         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9783         (sh4_register_read): New function.
9784         (sh_pseudo_register_write): New function. Renamed and modified
9785         version of obsolete sh_store_pseudo_register.
9786         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9787         (sh4_register_write): New function.
9788         (sh_gdbarch_init): Remove setting of gdbarch function
9789         fetch_pseudo_register and store_pseudo_register. Remove setting of
9790         register_convert_to_raw, register_convert_to_virtual,
9791         register_convertible.
9792         (sh_sh4_register_convertible): Delete. No longer needed. All is
9793         taken care by architecture specific functions
9794         register_read/register_write.
9795         (sh_sh4_register_convert_to_virtual): Make static.
9796         (sh_sh4_register_convert_to_raw): Ditto.
9797
9798 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
9799
9800         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9801         (floatformat_is_nan, floatformat_mantissa): Ditto.
9802
9803         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9804         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9805         builtin_type_ieee_double_little,
9806         builtin_type_ieee_double_littlebyte_bigword,
9807         builtin_type_m68881_ext, builtin_type_i960_ext,
9808         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9809         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9810         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9811         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9812
9813 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
9814
9815         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9816         parameter.  Set frameless flag if it exists and depended of
9817         whether the scanned function is frameless or not.
9818         (xstormy16_skip_prologue): If function is frameless, return
9819         result of xstormy16_scan_prologue().
9820         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9821         call.
9822
9823 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
9824
9825         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9826         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9827         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9828         sh_sh4_register_byte, sh_sh4_register_raw_size,
9829         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9830         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9831         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9832         sh_store_pseudo_register, sh_do_pseudo_register): Call
9833         gdbarch_tdep() just once, assign result to variable and use that,
9834         instead of calling the function several times.
9835
9836 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
9837
9838         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9839         macros instead of LAST_FPU_CTRL_REGNUM.
9840         (store_register): Likewise.
9841
9842 2002-01-21  Jim Blandy  <jimb@redhat.com>
9843
9844         * infcmd.c (run_command): Check that the `exec' target layer's BFD
9845         is up-to-date before running the program, not just when a program
9846         exits.
9847
9848 2002-01-21  Fred Fish  <fnf@redhat.com>
9849
9850         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9851         when we have found all instructions we are looking for.
9852
9853 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9854
9855         * arm-tdep.c (arm_register_name): New function.
9856         (arm_registers_names): Make static.
9857         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9858         (arm_register_name): Declare.
9859         (REGISTER_NAME): Use it.
9860
9861 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9862             Kevin Buettner  <kevinb@redhat.com>
9863
9864         Convert arm targets to new FRAME interface.
9865         * arm-tdep.c (struct frame_extra_info): Remove fsr.
9866         (arm_frame_find_save_regs): Delete.
9867         (arm_frame_init_saved_regs): New.
9868         (arm_init_extra_frame_info): Alloacte saved_regs as required.
9869         Allocate extra_info as required.  Convert all uses of fsr.regs
9870         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9871         to use extra_info.
9872         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9873         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9874         (check_prologue_cache, save_prologue_cache): Likewise.
9875         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9876         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9877         (FRAME_FIND_SAVED_REGS): Delete.
9878         (arm_frame_find_saved_regs): Delete prototype.
9879         (arm_frame_init_saved_regs): New prototype.
9880         (FRAME_INIT_SAVED_REGS): Define.
9881
9882 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9883
9884         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9885
9886 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9887
9888         From Jeff Law <law@redhat.com>:
9889         * infttrace.c: Include <sys/pstat.h>.
9890         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
9891         exec file if the ttrace equivalent fails.
9892
9893 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9894
9895         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9896         (closeLogFile): Ditto.
9897
9898 2002-01-20  Michael Chastain  <mec@shout.net>
9899
9900         * top.c (print_gdb_version): Bump copyright year to 2002.
9901
9902 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9903
9904         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9905         Zannoni and Eli Zaretskii.
9906
9907 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9908
9909         * buildsym.c: Update copyright years.
9910         * c-typeprint.c: Likewise.
9911         * dwarf2read.c: Likewise.
9912         * f-typeprint.c: Likewise.
9913         * gdbtypes.c: Likewise.
9914         * gdbtypes.h: Likewise.
9915         * hp-symtab-read.c: Likewise.
9916         * hpread.c: Likewise.
9917         * mdebugread.c: Likewise.
9918         * p-typeprint.c: Likewise.
9919
9920 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9921
9922         * remote-sim.c (gdbsim_open): Simplify code testing the macro
9923         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
9924         byte-order selectable.
9925         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9926         * arch-utils.c: Ditto.
9927         (set_endian): Ditto.
9928         (set_endian_from_file): Ditto.
9929         * gdbserver/low-sim.c (create_inferior): Ditto.
9930         * gdbarch.sh: Ditto.
9931         * gdbarch.h: Re-generate.
9932         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9933         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9934         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9935         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9936         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9937         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9938         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9939         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9940         macro definition.
9941         * config/mips/tm-wince.h: Remove #undef of macro
9942         TARGET_BYTE_ORDER_SELECTABLE.
9943         * config/sh/tm-wince.h: Ditto.
9944
9945 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9946
9947         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9948         member function fields.  Add accessor macro
9949         TYPE_FN_FIELD_ARTIFICIAL.
9950         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9951         * c-typeprint.c (c_type_print_base): Skip artificial member
9952         functions.
9953
9954 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9955
9956         * f-typeprint.c: Delete unused function f_type_print_args.
9957         * p-typeprint.c: Delete unused function pascal_type_print_args.
9958
9959 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9960
9961         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
9962         comment.  Add ``artificial'' to ``union field_location''.
9963
9964         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9965
9966         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9967         * mdebugread.c (parse_symbol): Likewise.
9968         * stabsread.c (define_symbol): Likewise.
9969         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9970         initializing TYPE_FIELD_BITPOS to n (obsolete).
9971         (hpread_doc_function_type): Likewise.
9972         * hpread.c (hpread_function_type): Likewise.
9973
9974 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9975
9976         * configure.in (host_makefile_frag): Only require a host makefile
9977         fragment when a native build.
9978         * configure: Re-generate.
9979
9980 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9981
9982         * doublest.h (floatformat_from_type): Declare.
9983         * doublest.c (floatformat_from_type): New function.
9984         (convert_typed_floating): Use.
9985
9986         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9987         call to function floatformat_from_type.
9988
9989         * gdbarch.sh (IEEE_FLOAT): Delete.
9990         * gdbarch.h, gdbarch.c: Re-generate.
9991         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9992         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9993         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9994         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9995         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9996         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9997         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9998         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9999         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10000         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10001         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10002         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10003
10004         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10005         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10006         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10007         * sh-tdep.c (sh_gdbarch_init): Ditto.
10008         * mips-tdep.c (mips_gdbarch_init): Ditto.
10009         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10010         * cris-tdep.c (cris_gdbarch_init): Ditto.
10011
10012 2002-01-20  Jiri Smid  <smid@suse.cz>
10013
10014         * configure.host, configure.tgt: Support x86-64.
10015         * NEWS: Note new target x86-64.
10016
10017         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10018         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10019         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10020         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10021         x86-64-linux-nat.o): Fix dependencies.
10022
10023 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10024
10025         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10026         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10027         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10028         * config/sparc/xm-sun4os4.h: Delete file.
10029         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10030
10031 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10032
10033         * config/sparc/sparclynx.mh (XM_FILE): Delete.
10034         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10035         * config/m68k/m68klynx.mh (XM_FILE): Delete.
10036         * config/i386/i386lynx.mh (XM_FILE): Delete.
10037         * config/rs6000/xm-rs6000ly.h: Delete file.
10038         * config/sparc/xm-sparclynx.h: Delete file.
10039         * config/m68k/xm-m68klynx.h: Delete file.
10040         * config/i386/xm-i386lynx.h: Delete file.
10041         * config/xm-lynx.h: Delete file.
10042         * config/djgpp/fnchange.lst: Update.
10043
10044 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10045
10046         * alpha-tdep.c (alpha_register_byte): New function.
10047         (alpha_register_raw_size): Ditto.
10048         (alpha_register_virtual_size): Ditto.
10049         (alpha_skip_prologue_internal): Renamed from
10050         alpha_skip_prologue.
10051         (alpha_skip_prologue): New version that calls
10052         alpha_skip_prologue_internal.
10053         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10054         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10055         second argument from alpha_skip_prologue.
10056         (REGISTER_BYTE): Use alpha_register_byte.
10057         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10058         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10059         (FRAMELESS_FUNCTION_INVOCATION): Use
10060         generic_frameless_function_invocation_not.
10061         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10062         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10063
10064 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10065
10066         * config/mips/xm-news-mips.h: Delete file.
10067         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10068
10069         * config/m88k/xm-m88k.h: Delete file.
10070         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10071         * config/m88k/xm-delta88v4.h: Ditto.
10072         * config/m88k/xm-delta88.h: Ditto.
10073
10074         * config/alpha/xm-fbsd.h: Delete file.
10075         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10076
10077         * config/sparc/xm-sparc.h: Delete file.
10078         * Makefile.in (xm-sun4os4.h): Delete dependency.
10079         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10080         * config/sparc/xm-sun4os4.h: Ditto.
10081         * config/sparc/xm-linux.h: Ditto.
10082
10083         * config/i386/xm-windows.h: Delete file.
10084
10085 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10086
10087         * utils.c: Include <sys/param.h> for MAXPATHLEN.
10088         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10089
10090 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10091
10092         * alpha-tdep.c (alpha_call_dummy_words): New.
10093         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10094         (CALL_DUMMY_P): Define.
10095         (CALL_DUMMY_WORDS): Define.
10096         (SIZEOF_CALL_DUMMY_WORDS): Define.
10097
10098 2002-01-19  Per Bothner  <per@bothner.com>
10099
10100         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
10101         isn't NULL, which can happen with some gcj-3.x-produced code.
10102
10103 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10104
10105         * alpha-tdep.c (alpha_register_virtual_type): New function.
10106         (alpha_init_frame_pc_first): Ditto.
10107         (alpha_fix_call_dummy): Ditto.
10108         (alpha_store_struct_return): Ditto.
10109         (alpha_extract_struct_value_address): Ditto.
10110         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10111         alpha_register_virtual_type.
10112         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10113         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10114         alpha_extract_struct_value_address.
10115         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10116         (INIT_FRAME_PC): Use init_frame_pc_noop.
10117         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10118
10119 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
10120
10121         * i386gnu-nat.c: Include "i386-tdep.h".
10122         (fetch_fpregs): Simplify code dealing with uninitialized floating
10123         point states such that it doesn't require FP7_REGNUM.
10124
10125 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10126
10127         * alpha-tdep.c (frame_extra_info): New.
10128         (alpha_find_saved_regs): Make static.  Use
10129         frame->extra_info.
10130         (alpha_frame_init_saved_regs): New function.
10131         (alpha_frame_saved_pc): Use frame->extra_info.
10132         (temp_saved_regs): Don't declare as struct frame_saved_regs.
10133         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10134         (init_extra_frame_info): Rename to...
10135         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
10136         (alpha_print_extra_frame_info): New function.
10137         (alpha_frame_locals_address): Ditto.
10138         (alpha_frame_args_address): Ditto.
10139         (alpha_pop_frame): Use frame->extra_info.
10140         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10141         alpha_frame_args_address.
10142         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10143         (alpha_find_saved_regs): Remove prototype.
10144         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10145         (EXTRA_FRAME_INFO): Remove.
10146         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10147         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10148
10149 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10150
10151         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10152         (alpha_cannot_fetch_register): Ditto.
10153         (alpha_cannot_store_register): Ditto.
10154         (alpha_register_convertible): Ditto.
10155         (alpha_use_struct_convention): Ditto.
10156         * config/alpha/tm-alpha.h: Update copyright years.
10157         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10158         (INNER_THAN): Use core_addr_lessthan.
10159         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10160         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10161         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10162         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10163         (FRAME_CHAIN): Remove unnecessary cast.
10164
10165 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
10166
10167         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10168         obsolete.
10169
10170 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
10171
10172         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
10173         * monitor.c, remote-array.c, remote-bug.c: Ditto.
10174         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10175         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10176         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10177         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10178         * x86-64-linux-nat.c: Ditto.
10179
10180 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10181
10182         * alpha-tdep.c (alpha_register_name): New function.
10183         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10184         (REGISTER_NAME): Define.
10185
10186 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10187
10188         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10189
10190 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10191
10192         * alpha-tdep.c: Update copyright years.
10193         (alpha_next_pc): New function.
10194         (alpha_software_single_step): Ditto.
10195         * config/alpha/tm-alpha.h: Add prototype for
10196         alpha_software_single_step.
10197
10198 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10199
10200         * alphabsd-nat.c: Update copyright years.
10201         (fill_gregset): Use regcache_collect.
10202         (fill_fpregset): Likewise.
10203         (fetch_inferior_registers): Only fetch integer registers
10204         if requested to do so.
10205         (store_inferior_registers): Only store integer registers
10206         if requested to do so.
10207
10208 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
10209
10210         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10211         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10212         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10213         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10214         * config/alpha/fbsd.mh (XDEPFILES): Delete.
10215         * config/arm/linux.mh (XDEPFILES): Delete.
10216         * config/arm/nbsd.mh (XDEPFILES): Delete.
10217         * config/i386/i386dgux.mh (XDEPFILES): Delete.
10218         * config/i386/i386sol2.mh (XDEPFILES): Delete.
10219         * config/i386/i386m3.mh (XDEPFILES): Delete.
10220         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10221         * config/i386/i386gnu.mh (XDEPFILES): Delete.
10222         * config/i386/fbsd.mh (XDEPFILES): Delete.
10223         * config/i386/i386bsd.mh (XDEPFILES): Delete.
10224         * config/i386/i386sco5.mh (XDEPFILES): Delete.
10225         * config/i386/i386v4.mh (XDEPFILES): Delete.
10226         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10227         * config/i386/i386sco4.mh (XDEPFILES): Delete.
10228         * config/i386/i386aix.mh (XDEPFILES): Delete.
10229         * config/i386/go32.mh (XDEPFILES): Delete.
10230         * config/i386/cygwin.mh (XDEPFILES): Delete.
10231         * config/i386/i386lynx.mh (XDEPFILES): Delete.
10232         * config/i386/i386mach.mh (XDEPFILES): Delete.
10233         * config/i386/i386v32.mh (XDEPFILES): Delete.
10234         * config/i386/linux.mh (XDEPFILES): Delete.
10235         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10236         * config/i386/ncr3000.mh (XDEPFILES): Delete.
10237         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10238         * config/i386/i386sco.mh (XDEPFILES): Delete.
10239         * config/i386/i386v.mh (XDEPFILES): Delete.
10240         * config/i386/nbsd.mh (XDEPFILES): Delete.
10241         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10242         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10243         * config/i386/symmetry.mh (XDEPFILES): Delete.
10244         * config/i386/obsd.mh (XDEPFILES): Delete.
10245         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10246         * config/ia64/linux.mh (XDEPFILES): Delete.
10247         * config/ia64/aix.mh (XDEPFILES): Delete.
10248         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10249         * config/m68k/dpx2.mh (XDEPFILES): Delete.
10250         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10251         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10252         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10253         * config/m68k/linux.mh (XDEPFILES): Delete.
10254         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10255         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10256         * config/m68k/nbsd.mh (XDEPFILES): Delete.
10257         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10258         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10259         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10260         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10261         * config/m88k/delta88.mh (XDEPFILES): Delete.
10262         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10263         * config/m88k/m88k.mh (XDEPFILES): Delete.
10264         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10265         * config/mips/linux.mh (XDEPFILES): Delete.
10266         * config/mips/irix6.mh (XDEPFILES): Delete.
10267         * config/mips/irix5.mh (XDEPFILES): Delete.
10268         * config/mips/irix4.mh (XDEPFILES): Delete.
10269         * config/mips/irix3.mh (XDEPFILES): Delete.
10270         * config/mips/decstation.mh (XDEPFILES): Delete.
10271         * config/mips/mipsm3.mh (XDEPFILES): Delete.
10272         (NATDEPFILES): Move core-aout.o to here.
10273         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10274         * config/pa/hpux1020.mh (XDEPFILES): Delete.
10275         * config/pa/hppabsd.mh (XDEPFILES): Delete.
10276         * config/pa/hppahpux.mh (XDEPFILES): Delete.
10277         * config/pa/hpux11w.mh (XDEPFILES): Delete.
10278         * config/pa/hppaosf.mh (XDEPFILES): Delete.
10279         * config/pa/hpux11.mh (XDEPFILES): Delete.
10280         * config/powerpc/aix.mh (XDEPFILES): Delete.
10281         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10282         * config/powerpc/linux.mh (XDEPFILES): Delete.
10283         * config/romp/rtbsd.mh: Rename XDEPFILES.
10284         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10285         * config/rs6000/aix4.mh (XDEPFILES): Delete.
10286         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10287         * config/s390/s390.mh (XDEPFILES): Delete.
10288         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10289         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10290         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10291         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10292         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10293         * config/sparc/nbsd.mh (XDEPFILES): Delete.
10294         * config/sparc/linux.mh (XDEPFILES): Delete.
10295         * config/vax/vaxult.mh (XDEPFILES): Delete.
10296         * config/vax/vaxult2.mh (XDEPFILES): Delete.
10297         * Makefile.in (DEPFILES): Remove XDEPFILES.
10298
10299 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
10300
10301         * utils.c (internal_verror): Fix comments, default is yes not no.
10302         Update queries to match.  Default to quit and dump core.
10303
10304 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
10305
10306         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
10307         copyright.
10308         * defs.h, event-top.c, gdbcmd.h: Ditto.
10309         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10310         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10311         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10312         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10313         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10314         * mi/mi-main.c:Ditto.
10315
10316         * stack.c, symfile.c: Update copyright.
10317
10318 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
10319
10320         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10321         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10322         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10323         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10324
10325 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
10326
10327         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10328         * gdbserver/low-lynx.c (myattach): Likewise.
10329         * gdbserver/low-nbsd.c (myattach): Likewise.
10330         * gdbserver/low-sim.c (myattach): Likewise.
10331         * gdbserver/low-sparc.c (myattach): Likewise.
10332         * gdbserver/low-sun3.c (myattach): Likewise.
10333
10334         * gdbserver/low-linux.c (myattach): New function.
10335
10336         * gdbserver/server.c (attach_inferior): New function.
10337         (main): Handle "--attach".
10338
10339 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
10340
10341         * MAINTAINERS (language support): Daniel Jacobwitz is C++
10342         maintainer.
10343
10344 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
10345
10346         * c-typeprint.c (is_type_conversion_operator): Add additional
10347         check for non-conversion operators.
10348
10349 2002-01-15  Michael Snyder  <msnyder@redhat.com>
10350
10351         * linux-proc.c: Add "info proc" command, a la procfs.c.
10352         (read_mapping): New function, abstract and re-use code.
10353         (linux_find_memory_regions): Use new func read_mapping.
10354         (linux_info_proc_cmd): New function, implement "info proc".
10355         (_initialize_linux_proc): Add new command "info proc".
10356
10357 2002-01-15  Michael Snyder  <msnyder@redhat.com>
10358
10359         * symfile.c (generic_load): Use bfd_map_over_sections method
10360         instead of manipulating bfd structure members directly.
10361         (add_section_size_callback): New function, bfd sections callback
10362         used by generic_load.
10363         (load_sections_callback): New function, bfd sections callback
10364         used by generic_load.
10365
10366 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
10367
10368         [Based on work by Jim Blandy]
10369         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10370         (builtin_type_vec128): Export.
10371         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10372         types.
10373         (builtin_type_vec128): New builtin type for 128 bit vector
10374         registers.
10375         (build_gdbtypes): Initialize builtin_type_v16qi and
10376         builtin_type_v8hi. Create the vec128 register builtin type
10377         structure.
10378         (build_builtin_type_vec128): New function.
10379         (_initialize_gdbtypes): Register builtin_type_v16qi and
10380         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10381         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10382         AltiVec register to new builtin type.
10383
10384 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
10385
10386         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10387         to make_cv_type.
10388
10389 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
10390
10391         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10392         CLEAN_UP_REGISTER_VALUE.
10393         * regcache.c (supply_register): Update only call.
10394
10395 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
10396
10397         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10398         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10399         a29k-*-vxworks* targets as obsolete.
10400
10401 2002-01-14  Michael Snyder  <msnyder@redhat.com>
10402
10403         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10404         until we can resolve portability issues.
10405         * gregset.h: Remove references to fpxregs.
10406         * gcore.c (gcore_command): Initialize note_sec to NULL.
10407
10408 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10409
10410         * signals.c (target_signal_to_name): Rewrite.  Only use
10411         signals[].name when in bounds and non-NULL.
10412
10413 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10414
10415         From Petr Ledvina <ledvinap@kae.zcu.cz>:
10416         * signals.c (target_signal_to_name): Verify that SIG is within the
10417         bounds of the signals array.
10418
10419 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10420
10421         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10422
10423 2002-01-13  Keith Seitz  <keiths@redhat.com>
10424
10425         * stack.c (print_frame_info_base): Print the frame's pc
10426         only if when print_frame_info_listing_hook is not defined.
10427
10428 2002-01-13  Keith Seitz  <keiths@redhat.com>
10429
10430         * varobj.c (varobj_set_value): Make sure that there were no
10431         errors evaluating the object before attempting to set its
10432         value.
10433         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10434         so this offset adjustment is no longer necessary.
10435         (create_child): Don't set the error flag if the child is
10436         a CPLUS_FAKE_CHILD.
10437         (value_of_child): If value_fetch_lazy fails, return NULL
10438         so that callers will be notified that an error occurred.
10439         (c_value_of_variable): Delay check of variable's validity
10440         until later. We actually want all structs and unions to have
10441         the value "{...}".
10442         Do not return "???" for variables which could not be evaluated.
10443         This error condition must be returned to the caller so that it
10444         can get the error condition from gdb.
10445         (cplus_name_of_child): Adjust index for vptr before figuring
10446         out the name of the child.
10447         (cplus_value_of_child): If a child's (real) parent is not valid,
10448         don't even bother trying to give a value for it. Just return
10449         an error. Change all instances in this function.
10450         (cplus_type_of_child): If our parent is one of the "fake"
10451         parents, we need to get at the type of the real parent, and
10452         derive the child's true type using this information.
10453
10454 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10455
10456         From 2002-01-09 John Marshall <johnm@falch.net>:
10457         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10458         sources.redhat.com, and tweak some related URLs which had
10459         suffered from linkrot.
10460
10461 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10462
10463         From Jeff law:
10464         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10465         structures passed in registers.
10466
10467 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
10468
10469         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10470         white space which prevented compilation.  Reported by DSK
10471         <dsk@student.unsw.edu.au>.
10472
10473 2002-01-11  Michael Snyder  <msnyder@redhat.com>
10474
10475         * symfile.c (build_section_addr_info_from_section_tab):
10476         Use bfd access method instead of manipulating bfd directly.
10477         (syms_from_objfile): Ditto.
10478         (simple_overlay_update_1): Ditto.
10479         (simple_overlay_update): Ditto.
10480         (generic_load): Ditto.
10481         (overlay_unmapped_address): FIXME comment, bfd access methods.
10482         (sections_overlap): FIXME comment, bfd access methods.
10483         (pc_in_mapped_range): FIXME comment, bfd access methods.
10484         (pc_in_unmapped_range): FIXME comment, bfd access methods.
10485         (section_is_mapped): FIXME comment, bfd access methods.
10486         (section_is_overlay): FIXME comment, bfd access methods.
10487
10488         * symfile.c (generic_load): Whitespace and long line cleanups.
10489         Remove duplicate variable, change several local variables to
10490         more appropriate data types.
10491         (print_transfer_performance): Use %lu instead of %ld for ulongs.
10492
10493 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10494
10495         From Peter Schauer:
10496         * language.c (longest_local_hex_string_custom): Use phex_nz to
10497         convert NUM to a hex string.
10498
10499 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
10500
10501         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10502         the function.
10503         Update Copyright year.
10504
10505 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10506
10507         * language.c (longest_raw_hex_string): Delete unused function.
10508
10509 2002-01-11  Petr Sorfa  <petrs@caldera.com>
10510
10511         * MAINTAINERS (write-after-approval): Add myself.
10512         * dwarf2read.c (read_tag_string_type): Handling of
10513         DW_AT_byte_size.
10514         (read_tag_string_type): FORTRAN fix to prevent propagation of
10515         first string size.
10516         (set_cu_language): Handling of DW_LANG_Fortran95
10517
10518 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
10519
10520         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10521         GETPID(inferior_ptid).
10522         (store_inferior_registers): Likewise.
10523
10524 2002-01-10  Jason Merrill  <jason@redhat.com>
10525
10526         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10527         Fix DW_OP_minus.
10528
10529 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
10530
10531         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10532         and bfd/elf32-sh-nbsd.c.
10533
10534 2002-01-10  Michael Snyder  <msnyder@redhat.com>
10535
10536         * NEWS: Mention --pid and corefile/proc-id behavior change.
10537
10538         * Makefile.in: Add rules for gcore.o and linux-proc.o.
10539         * gcore.c: Include cli/cli-decode.h instead of command.h.
10540
10541         * main.c (captured_main): Add new command line option "--pid".
10542         If the second command line argument (following the symbol-file)
10543         begins with a digit, try to attach to it before trying to open
10544         it as a corefile.
10545         (print_gdb_help): Document the "--pid" argument.
10546
10547 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
10548
10549         * completer.c (command_completer): New function.
10550
10551         * completer.h <command_completer>: Add prototype.
10552
10553         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10554         completer for the "help" command.
10555
10556 2002-01-09  Jason Merrill  <jason@redhat.com>
10557
10558         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10559
10560 2002-01-09  Michael Snyder  <msnyder@redhat.com>
10561
10562         * i386-linux-nat.c (fill_fpxregset): Make global.
10563         (store_fpxregset): Ditto.
10564
10565         * gregset.h (gdb_fpxregset_t): Define.
10566         (supply_fpxregset): Prototype.
10567         (fill_fpxregset): Prototype.
10568
10569         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10570
10571 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10572
10573         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10574         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10575         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10576
10577 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
10578
10579         * MAINTAINERS: Update target maintainer rules so that any
10580         Maintainer can approve a tested patch for a maintenance-only
10581         target.
10582
10583 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10584
10585         * MAINTAINERS (write-after-approval): Add myself.
10586
10587         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10588         IN_SIGTRAMP.
10589
10590 2002-01-08  Michael Snyder  <msnyder@redhat.com>
10591
10592         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10593         real name of the executable, rather than the /proc name.
10594
10595 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10596
10597         Implement a "generate-core-file" command in gdb, save target state.
10598         * gcore.c: New file.  Implement new command 'generate-core-file'.
10599         Save a corefile image of the current state of the inferior.
10600         * linux-proc.c: Add linux-specific code for saving corefiles.
10601         * target.h (struct target_ops): Add new target vectors for saving
10602         corefiles; to_find_memory_regions and to_make_corefile_notes.
10603         (target_find_memory_regions): New macro.
10604         (target_make_corefile_notes): New macro.
10605         * target.c (update_current_target): Inherit new target methods.
10606         (dummy_find_memory_regions): New place-holder method.
10607         (dummy_make_corefile_notes): New place-holder method.
10608         (init_dummy_target): Initialize new dummy target vectors.
10609         * exec.c (exec_set_find_memory_regions): New function.
10610         Allow the exec_ops vector for memory regions to be taken over.
10611         (exec_make_note_section): New function, target vector method.
10612         * defs.h (exec_set_find_memory_regions): Export prototype.
10613         * procfs.c (proc_find_memory_regions): New function, corefile method.
10614         (procfs_make_note_section): New function, corefile method.
10615         (init_procfs_ops): Set new target vector pointers.
10616         (find_memory_regions_callback): New function.
10617         (procfs_do_thread_registers): New function.
10618         (procfs_corefile_thread_callback): New function.
10619         * sol-thread.c (sol_find_memory_regions): New function.
10620         (sol_make_note_section): New function.
10621         (init_sol_thread_ops): Initialize new target vectors.
10622         * inftarg.c (inftarg_set_find_memory_regions): New function.
10623         Allow to_find_memory_regions vector to be taken over.
10624         (inftarg_set_make_corefile_notes): New function.
10625         Allow to_make_corefile_notes vector to be taken over.
10626         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10627         interface layer if not target_has_execution (may be a corefile).
10628         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10629         * config/sparc/sun4sol2.mh: Ditto.
10630         * config/alpha/alpha-linux.mh: Ditto.
10631         * config/arm/linux.mh: Ditto.
10632         * config/i386/x86-64linux.mh: Ditto.
10633         * config/ia64/linux.mh: Ditto.
10634         * config/m68k/linux.mh: Ditto.
10635         * config/mips/linux.mh: Ditto.
10636         * config/powerpc/linux.mh: Ditto.
10637         * config/sparc/linux.mh: Ditto.
10638
10639 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10640
10641         * arm-linux-nat.c: Remove references to regcache.c internal data
10642         (registers[] and register_valid[]).
10643
10644 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10645
10646         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
10647         so that attaching to a pid will automatically read the process's
10648         symbol file and shlibs.
10649         * Makefile.in: Add rule for linux-proc.o.
10650         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10651         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10652         * config/arm/linux.mh: Ditto.
10653         * config/i386/linux.mh: Ditto.
10654         * config/i386/x86-64linux.mh: Ditto.
10655         * config/ia64/linux.mh: Ditto.
10656         * config/m68k/linux.mh: Ditto.
10657         * config/mips/linux.mh: Ditto.
10658         * config/powerpc/linux.mh: Ditto.
10659         * config/sparc/linux.mh: Ditto.
10660
10661 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
10662
10663         * win32-nat.c: Add i386-tdep.h dependency.
10664
10665 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10666
10667         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10668         instead of bfd_get_arch_size.  Don't bail out just because
10669         there's no exec_bfd.
10670
10671         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10672         * p-valprint.c (pascal_object_print_value): Ditto.
10673         * somread.c (som_symtab_read): Ditto.
10674         * symfile.c (simple_free_overlay_region_table): Ditto.
10675         * valops.c (value_assign): Ditto.
10676
10677         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10678         use tilde_expand and strerror for opening save-tracepoints file.
10679
10680         * thread-db.c (thread_db_new_objfile): Indendation fix.
10681
10682         * infptrace.c (GDB_MAX_ALLOCA): New define.
10683         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10684         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10685         can be overridden with whatever value is appropriate to the host).
10686         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10687         alloca to allocate potentially large buffer.
10688         * rs6000-nat.c (child_xfer_memory): Ditto.
10689         * symm-nat.c (child_xfer_memory): Ditto.
10690         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10691
10692 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
10693
10694         From Nick Clifton  <nickc@redhat.com>
10695         * d10v-tdep.c: Set STACK_START to 0x200bffe.
10696
10697 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10698
10699         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10700         Don't use exec_bfd if it's NULL.
10701
10702 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
10703
10704         * valops.c (value_arg_coerce): Fix formatting.
10705
10706 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10707
10708         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10709         * gnu-nat.c: Ditto.
10710
10711 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10712
10713         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10714         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10715         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10716         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10717         z8k-coff have not been multi-arched.  Update z8k-coff build
10718         status.
10719
10720 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10721
10722         * MAINTAINERS: Mark a29k target as obsolete.
10723         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10724         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
10725         comments.
10726         * NEWS: Note that a29k targets are obsolete.
10727         * a29k-tdep.c: Mark as obsolete.
10728         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10729         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10730         a29k-*-vxworks* targets as obsolete.
10731         * remote-adapt.c: Obsolete.
10732         * remote-eb.c: Obsolete.
10733         * remote-mm.c: Obsolete.
10734         * remote-udi.c: Obsolete.
10735         * config/a29k/a29k-udi.mt: Obsolete.
10736         * config/a29k/a29k.mt: Obsolete.
10737         * config/a29k/tm-a29k.h: Obsolete.
10738         * config/a29k/tm-vx29k.h: Obsolete.
10739         * config/a29k/vx29k.mt: Obsolete.
10740
10741 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10742
10743         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10744         with BFD_ENDIAN_BIG.
10745
10746 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10747
10748         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10749         * configure, config.in: Re-generate.
10750         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10751         * defs.h: Do not include <endian.h>.
10752
10753 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
10754
10755         * acconfig.h (HAVE_PT_GETXMMREGS): New.
10756         * config.in: Regenerate.
10757         * configure.in: Update copyright years.
10758         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10759         * configure: Regenerate.
10760         * i386bsd-nat.c: Update copyright years.
10761         (fill_gregset): Use regcache_collect.
10762         (fetch_inferior_registers): Only fetch integer registers
10763         if requested to do so.  Add support for XMM registers
10764         using PT_GETXMMREGS.
10765         (store_inferior_registers): Only store integer registers
10766         if requested to do so.  Add support for XMM registers
10767         using PT_SETXMMREGS.
10768         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10769         (store_inferior_registers): Remove.
10770         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10771         (fetch_elfcore_registers): New function.
10772         (i386nbsd_elfcore_fns): New.
10773         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10774         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10775         i386bsd-nat.o.
10776         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10777         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10778         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10779         * config/i386/tm-nbsd.h: Update copyright years.
10780         (HAVE_SSE_REGS): Define.
10781         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10782         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10783         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10784         (SIGCONTEXT_PC_OFFSET): Remove.
10785         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10786
10787 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10788
10789         * configure.tgt: Remove powerpc-*-macos* target.
10790         * config/m68k/xm-mpw.h: Delete file.
10791         * config/xm-mpw.h: Delete file.
10792         * ser-mac.c: Delete file.
10793         * mpw-make.sed: Delete file.
10794         * mpw-config.in: Delete file.
10795         * mac-xdep.c: Delete file.
10796         * mac-gdb.r: Delete file.
10797         * mac-defs.h: Delete file.
10798         * mac-nat.c: Delete file.
10799         * config/powerpc/macos.mh: Delete file.
10800         * config/powerpc/macos.mt: Delete file.
10801         * config/powerpc/nm-macos.h: Delete file.
10802         * config/powerpc/tm-macos.h: Delete file.
10803         * source.c (openp, open_source_file): Remove obsolete code.
10804         * top.c (gdb_readline): Ditto.
10805         * utils.c (query): Ditto.
10806         * event-top.c (display_gdb_prompt): Ditto.
10807         * Makefile.in (ser-mac.o): Delete obsolete target.
10808         * NEWS: Update.
10809
10810 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10811
10812         * defs.h (BIG_ENDIAN): Delete macro definition.
10813         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10814         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10815         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10816         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10817         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10818         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10819         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10820         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10821         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10822         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10823         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10824         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10825         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10826         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10827         * gdbarch.c: Re-generate.
10828
10829 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10830
10831         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10832         for core files.
10833
10834 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10835
10836         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10837
10838 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10839
10840         * value.h (value_ptr): Delete typedef.
10841
10842 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10843
10844         * i386nbsd-nat.c: Update copyright years.
10845         Include i386-tdep.h.
10846
10847 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
10848
10849         * stabsread.c: Update copyright years.
10850
10851         From Debashis Mahata <debashis.mahata@wipro.com>:
10852         (read_struct_fields): Deal with Sun C compiler erroneous stab
10853         output for structs and unions.
10854         Fix PR gdb/269.
10855
10856 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10857
10858         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10859         prototype.
10860
10861 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10862
10863         * cp-abi.c: Fix whitespace.
10864         (baseclass_offset): New wrapper function.
10865         * cp-abi.h (baseclass_offset): Add prototype.
10866         (struct cp_abi_ops): Add baseclass_offset pointer.
10867
10868         * valops.c (vb_match): Move to...
10869         * gnu-v2-abi.c (vb_match): here.
10870         * valops.c (baseclass_offset): Move to...
10871         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10872
10873         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10874
10875         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10876         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10877         * hpacc-abi.c (init_hpacc_ops): Likewise.
10878
10879 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10880
10881         * valops.c (find_overload_match): Accept obj as a
10882         reference parameter.  Update it before returning.
10883         * value.h (find_overload_match): Update prototype.
10884         * eval.c (evaluate_subexp_standard): Pass object to
10885         find_overload_match by reference.
10886
10887 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
10888
10889         * valarith.c: Replace value_ptr with struct value pointer.  Remove
10890         register attribute from value declarations.
10891         * valops.c: Ditto.
10892         * value.h: Ditto.
10893         * scm-lang.c (scm_lookup_name): Ditto.
10894
10895 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10896
10897         Abstract the functionality of iterating over mapped memory
10898         regions into a general purpose iterator function.
10899         * procfs.c (iterate_over_mappings): New function, general purpose
10900         iterator for memory sections.
10901         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10902         (solib_mappings_callback): New function, callback for above.
10903         (info_proc_mappings): Reimpliment using iterate_over_mappings.
10904         (info_mappings_callback): New function, callback for above.
10905
10906         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10907
10908 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
10909
10910         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10911         * i386-tdep.c: Include "elf-bfd.h".
10912         (process_note_abi_tag_sections): New function.
10913         (i386_gdbarch_init): Add code to recognize various OS/ABI
10914         combinations.
10915
10916         * maint.c (_initialize_maint_cmds): Add missing \ in
10917         string-literal.
10918
10919 For older changes see ChangeLog-2001
10920 \f
10921 Local Variables:
10922 mode: change-log
10923 left-margin: 8
10924 fill-column: 74
10925 version-control: never
10926 End: