* ada-lang.c (ada_array_bound, ada_type_match,
[external/binutils.git] / gdb / ChangeLog
1 2002-09-08  Aidan Skinner <aidan@velvet.net>
2
3         * ada-lang.c (ada_array_bound, ada_type_match,
4         _initialize_ada_language): Fix K&R definitions.
5         * ada-tasks.c (get_current_task): Fix K&R definitions.
6         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
7                         
8 2002-09-07  Christopher Faylor  <cgf@redhat.com>
9
10         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
11         Add XP.
12
13 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
14
15         * i386-tdep.c (i386_register_virtual_type,
16         i386_register_convertible, i386_register_convert_to_virtual,
17         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
18         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
19         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
20         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
21         Don't set push_arguments twice.
22
23         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
24         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
25         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
26         sigtramp_end to NULL.
27         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
28         defines.
29         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
30
31         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
32         whitespace.
33
34         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
35         * gdbarch.h, gdbarch.c: Re-generate.
36         * blockframe.c (find_pc_sect_partial_function): Convert to use
37         SIGTRAMP_START_P predicate.
38
39 2002-09-05  Michael Snyder  <msnyder@redhat.com>
40
41         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
42         generic_dummy_frame method and old method.  Also distinguish
43         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
44         (arm_extract_return_value): Use new regcache method.
45
46         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
47         adjustment that doesn't conform to the ABI.
48         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
49         saved regcache, not from current regcache.
50
51 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
52
53         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
54         * README: Update.
55
56 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
57
58         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
59         if arm_apcs_32 is false.
60
61 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
62
63         GDB 5.3 branch created.
64
65 2002-09-03  Theodore A. Roth  <troth@verinet.com>
66
67         * gdb/avr-tdep.c (avr_gdbarch_init): Use
68         generic_unwind_get_saved_register.
69
70 2002-09-03  David Carlton  <carlton@math.stanford.edu>
71
72         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
73         argument (PR gdb/653).  Update call to smash_to_method_type.
74         (read_structure_scope): Update call to dwarf2_add_member_fn.
75
76 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
77
78         * x86-64-linux-tdep.c: Include gdb_string.h
79         * x86-64-linux-nat.c: Ditto.
80
81 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
82
83         * ada-exp.y (yyname, yyrule): Remap global variables that appear
84         when YYDEBUG is set to 1.  
85         * c-exp.y: Likewise.
86         * f-exp.y: Likewise.
87         * jv-exp.y: Likewise.
88         * m2-exp.y: Likewise.
89         * p-exp.y: Likewise.
90
91 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
92
93         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
94         dependency list.
95         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
96         solib_svr4_fetch_link_map_offsets to
97         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
98         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
99         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
100         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
101         solib-svr4.o, and solib-legacy.o.
102         * config/i386/tm-nbsd.h: Include solib.h.
103
104 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
105
106         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
107         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
108         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
109         comment noting that this needs its own target configuration.
110         * config/i386/nbsd.mt: New file.
111         * config/i386/nbsdaout.mt: Remove.
112         * config/i386/nbsdelf.mt: Ditto.
113         * config/i386/tm-nbsdaout.h: Ditto. 
114
115 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
116
117         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
118         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
119         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
120         tdep->sigtramp_end.
121         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
122         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
123         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
124
125 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
126
127         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
128         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
129         * i386-tdep.h (i386bsd_init_abi): New prototype.
130         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
131         function declaration.
132         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
133         for NetBSD-a.out or NetBSD-ELF.
134         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
135         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
136         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
137         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
138         and nbsd-tdep.h.
139         (i386nbsd_pc_in_sigtramp): New function.
140         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
141         i386nbsd_pc_in_sigtramp.
142         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
143         and i386nbsdelf_init_abi OS ABI handlers.
144         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
145         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
146
147 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
148
149         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
150         registers if the target really has them.
151
152 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
153
154         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
155         than nbsd-tdep.h.
156
157 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
158
159         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
160         list.
161         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
162         (alphanbsd_skip_sigtramp_frame): New functions. 
163         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
164         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
165         to alphanbsd_sigcontext_addr. 
166
167 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
168
169         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
170         list.
171         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
172         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
173         nbsd_pc_in_sigtramp. 
174         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
175         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
176         * nbsd-tdep.c: Include gdb_string.h.
177         (nbsd_pc_in_sigtramp): New function. 
178         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
179         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
180         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
181         ppcnbsd_pc_in_sigtramp. 
182         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
183         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
184         shnbsd_pc_in_sigtramp. 
185         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
186         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
187         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
188
189 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
190
191         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
192         watchpoints to NULL.
193         (insert_breakpoints): set val field of watchpoints if NULL.
194
195
196 2002-08-29  Jim Blandy  <jimb@redhat.com>
197
198         * symtab.c (lookup_symbol_aux): In the cases where we find a
199         minimal symbol of an appropriate name and use its address to
200         select a symtab to read and search, use `name' (as passed to us)
201         as the demangled name when searching the symtab's global and
202         static blocks, not the minsym's name.
203
204 2002-08-29  Keith Seitz  <keiths@redhat.com>
205
206         * stack.c (print_frame_info_base): Always set current_source_symtab
207         and current_source_line.
208
209 2002-08-29  Donn Terry  <donnte@microsoft.com>
210
211         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
212
213 2002-08-28  Keith Seitz  <keiths@redhat.com>
214
215         * stack.c (select_frame): Add FIXME concerning selected-frame
216         events.
217         (select_frame_command): Send selected-frame-level-changed
218         event notification, but only if the level actually changed.
219         (up_silently_base): Add selected-frame-level-changed event
220         notification.
221         (down_silently_base): Likewise.
222
223 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
224
225         * Makefile.in: Update dependencies for all gdb/*.c files.
226
227 2002-08-27  Tom Tromey  <tromey@redhat.com>
228
229         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
230         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
231         Update dependencies.
232         * i387-tdep.c: Include gdb_string.h.
233         * osabi.c: Likewise.
234         * i386-linux-nat.c: Likewise.
235         * lin-lwp.c: Likewise.
236         * ax-gdb.c: Likewise.
237         * signals/signals.c: Likewise.
238         * jv-valprint.c: Likewise.
239         * p-lang.c: Likewise.
240         * c-valprint.c: Likewise.
241         * cp-abi.c: Likewise.
242
243 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
244
245         * cli/cli-script.h (copy_command_lines): Export.
246         * breakpoint.c: Include cli/cli-script.h.
247         * Makefile.in (breakpoint.o): Update dependencies.
248
249 2002-08-26  Michael Snyder  <msnyder@redhat.com>
250
251         * breakpoint.c (insert_breakpoints): Protect all references
252         to 'process_warning'.  Shorten long lines.
253
254 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
255
256         * cli/cli-script.c (copy_command_lines): New function.
257         * defs.h (copy_command_lines): Export.
258         * testsuite/gdb.base/commands.exp: New tests for commands
259         attached to a temporary breakpoint, and for commands that
260         delete the breakpoint they are attached to.
261         
262 2002-08-26  Michael Snyder  <msnyder@redhat.com>
263
264         * breakpoint.c (bpstat_stop_status): Instead of copying the 
265         pointer to the breakpoint commands struct, make a new copy
266         of the struct and point to that.
267         (bpstat_clear): Free the commands struct.
268         (bpstat_clear_actions): Free the commands struct.
269         (bpstat_do_actions): Free the command actions.  Also execute
270         the local cleanups, instead of deleting them.
271         (delete_breakpoint): Leave the commands field of the bpstat
272         chain alone -- it will be freed later.
273
274 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
275
276         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
277         deleted in 2002-08-20 commit.  This function is still used by
278         ppc-linux-nat.c.
279
280 2002-08-26  Keith Seitz  <keiths@redhat.com>
281
282         * gdb-events.sh: Add selected-frame-level-changed event.
283         * gdb-events.c: Regenerated.
284         * gdb-events.h: Regenerated.
285         
286 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
287
288         Fix PR gdb/393:
289         * inflow.c (terminal_save_ours): New function to save terminal
290         settings.
291         * inferior.h (terminal_save_ours): Declare.
292         * target.c (debug_to_terminal_save_ours): New function.
293         (cleanup_target): Defaults to_terminal_save_ours.
294         (update_current_target): Inherit to_terminal_save_ours.
295         (setup_target_debug): Set to_terminal_save_ours.
296         * target.h (target_terminal_save_ours): New to save terminal settings.
297         (target_ops): New member to_terminal_save_ours.
298         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
299         * hpux-thread.c (init_hpux_thread_ops): Likewise.
300         * inftarg.c (init_child_ops): Likewise.
301         * m3-nat.c (init_m3_ops): Likewise.
302         * procfs.c (init_procfs_ops): Likewise.
303         * wince.c (init_child_ops): Likewise.
304         * win32-nat.c (init_child_ops): Likewise.
305         * sol-thread.c (init_sol_thread_ops): Likewise.
306
307 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
308
309         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
310         use regcache_* functions.
311         (i386_gdbarch_init): Set store_return_value instead of
312         deprecated_store_return_value.
313
314         * regcache.c (regcache_raw_write_signed,
315         regcache_raw_write_unsigned): New functions.
316         * regcache.h (regcache_raw_write_signed,
317         regcache_raw_write_unsigned): New prototypes.
318
319 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
320
321         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
322         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
323         source file dependencies.  Cleanup corresponding generator rules.
324
325 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
326
327         * regcache.h (register_offset_hack): Declare.
328         (regcache_cooked_read_using_offset_hack): Declare.
329         (regcache_cooked_write_using_offset_hack): Declare.
330
331         * regcache.c (register_offset_hack): New function.
332         (regcache_cooked_read_using_offset_hack): New function.
333         (regcache_cooked_write_using_offset_hack): New function.
334         (regcache_dump): Check that the registers, according to their
335         offset, are packed hard against each other.
336         (cooked_xfer_using_offset_hack): New function.
337
338 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
339
340         * regcache.c (struct regcache_descr): Add field register_type.
341         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
342         in as a parameter
343         (init_regcache_descr): Initialize register_type.  Pass the descr
344         to init_legacy_regcache_descr.  Use register_type instead of
345         REGISTER_VIRTUAL_TYPE.
346         (register_type): New function.
347         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
348         * regcache.h (register_type): Declare.
349
350 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
351
352         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
353         instead of deprecated_store_return_value.  Fix fallout from
354         2002-08-23 Andrew Cagney <cagney@redhat.com>.
355
356 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
357
358         * regcache.c (max_register_size): New function.
359         (init_legacy_regcache_descr): Ensure that max_register_size is
360         large enough for REGISTER_VIRTUAL_SIZE.
361         * regcache.h (max_register_size): Declare.
362
363 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
364
365         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
366         store_return_value.
367         (e500_extract_return_value): Change type of valbuf pointer to
368         void.
369
370 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
371
372         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
373         workaround.
374
375         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
376         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
377         long long) to prevent compiler warning on 64-bit systems.
378
379 2002-08-23  Andrew Cagney  <cagney@redhat.com>
380
381         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
382         (DEPRECATED_STORE_RETURN_VALUE): New method.
383         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
384         * gdbarch.h, gdbarch.c: Re-generate.
385
386         * values.c (set_return_value): Pass current_regcache to
387         STORE_RETURN_VALUE.
388         * arch-utils.h (legacy_store_return_value): Declare.
389         * arch-utils.c (legacy_store_return_value): New function.
390         (legacy_extract_return_value): Update parameters.
391
392         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
393         STORE_RETURN_VALUE.
394         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
395         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
396         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
397         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
398         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
399         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
400         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
401         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
402         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
403         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
404
405         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
406         * i386-tdep.c (i386_extract_return_value): Update.
407         * arch-utils.c (legacy_extract_return_value): Update.
408         * frv-tdep.c (frv_gdbarch_init): Update.
409         * cris-tdep.c (cris_gdbarch_init): Update.
410         * d10v-tdep.c (d10v_gdbarch_init): Update.
411         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
412         * m68k-tdep.c (m68k_gdbarch_init): Update.
413         * mcore-tdep.c (mcore_gdbarch_init): Update.
414         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
415         * s390-tdep.c (s390_gdbarch_init): Update.
416         * sparc-tdep.c (sparc_gdbarch_init): Update.
417         * sh-tdep.c (sh_gdbarch_init): Update.
418         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
419         * v850-tdep.c (v850_gdbarch_init): Update.
420         * avr-tdep.c (avr_gdbarch_init): Update.
421         * ia64-tdep.c (ia64_gdbarch_init): Update.
422         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
423         * vax-tdep.c (vax_gdbarch_init): Update.
424         * alpha-tdep.c (alpha_gdbarch_init): Update.
425         * arm-tdep.c (arm_gdbarch_init): Update.
426         * mips-tdep.c (mips_gdbarch_init): Update.
427         * i386-tdep.c (i386_gdbarch_init): Update.
428
429 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
430
431         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
432         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
433
434 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
435
436         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
437         problems.
438
439 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
440
441         * infrun.c (handle_inferior_event): Move a comment outside of a
442         function call, in order to avoid indent reformatting this part
443         of the code in an unreadable way.
444
445 2002-08-23  Grace Sainsbury  <graces@redhat.com>
446
447         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
448         when breakpoints fail. Move general breakpoint error messages to
449         insert_breakpoints.  
450         * breakpoint.c (insert_breakpoints): Change warnings when
451         breakpoints are nto inserted to specify the type. Remove call to
452         memory_error when hardware breakpoints can't be inserted. Remove
453         multiple calls to warning so all messages are sent to the user at
454         once.
455         (delete_breakpoints): Make insert error messsages more explicit.
456
457 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
458
459         * ChangeLog: Move gdbserver entries after GDB 5.2 to
460         gdbserver/ChangeLog.
461
462 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
463
464         * i386-tdep.c: Include "objfiles.h".
465         (i386_svr4_init_abi): Set in_solib_call_trampoline and
466         skip_trampoline_code.
467         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
468         (CPLUS_MARKER): Define to '.'.
469
470         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
471         member.
472         (linux_corefile_thread_callback): Increase args->num_notes.
473         (linux_make_note_section): Initialize thread_args.num_notes, and
474         use it to determine whether notes for any threads were created.
475
476 2002-08-23  Donn Terry  <donnte@microsoft.com>
477
478         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
479         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
480         and PCUNKILL.
481         (write_with_trace): Conditionalize out the switch branch handling
482         PCSHOLD if the corresponding macro is not defined. Likewise for
483         PRSABORT and PRSTOP.
484         This change will be needed by the Interix port.
485
486 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
487
488         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
489         write_register wherever possible instead of manipulating the
490         register bytes directly.
491         Assign VALUE_CONTENTS to a variable and use that.
492         The GPR numbers are now dependent on the architecture.
493         
494 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
495
496         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
497         ev_offset fields.
498         (skip_prologue): Add support for BookE/e500 instructions.
499         (e500_extract_return_value): New function.
500         (frame_get_saved_regs): Add support for saving ev registers and
501         pseudo gpr's.
502         (e500_store_return_value): New function.
503         (rs6000_gdbarch_init): Move up default intializations of
504         deprecated_extract_return_value and store_return_value.  Overwrite
505         init of store_return_value with e500 specific version.
506         Set extract_return_value for e500.
507         
508 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
509
510         * blockframe.c (generic_call_dummy_register_unwind): Use
511         regcache_cooked_read to catch cases in which the variable is
512         stored in a pseudo register.
513
514 2002-08-22  Andrew Cagney  <cagney@redhat.com>
515
516         * NEWS: Mention that the i960 has been made obsolete.
517         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
518         i960-tdep.c
519         (remote-nrom.o): Obsolete target.
520         (remote-nindy.o, i960-tdep.o): Ditto.
521         * remote-nrom.c: Make file obsolete.
522         * remote-nindy.c, remote-vx960.c: Ditto.
523         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
524         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
525         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
526         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
527         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
528         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
529         i960-*-vxworks* obsolete.
530         * MAINTAINERS: Note that the i960 is obsolete.
531
532 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
533
534         * aix-thread.c (aix_thread_detach): Disable thread debugging on
535         detach to allow reinitialization.
536
537 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
538
539         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
540         attempt).
541
542 2002-08-22  Jim Blandy  <jimb@redhat.com>
543
544         * coffread.c (coff_symfile_read): Don't try to read the line
545         number table from disk if the image file doesn't have a symbol
546         table; we'll never actually look at the info anyway, and Windows
547         ships DLL's with bogus file offsets for the line number data.
548
549 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
550
551         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
552         an e500 executable.
553
554 2002-08-21  Michael Snyder  <msnyder@redhat.com>
555
556         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
557         (MSYMBOL_SIZE): Replace macro with function.
558         (DEFAULT_MIPS_TYPE): Delete unused macro.
559         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
560         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
561
562 2002-08-21  Jim Blandy  <jimb@redhat.com>
563
564         * valops.c (value_cast): Simplify and correct logic for doing a
565         static cast from a pointer to a base class to a pointer to a
566         derived class.
567
568 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
569
570         * infcmd.c (default_print_registers_info): Replace
571         do_registers_info.
572         (registers_info): Use gdbarch_print_registers_info instead of
573         DO_REGISTERS_INFO.
574         * inferior.h (default_print_registers_info): Replace
575         do_registers_info.
576         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
577         (DO_REGISTERS_INFO): Change to a predicate function.
578         * gdbarch.h, gdbarch.c: Regenerate.
579         
580 2002-08-21  Keith Seitz  <keiths@redhat.com>
581
582         * gdb-events.sh: Add target-changed event.
583         * gdb-events.c: Regenerated.
584         * gdb-events.c: Regenerated.
585         * valops.c (value_assign): Add target-changed event notification
586         to inlval_register, lval_memory, and lval_reg_frame_relative.
587
588 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
589
590         * NEWS: Add an entry regarding the improvement of the next/step
591         operation on Alpha Tru64 multi-processor machines.
592
593 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
594
595         * Makefile.in: Update dependencies for mi/ cli/ and tui/
596         directores.
597         * Makefile.in: Update all _h macro definitions.
598         * Makefile.in (install-gdbtk): Move to install section.
599         (rdi-share/libangsd.a): Move to end of file.
600
601 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
602
603         * frame.c (frame_register_unwind): When a register, set addrp to
604         the register's byte.
605
606 2002-08-20  Michael Snyder  <msnyder@redhat.com>
607
608         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
609         used locally, so move them from the target machine header to here.
610         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
611         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
612         Make static.
613         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
614
615 2002-08-20  Andrew Cagney  <cagney@redhat.com>
616
617         * NEWS: Mention that the Apollo line was made obsolete.
618         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
619         m68*-hp-hpux* obsolete.
620         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
621         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
622         * buildsym.c (make_blockvector): Make static.
623         * buildsym.h (make_blockvector): Make extern declaration obsolete.
624         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
625         (ALLDEPFILES): Remove dstread.c.
626         (dstread.o): Obsolete make rule.
627         * dstread.c: Makefile obsolete.
628         * dst.h: Ditto.
629         * config/m68k/hp300hpux.mt: Ditto.
630         * config/m68k/hp300hpux.mh: Ditto.
631         * config/m68k/hp300bsd.mt: Ditto.
632         * config/m68k/hp300bsd.mh: Ditto.
633         * config/m68k/apollo68b.mt: Ditto.
634         * config/m68k/apollo68v.mh: Ditto.
635         * config/m68k/apollo68b.mh: Ditto.
636
637 2002-08-20  Michael Snyder  <msnyder@redhat.com>
638
639         * mips-tdep.c (mips_in_return_stub): Make static.
640         (mips_gdbarch_init): Set in_solib_return_trampoline.
641         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
642
643 2002-08-20  Michael Snyder  <msnyder@redhat.com>
644
645         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
646         * gdbarch.c, gdbarch.h: Regenerate.
647         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
648         Add.
649         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
650
651 2002-08-20  Michael Snyder  <msnyder@redhat.com>
652
653         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
654         (mips_gdbarch_init): Set skip_trampoline_code, 
655         in_solib_call_trampoline.
656         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
657         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
658
659 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
660
661         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
662
663         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
664         vector type for ev registers.
665         (e500_pseudo_register_read): New function.
666         (e500_pseudo_register_write): New function.
667         (e500_dwarf2_reg_to_regnum): New function.
668         (PPC_UISA_NOFP_SPRS): New macro.
669         (PPC_EV_REGS): New macro.
670         (PPC_GPRS_PSEUDO_REGS): New macro.
671         (registers_e500): New register set for e500.
672         (variants): Add e500 variant.
673         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
674         before setting architectural dependent variations.  Initialize ev
675         registers numbers.  Add case for e500 architecture.  Set the
676         number of pseudo registers.
677
678 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
679
680         * rs6000-tdep.c: Clean up comments.
681
682 2002-08-20  Andrew Cagney  <cagney@redhat.com>
683
684         * h8300-tdep.c: Re-indent file.
685
686 2002-08-20  Jim Blandy  <jimb@redhat.com>
687
688         * Makefile.in (LDFLAGS): Allow the configure script to establish a
689         default for this.
690
691 2002-08-20  Keith Seitz  <keiths@redhat.com>
692
693         * breakpoints.c (watch_command_1): Use internal breakpoint
694         when setting a watchpoint_scope breakpoint.
695
696 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
697
698         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
699         (build_builtin_type_vec64i): Ditto.
700         (build_builtin_type_vec128): Ditto.
701         (build_builtin_type_vec128i): Ditto.
702
703 2002-08-19  Michael Snyder  <msnyder@redhat.com>
704
705         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
706         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
707         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
708         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
709         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
710         CALL_DUMMY_ADDRESS): Delete.
711         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
712         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
713         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
714         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
715         push_return_address.
716         (mips_register_raw_size, mips_eabi_use_struct_convention, 
717         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
718         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
719         mips_init_extra_frame_info, mips_eabi_push_arguments, 
720         mips_n32n64_push_arguments, mips_push_return_address,
721         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
722         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
723
724 2002-08-19  Michael Snyder  <msnyder@redhat.com>
725
726         * mips-tdep.c (mips_frame_num_args): New function.
727         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
728         frame_saved_pc, frame_args_address, frame_locals_address, 
729         frame_num_args, and frame_args_skip.
730         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
731         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
732         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
733         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
734
735 2002-08-20  Michael Snyder  <msnyder@redhat.com>
736
737         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
738         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
739         * mips-tdep.c (mips_store_struct_return): New function.
740         (mips_extract_struct_value_address): New function.
741         (mips_gdbarch_init): Set store_struct_return and
742         extract_struct_value_address.
743
744 2002-08-20  David Carlton  <carlton@math.stanford.edu>
745
746         * dwarf2read.c (dwarf2_build_psymtabs): Check that
747         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
748         (read_file_scope): Check that line_header is nonzero before
749         decoding macro information.
750
751 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
752
753         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
754         flag the general-purpose registers as floating-point on targets
755         that don't support the floating-point registers.
756
757 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
758
759         * rs6000-tdep.c (altivec_register_p): Delete.
760         (rs6000_do_altivec_registers): Delete.
761         (rs6000_altivec_registers_info): Delete.
762         (rs6000_do_registers_info): Delete.
763         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
764         (rs6000_gdbarch_init): Remove setting of do_registers_info.
765
766 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
767
768         * infcmd.c (do_registers_info): Print vector registers in hex
769         format only.
770         (print_vector_info): Check that printing registers
771         makes sense.
772         (print_float_info): Ditto.
773
774 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
775
776         * mips-tdep.c (mips_gdbarch_init): Update.
777         (mips_o32_extract_return_value): Rewrite.
778         (mips_o32_store_return_value): Rewrite.
779         (mips_o32_xfer_return_value): New function.
780         (mips_xfer_register): Tweak debug print message.  Allow for
781         buf_offset when dumping the value transfered.
782
783 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
784
785         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
786         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
787         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
788         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
789         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
790
791 2002-08-14  Michael Snyder  <msnyder@redhat.com>
792
793         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
794
795 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
796
797         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
798         register.
799         (P): New macro to define a register as a pseudo register.
800         (R, R4, R8, R16, FR32, R64, R0): Updated.
801         (struct variant): Add new fields for number of pseudo registers
802         and number of total registers.
803         (tot_num_registers): New macro replacing....
804         (num_registers): ...deleted macro.
805         (num_registers): New function.
806         (num_pseudo_registers): New function.
807         (variants): Update all variants to intialize new fields correctly.
808         Postpone initialization of number of pseudo regs and real regs.
809         (init_variants): New function.
810         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
811         registers offsets.
812
813 2002-08-19  David Carlton  <carlton@math.stanford.edu>
814
815         * valops.c (search_struct_field): Change error message to treat
816         return value of 0 from value_static_field as meaning that field is
817         optimized out.
818         (value_struct_elt_for_reference): Ditto.
819         * values.c (value_static_field): Treat an unresolved location the
820         same as a nonexistent symbol.  Fix PR gdb/635.
821         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
822         enclosed.  Fix PR gdb/574.
823         * MAINTAINERS: Add self to Write After Approval list.
824
825 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
826
827         * mips-tdep.c (mips_xfer_register): New function.
828         (mips_n32n64_extract_return_value): Rewrite.
829         (mips_gdbarch_init): For N32 and N64, set extract_return_value
830         instead of deprecated_extract_return_value.
831
832 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
833
834         * rs6000-tdep.c (TDEP): Delete macro.
835         (branch_dest): Replace use of TDEP macro with its body.
836         (rs6000_pop_frame): Ditto.
837         (rs6000_push_arguments): Ditto.
838         (rs6000_skip_trampoline_code): Ditto.
839         (rs6000_frame_saved_pc): Ditto.
840         (rs6000_frame_chain): Ditto.
841         (rs6000_register_name): Ditto.
842         (rs6000_register_byte): Ditto.
843         (rs6000_register_raw_size): Ditto.
844         (rs6000_register_virtual_type): Ditto.
845         (rs6000_register_convertible): Ditto.
846         (rs6000_convert_from_func_ptr_addr): Ditto.
847
848 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
849
850         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
851         conditionally.
852         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
853         MIPS_LINUX_JB_ELEMENT_SIZE.
854         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
855         for MAX_REGISTER_RAW_SIZE arrays.
856         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
857         MIPS_LINUX_JB_ELEMENT_SIZE.
858
859 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
860
861         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
862
863 2002-08-19  Aidan Skinner <aidan@velvet.net>
864
865         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
866         ada-valprint.c ada-tasks.c.
867         (YYFILES): Add ada-exp.y.
868         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
869         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
870         (ada-exp.tab.o): New target.
871                 
872 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
873
874         * regcache.c (regcache_xfer_part): New function.
875         (regcache_raw_read_part): New function.
876         (regcache_raw_write_part): New function.
877         (regcache_cooked_read_part): New function.
878         (regcache_cooked_write_part): New function.
879         * regcache.h (regcache_raw_read_part): Declare.
880         (regcache_raw_write_part): Declare.
881         (regcache_cooked_read_part): Declare.
882         (regcache_cooked_write_part): Declare.
883
884 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
885
886         * remote.c (remote_open_1): Add async_p.
887         (remote_async_open_1): Delete.
888         (open_remote_target): Delete.
889         (remote_open, extended_remote_open): Update calls to remote_open_1.
890         (remote_async_open, extended_remote_async_open): Call
891         remote_open_1 instead of remote_async_open_1.
892
893 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
894
895         * blockframe.c: Fix a few coding standard violations.
896
897 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
898
899         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
900         here from ...
901         * config/i386/tm-i386sco5.h: ... here.  File removed.
902         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
903
904         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
905         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
906         (TM_FILE): Set to tm-i386.h.
907         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
908         * config/i386/tm-i386v.h: Remove file.
909         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
910         instead of "i386/tm-i386v.h".
911         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
912         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
913         "i386/tm-i386v.h".
914         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
915         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
916         "i386/tm-i386.h".
917
918 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
919
920         * config/i386/nm-i386v.h: Add protection against
921         multiple-inclusion.
922         (i386_register_u_addr): Remove prototype.
923         (register_u_addr): New prototype.
924         (REGISTER_U_ADDR): Redefine accordingly.
925         * i386v-nat.c: Improve several comments.
926         (i386_register_u_addr): Change signature and rename to
927         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
928         ubase variable.
929
930 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
931
932         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
933         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
934         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
935         deprecated_extract_return_value.
936         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
937         rename mips_o32o64_push_arguments.
938         (mips_gdbarch_init): Update.
939         (mips_extract_return_value): Delete.
940         (mips_o32_extract_return_value): Clone mips_extract_return_value.
941         (mips_o64_extract_return_value): Clone mips_extract_return_value.
942         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
943         (mips_n32n64_extract_return_value): Clone
944         mips_extract_return_value.
945         (mips_store_return_value): Delete.
946         (mips_o32_store_return_value): Clone mips_store_return_value.
947         (mips_o64_store_return_value): Clone mips_store_return_value.
948         (mips_eabi_store_return_value): Clone mips_store_return_value.
949         (mips_n32n64_store_return_value): Clone mips_store_return_value.
950
951 2002-08-18  Aidan Skinner <aidan@velvet.net>
952
953         * ada-lang.c: Use gdb_string.h instead of <string.h>.
954         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
955                 
956 2002-08-18  Aidan Skinner <aidan@velvet.net>
957
958         * ada-lang.c: Run through gdb_indent.sh.
959         * ada-lang.h: Run through gdb_indent.sh.
960         * ada-tasks.c: Run through gdb_indent.sh.
961         * ada-typeprint.c: Run through gdb_indent.sh.
962         * ada-valprint.c: Run through gdb_indent.sh.
963
964 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
965
966         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
967         ABI.
968
969 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
970
971         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
972
973         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
974         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
975
976         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
977         write_register_gen instead of write_register_bytes.
978
979         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
980         i[3456]-*-osf1mk* configurations have been made obsolete.
981         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
982         i[3456]86-*-osf1mk* hosts obsolete.
983         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
984         targets obsolete.
985         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
986         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
987         config/i386/i386m3.mt, config/i386/nm-m3.h,
988         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
989         config/i386/i386mk.mh, config/i386/i386mk.mt,
990         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
991         obsolete.
992         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
993         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
994         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
995
996 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
997
998         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
999         (hppa_value_returned_from_stack): Declare.
1000         (hppa_extract_return_value): Declare.
1001         * config/pa/hppa.mt: New file.
1002         * configure.tgt: Recognize hppa*-*-*.
1003         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
1004
1005 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
1006
1007         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1008         comment.
1009
1010 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
1011
1012         * top.c (gdb_rl_operate_and_get_next): Make sure
1013         operate-and-get-next functions correctly even when the history
1014         list is completely filled.
1015
1016 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1017
1018         * MAINTAINERS (Target Instruction Set Architectures): Rename
1019         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
1020         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
1021         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
1022         already listed under Host/Native.
1023
1024         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1025         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
1026         mips*-*-*.
1027
1028 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
1029
1030         * config/ia64/ia64.mt: New file.
1031         * config/alpha/alpha.mt: New file.
1032         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1033         ia64-linux-gnu.  Mention that ia64-elf is broken.
1034         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1035
1036 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
1037
1038         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1039         generic_func_frame_valid instead of func_frame_valid.
1040
1041 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1042
1043         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1044         procfs appears to be broken when debugging on multi-processor
1045         machines. So enable software single stepping in order to avoid
1046         using the procfs interface to do next/step operations, using
1047         internal breakpoints instead.
1048
1049         * infrun.c (handle_inferior_event): Readjust the stop_pc by
1050         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1051         make this pc address equal to the value it would have if the
1052         system stepping capability was used. Also set a new flag used
1053         to ensure that we don't readjust the PC one more time later.
1054
1055         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1056         address by DECR_PC_AFTER_BREAK when software single step is
1057         in use for this architecture, as this has already been taken
1058         care of in handle_inferior_event().
1059
1060 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1061
1062         * infrun.c (handle_inferior_event): Minor reformatting, to make
1063         a rather long condition expression easier to read.
1064
1065 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1066
1067         * Makefile.in (gdbtk.o): Move to end of file.
1068         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1069         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1070         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1071         (gdbtk-wrapper.o, gdbres.o): Ditto.
1072
1073 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1074
1075         * Makefile.in (copying.o): Separate out compile rule.
1076         (hpux-thread.o, procfs.o, signals.o): Ditto.
1077         (v850ice.o, z8k-tdep.o): Ditto.
1078         (tui-file.o): Move to TUI section.
1079         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1080         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1081
1082 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1083
1084         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1085         skip_trampoline_code, for better namespace-proofing.   
1086
1087         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1088
1089 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1090
1091         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1092
1093 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1094
1095         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1096         signal, check whether we hit a breakpoint before checking for a
1097         single step breakpoint. Otherwise, GDB fails to notice that a
1098         breakpoint has been hit when stepping onto a breakpoint.
1099
1100 2002-08-16  Keith Seitz  <keiths@redhat.com>
1101
1102         * gdb-events.sh (clear_gdb_event_hooks): New function.
1103         * gdb-events.c: Regenerate.
1104         * gdb-events.h: Regenerate.
1105
1106 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1107
1108         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1109         not_a_sw_breakpoint.
1110         * breakpoint.h (bpstat_stop_status): Add parameter names.
1111
1112 2002-08-16  Grace Sainsbury  <graces@redhat.com>
1113
1114         * remote.c (remote_insert_hw_breakpoint)
1115         (remote_remove_hw_breakpoint): Fix calculation of length field
1116         for Z-packet.
1117
1118 2002-08-15  Michael Snyder  <msnyder@redhat.com>
1119
1120         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1121         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1122         (supply_fpregset): Ditto.
1123         
1124         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
1125         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
1126         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1127         (TARGET_READ_SP): Delete.
1128         (DO_REGISTERS_INFO): Delete.
1129         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1130         Delete.
1131         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1132         from macros to functions.
1133
1134         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1135         (mips_register_convertible, mips_register_convert_to_virtual,
1136         mips_register_convert_to_raw): Make static.
1137         (mips_read_sp): New function.
1138         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1139         (mips_do_registers_info): Make static.
1140         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1141         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1142         (mips_register_convert_from_type, mips_register_convert_to_type):
1143         New functions.
1144         (mips_gdbarch_init): Set up function_start_offset, 
1145         register_virtual_size, pc_in_sigtramp.
1146
1147 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
1148
1149         * infcmd.c (vector_info): New function.
1150         (_initialize_infcmd): Add command "info vector".
1151         (print_vector_info): New function.
1152
1153         * gdbarch.sh (PRINT_VECTOR_INFO): New method
1154         * gdbarch.h, gdbarch.c: Regenerate.
1155
1156 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
1157
1158         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1159         ``print_all''.  Only print vector registers when ``print_all''.
1160
1161 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
1162
1163         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1164         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1165
1166         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1167         Add `args' parameter.
1168         * gdbarch.h, gdbarch.c: Regenerate.
1169         
1170         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1171         
1172         * infcmd.c (float_info): Call print_float_info.
1173         (print_float_info): New function.  By default, print the
1174         floating-point registers.
1175
1176         * arch-utils.h (default_print_float_info): Delete declaration.
1177         * arch-utils.c (default_print_float_info): Delete function.
1178         
1179 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
1180
1181         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1182         out define.
1183
1184         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1185         FRAME.
1186
1187         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1188         * configure.host: Make i[3456]86-*-aix host obsolete.
1189         * configure.tgt: Make i[3456]86-*-aix target obsolete.
1190         * config/i386/i386aix.mh, config/i386/i386aix.mt,
1191         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1192         config/i386/xm-i386aix.h: Make files obsolete.
1193         * i386aix-nat.c: Make file obsolete.
1194         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1195         (i386aix-nat.o): Make target obsolete.
1196
1197         * config/i386/nm-gnu.h: Removed.
1198         * config/i386/nm-i386gnu.h: New file.
1199         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1200         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1201         Moved here from ...
1202         * config/i386/tm-i386gnu.h: ... here.  Removed.
1203         * config/i386/xm-i386gnu.h: Removed.
1204         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1205         (NAT_FILE): Set to nm-i386gnu.h.
1206         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1207         * i386-tdep.c: New file.
1208         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1209         (i386gnu-tdep.o): Specify dependencies.
1210
1211 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
1212
1213         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1214         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1215         Adjust a few comments to reflect reality a bit closer.
1216         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1217         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1218         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1219         target_insert_watchpoint, target_remove_watchpoint):
1220         Move defines to ...
1221         * config/i386/nm-i386sco5.h: ... here.
1222         (kernel_u_size): Add prototype.  Improve a few comments and add
1223         protection against multiple inclusion.
1224         
1225         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1226         out define.
1227
1228         * uw-thread.c (SP_ARG0): Define if not already defined.
1229         * config/i386/tm-i386.h (SO_ARG0): Remove define.
1230
1231         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1232
1233         * config/i386/tm-i386.h: Don't include "regcache.h".
1234
1235         * i387-tdep.h (i387_print_float_info): New prototype.
1236         * i387-tdep.c (print_i387_value, print_i387_ext,
1237         print_i387_status_word, print_i387_control_word): Add `struct
1238         ui_file *' argument and use it for output.
1239         (i387_print_float_info): Renamed from i387_float_info.  Add
1240         `struct gdbarch *' and `struct ui_file *' arguments and use the
1241         latter for output.
1242         * i386-tdep.c: Include "i387-tdep.h".
1243         (i386_gdbarch_init): Set print_float_info.
1244         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1245         (FLOAT_INFO): Remove define.
1246
1247 2002-08-13  Michael Snyder  <msnyder@redhat.com>
1248
1249         * mips-tdep.c (mips_push_arguments): Rename to
1250         mips_eabi_push_arguments, and tune for EABI.
1251         (MIPS_REGS_HAVE_HOME_P): Delete.
1252         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1253         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1254         Delete references to mips_regs_have_home_p.
1255
1256 2002-08-14  Keith Seitz  <keiths@redhat.com>
1257
1258         * Makefile.in (install-gdbtk): Create insight plugin directory.
1259         Install plugins.tcl file.
1260
1261 2002-08-14  Keith Seitz  <keiths@redhat.com>
1262
1263         * configure.in: Move SUBDIRS to near top of the file so that
1264         --enable options may add things to it.
1265         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1266         * configure: Regenerate.
1267
1268 2002-08-13  Michael Snyder  <msnyder@redhat.com>
1269
1270         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
1271         cloned from mips_push_arguments, tuned for o32/o64 ABI.
1272         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1273
1274 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
1275
1276         * vax-tdep.c (vax_get_saved_register): Delete function.
1277         (vax_gdbarch_init): Update.
1278         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1279         (ns32k_gdbarch_init): Update.
1280         * alpha-tdep.c (alpha_get_saved_register): Delete function.
1281         (alpha_gdbarch_init): Update.
1282
1283 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1284
1285         * regcache.c (init_regcache_descr): Overallocate the
1286         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1287         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1288         nr_raw_registers.
1289         (set_register_cached): Add range checking assertions.  Use
1290         current_regcache.
1291
1292 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
1293
1294         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1295         numbers for MMX registers.
1296
1297 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1298
1299         * i386-tdep.c (i386_gdbarch_init): Use
1300         generic_unwind_get_saved_register.
1301
1302 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
1303
1304         * procfs.c (procfs_can_use_hw_breakpoint): New function.
1305         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1306         target vector.
1307         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1308         Delete.  Add comment regarding this now-deleted target method.
1309
1310 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1311
1312         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1313         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1314         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1315         real PC and the page number (if it's within the memory bank window).
1316         (m68hc11_pseudo_register_write): Likewise when saving.
1317         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1318         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1319         (m68hc11_register_raw_size): And use 32-bit for it.
1320         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1321         16K memory bank is used by the prog; also use the virtual pc.
1322
1323 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1324
1325         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1326         (m68hc11_gdbarch_init): Install it in gdbarch.
1327         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1328         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1329         (MSYMBOL_SIZE): New for documentation.
1330         (insn_return_kind): Enum to specify how a function returns.
1331         (frame_extra_info): Cleanup and record the return mode.
1332         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
1333         register in address computation.
1334         (m68hc11_get_return_insn): New to obtain the return instruction used
1335         by the function.
1336         (m68hc11_frame_init_saved_regs): Take into account the return
1337         instruction used by the function for far and interrupt functions.
1338         (m68hc11_init_extra_frame_info): Take into account page register.
1339         (m68hc11_frame_args_address): Adjust according to the return mode.
1340         (show_regs): Print page register only when it's used.
1341
1342 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1343
1344         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1345         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1346         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1347         registers.
1348         (m68hc11_register_raw_size): Likewise.
1349
1350 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1351
1352         * i386-tdep.c (i386_register_name): Handle mmx registers.
1353         (mmx_regnum_p): New function.
1354         (i386_mmx_names): New array.
1355         (mmx_num_regs): New variable.
1356         (i386_pseudo_register_read): New function.
1357         (i386_pseudo_register_write): New function.
1358         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1359
1360         * regcache.c (regcache_raw_read_unsigned): New function.
1361         (regcache_raw_read_signed): New function.
1362         * regcache.h (regcache_raw_read_unsigned): Declare.
1363         (regcache_raw_read_signed): Declare.
1364
1365 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1366
1367         * regcache.c (regcache_raw_read_as_address): Delete function.
1368         (regcache_cooked_read_signed): New function.
1369         (regcache_cooked_read_unsigned): New function.
1370         * regcache.h (regcache_cooked_read_signed): Declare.
1371         (regcache_cooked_read_unsigned): Declare.
1372         (regcache_raw_read_as_address): Delete declaration.
1373
1374         * blockframe.c (generic_read_register_dummy): Use
1375         regcache_cooked_read_unsigned.
1376         * i386-tdep.c (i386_extract_struct_value_address): Use
1377         regcache_cooked_read_unsigned.
1378
1379 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1380
1381         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1382         double sizes according to ELF ABI flags.
1383         (gdbarch_tdep): Record elf_flags.
1384
1385 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1386
1387         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1388         (m6812_prolog): They can appear in 68HC12 function prologue.
1389         (m68hc11_frame_chain): Cleanup.
1390
1391 2002-08-12  Andrew Cagney  <cagney@redhat.com>
1392
1393         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1394         declarations.
1395         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1396         (i386_linux_register_raw_size): Delete function.
1397         (i386_linux_init_abi): Update.
1398         * i386-tdep.c (i386_register_raw_size): Delete function.
1399         (i386_register_byte): Delete function.
1400         (i386_gdbarch_init): Update.
1401         (i386_register_size): Delete array.
1402         (i386_register_offset): Delete array.
1403
1404         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1405         (REGISTER_RAW_SIZE): Delete macro.
1406         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1407         (REGISTER_BYTE): Delete macro.
1408
1409 2002-08-11  Aidan Skinner <aidan@velvet.net>
1410
1411         * ada-lang.c (ada_lookup_partial_symbol)
1412         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1413         prototype names so that grep ^func works properly.
1414
1415         * ada-lang.c (ada_array_element_type)
1416         (ada_lookup_partial_symbol): Fix typos in parameter list.
1417
1418         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1419         Fix prototype names so that grep ^func works properly.
1420         
1421 2002-08-10  Andrew Cagney  <cagney@redhat.com>
1422             Elena Zannoni  <ezannoni@redhat.com>
1423             Martin M. Hunt  <hunt@redhat.com>
1424
1425         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1426         (build_builtin_type_vec128i): Set the vector bit.
1427         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1428         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1429         (build_builtin_type_vec64): New function.
1430         (build_builtin_type_vec64i): New function.
1431         (build_gdbtypes): Initialize builtin_type_vec64 and
1432         builtin_type_vec64i.
1433
1434 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1435
1436         * regcache.c (regcache_dump): Compare the register offset
1437         with REGISTER_BYTE.
1438         * arch-utils.c (generic_register_byte): New function.
1439         * arch-utils.h (generic_register_byte): Declare.
1440         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1441         * gdbarch.h, gdbarch.c: Regenerate.
1442
1443 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1444
1445         * regcache.c: Include "gdbcmd.h"
1446         (_initialize_regcache): Add commands "maintenance print
1447         registers", "maintenance print raw-registers" and "maintenance
1448         print cooked-registers".
1449         (enum regcache_dump_what): Define.
1450         (dump_endian_bytes): New function.
1451         (regcache_dump): New function.
1452         (regcache_print): New function.
1453         (maintenance_print_registers): New function.
1454         (maintenance_print_raw_registers): New function.
1455         (maintenance_print_cooked_registers): New function.
1456         * Makefile.in (regcache.o): Update dependencies.
1457
1458 2002-08-09  Michael Snyder  <msnyder@redhat.com>
1459
1460         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1461         (mips_push_arguments): Correct some comments.  Use paddr_nz
1462         for printing addresses in debug output.  Replace static
1463         allocation using MAX_REGISTER_RAW_SIZE with alloca.
1464         (mips_n32n64_push_arguments): New function, cloned from
1465         mips_push_arguments and tuned for the n32/n64 ABI.
1466         (mips_push_register): Buffer needs dynamic allocation.
1467         (mips_print_register): Ditto.
1468         (do_gp_register_row): Ditto.
1469         (mips_store_return_value): Ditto.
1470         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1471
1472 2002-08-09  Don Howard  <dhoward@redhat.com>
1473
1474         * memattr.c (mem_info_command): Print special case of upper bound
1475         as max CORE_ADDR + 1.
1476
1477 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1478
1479         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
1480         returns structs by ref if they're too big to fit in two registers.
1481
1482 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1483
1484         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1485         saved regs value.
1486         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1487         mips_find_saved_regs().
1488         (mips_pop_frame): Likewise.
1489
1490 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1491
1492         * blockframe.c (frame_saved_regs_register_unwind): Revise
1493         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1494         frames are in use.
1495
1496 2002-08-09  Grace Sainsbury  <graces@redhat.com>
1497         
1498         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1499         T-packets; the 'a' is not taken as a register number.
1500         (remote_check_watch_resources, remote_stopped_by_watchpoint)
1501         (remote_stopped_data_address): New functions; add to target
1502         vector.
1503         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1504         prototypes to match other implementations of this
1505         function. replace integer argument with pointer -- the length
1506         field in the Z-packet is the length of what is pointed to or 1 if
1507         pointer is null. Add to target vector.
1508         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1509         target vector.
1510
1511         From Mark Salter:
1512         * remote.c (remote_wait): Add support to extract optional
1513         watchpoint information from T-packet. Ignore unrecognized
1514         optional info in T-packet.
1515         (remote_async_wait): Ditto.
1516
1517 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
1518
1519         * cli/cli-dump.c: Change fopen modes to use binary open modes
1520         as defined in include/fopen-bin.h throughout.
1521
1522 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1523
1524         * mips-tdep.c: Minor whitespace and indentation clean-ups.
1525
1526 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1527
1528         * doublest.c (store_floating): Avoid floatformat_from_doublest()
1529         assertion failure by returning early after a warning.
1530
1531 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1532
1533         * mips-tdep.c (mips_find_saved_regs): Make static.
1534         (mips_frame_init_saved_regs): New function.
1535         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1536         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1537         (mips_find_saved_regs): Delete declaration.
1538
1539 2002-08-08  Grace Sainsbury  <graces@redhat.com>
1540
1541         * remote.c (remote_wait, remote_async_wait): Change
1542         thread_num from int to ULONGEST.
1543         (unpack_varlen_hex): Change result parameter from
1544         int * to ULONGEST *.
1545
1546 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
1547
1548         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1549         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1550         powerpc*-*-*.
1551         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1552
1553 2002-08-08  Andrew Cagney  <cagney@redhat.com>
1554
1555         * gcore.c (override_derive_stack_segment): Delete variable.
1556         (preempt_derive_stack_segment): Delete function.
1557         (derive_stack_segment): Delete function.
1558         (default_derive_stack_segment): Renamed to derive_stack_segment.
1559         (override_derive_heap_segment): Delete variable.
1560         (preempt_derive_heap_segment): Delete function.
1561         (derive_heap_segment): Delete function.
1562         (default_derive_heap_segment): Rename to derive_heap_segment.
1563
1564 2002-08-06  Michael Snyder  <msnyder@redhat.com>
1565
1566         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1567         * mips-tdep.c (mips_EABI_use_struct_convention, 
1568         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1569         New functions.  (mips_use_struct_convention): Delete.
1570         (mips_gdbarch_init): set use_gdbarch_convention.
1571
1572 2002-08-06  Michael Snyder  <msnyder@redhat.com>
1573
1574         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1575         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
1576         mips_o32_reg_struct_has_addr): New functions.
1577         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1578
1579 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
1580
1581         * regcache.c (pseudo_register): Delete function.
1582         (fetch_register): Delete function.
1583         (store_register): Delete function.
1584         (regcache_raw_read, legacy_read_register_gen): Use
1585         target_fetch_registers instead of fetch_register.
1586         (legacy_write_register_gen, regcache_raw_write): Use
1587         target_store_register instead of store_register.
1588         (write_register_bytes): Ditto.
1589
1590         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1591         (STORE_PSEUDO_REGISTER): Delete.
1592         * gdbarch.h, gdbarch.c: Regenerate.
1593
1594 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
1595
1596         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1597         write dump file binary.
1598
1599 2002-08-05  Michael Snyder  <msnyder@redhat.com>
1600
1601         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
1602         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
1603         (mips_gdbarch_init): Set N32 target to be mips64.
1604
1605 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
1606
1607         * frame.c (find_saved_register): Break out of loop once saved
1608         register address is found.  Don't mention sparc in loop comment
1609         anymore.
1610
1611 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
1612
1613         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1614         mips_default_saved_regsize to 8.
1615
1616 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
1617
1618         * gcore.c: Do not include <sys/procfs.h>.
1619         * Makefile.in (gcore.o): Update dependencies.
1620
1621 2002-08-06  Andrew Cagney  <cagney@redhat.com>
1622
1623         * configure.tgt: Make arc-*-* obsolete.
1624         * NEWS: Mention that arc-*-* has been identifed as obsolete.
1625         * MAINTAINERS: Make arc-elf obsolete.
1626         * arc-tdep.c: Make file obsolete.
1627         * config/arc/arc.mt: Ditto.
1628         * config/arc/tm-arc.h: Ditto.
1629
1630 2002-08-05  Theodore A. Roth  <troth@verinet.com>
1631
1632         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1633
1634 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
1635
1636         * mcore-tdep.c (mcore_gdbarch_init): Use
1637         generic_unwind_get_saved_register instead of
1638         generic_get_saved_register.
1639         * v850-tdep.c (v850_gdbarch_init): Ditto.
1640         * frv-tdep.c (frv_gdbarch_init): Ditto.
1641         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1642         * s390-tdep.c (s390_gdbarch_init): Ditto.
1643         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1644         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1645         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1646
1647 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
1648
1649         * objfiles.h: Add missing #include "symfile.h"
1650
1651         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1652
1653 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
1654
1655         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1656         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1657         of FIELD_BITSIZE.
1658
1659 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
1660
1661         * NEWS: Cleanup and nitpick.
1662
1663 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
1664
1665         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
1666
1667 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
1668
1669         * Makefile.in (gdbtk-bp.o): Update dependencies.
1670         (gdbtk-register.o): Ditto.
1671         (gdbtk-varobj.o): Ditto.
1672
1673 2002-08-03  Andrew Cagney  <cagney@redhat.com>
1674
1675         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1676         m68hc11_fetch_pseudo_register.
1677         (m68hc11_pseudo_register_write): Replace
1678         m68hc11_store_pseudo_register.
1679         (m68hc11_gdbarch_init): Update.
1680
1681 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
1682
1683         * gdbarch.sh: Include "gdb_string.h".
1684         * gdbarch.c: Regenerate.
1685
1686         * regcache.c: Include "gdb_string.h".
1687         * ax-general.c: Ditto.
1688         * varobj.c: Ditto.
1689         * std-regs.c: Ditto.
1690         * fbsd-proc.c: Ditto.
1691         * thread.c: Ditto.
1692
1693         * Makefile.in (regcache.o): Update dependencies.
1694         (thread.o, gdbarch.o): Ditto.
1695         (ax-general.o, gdbarch.o): Ditto.
1696         (varobj.o, std-regs.o): Ditto.
1697         (fbsd-proc.o): Specify dependencies.
1698
1699 2002-08-02  Andrew Cagney  <cagney@redhat.com>
1700
1701         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1702         regnum.
1703         (regcache_cooked_write): Ditto.
1704
1705 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
1706
1707         * regcache.c (regcache_cooked_read): New function.
1708         (regcache_cooked_write): New function.
1709         (read_register_gen): Rewrite using regcache_cooked_read.
1710         (write_register_gen): Rewrite using regcache_cooked_write.
1711
1712         * regcache.h (regcache_cooked_read, regcache_cooked_write):
1713         Declare.
1714
1715 2002-08-02  Andrew Cagney  <cagney@redhat.com>
1716
1717         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1718         Replace the architecture methods register_read and register_write.
1719         * gdbarch.h, gdbarch.c: Regenerate.
1720         * regcache.c (init_regcache_descr): Update.
1721         (read_register_gen): Update.
1722         (write_register_gen): Update.
1723         (supply_register): Update comment.
1724
1725         * sh-tdep.c (sh_gdbarch_init): Update.
1726         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1727         `regcache' and `gdbarch' parameters.  Make `buffer' a void
1728         pointer.  Update code.
1729         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1730         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
1731         void pointer.  Update code.
1732         (sh64_register_write): Delete.
1733         (sh4_register_read): Delete.
1734         (sh64_register_read): Delete.
1735         (sh4_register_write): Delete.
1736         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1737         void pointer, `to' parameter a void pointer.
1738         (sh_sh64_register_convert_to_raw): Ditto.
1739
1740 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1741
1742         * mips-tdep.c (mips_register_virtual_type): Use architecture
1743         invariant return values.
1744
1745 2002-08-01  Andrew Cagney  <cagney@redhat.com>
1746
1747         * linux-proc.c: Include "gdb_string.h".
1748         * Makefile.in (linux-proc.o): Update dependency list.
1749
1750 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1751
1752         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
1753         comment.
1754
1755 2002-08-01  Grace Sainsbury  <graces@redhat.com>
1756
1757         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1758         to_insert_watchpoint, to_remove_watchpoint,
1759         to_stopped_by_watchpoint, to_stopped_data_address,
1760         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1761         target vecctor. Define their corresponding macros so they call
1762         them.
1763         
1764         * target.c: Add default and debug versions of for
1765         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1766         to_insert_watchpoint, to_remove_watchpoint,
1767         to_stopped_by_watchpoint, to_stopped_data_address,
1768         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1769
1770 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1771
1772         * mips-tdep.c (mips_register_virtual_type): New function.
1773         (mips_gdbarch_init): Register mips_register_virtual_type()
1774         with gdbarch machinery.
1775         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1776         this file instead of tm-bigmips.h.
1777         (MIPS_REGSIZE): Delete this macro.
1778         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
1779         multiarch version in mips-tdep.c will be found.
1780
1781 2002-08-01  Andrew Cagney  <cagney@redhat.com>
1782
1783         * NEWS: Menion that CHILL has been made obsolete.
1784
1785         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1786         * stabsread.c (read_range_type): Ditto.
1787         * gdbtypes.h: Ditto.
1788         * language.c (binop_type_check): Ditto.
1789         (binop_result_type): Ditto.
1790         (integral_type): Ditto.
1791         (character_type): Ditto.
1792         (string_type): Ditto.
1793         (boolean_type): Ditto.
1794         (structured_type): Ditto.
1795         (lang_bool_type): Ditto.
1796         (binop_type_check): Ditto.
1797         * language.h (_LANG_chill): Ditto.
1798         * dwarfread.c (set_cu_language): Ditto.
1799         * dwarfread.c (CHILL_PRODUCER): Ditto.
1800         * dwarfread.c (handle_producer): Ditto.
1801         * expression.h (enum exp_opcode): Ditto.
1802         * eval.c: Ditto for comments.
1803         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1804         * expprint.c (print_subexp): Ditto.
1805         (print_subexp): Ditto.
1806         * valops.c (value_cast): Ditto.
1807         (search_struct_field): Ditto.
1808         * value.h (COERCE_VARYING_ARRAY): Ditto.
1809         * symfile.c (init_filename_language_table): Ditto.
1810         (add_psymbol_with_dem_name_to_list): Ditto.
1811         * valarith.c (value_binop): Ditto.
1812         (value_neg): Ditto.
1813         * valops.c (value_slice): Ditto.
1814         * symtab.h (union language_specific): Ditto.
1815         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1816         (SYMBOL_DEMANGLED_NAME): Ditto.
1817         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1818         * defs.h (enum language): Ditto.
1819         * symtab.c (got_symtab): Ditto.
1820         * utils.c (fprintf_symbol_filtered): Ditto.
1821
1822         * ch-typeprint.c: Make file obsolete.
1823         * ch-valprint.c: Make file obsolete.
1824         * ch-lang.h: Make file obsolete.
1825         * ch-exp.c: Make file obsolete.
1826         * ch-lang.c: Make file obsolete.
1827
1828         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1829         CHILL_LIB.
1830         (TARGET_FLAGS_TO_PASS): Ditto.
1831         (CHILLFLAGS): Obsolete.
1832         (CHILL): Obsolete.
1833         (CHILL_FOR_TARGET): Obsolete.
1834         (CHILL_LIB): Obsolete.
1835         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1836         ch-valprint.c.
1837         (HFILES_NO_SRCDIR): Remove ch-lang.h.
1838         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1839         ch-lang.o.
1840         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1841         targets.
1842
1843 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
1844
1845         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1846         This does not change anything at the moment, but will be helpful
1847         later when full Ada support is integrated.
1848
1849 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1850
1851         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1852         help message.
1853
1854 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1855
1856         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1857         and save it in a local variable.  Use variable in later test.
1858
1859 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1860
1861         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1862         test.  (Thanks to Daniel Jacobowitz.)
1863         
1864 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1865
1866         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1867         (mips_abi_strings): Add "n64".
1868         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
1869
1870 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1871
1872         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1873         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1874
1875 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1876
1877         * utils.c (host_pointer_to_address, address_to_host_pointer):
1878         Use gdb_assert() instead of explicit call to internal_error().
1879
1880 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
1881
1882         * Makefile.in (rs6000-nat.o): Update dependencies.
1883
1884         From Nicholas Duffek:
1885         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1886         (aix-thread.o): New rule.
1887         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1888         * config/powerpc/aix432.mh: New file.
1889
1890 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1891
1892         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1893         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1894         (fetch_core_registers, ppc_linux_supply_gregset)
1895         (ppc_linux_supply_fpregset): New functions.
1896         (ppc_linux_regset_core_fns): New.
1897         (_initialize_ppc_linux_tdep): Call add_core_fns.
1898         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1899         and ppc_linux_supply_gregset.
1900         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1901         (supply_fpregset): Call ppc_linux_supply_fpregset.
1902         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1903         corelow.o.
1904         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1905
1906 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1907
1908         * symtab.c (lookup_symbol): Demangle before lowercasing.
1909
1910 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
1911
1912         * symtab.h: Replace #include "gdb_obstack.h" with opaque
1913         declaration.
1914         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1915         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1916         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1917         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1918         "gdb_string.h".
1919         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1920         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1921         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1922         (avr-tdep.o, mon960-rom.o): Ditto.
1923         (aout_stabs_gnu_h): Define.
1924         (symtab_h): Remove $(gdb_obstack_h).
1925
1926 2002-07-30  Jim Blandy  <jimb@redhat.com>
1927
1928         Patch from David Carlton <carlton@math.stanford.edu>:
1929         * gdbinit.in: Move the `dir' commands that add GDB's own source
1930         directory to the search path to the end, so that the `gdb' source
1931         directory will be searched first.
1932
1933 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1934
1935         * gdb_obstack.h: New file.
1936         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1937         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1938         * objfiles.h: Include "gdb_obstack.h".
1939         * Makefile.in (gdb_obstack_h): Define.
1940         (symtab_h): Add $(gdb_obstack_h).
1941         (objfiles_h): Add $(gdb_obstack_h).
1942         
1943         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1944         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1945         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1946         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1947         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1948         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1949         * symfile.c, coffread.c, c-typeprint.c: Ditto.
1950         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1951
1952         * Makefile.in (bcache.o): Update dependencies.
1953         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1954         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1955         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1956         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1957         (stabsread.o, symfile.o, symmisc.o): Ditto.
1958         (symtab.o, typeprint.o, macroexp.o): Ditto.
1959         (macrotab.o, mdebugread.o): Ditto.
1960         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1961         (coff_ecoff_h, aout_aout64_h): Define.
1962         (aout_stabs_gnu_h, libaout_h): Define.
1963
1964 2002-07-29  Andrew Cagney  <cagney@redhat.com>
1965
1966         * regcache.c (struct regcache_descr): Rename nr_registers to
1967         nr_cooked_registers.  Revise comments describing the structure
1968         member fields.
1969         (init_regcache_descr): Update.
1970         (init_legacy_regcache_descr): Update.
1971         (read_register_gen, write_register_gen): When a cooked register in
1972         the raw register range, directly access the value from the raw
1973         register cache.
1974
1975 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1976
1977         * z8k-tdep.c: Do not include "obstack.h".
1978         * h8300-tdep.c, h8500-tdep.c: Ditto.
1979         * m68hc11-tdep.c, sh-tdep.c: Ditto.
1980         * valprint.c, v850-tdep.c: Ditto.
1981         * d10v-tdep.c, mn10300-tdep.c: Ditto.
1982         * mn10200-tdep.c: Ditto.
1983
1984         * Makefile.in (z8k-tdep.o): Update dependencies.
1985         (m68hc11-tdep.o, valprint.o): Ditto.
1986         (v850-tdep.o, d10v-tdep.o): Ditto.
1987         (mn10300-tdep.o, sparc-tdep.o): Ditto.
1988         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1989         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1990         (sh_opc_h, gdb_sim_sh_h): Define.
1991         (elf_sh_h, elf_bfd_h): Define.
1992         (opcode_m68hc11_h): Define.
1993         (OPCODES_SRC, OPCODES_DIR): define.
1994         (OPCODES): Use $(OPCODES_DIR).
1995         (gdb_sim_d10v_h): Rename sim_d10v_h.
1996         (gdb_sim_arm_h): Rename sim_arm_h.
1997
1998 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1999
2000         * utils.c (host_pointer_to_address, address_to_host_pointer):
2001         Change internal_error() message to indicate function responsible
2002         for the error.
2003
2004 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2005
2006         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2007         calls to local_hex_string_custom().
2008
2009 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2010
2011         * irix5-nat.c: Move IRIX shared library support from here...
2012         * solib-irix.c: ...to here.  Revised substantially to work with
2013         generic solib framework.
2014
2015         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2016         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2017         * mips-irix-tdep.c: New file.
2018
2019         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2020         (mips-irix-tdep.o, solib-irix.o): New rules.
2021         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2022         solib-irix.o.
2023         * config/mips/irix6.mt (TDEPFILES): Likewise.
2024         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2025
2026 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2027
2028         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2029         disabled (via ``#if 0'') includes.
2030
2031 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2032
2033         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2034         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2035         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2036         Add support for the fpscr register.
2037         * rs6000-nat.c (regmap, fetch_inferior_registers)
2038         (store_inferior_registers, fetch_core_registers): Likewise.
2039
2040 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2041
2042         * rs6000-nat.c (language.h): Include.
2043         (special_regs): Delete this array.
2044         (regmap): New function.
2045         (fetch_register, store_register):  Use regmap() to map gdb
2046         register numbers to ptrace register numbers.  Also, use
2047         outputs from regmap() to make decisions regarding type of
2048         ptrace() call to make.  In particular, don't compare against
2049         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2050         (fetch_inferior_registers, store_inferior_registers): Where
2051         possible, obtain register numbers from tdep struct.  Don't
2052         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2053         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2054         (LAST_UISA_SP_REGNUM): Delete.
2055         
2056 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
2057
2058         * rs6000-nat.c (ppc-tdep.h): Include.
2059         (fetch_registers, store_register, fetch_core_registers): Don't
2060         access registers[] directly.  Instead, use supply_register() or
2061         regcache_collect() as appropriate.
2062         (find_toc_address): Format hex address with local_hex_string().
2063
2064 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
2065
2066         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2067         bfd/elf32-frv.c.
2068
2069 2002-07-24  Tom Tromey  <tromey@redhat.com>
2070
2071         * jv-exp.y: Marked all strings with _().
2072         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2073         internal_error.
2074         (MethodInvocation, CastExpression, parse_number, yyerror,
2075         java_type_from_name, push_expression_name, yylex): Typo fixes.
2076
2077 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
2078
2079         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2080         (tee_file_flush, tee_file_write, tee_file_fputs)
2081         (tee_file_isatty): New.
2082         * ui-file.h (tee_file_new): Add prototype.
2083
2084 2002-07-24  Aidan Skinner <aidan@velvet.net>
2085
2086         * ada-lang.c: Change k&r style function definitions to prototyped
2087         form.
2088         * ada-typeprint.c: Change k&r style function definitions to prototyped
2089         form.
2090         * ada-valprint.c: Change k&r style function definitions to prototyped
2091         form.
2092         
2093 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2094
2095         * README: Remove reference to remote-bug.
2096         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2097         remote-bug.c.
2098         (m88k-nat.o): Delete rule.
2099         (m88k-tdep.o): Delete rule.
2100         (remote-bug.o): Delete rule.
2101         * MAINTAINERS: Mark as obsolete.
2102         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2103         * m88k-tdep.c: Make file obsolete.
2104         * config/m88k/m88k.mh: Ditto.
2105         * config/m88k/delta88v4.mh: Ditto.
2106         * config/m88k/delta88v4.mt: Ditto.
2107         * config/m88k/delta88.mt: Ditto.
2108         * config/m88k/delta88.mh: Ditto.
2109         * remote-bug.c: Ditto.
2110         * config/m88k/tm-delta88.h: Ditto.
2111         * config/m88k/nm-delta88v4.h: Ditto.
2112         * config/m88k/xm-delta88.h: Ditto.
2113         * config/m88k/xm-dgux.h: Ditto.
2114         * config/m88k/tm-m88k.h: Ditto.
2115         * config/m88k/nm-m88k.h: Ditto.
2116         * config/m88k/tm-delta88v4.h: Ditto.
2117         * m88k-nat.c: Ditto.
2118         * cxux-nat.c: Ditto.
2119         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2120         and m88*-*-* obsolete.
2121         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2122         m88*-*-* obsolete.
2123
2124 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2125
2126         * findvar.c (extract_unsigned_integer): Make `addr' parameter
2127         constant.  Same for local pointer variables.
2128         (extract_signed_integer): Ditto.
2129         * defs.h (extract_unsigned_integer): Update.
2130         (extract_signed_integer): Update.
2131
2132 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2133
2134         * regcache.c (regcache_raw_write): Change buf parameter to a
2135         constant void pointer.
2136         (regcache_raw_read): Change buf parameter to a void pointer.
2137         (legacy_write_register_gen): Change myaddr parameter a constant
2138         void pointer.
2139         (supply_register): Change val parameter to a const void pointer.
2140         * regcache.h (regcache_raw_write): Update declaration.
2141         (regcache_raw_read): Update declaration.
2142         (supply_register): Update declaration.
2143
2144 2002-07-24  Tom Tromey  <tromey@redhat.com>
2145
2146         * defs.h (gdb_readline_wrapper): Declare.
2147         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2148         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2149         * top.c (gdb_readline_wrapper): New function.
2150         (command_line_input): Use it.
2151
2152 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2153
2154         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2155         regcache_read and regcache_write.
2156         (regcache_raw_read_as_address): Replace regcache_read_as_address.
2157         * regcache.c: Update.
2158         * sh-tdep.c (sh64_push_arguments): Update comment.
2159         (sh_pseudo_register_read): Update.
2160         (sh_pseudo_register_write): Update.
2161         (sh4_register_read): Update.
2162         (sh4_register_write): Update.
2163         (sh64_pseudo_register_read): Update.
2164         (sh64_pseudo_register_write): Update.
2165         (sh64_register_read): Update.
2166         (sh64_register_write): Update.
2167         * i386-tdep.c (i386_extract_return_value): Update.
2168         (i386_extract_struct_value_address): Update.
2169         (i386_extract_return_value): Update.
2170         * blockframe.c (generic_read_register_dummy): Update.
2171         (generic_call_dummy_register_unwind): Update
2172         * infrun.c (write_inferior_status_register): Update.
2173
2174 2002-07-23  Jim Blandy  <jimb@redhat.com>
2175
2176         * parser-defs.h (expression_context_pc): Make this extern.
2177         (Thanks to Michael Snyder.)
2178
2179 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
2180
2181         GDB 5.2.1 released from 5.2 branch.
2182         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2183         * README: Update to mention 5.2.1.
2184
2185 2002-07-23  Mark Salter  <msalter@redhat.com>
2186
2187         * remote.c (remote_read_bytes): Fix check for error.
2188
2189 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
2190
2191         * aix-thread.c (language.h): Include.
2192         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2193         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2194         Print newlines at end of debug messages.
2195         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2196         (pdc_write_data): Use local_hex_string() instead of %llx formats.
2197
2198 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
2199
2200         * aix-thread.c (ppc-tdep.h): Include.
2201         (special_register_p): New function.
2202         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2203         (store_regs_user_thread): Use register number information from
2204         gdbarch_tdep struct instead of hardcoded offsets relative to
2205         FIRST_UISA_SP_REGNUM.
2206         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
2207         special_register_p() instead of using FPLAST_REGNUM and
2208         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2209         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
2210         will be MQ's register number.
2211
2212 2002-07-22  Michael Snyder  <msnyder@redhat.com>
2213
2214         * aix-thread.c (ops): Rename to aix_thread_ops.
2215         (base_ops): Rename to base_target.
2216         (ops_attach): Rename to aix_thread_attach.
2217         (ops_detach): Rename to aix_thread_detach.
2218         (ops_resume): Rename to aix_thread_detach.
2219         (ops_wait):   Rename to aix_thread_wait.
2220         (ops_kill):   Rename to aix_thread_kill.
2221         (init_ops):   Rename to init_aix_thread_ops.
2222         (ops_fetch_register): Rename to aix_thread_fetch_register.
2223         (ops_store_register): Rename to aix_thread_store_register.
2224         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2225         (ops_thread_alive):   Rename to aix_thread_thread_alive.
2226         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2227         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
2228         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2229         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
2230         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2231         (store_regs_lib):  Rename to store_regs_user_thread.
2232         (store_regs_kern): Rename to store_regs_kernel_thread.
2233
2234 2002-07-22  Michael Snyder  <msnyder@redhat.com>
2235
2236         * aix-thread.c (ops_prepare_to_store): Eliminate.
2237         (init_ops): Don't initialize ops.prepare_to_store.
2238         (store_regs_kern): Pre-fetch register buffers from child, 
2239         because some registers may not be in the cache.  Copy
2240         regs from register cache only if they are cached.
2241         (store_regs_lib): Copy regs from register cache only
2242         if they are cached.
2243         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2244         fill_gprs64): Ditto.
2245
2246 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
2247
2248         * aix-thread.c (gdb_assert.h): Include.
2249         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2250         register sizes (from register cache) match size of buffer holding
2251         register data.
2252         (fill_sprs32): Change parameter types to match those in the ptrace()
2253         buffer.
2254         (store_regs_lib): Likewise, but for 32-bit temporary variables.
2255         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2256
2257 2002-07-22  Michael Snyder  <msnyder@redhat.com>
2258
2259         * aix-thread.c (supply_sprs64): Cosmetic change.
2260         (supply_sprs32): Cosmetic change.
2261         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2262         (fill_sprs64): Use regcache_collect instead of read_register.
2263         (store_regs_lib): Use regcache_collect instead of 
2264         read_register.  Use fill_sprs32 instead of fill_sprs64,
2265         if debugging a 32-bit architecture.
2266         (store_regs_kern): Use fill_gprs64 etc. to pull the values
2267         out of the register cache, instead of passing a pointer into
2268         the register cache directly to ptrace.  Use regcache_collect
2269         insteaad of read_register.
2270         (ops_prepare_to_store): Use target_read_registers instead
2271         of read_register_bytes.
2272
2273 2002-07-20  Aidan Skinner <aidan@velvet.net>
2274
2275         * MAINTAINERS: Add self under write after approval. 
2276                 
2277 2002-07-20  Aidan Skinner <aidan@velvet.net>
2278
2279         * ada-tasks.c: Change k&r style function definitions to prototyped
2280         form.
2281                 
2282 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
2283
2284         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2285         * x86-64-tdep.c: Include "objfiles.h".
2286         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2287         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2288
2289 2002-07-17  Michal Ludvig  <michal@suse.cz>
2290
2291         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2292         (update_context): Initialise cfa variable.
2293
2294 2002-07-17  Michael Snyder  <msnyder@redhat.com>
2295
2296         * aix-thread.c: Shorten some long lines.  
2297         Bring comments into line with code spec.
2298
2299 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
2300
2301         * infrun.c: Re-indent using gdb_indent.sh.
2302
2303 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
2304
2305         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2306         Leave the indentation temporarily untouched, to minimize the diffs.
2307
2308 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
2309
2310         * stabsread.c: Make os9k sections of the code obsolete,
2311         for real this time.
2312         * stabsread.h: Make os9k sections of the code obsolete.
2313
2314 2002-07-18  Michal Ludvig <mludvig@suse.cz>
2315
2316         * linux-low.c (regsets_store_inferior_registers): Add free()
2317         at the end of a loop to prevent memory leak.
2318         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2319         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2320         * config/sparc/tm-sp64linux.h: Make the rest of #endif
2321         line a comment.
2322         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2323
2324 2002-07-17  Jim Blandy  <jimb@redhat.com>
2325
2326         * macrocmd.c (info_macro_command): Remove newline from error
2327         message.
2328
2329 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
2330
2331         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2332         (sh_gdbarch_init): Use it for sh-dsp.
2333
2334 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
2335
2336         * dwarf2read.c (read_initial_length): Handle older, non-standard,
2337         64-bit DWARF2 format.
2338
2339 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
2340
2341         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2342         <sys/proc.h> when not available.
2343
2344 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
2345
2346         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2347         * stabsread.c: Make os9k sections of the code obsolete.
2348         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2349         * config/i386/i386os9k.mt: Make file obsolete.
2350         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2351         (COMMON_OBS): Remove os9kread.o
2352         (SFILES): Remove os9kread.c.
2353         (os9kread.o, remote-os9k.o): Make target obsolete.
2354         * remote-os9k.c: Make file obsolete.
2355         * os9kread.c: Make file obsolete.
2356         * Makefile.in
2357
2358 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
2359
2360         * NEWS: Mention that the FR30 has been made obsolete.
2361         * fr30-tdep.c: Make file obsolete.
2362         * config/fr30/tm-fr30.h: Ditto.
2363         * config/fr30/fr30.mt: Ditto.
2364         * configure.tgt: Make fr30-*-elf obsolete.
2365         * MAINTAINERS: Make fr30-elf obsolete.
2366
2367 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2368
2369         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2370         found is not inside a section.
2371
2372 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2373
2374         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2375         strerror().
2376         (pdc_realloc): Use xrealloc() instead of realloc().
2377
2378 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2379
2380         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2381         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2382         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2383         macros.
2384
2385 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2386
2387         * aix-thread.c (ptrace_check): Eliminate goto.
2388         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
2389         problem.
2390
2391 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2392
2393         * aix-thread.c (gdbcmd.h): Include.
2394         (DEBUG, DBG, DBG2, dbg): Eliminate.
2395         (debug_aix_thread): New static global.
2396         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2397         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2398         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2399         invocations to DBG and DBG2 macros to test against
2400         ``debug_aix_thread'' and call fprintf_unfiltered().
2401         (_initialize_aix_thread): Add new command "set debug aix-thread".
2402
2403 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
2404
2405         From Gerhard Tonn <TON@de.ibm.com>:
2406         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2407         instead of supply_register.
2408
2409 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
2410
2411         * dwarf2cfi.c: Include "gdb_assert.h".
2412         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2413         non-NULL.
2414         (update_context): Do not use __func__.  Add missing ``break''.
2415         (update_context): Do not use __func__.
2416
2417 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
2418
2419         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2420         and its setting.  Set gdbarch instruction printing functions
2421         directly.  For non-rs6000 case use new function
2422         gdb_print_insn_powerpc.
2423         (gdb_print_insn_powerpc): New function.
2424
2425 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
2426
2427         * NEWS: Mention that the d30v has been marked obsolete.
2428         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2429         * configure.tgt: Mark d30v-*-* as obsolete.
2430         * d30v-tdep.c: Mark file as obsolete.
2431         * config/d30v/d30v.mt: Ditto.
2432         * config/d30v/tm-d30v.h: Ditto.
2433
2434 2002-07-13  Aidan Skinner <aidan@velvet.net>
2435
2436         * ada-tasks.c (add_task_entry): replace calls to
2437         malloc() with xmalloc
2438         * ada-tasks.c (init_task_list): replace calls to free with xfree()
2439         
2440         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2441         ada_finish_decode_line_1, all_sals_for_line
2442         ada_breakpoint_rewrite): replace calls to free() with xfree()
2443                 
2444 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2445
2446         From Nicholas Duffek (with minor changes by Martin Hunt, 
2447         Louis Hamilton, and Kevin Buettner):
2448         * aix-thread.c: New file.
2449
2450 2002-07-12  Petr Sorfa <petrs@caldera.com>
2451
2452         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
2453         complaint for invalid attribute class or form.
2454         (read_func_scope): DW_AT_frame_base
2455         better handling of DW_AT_block*.
2456         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2457         better handling of DW_AT_block*.
2458         (read_common_block): DW_AT_location
2459         better handling of DW_AT_block*.
2460         (read_partial_die): DW_AT_location better handling
2461         of DW_AT_block*.
2462         (new_symbol): DW_AT_external better handling of
2463         DW_AT_block*. Proper initialization of variable
2464         "addr".
2465         (attr_form_is_block): New function that returns true
2466         if the attribute's form is of DW_FORM_block*.
2467
2468 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2469
2470         * valops.c (find_method_list): Remove comment about
2471         removed STATIC_MEMFUNCP argument.
2472         (value_find_oload_method_list): Likewise.
2473
2474 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2475
2476         From Nicholas Duffek:
2477         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2478         target_new_objfile_hook.
2479
2480 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2481
2482         From Nicholas Duffek:
2483         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2484         csect.
2485
2486 2002-07-12  Andrew Cagney  <cagney@redhat.com>
2487
2488         * MAINTAINERS: Mention --enable-sim-build-warnings.
2489         (m68hc11-elf): Disable sim build warnings.
2490         (m32r-elf): Mark as broken obsolete candidate.
2491         (x86_64-linux-gnu): Mark as buildable with -Werror.
2492         (arm-elf): Change -w to ``,'' which enables warnings but not
2493         -Werror.
2494
2495 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
2496
2497         * bcache.h: Update copyright.
2498         (struct bstring, struct bcache): Move definition to "bcache.c".
2499         Replaced by opaque declaration.
2500         (bcache_xfree): Replace free_bcache.
2501         (bcache_xmalloc, bcache_memory_used): Declare.
2502         
2503         * bcache.c: Update copyright.
2504         (struct bstring, struct bcache): Moved to here from "bcache.h".
2505         Update comments.
2506         (bcache_xmalloc, bcache_memory_used): New functions.
2507         (bcache_xfree): Replace function free_bcache.
2508         
2509         * Makefile.in (objfiles.o): Add $(bcache_h).
2510         (objfiles_h): Remove $(bcache_h).
2511         (symfile.o): Add $(bcache_h).
2512
2513         * symmisc.c: Update copyright.
2514         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2515         (print_objfile_statistics): Use bcache_memory_used.
2516
2517         * symfile.c: Include "bcache.h".
2518         (reread_symbols): Use bcache_xfree.
2519         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2520         (add_psymbol_to_list): Pass psymbol_cache by value.
2521         (add_psymbol_with_dem_name_to_list): Ditto.
2522
2523         * objfiles.h: Update copyright.
2524         (struct bcache): Declare opaque.  Do not include "bcache.h".
2525         (struct objfile): Change psymbol_cache and macro_cache to ``struct
2526         bcache'' pointers.
2527         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2528
2529         * objfiles.c: Include "bcache.h".  Update copyright.
2530         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2531         macro_cache.
2532         (free_objfile): Use bcache_xfree.
2533
2534 2002-07-11  Grace Sainsbury  <graces@redhat.com>
2535
2536         * monitor.c (monitor_fetch_register): Make name a constant.
2537         (monitor_store_register): Same.
2538
2539 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
2540
2541         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2542         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2543         (finish_block) For non-function blocks, hash the symbol table.  For
2544         function blocks, mark the symbol table as unhashed.
2545         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2546         (msymbol_hash_iw): Likewise.
2547         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2548         value.
2549         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2550         (lookup_minimal_symbol): Likewise for both.
2551         * symtab.h (struct block): Add `hashtable' flag.  Comment the
2552         hashtable.
2553         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2554         (ALL_BLOCK_SYMBOLS): Update.
2555         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2556         (struct symbol): Add `hash_next' pointer.
2557         * symtab.c (lookup_block_symbol): Search using the hash table when
2558         possible.
2559         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2560         (search_symbols, find_addr_symbol): Likewise.
2561
2562         * dstread.c (process_dst_block): Clear hashtable bit for new block.
2563         (read_dst_symtab): Likewise.
2564         * jv-lang.c (get_java_class_symtab): Likewise.
2565         * mdebugread.c: Include "gdb_assert.h".
2566         (shrink_block): Assert that the block being modified is not hashed.
2567         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2568         * symmisc.c (free_symtab_block): Walk the hash table when freeing
2569         symbols.
2570         (dump_symtab): Recognize hashed blocks.
2571         * printcmd.c (print_frame_args):  Assert that function blocks do not
2572         have hashed symbol tables.
2573         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2574         (fill_in_ada_prototype, debug_print_block): Likewise.
2575         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
2576
2577 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
2578
2579         * stack.c (print_frame): Use result of frame_address_in_block()
2580         instead of fi->pc when evaluating symbols.
2581         (backtrace_command_1): Ditto.
2582
2583 2002-07-11  Andrew Cagney  <cagney@redhat.com>
2584
2585         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2586         Make static.
2587
2588         * arm-tdep.c (arm_register_name): Make return type constant.
2589
2590 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
2591
2592         * win32-nat.c (has_detach_ability): Convert to strict ISO C
2593         prototype.
2594         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2595         * s390-tdep.c (s390_fp_regnum): Ditto.
2596         (s390_read_fp): Ditto.
2597         (s390_pop_frame): Ditto.
2598         (_initialize_s390_tdep): Ditto.
2599         * remote.c (get_remote_state): Ditto.
2600         * procfs.c (mappingflags): Ditto.
2601         * memattr.c (_initialize_mem): Ditto.
2602         * mcore-tdep.c (mcore_pop_frame): Ditto.
2603         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2604         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2605         * language.c (set_case_str): Ditto.
2606         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2607         * frv-tdep.c (new_variant): Ditto.
2608         (frv_stopped_data_address): Ditto.
2609         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2610         (context_alloc): Ditto.
2611         (frame_state_alloc): Ditto.
2612         (unwind_tmp_obstack_init): Ditto.
2613         (unwind_tmp_obstack_free): Ditto.
2614         (cfi_read_fp): Ditto.
2615         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2616         (cris_pop_frame): Ditto.
2617         * c-lang.c (scanning_macro_expansion): Ditto.
2618         (finished_macro_expansion): Ditto.
2619         (c_preprocess_and_parse): Ditto.
2620         * gdbarch.sh: Ditto.
2621         * gdbarch.h, gdbarch.c: Regenerate.
2622         * config/mn10200/tm-mn10200.h: Adjust indentation.
2623         * target.c: Adjust indentation.
2624         * symtab.h: Adjust indentation.
2625         * stabsread.h: Adjust indentation.
2626         * remote-es.c: Adjust indentation.
2627         * os9kread.c: Adjust indentation.
2628
2629 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
2630         
2631         * wince.c (_initialize_wince): Rename _initialize_inftarg.
2632         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2633
2634 2002-07-10  Grace Sainsbury  <graces@redhat.com>
2635         
2636         * NEWS: Mention m68k, mcore multi-arching.  
2637         * MAINTAINERS: Change status of m68k, mcore to reflect
2638         multi-arching.
2639
2640 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
2641
2642         * valops.c (find_overload_match): Free oload_syms.
2643
2644 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
2645
2646         Define HAVE_SYS_PROC_H if sys/proc.h exists
2647         * configure.in: Add check for sys/proc.h
2648         * config.in: Regenerate.
2649         * configure: Regenerate.
2650
2651 2002-07-09  Grace Sainsbury  <graces@redhat.com>
2652
2653         * config/m68k/tm-m68k.h: Remove macros wrapped in 
2654         #if !GDB_MULTI_ARCH. 
2655
2656 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
2657
2658         * config.in, configure: Regenerate.
2659
2660 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
2661
2662         * dwarf2cfi.c: Include "gcore.h".
2663         (execute_stack_op): Fix implementation of the
2664         DW_OP_deref and DW_OP_deref_size operators by letting do their
2665         lookup in the target.
2666
2667 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
2668
2669         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2670         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2671         tdep->sc_sp_offset.
2672
2673 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
2674
2675         Fix PR gdb/595, gdb/602
2676         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2677         Don't call value_cast, just read the vtable pointer; update comments
2678         to match.
2679
2680 2002-07-05  Grace Sainsbury  <graces@redhat.com>
2681
2682         * config/mcore/tm-mcore.h: Remove file.
2683         * config/mcore/mcore.mt: Remove definition of TM_FILE
2684         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2685
2686 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
2687
2688         * i386bsd-tdep.c: Include "gdb_string.h".
2689
2690 2002-07-04  Grace Sainsbury  <graces@redhat.com>
2691
2692         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2693         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2694         mcore-tdep.
2695         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2696         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2697         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2698         (RETVAL_REGNUM): Move macros from tm-mcore.h
2699         (mcore_reg_struct_has_addr): New function.
2700         (mcore_gdbarch_init): Added initializations for the macros removed
2701         from tm-mcore.h.
2702
2703 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2704
2705         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2706         traditonal string branding within the ELF header.
2707
2708 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
2709
2710         * symtab.c (remove_params): New function.
2711         (make_symbol_overload_list): Use it instead of cplus_demangle.
2712         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
2713
2714 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2715
2716         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2717
2718         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2719         New variables.
2720         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2721         and tdep->sigtramp_end.
2722         * i386obsd-nat.c: New file.
2723         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2724
2725         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2726         Don't call get_current_frame().
2727
2728 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
2729
2730         * i386-nat.c (child_post_startup_inferior): New function
2731         calling i386_cleanup_dregs if
2732         I386_USE_GENERIC_WATCHPOINTS is defined.
2733         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2734         conditional to acknowledge that i386-nat.c has its
2735         own child_post_startup_inferior function.
2736
2737 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2738
2739         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2740         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2741         instead of MAX_REGISTER_RAW_SIZE.
2742         (i386_extract_return_value, i386_extract_struct_value_address):
2743         Convert to use regcache.
2744         (i386_gdbarch_init): Set max_register_raw_size and
2745         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2746         Set extract_return_value and extract_struct_value_address instead
2747         of their deprecated variants.
2748
2749         Convert i386 target to generic dummy frames.
2750         * i386-tdep.c: Include "symfile.h".
2751         (i386_frameless_signal_p): Consider a function to be frameless if
2752         the pc points at the first instruction of the function.
2753         (i386_frame_chain): Handle (generic) call dummies.
2754         (i386_frame_saved_pc): Likewise.
2755         (i386_frame_init_saved_regs): Remove code dealing with call
2756         dummies on the stack.
2757         (i386_push_dummy_frame): Removed.
2758         (i386_call_dummy_words): Removed.
2759         (i386_fix_call_dummy): Removed.
2760         (i386_push_return_address): New function.
2761         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
2762         parameter, and don't call get_current_frame.
2763         (i386_pop_frame): New function.
2764         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2765         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2766         entry_point_address, set call_dummy_breakpoint_offset to 0, set
2767         call_dummy_length to 0, set call_dummy_words to NULL, set
2768         sizeof_call_dummy_words to 0, set fix_call_dummy to
2769         generic_fix_call_dummy, set pc_in_call_dummy to
2770         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2771         generic_push_dummy_frame, set push_return_address to
2772         i386_push_return_address and set frame_chain_valid to
2773         generic_file_frame_chain_valid.
2774
2775 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2776
2777         * gdbarch.sh (struct regcache): Add opaque declaration.
2778         (EXTRACT_RETURN_VALUE): New architecture method.
2779         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2780         * gdbarch.h, gdbarch.c: Regenerate.
2781         * arch-utils.c (legacy_extract_return_value): New function.
2782         * arch-utils.h (legacy_extract_return_value): Declare.
2783         * values.c (value_being_returned): Re-enable code handling
2784         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
2785         deprecated_grub_regcache_for_registers call to block handling
2786         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2787         (EXTRACT_RETURN_VALUE): Do not define.
2788
2789 2002-07-03  Grace Sainsbury  <graces@redhat.com>
2790
2791         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2792         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2793         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2794         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2795         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2796         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2797         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2798         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2799         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2800         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2801         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2802         argument so the function fits the prototype in the architecture
2803         vector.
2804         (mcore_pop_frame): Remove argument so the function fits the
2805         prototype. Use get_current_frame instead of the argument.
2806         (mcore_push_arguments): Change type of struct_return so the
2807         function can be used in the architecture vector.
2808         (mcore_store_struct_return): Add.
2809         (mcore_frame_init_saved_regs): Add.
2810         (mcore_gdbarch_init): Add function calls to replace the macros
2811         removed from tm-mcore.h
2812
2813 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2814
2815         * infcmd.c (print_return_value): Remove compatibility code calling
2816         deprecated_grub_regcache_for_registers.
2817         
2818         * values.c: Include "regcache.h".
2819         (value_being_returned): Update.  Use
2820         deprecated_grub_regcache_for_registers to extract the register
2821         buffer address.  
2822         * value.h (value_being_returned): Change ``retbuf'' parameter to a
2823         ``struct regcache''.
2824         * Makefile.in (values.o): Add dependency on $(regcache_h).
2825
2826         * inferior.h (run_stack_dummy): Change type of second parameter to
2827         a ``struct regcache''.
2828         * valops.c (hand_function_call): Change type of retbuf to ``struct
2829         regcache''.  Allocate using regcache_xmalloc, clean using
2830         make_cleanup_regcache_xfree.
2831         * infcmd.c (run_stack_dummy): Update.  Use
2832         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2833
2834         * regcache.c (do_regcache_xfree): New function.
2835         (make_cleanup_regcache_xfree): New function.
2836         * regcache.h (make_cleanup_regcache_xfree): Declare.
2837
2838 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2839
2840         * event-top.c (command_line_handler): Don't read past
2841         beginning of buffer.
2842
2843 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2844         
2845         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
2846         struct frame_id. 
2847         (varobj_create): Store frame_id for root.
2848         (varobj_gen_name): Use xasprintf.
2849         (varobj_update): Save and restore frame using get_frame_id() and
2850         frame_find_by_id().
2851         (create_child): Use xasprintf.
2852         (new_root_variable): Initialize frame_id.
2853         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2854         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2855         to prevent memory leak.
2856
2857 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2858
2859         * valops.c (hand_function_call): Move declaration of retbuf to
2860         start of function, allocate using malloc, add a cleanup but before
2861         the inf_status cleanup, cleanup the buffer.  Rename local variable
2862         old_chain to inf_status_cleanup.
2863
2864 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2865
2866         * top.c (execute_command): Use cmd_func() and cmd_func_p().
2867
2868         * cli/cli-decode.c (cmd_func_p): New function.
2869         (cmd_func): New function.
2870
2871         * command.h: Add cmd_func() and cmd_func_p().   
2872         
2873 2002-07-03  Grace Sainsbury  <graces@redhat.com>
2874
2875         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2876         (REGISTER_SIZE): Remove.
2877         (MAX_REGISTER_RAW_SIZE): Remove.
2878         (REGISTER_VIRTUAL_TYPE): Remove.
2879         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2880         (REGISTER_NAME): Remove.
2881         (USE_GENERIC_DUMMY_FRAMES): Remove.
2882         (CALL_DUMMY): Remove.
2883         (CALL_DUMMY_START_OFFSET): Remove.
2884         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2885         (CALL_DUMMY_LOCATION): Remove.
2886         (FIX_CALL_DUMMY): Remove.
2887         (CALL_DUMMY_ADDRESS): Remove.
2888         (SIZEOF_CALL_DUMMY_WORDS): Remove.
2889         (SAVE_DUMMY_FRAME_TOS): Remove.
2890         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2891         (mcore_register_virtual_type): New function.
2892         (mcore_register_byte): New function.
2893         (mcore_register_size): New function.
2894         (mcore_register_name): New function.
2895         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2896         macros removed from tm-mcore.h.
2897         (mcore_dump_tdep): Add.
2898         (_initialize_mcore_tdep): Add gdbarch_register call.
2899
2900 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
2901
2902         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2903         frameless_look_for_prologue, such that we actually call this
2904         function.
2905
2906 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2907
2908         * frame.h (frame_address_in_block): New function.
2909
2910         * blockframe.c (frame_address_in_block): New function extracted
2911         from get_frame_block().
2912         (get_frame_block): Use frame_address_in_block().
2913         (block_innermost_frame): Use frame_address_in_block() to match
2914         the frame pc address against the block boundaries rather than
2915         the frame pc directly. This prevents a failure when a frame pc
2916         is actually a return-address pointing immediately after the end
2917         of the given block. 
2918
2919 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2920
2921         * MAINTAINERS: Add self under write after approval. 
2922
2923 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2924
2925         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2926         used in architecture vector. The default is
2927         m68k_local_breakpoint_from_pc.
2928         (m68k_local_breakpoint_from_pc): Add.
2929         (enum): Add register numbers from tm-m68k.h.
2930         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2931         vector.  
2932         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2933         GDB_MULTI_ARCH_PARTIAL.
2934         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2935         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2936         m68k-tdep.c.
2937         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2938         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2939         to enum in m68k-tdep.c
2940
2941 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2942
2943         * solib-osf.c (open_map): Compute the list of shared libraries
2944         loaded by the inferior, rather than the list of libraries loaded
2945         by GDB itself.  Otherwise, GDB ends up reading the symbols from
2946         the wrong shared libraries...
2947
2948 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
2949
2950         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2951         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2952         macros.
2953         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2954         Remove functions.
2955         (FRAMELESS_SIGNAL): Remove function.
2956         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2957         i386_linux_saved_pc_after_call): Removed.
2958         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2959         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
2960         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2961
2962         * i386-tdep.c (i386_frameless_signal_p): New function.
2963         (i386_frame_chain): Deal with frameless signals.
2964         (i386_sigtramp_saved_sp): New function.
2965         (i386_frame_saved_pc): Deal with frameless signals.
2966         (i386_saved_pc_after_call): Make sure the correct value is
2967         returned just after entry into a sigtramp.
2968         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2969         i386fbsd4_sc_sp_offset): New variables.
2970         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2971         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
2972         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2973         similiar to what we already did for sc_pc_offset.
2974         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2975         tdep->sc_sp_offset.
2976
2977         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2978
2979 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
2980
2981         * config/i386/tm-x86-64linux.h: New.
2982         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2983         definitions.
2984         * config/i386/nm-x86-64.h: Rename to ...
2985         * config/i386/nm-x86-64linux.h: ... this one.
2986         * config/i386/x86-64linux.mh: Reflect the above change.
2987         
2988 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
2989
2990         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2991         with sigcontext_addr.  Add sc_sp_offset.
2992         (i386bsd_sigtramp_saved_pc): Remove prototype.
2993         (i386bsd_sicontext_addr): Add prototype.
2994         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2995         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2996         (i386_svr4_sigtramp_saved_pc): Removed.
2997         (i386_svr4_sigcontext_addr): New function.
2998         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2999         Initialize tdep->sigcontext_addr instead.  Initialize
3000         tdep->sc_pc_offset and tdep->sc_sp_offset.
3001         (i386_gdbarch_init): Likewise.
3002         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3003         any more.
3004         (i386bsd_sigtramp_saved_pc): Remove function.
3005         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3006         Initialize tdep->sigcontext_addr instead.  Initialize
3007         tdep->sc_pc_offset.
3008         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3009         of tdep->sigtramp_saved_pc.
3010         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3011         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
3012         instead.
3013
3014         * i386-tdep.c (i386_frameless_function_invocation,
3015         i386_frame_num_args, i386_frame_init_saved_regs,
3016         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3017         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3018         i386_extract_return_value, i386_store_return_value,
3019         i386_extract_struct_value_address, i386_register_virtual_type,
3020         i386_register_convertible, i386_register_convert_to_virtual,
3021         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3022         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3023         static.
3024
3025 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
3026
3027         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3028
3029         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3030         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3031         this macro.  Include "value.h".
3032
3033 2002-06-30  Aidan Skinner  <aidan@velvet.net>
3034
3035         * ada-exp.tab.c: remove as it's a generated file
3036         * ada-lex.c: remove as it's a generated file
3037                 
3038 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
3039
3040         * config/i386/tm-i386.h (struct frame_info, struct
3041         frame_saved_regs, struct value, struct type): Remove forward
3042         declarations.
3043
3044         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3045         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3046         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3047         (FILL_FPXREGSET): Define.
3048
3049         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3050
3051         * configure.tgt (i[3456]86-*-openbsd*): Fold into
3052         i[3456]86-*-netbsd* case.
3053         * config/i386/tm-obsd.h: Removed.
3054         * config/i386/obsd.mt: Removed.
3055         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3056         core-aout.o.
3057         (MH_CFLAGS): Add -DYYDEBUG=0.
3058
3059         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3060         i386nbsd_sc_pc_offset on OpenBSD too.
3061
3062         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3063         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3064         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3065         define.
3066         * i386bsd-tdep.c: Include "arch-utils.h".
3067         (i386bsd_aout_in_solib_call_trampoline): New function.
3068         (i386bsd_init_abi): Set in_solib_call_trampoline to
3069         i386bsd_aout_in_solib_call_trampoline.
3070         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3071         in_solib_call_trampoline to generic_in_solib_call_trampoline.
3072
3073 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3074
3075         * macrotab.h: Do not include "obstack.h" or "bcache.h".
3076         (struct obstack, struct bcache): Add opaque declarations.
3077         * Makefile.in (macrotab_h): Update
3078
3079 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3080
3081         * blockframe.c (generic_find_dummy_frame): Change return type to
3082         ``struct regcache''.
3083         (struct dummy_frame): Replace field ``registers'' with regcache, a
3084         struct regcache object.
3085         (generic_find_dummy_frame): Update.
3086         (generic_push_dummy_frame): Update.  Use regcache_xfree,
3087         regcache_xmalloc and regcache_cpy.
3088         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
3089         regcache_xfree.
3090         (deprecated_generic_find_dummy_frame): Update.
3091         (generic_read_register_dummy): Update.  Use
3092         regcache_read_as_address.
3093         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
3094         (generic_get_saved_register): Update.  Use regcache_read.
3095
3096 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3097
3098         * Makefile.in (objfiles_h): Add $(bcache_h).
3099         * objfiles.h: Include "bcache.h".
3100
3101         * Makefile.in (symtab_h): Remove $(bcache_h).
3102         * symtab.h: Do not include "bcache.h".
3103
3104 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3105
3106         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3107         generic_func_frame_chain_valid.
3108
3109 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
3110
3111         * config/i386/nm-fbsd.h: Include <sys/param.h>.
3112         * config/i386/tm-fbsd.h: Likewise.
3113
3114 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3115
3116         * rs6000-tdep.c (rs6000_gdbarch_init): Use
3117         generic_unwind_get_saved_register.
3118
3119 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
3120
3121         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3122         * regcache.c (supply_register): Add missing argument to
3123         register_buffer call.
3124
3125 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
3126
3127         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
3128         Solaris /bin/grep does not not like it.  From Peter Schauer.
3129
3130 2002-06-26  Tom Tromey  <tromey@redhat.com>
3131
3132         * command.h (add_setshow_cmd): Declare.
3133         (add_setshow_cmd_full): Declare.
3134         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
3135         returns void.  Use add_setshow_cmd_full.
3136         (add_setshow_cmd_full): New function.
3137         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3138         (add_setshow_boolean_cmd): Likewise.
3139
3140 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
3141
3142         * config/vax/tm-vax.h: Protect from multiple inclusion.
3143         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3144         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3145         * config/vax/tm-vaxbsd.h: ...here.  New file.
3146         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3147
3148 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
3149
3150         * config/vax/tm-vax.h (BREAKPOINT): Remove.
3151         (BELIEVE_PCC_PROMOTION): Remove.
3152         (AP_REGNUM): Move to...
3153         * config/vax/nm-vax.h: ...here.
3154         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3155         (vax_breakpoint_from_pc): New function.
3156         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3157         and gdbarch_believe_pcc_promotion.
3158
3159 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
3160
3161         * Makefile.in (vax_tdep_h): Define.  
3162         (vax-tdep.o): Use $(vax_tdep_h).
3163         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3164         (vax_dump_tdep): New function. 
3165         (_initialize_vax_tdep): Register vax_dump_tdep.
3166         * vax-tdep.h: Include osabi.h.     
3167         (struct gdbarch_tdep): New. 
3168
3169 2002-06-26  Andrew Cagney  <cagney@redhat.com>
3170
3171         * frame.h (deprecated_generic_find_dummy_frame): Rename
3172         generic_find_dummy_frame.
3173         * blockframe.c (generic_find_dummy_frame): Make static.
3174         (deprecated_generic_find_dummy_frame): New function.
3175         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3176         generic_find_dummy_frame with deprecated_find_dummy_frame.
3177         (sh64_nofp_frame_init_saved_regs): Ditto.
3178         (sh_fp_frame_init_saved_regs): Ditto.
3179         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3180         (s390_frame_chain): Ditto.
3181         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3182
3183 2002-06-26  Grace Sainsbury  <graces@redhat.com>
3184
3185         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3186         gdbarch vector are at the top.
3187         (NUM_REGS): Remove.
3188         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3189         (FRAME_ARGS_ADDRESS): Remove.
3190         (FRAME_LOCALS_ADDRESS): Remove.
3191         (FRAME_NUM_ARGS): Remove.
3192         (FRAME_ARGS_SKIP): Remove.  
3193         * m68k-tdep.c (enum): Add eumeration of special register numbers.
3194         (m68k_gdbarch_init): Add gdbarch initializations for macros
3195         undefined in tm-m68k.h
3196
3197 2002-06-26  Grace Sainsbury  <graces@redhat.com>
3198
3199         * monitor.h: Add the function regname to monitor_ops
3200         structure. This way NUM_REGS does not have to be a constant.
3201         * monitor.c (monitor_fetch_register): Added support for regname
3202         function. The function is called if the array regnames is NULL.
3203         (monitor_store_register): Same.
3204         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3205         regnames array.
3206         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3207         cpu32bug_cmds.regname to point to new function.
3208         * abug-rom.c (abug_regname): Same as above.
3209         (init_abug_cmds): Same.
3210         * dbug-rom.c (dbug_regname): Same as above.
3211         (init_dbug_cmds): Same.
3212         * remote-est.c (est_regname): Same. 
3213         (init_est_cmds): Same.
3214         * rom68k-rom.c (rom68k_regname): Same. 
3215         (init_rom68k_cmds): Same.
3216
3217 2002-06-25  Tom Tromey  <tromey@redhat.com>
3218
3219         * breakpoint.c (delete_command): Don't repeat `delete' commands.
3220
3221 2002-06-25  Andrew Cagney  <cagney@redhat.com>
3222
3223         * infrun.c (stop_registers): Change variable's type to ``struct
3224         regcache'''.
3225         (xmalloc_inferior_status): Delete function.
3226         (free_inferior_status): Delete function.
3227         (normal_stop): Use regcache_cpy.
3228         (struct inferior_status): Change type of fields ``stop_registers''
3229         and ``registers'' to ``struct regcache''.
3230         (write_inferior_status_register): Use regcache_write.
3231         (save_inferior_status): Instead of calling
3232         xmalloc_inferior_status, allocate the inf_status buffer directly.
3233         Use regcache_dup_no_passthrough and regcache_dup to save the
3234         buffers.
3235         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3236         Replace the stop_registers regcache instead of overriding it.  Use
3237         regcache_xfree.  Instead of calling free_inferior_status, xfree
3238         the buffer directly.
3239         (discard_inferior_status): Use regcache_xfree.  Instead of calling
3240         free_inferior_status, xfree the buffer directly.
3241         (build_infrun): Use regcache_xmalloc.
3242         (_initialize_infrun): Delete redundant call to build_infrun.
3243
3244         * Makefile.in (infcmd.o): Add $(regcache_h).
3245
3246         * infcmd.c: Include "regcache.h".
3247         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3248         obtain the address of `stop_registers' register buffer.
3249         (print_return_value): Ditto.
3250
3251         * inferior.h (struct regcache): Add opaque declaration.
3252         (stop_registers): Change variable's declared type to ``struct
3253         regcache''.
3254
3255 2002-06-24  Tom Tromey  <tromey@redhat.com>
3256
3257         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3258         * target.c (initialize_targets): Fixed typo in
3259         trust-readonly-sections `show' documentation.
3260
3261         * main.c: Marked all strings with _().
3262
3263 2002-06-24  Don Howard  <dhoward@redhat.com>
3264
3265         * memattr.c (create_mem_region): Treat hi == 0 as a special case
3266         that means max CORE_ADDR+1.
3267         (lookup_mem_region): Ditto.
3268         (mem_info_command): Ditto.
3269
3270 2002-06-24  Grace Sainsbury  <graces@redhat.com>
3271
3272         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3273         (REGISTER_BYTES_OK): Remove.
3274         (REGISTER_BYTES): Remove.
3275         (STORE_STRUCT_RETURN): Remove.
3276         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3277         (STORE_RETURN_VALUE): Remove.
3278         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3279         (FRAME_CHAIN): Remove.
3280         (FRAMELESS_FUNCTION_INVOCATION): Remove.
3281         (FRAME_SAVED_PC): Remove.  
3282         * m68k-tdep.c (m68k_register_bytes_ok):Add.
3283         (m68k_store_struct_return): Add.
3284         (m68k_deprecated_extract_return_value): Add.
3285         (m68k_deprecated_extract_struct_value_address): Add.
3286         (m68k_store_return_value): Add.
3287         (m68k_frame_chain): Add.
3288         (m68k_frameless_function_invocation): Add.
3289         (m68k_frame_saved_pc): Add.
3290         (m68k_gdbarch_init): added set_gdbarch calls for new 
3291         functions and deleted macros.
3292
3293 2002-06-23  Tom Tromey  <tromey@redhat.com>
3294
3295         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3296         (ALLDEPFILES): Likewise.
3297         (udiheaders): Removed.
3298         (udip2soc.o): Likewise.
3299         (udi2go32.o): Likewise.
3300         (udr.o): Likewise.
3301         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3302
3303 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
3304
3305         * infrun.c (_initialize_infrun): Delete unnecessary call to
3306         build_infrun.
3307
3308         * regcache.h: Update comments describing the regcache_cpy family
3309         of functions.
3310         (regcache_save, regcache_restore): Delete declaration.
3311         (regcache_save_no_passthrough): Delete declaration.
3312         (regcache_restore_no_passthrough): Delete declaration.
3313         * regcache.c (regcache_save): Delete function.
3314         (regcache_save_no_passthrough): Delete function.
3315         (regcache_restore): Delete function.
3316         (regcache_restore_no_passthrough): Delete function.
3317
3318 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
3319
3320         * config/m68k/tm-m68k.h: Fix typo.
3321         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3322         (m68k_frame_init_saved_regs): Declare.
3323
3324 2002-06-21  Jim Blandy  <jimb@redhat.com>
3325
3326         Remove some vestiges of Harris 88k support.
3327         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3328         register numbering quirk.
3329         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3330         odd symbols occurring in Harris 88k ELF targets.
3331
3332 2002-06-21  Tom Tromey  <tromey@redhat.com>
3333
3334         * gdb_locale.h: New file.
3335         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3336         (defs_h): Added gdb_locale.h.
3337         * configure, config.in: Rebuilt.
3338         * configure.in (PACKAGE): Define.
3339         * defs.h: Include gdb_locale.h.
3340         * main.c (captured_main): Call setlocale, bindtextdomain,
3341         textdomain.
3342
3343 2002-06-21  Dave Brolley  <brolley@redhat.com>
3344
3345         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3346         * config/frv/frv.mt: New file.
3347         * config/frv/tm-frv.h: New file.
3348         * configure.tgt: Support frv-*-*.
3349         * Makefile.in (frv-tdep.o): New target.
3350         * frv-tdep.c: New file.
3351         * NEWS: Mention frv.
3352
3353 2002-06-21  Dave Brolley  <brolley@redhat.com>
3354
3355         * MAINTAINERS: Add self to "Write After Approval" list.
3356
3357 2002-06-21  Grace Sainsbury  <graces@redhat.com>
3358
3359         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3360         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3361         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3362         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3363         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3364
3365         * m68k-tdep.c: Include arch-utils.h
3366         (m68k_register_raw_size): Add.
3367         (m68k_register_virtual_size): Add.
3368         (m68k_register_virtual_type): Add.
3369         (m68k_register_name): Add.
3370         (m68k_stack_align): Add.
3371         (m68k_register_byte): Add.
3372         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3373         tm-m68k.h.
3374
3375 2002-06-21  Grace Sainsbury  <graces@redhat.com>
3376
3377         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3378         m68k_find_saved_regs.
3379         (m68k_pop_frame): Removed saved_regs structure, and replaced
3380         references to it with frame->saved_regs.
3381         (m68k_gdbarch_init): Added function calls to initialize the
3382         gdbarch structure.
3383         (m68k_fix_call_dummy): Add. 
3384         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3385         (CALL_DUMMY): Remove.
3386         (CALL_DUMMY_LENGTH): Remove.
3387         (CALL_DUMMY_START_OFFSET): Remove.
3388         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3389         (FIX_CALL_DUMMY): Remove.
3390         (PUSH_DUMMY_FRAME): Remove.
3391         (POP_FRAME): Remove.
3392
3393 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
3394
3395         * parse.c (parse_fprintf): New function used to avoid calls to
3396         fprintf in bison parser generated debug code.
3397         * parser-defs.h: Declaration of new parse_fprintf function.
3398         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3399         Set YYDEBUG to 1 by default.
3400         Set YYFPRINTF as parse_fprintf.
3401
3402 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
3403
3404         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
3405         encoding anymore.
3406         (pointer_encoding, enum ptr_encoding): New.
3407         (execute_cfa_program): Take care about pointer encoding.        
3408         (dwarf2_build_frame_info): Only call parse_frame_info for 
3409         .debug_frame and .eh_frame.
3410         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3411         fixed augmentation handling, added relative addressing, 
3412         ignore duplicate FDEs. Added comments.
3413         * dwarf2cfi.c: Reindented.
3414         
3415 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
3416
3417         * event-top.c (command_handler): Don't use space_at_cmd_start
3418         unless there is sbrk() on the host. Assign time and space data
3419         to union fields of the appropriate length.
3420
3421 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
3422
3423         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
3424         x86_64_register_name. Return type changed to 'const char *'.
3425         (x86_64_register_name2nr): Rename to x86_64_register_number.
3426         (x86_64_gdbarch_init): Update to reflect the change.
3427         * x86-64-tdep.h: Ditto.
3428         * x86-64-linux-nat.c (x86_64_fxsave_offset)
3429         (supply_fpregset): Ditto.
3430
3431 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3432
3433         * regcache.h: Update copyright.
3434         (struct regcache, struct gdbarch): Add opaque declarations.
3435         (current_regcache): Declare global variable.
3436         (regcache_read, regcache_write): Add gdbarch parameter.
3437         (regcache_save, regcache_save_no_passthrough)
3438         (regcache_restore, regcache_restore_no_passthrough)
3439         (regcache_dup, regcache_dup_no_passthrough)
3440         (regcache_cpy, regcache_cpy_no_passthrough)
3441         (deprecated_grub_regcache_for_registers)
3442         (deprecated_grub_regcache_for_register_valid)
3443         (regcache_valid_p): Add function declarations.
3444         
3445         * regcache.c: Update copyright.
3446         (regcache_descr_handle): New global variable.
3447         (struct regcache_descr): Define.
3448         (init_legacy_regcache_descr, init_regcache_descr): New functions.
3449         (regcache_descr, xfree_regcache_descr): New functions.
3450         (struct regcache): Define.
3451         (regcache_xmalloc, regcache_xfree): New functions.
3452         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3453         (regcache_dup, regcache_dup_no_passthrough): New functions.
3454         (regcache_valid_p, regcache_read_as_address): New functions.
3455         (deprecated_grub_regcache_for_registers): New function.
3456         (deprecated_grub_regcache_for_register_valid): New function.
3457         (current_regcache): New global variable.
3458         (register_buffer): Add regcache parameter.  Update calls.
3459         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
3460         (read_register_gen, write_register_gen): Update register_buffer
3461         call.  Test for legacy_p instead of gdbarch_register_read_p or
3462         gdbarch_register_write_p.
3463         (regcache_collect): Update register_buffer call.
3464         (build_regcache): Rewrite.  Use deprecated grub functions.
3465         (regcache_save, regcache_save_no_passthrough): New functions.
3466         (regcache_restore, regcache_restore_no_passthrough): New
3467         functions.
3468         (_initialize_regcache): Create the regcache_data_handle. Swap
3469         current_regcache global variable.
3470         
3471         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3472         parameter to regcache_read and regcache_write calls.
3473         (sh4_register_read): Ditto.
3474         (sh64_pseudo_register_read): Ditto.
3475         (sh64_register_read): Ditto.
3476         (sh_pseudo_register_write): Ditto.
3477         (sh4_register_write): Ditto.
3478         (sh64_pseudo_register_write): Ditto.
3479         (sh64_register_write): Ditto.
3480
3481         * defs.h (XCALLOC): Define.
3482
3483 2002-06-19  Grace Sainsbury  <graces@redhat.com>
3484
3485         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3486         * m68k-tdep.c (m68k_gdbarch_init): Added.
3487         (m68k_dump_tdep): Added.
3488
3489 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3490
3491         * ada-lang.c (fill_in_ada_prototype): Update comment.
3492
3493 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3494
3495         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
3496         MIPS_ABI_LAST.
3497         (mips_abi_string, mips_abi_strings): New.
3498         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3499         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
3500         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
3501         O32 if no ABI is found.
3502         (mips_dump_tdep): Use mips_abi_strings.
3503         (mips_abi_update): New function.
3504         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
3505         ``set mips abi'' and ``show mips abi''.  Check the size of
3506         mips_abi_strings.
3507
3508 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3509
3510         * i386-linux-tdep.c (i386_linux_register_name): Make return type
3511         constant.
3512
3513 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
3514
3515         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
3516         current frame using only the first stack size adjustment. All
3517         subsequent size adjustments are not considered to be part of
3518         the "static" part of the current frame.
3519         Compute the address of the saved registers relative to the
3520         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3521         in use in this frame.
3522
3523 2002-06-18  Don Howard  <dhoward@redhat.com>
3524  
3525         * valops.c (value_ind): Use value_at_lazy() when dereferencing
3526         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
3527         suggesting this solution.
3528
3529 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
3530
3531         * config/romp/xm-rtbsd.h: Delete file.
3532         * config/romp/rtbsd.mh: Delete file.
3533
3534 2002-06-18  Keith Seitz  <keiths@redhat.com>
3535
3536         * breakpoint.c (condition_command): Post breakpoint_modify
3537         when a condition is added to an existing breakpoint.
3538         (commands_command): Likewise for commands.
3539         (set_ignore_count): Likewise for ignore counts.
3540         If no tty, do not simply return, still need to send event
3541         notification.
3542         (ignore_command): Only print a newline if the command came
3543         from a tty.
3544         Don't call breakpoints_changed, since this is now properly
3545         handled by set_ignore_count.
3546
3547 2002-06-18  Andrew Cagney  <cagney@redhat.com>
3548
3549         * MAINTAINERS: Note that cris-elf target can be compiled with
3550         -Werror.
3551         * cris-tdep.c (cris_register_name): Make return type constant.
3552         (cris_breakpoint_from_pc): Ditto.
3553
3554 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
3555
3556         * frame.h (struct frame_info): Change type of context to 
3557         'struct context'.
3558
3559 2002-06-17  Andrew Cagney  <cagney@redhat.com>
3560
3561         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3562         pointer.
3563         * gdbarch.h, gdbarch.c: Regenerate.
3564         * config/mips/tm-mips.h (mips_register_name): Update.
3565         * i386-tdep.h (i386_register_name): Update.
3566         * mips-tdep.c (mips_register_name): Update
3567         * alpha-tdep.c (alpha_register_name): Update.
3568         * arch-utils.c (legacy_register_name): Update.
3569         * arch-utils.h (legacy_register_name): Update.
3570         * avr-tdep.c (avr_register_name): Update.
3571         * ia64-tdep.c (ia64_register_name): Update.
3572         * i386-tdep.c (i386_register_name): Update.
3573         * sparc-tdep.c (sparc32_register_name): Update.
3574         (sparc64_register_name): Update.
3575         (sparclite_register_name): Update.
3576         (sparclet_register_name): Update.
3577         * sh-tdep.c (sh_generic_register_name): Update.
3578         (sh_sh_register_name): Update.
3579         (sh_sh3_register_name): Update.
3580         (sh_sh3e_register_name): Update.
3581         (sh_sh_dsp_register_name): Update.
3582         (sh_sh3_dsp_register_name): Update.
3583         (sh_sh4_register_name): Update.
3584         (sh_sh64_register_name): Update.
3585         * s390-tdep.c (s390_register_name): Update.
3586         * rs6000-tdep.c (rs6000_register_name): Update.
3587         * ns32k-tdep.c (ns32k_register_name_32082): Update.
3588         (ns32k_register_name_32382): Update.
3589         * d10v-tdep.c (d10v_ts2_register_name): Update.
3590         (d10v_ts3_register_name): Update.
3591         * xstormy16-tdep.c (xstormy16_register_name): Update.
3592         * vax-tdep.c (vax_register_name): Update.
3593         * v850-tdep.c (v850_register_name): Update.
3594         * m68hc11-tdep.c (m68hc11_register_name): Update.
3595         * mn10300-tdep.c (mn10300_generic_register_name): Update.
3596         (am33_register_name): Update.
3597
3598 2002-06-17  Grace Sainsbury  <graces@redhat.com>
3599
3600         * m68k-tdep.c: Reindented.
3601
3602 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
3603
3604         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3605         list of predefined types.
3606
3607 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
3608
3609         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3610         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3611         REGISTER_CONVERT_TO_RAW): Remove defines.
3612         (i386_register_virtual_type, i386_register_convertible,
3613         i386_register_convert_to_virtual, i386_register_convert_to_raw):
3614         Remove prototypes.
3615         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3616         macros mentioned above.
3617
3618         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3619         (i386lynx_saved_pc_after_call): Remove prototype.
3620         * i386ly-tdep.c: Include "i386-tdep.h".
3621         (i386lynx_saved_pc_after_call): Make static.  Use
3622         read_memory_nobpt instead of read_memory.  Use
3623         read_memory_unsigned_integer instead of read_memory_integer.
3624         (i386lynx_init_abi): New function.
3625         (i386lynx_coff_osabi_sniffer): New function.
3626         (_initialize_i386bsd_tdep): New function.
3627
3628         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3629         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3630         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3631         (i386_fix_call_dummy): Remove prototype.
3632         * i386-tdep.c (i386_call_dummy_words): New variable.
3633         (i386_gdbarch_init): Adjust for removal of the
3634         macros mentioned above.
3635
3636 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3637
3638         * command.h (add_setshow_auto_boolean_cmd): Replace
3639         add_set_auto_boolean_cmd.
3640         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3641         add_set_auto_boolean_cmd.
3642         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3643         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3644         mask-address'' command.
3645         (show_mask_address): Add cmd parameter.
3646         * remote.c (add_packet_config_cmd): Update.  Change type of
3647         set_func and show_func to cmd_sfunc_ftype.
3648         (_initialize_remote): Update `set remote Z-packet'
3649         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3650         (show_remote_protocol_e_packet_cmd): Ditto.
3651         (show_remote_protocol_E_packet_cmd): Ditto.
3652         (show_remote_protocol_P_packet_cmd): Ditto.
3653         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3654         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3655         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3656         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3657         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3658         (show_remote_protocol_Z_packet_cmd): Ditto.
3659         (show_remote_protocol_binary_download_cmd): Ditto.
3660         (show_remote_cmd): Pass NULL to all of above.
3661
3662 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3663
3664         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3665         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3666         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3667         POP_FRAME): Remove defines.
3668         (i386_push_arguments, i386_store_struct_return,
3669         i386_extract_return_value, i386_store_return_value,
3670         i386_extract_struct_value_address, i386_push_dummy_frame,
3671         i386_pop_frame): Renove prototypes.
3672         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3673         macros mentioned above.
3674
3675 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3676
3677         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3678         add_set_boolean_cmd.
3679         (add_setshow_cmd): New function.
3680         * command.h (add_setshow_boolean_cmd): Replace
3681         add_set_boolean_cmd.
3682         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3683         and ``set rdiromatzero''.
3684         * maint.c (_initialize_maint_cmds): Update commented out code.
3685         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3686         * target.c (initialize_targets): Update `set
3687         trust-readonly-sections'.
3688         * remote.c (_initialize_remote): Update `set remotebreak'.
3689
3690 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3691
3692         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3693         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3694         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3695         fit into multi-arch framework.
3696         (i386_breakpoint_from_pc): New function.
3697         (i386_gdbarch_init): Adjust for removal of the macros mentioned
3698         above.
3699
3700         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3701         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3702         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3703         (i386_frameless_function_invocation, i386_frame_num_args,
3704         i386_frame_init_saved_regs): Remove prototypes.
3705         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3706         macros mentioned above.
3707
3708 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3709
3710         * cli/cli-decode.c (set_cmd_cfunc): Update.
3711         (set_cmd_sfunc): Update.
3712         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3713         (set_cmd_sfunc, set_cmd_cfunc): Update.
3714         * cli/cli-decode.h: Update.
3715
3716 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3717
3718         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3719         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3720
3721 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3722
3723         * defs.h (auto_boolean): Declare enum.
3724         * command.h (cmd_auto_boolean): Delete enum.
3725         * mips-tdep.c (mask_address_var): Update.
3726         (mips_mask_address_p): Update.
3727         (show_mask_address): Update.
3728         * remote.c (struct packet_config): Update.
3729         (update_packet_config): Update.
3730         (show_packet_config_cmd): Update.
3731         (packet_ok): Update.
3732         (add_packet_config_cmd): Update.
3733         (_initialize_remote): 
3734         * command.h: Update.
3735         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3736         (do_setshow_command): Update.
3737         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3738         * cli/cli-decode.h: Update.
3739
3740 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3741
3742         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3743         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3744         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3745         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3746         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3747         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3748
3749         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3750         list of DJGPP COFF targets.
3751
3752         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3753         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3754         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3755         (FP0_REGNUM): Remove define.
3756         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3757         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3758         (i386_register_virtual_size): Remove protoype.
3759         * i386-tdep.c (i386_register_virtual_size): Removed.
3760         (i386_extract_return_value, i386_store_return_value): Use
3761         FP0_REGNUM instead of NUM_FREGS to determine whether the
3762         floating-point registers are available.
3763         (i386_gdbarch_init): Tweak FIXME about FPU registers.
3764         Adjust for removal of macros mentioned above.
3765
3766 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3767
3768         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
3769         comments.
3770         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3771         Remove prototypes.
3772         (supply_gregset, fill_gregset): Remove use of register keyword and
3773         remove declaration for regmap.  Use I386_NUM_GREGS instead of
3774         NUM_REGS and NUM_FREGS.
3775         (FPREGSET_FSAVE_OFFSET): Remove.
3776         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3777         NUM_FREGS to determine whether the floating-point registers are
3778         available.
3779
3780         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3781         gnu_store_registers): Replace usage of NUM_GREGS with
3782         I386_NUM_GREGS.
3783
3784         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3785         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3786         usage of NUM_GREGS with I386_NUM_GREGS.
3787
3788         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3789
3790         * i386bsd-nat.c: Include "i386-tdep.h".
3791         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3792         I386_NUM_GREGS.
3793
3794         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3795         and associated comment.  They no longer make any sense, since we
3796         don't use this file anymore on Linux.
3797
3798         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3799         * i386-tdep.c (i386_register_offset, i386_register_size): Use
3800         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3801         elements in these arrays.
3802         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3803         MAX_NUM_REGS.
3804
3805 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3806
3807         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3808         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3809
3810 2002-06-14  Andrew Cagney  <cagney@redhat.com>
3811
3812         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3813         EXTRACT_RETURN_VALUE.
3814         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3815         EXTRACT_STRUCT_VALUE_ADDRESS.
3816         * gdbarch.h, gdbarch.c: Regenerate.
3817         
3818         * values.c (value_being_returned): Handle
3819         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3820         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3821
3822         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
3823         * arm-tdep.c (arm_gdbarch_init): Update.
3824         * avr-tdep.c (avr_gdbarch_init): Update.
3825         * cris-tdep.c (cris_gdbarch_init): Update.
3826         * d10v-tdep.c (d10v_gdbarch_init): Update.
3827         * ia64-tdep.c (ia64_gdbarch_init): Update.
3828         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3829         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3830         * s390-tdep.c (s390_gdbarch_init): Update.
3831         * sh-tdep.c (sh_gdbarch_init): Update.
3832         * s390-tdep.c (s390_gdbarch_init): Update.
3833         * sparc-tdep.c (sparc_gdbarch_init): Update.
3834         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3835         * v850-tdep.c (v850_gdbarch_init): Update.
3836         * vax-tdep.c (vax_gdbarch_init): Update.
3837         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3838         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3839
3840         * config/arc/tm-arc.h: Update.
3841         * config/d30v/tm-d30v.h: Update.
3842         * config/fr30/tm-fr30.h: Update.
3843         * config/h8300/tm-h8300.h: Update.
3844         * config/h8500/tm-h8500.h: Update.
3845         * config/i386/tm-i386.h: Update.
3846         * config/i386/tm-ptx.h: Update.
3847         * config/i386/tm-symmetry.h: Update.
3848         * config/i960/tm-i960.h: Update.
3849         * config/m32r/tm-m32r.h: Update.
3850         * config/m68k/tm-delta68.h: Update.
3851         * config/m68k/tm-linux.h: Update.
3852         * config/m68k/tm-m68k.h: Update.
3853         * config/m88k/tm-m88k.h: Update.
3854         * config/mcore/tm-mcore.h: Update.
3855         * config/mips/tm-mips.h: Update.
3856         * config/mn10200/tm-mn10200.h: Update.
3857         * config/pa/tm-hppa.h: Update.
3858         * config/pa/tm-hppa64.h: Update.
3859         * config/sparc/tm-sp64.h: Update.
3860         * config/sparc/tm-sparc.h: Update.
3861         * config/sparc/tm-sparclet.h: Update.
3862         * config/z8k/tm-z8k.h: Update.
3863
3864 2002-06-14  Andrew Cagney  <cagney@redhat.com>
3865
3866         * Makefile.in (i386_linux_tdep_h): Define.
3867         (i386_tdep_h, i387_tdep_h): Define.
3868         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3869         $(i386_tdep_h) and $(i387_tdep_h).
3870         * i386-linux-nat.c: Include "i386-linux-tdep.h".
3871
3872 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
3873
3874         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3875         Already covered by the default.
3876
3877         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3878         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
3879         (i386_gdbarch_init): Initialize long_double_format and long_double
3880         bit.
3881
3882         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3883         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
3884         Move these to ...
3885         * config/i386/i386sol2.mh: ... here.
3886         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3887         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3888         (SIGCONTEXT_PC_OFFSET): Remove define.
3889         (IN_SIGTRAMP): Remove define.
3890         * i386-sol2-tdep.c: New file.
3891         
3892         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3893         * config/i386/tm-i386nw.h: Removed.
3894
3895         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3896         USE_STRUCT_CONVENTION): Remove defines.
3897         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3898         (get_longjmp_target): Remove prototype.
3899         (IN_SIGTRAMP): Remove define.
3900         (i386bsd_in_sigtramp): Remove prototype.
3901         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3902         function.  Update comment accordingly
3903         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3904         (FRAME_SAVED_PC): Remove define.
3905         (i386bsd_frame_saved_pc): Remove prototype.
3906         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3907         GET_LONGJMP_TARGET): Remove defines.
3908         (get_longjmp_target): Remove prototype.
3909         (IN_SIGTRAMP): Remove define.
3910         (i386bsd_in_sigtramp): Remove prototype.
3911         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3912         function.  Update comment accordingly
3913         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3914         (FRAME_SAVED_PC): Remove define.
3915         (i386bsd_frame_saved_pc): Remove prototype.
3916         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3917         Remove prototype.
3918         (USE_STRUCT_CONVENTION): Remove prototype.
3919         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3920         declaration.
3921         (_initialize_i386bsd_nat): Revise logic to determine some
3922         constants at compile time when compiling a native GDB.  Warn if
3923         things don't match up with what we expect.
3924         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3925         Remove variables.
3926         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
3927         to use date stored in `struct gdbarch_tdep'.
3928         (i386bsd_sigcontext_offset): Remove varaible.
3929         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
3930         stored in `struct gdbarch_tdep'.
3931         (i386bsd_frame_saved_pc): Make static.
3932         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3933         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3934         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3935         i386fbsd4_sc_pc_offset): New variables.
3936         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3937         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3938         functions.
3939         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3940         functions.
3941         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3942         Modify the value of i386fbsd_sigtramp_start and
3943         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3944         i386fbsd_sigtramp_end.
3945         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3946         function.
3947
3948         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3949         define to i386-linux-tdep.h.
3950         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3951         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3952         defines.
3953         (i386_linux_register_name, i386_linux_register_byte,
3954         i386_linux_register_raw_size): Remove prototypes.
3955         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3956         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3957         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3958         TARGET_WRITE_PC): Remove defines.
3959         (i386_linux_in_sigtramp, i386_linux_frame_chain,
3960         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3961         i386_linux_write_pc): Remove prototypes.
3962         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3963         (get_longjmp_target): Remove prototype.
3964         * i386-linux-tdep.h: New file.
3965         * i386-linux-nat.c: Include "i386-linux-tdep.h".
3966         * i386-linux-tdep.c: Include "i386-tdep.h" and
3967         "i386-linux-tdep.h".
3968         (i386_linux_register_name, i386_linux_register_byte,
3969         i386_linux_register_raw_size, i386_linux_in_sigtramp,
3970         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3971         Make static.
3972         (i386_linux_init_abi): New function.
3973         (_initialize_i386_linux_tdep): New function.
3974
3975         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3976         (i386_saved_pc_after_call): Remove prototype.
3977         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3978         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3979         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3980         (i386_register_name, i386_stab_reg_to_regnum,
3981         i386_dwarf_reg_to_regnum): Remove prototypes.
3982         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3983         SIZEOF_SSE_REGS): Remove defines.
3984         (REGISTER_BYTES): Remove define.
3985         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3986         (i386_register_byte, i386_register_raw_size): Remove prototypes.
3987         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3988         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3989         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3990         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3991         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3992         (get_longjmp_target): Remove prototype.
3993         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3994         (sigtramp_saved_pc): Remove define.
3995         (i386v4_sigtramp_saved_pc): Remove prototype.
3996         * config/i386/tm-go32.h (FRAME_CHAIN,
3997         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3998         (i386go32_frame_saved_pc): Remove prototype.
3999         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4000         (get_longjmp_target): Remove prototype.
4001         * i386-tdep.h: Include "osabi.h".
4002         (enum i386_abi): Removed.
4003         (enum struct_return): New enum.
4004         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4005         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4006         sc_pc_offset members.
4007         (i386_gdbarch_register_os_abi): Remove prototype.
4008         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4009         I386_SSE_NUM_REGS): New defines.
4010         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4011         I386_SSE_SIZEOF_REGS): New defines.
4012         (i386_register_name, i386_register_byte, i386_register_raw_size):
4013         New prototypes.
4014         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4015         (i386bsd_sigtramp_saved_pc): New prototype.
4016         * i386-tdep.c: Don't include "elf-bfd.h".
4017         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4018         i386_frame_chain, i386_saved_pc_after_call): Make static.
4019         (i386_frame_saved_pc): Rewrite to call architecture dependent
4020         function to deal with signal handlers.  Make static.
4021         (i386go32_frame_saved_pc): Removed.
4022         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4023         Removed.
4024         (i386_get_longjmp_target): New function.
4025         (default_struct_convention, pcc_struct_convention,
4026         reg_struct_convention, valid_conventions, struct_convention): New
4027         variables.
4028         (i386_use_struct_convention): New function.
4029         (i386v4_sigtramp_saved_pc): Renamed to
4030         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
4031         (i386_pc_in_sigtramp): New function.
4032         (i386_abi_names): Removed.
4033         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4034         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4035         Removed.
4036         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4037         i386_gdbarch_register_os_abi): Removed.
4038         (struct i386_abi_handler): Removed.
4039         (i386_abi_handler_list): Removed.
4040         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4041         functions.
4042         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4043         i386_nw_init_abi): New functions.
4044         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4045         Use set_gdbarch_xxx() calls instead of relying on macros for a
4046         number of calls.
4047         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4048         (_initialize_i386_tdep): Add new 'struct-convcention' command.
4049         Register the various architecture variants defined in this file.
4050
4051 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
4052
4053         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4054         (struct main_type): Remove arg_types member.  Update comments for
4055         struct field.
4056         (TYPE_ARG_TYPES): Remove.
4057         (TYPE_FN_FIELD_ARGS): Update.
4058         (smash_to_method_type): Update prototype.
4059
4060         * c-typeprint.c (cp_type_print_method_args): Take method type
4061         instead of argument list.  Use new argument layout.  Simplify.
4062         (c_type_print_args): Use new argument layout.  Simplify.
4063         (c_type_print_base): Update call to cp_type_print_method_args.
4064         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4065         argument; use die->type instead.  Update call to
4066         smash_to_method_type.
4067         (read_structure_scope): Update call to dwarf2_add_member_fn.
4068         * gdbtypes.c (allocate_stub_method): Update comment.
4069         (smash_to_method_type): Take new NARGS and VARARGS arguments.
4070         Use new argument layout.
4071         (check_stub_method): Use new argument layout.  Don't count
4072         void as an argument.
4073         (print_arg_types): Update comments.  Use new argument layout.
4074         (recursive_dump_type): Don't print arg_types member.
4075         * hpread.c (hpread_read_struct_type): Use new argument layout.
4076         (fixup_class_method_type): Likewise.
4077         (hpread_type_lookup): Likewise.
4078         * stabsread.c (read_type): Update calls to read_args and
4079         smash_to_method_type.
4080         (read_args): Use new argument layout.  Simplify.
4081         * valops.c (typecmp): Use new argument layout.  Update parameters
4082         and comments.  Simplify.
4083         (hand_function_call): Use new argument layout.
4084         (search_struct_method): Update call to typecmp.
4085         (find_overload_match): Use new argument layout.
4086
4087 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4088
4089         * NEWS: Mention multithreaded debug support for gdbserver.
4090
4091 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4092
4093         * MAINTAINERS: Mention NEWS.
4094
4095 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4096
4097         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4098         (struct mips_objfile_private, compare_pdr_entries): New.
4099         (non_heuristic_proc_desc): Read the ".pdr" section if it
4100         is present.
4101
4102 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
4103
4104         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4105         (arm_debug): New static variable.
4106         (_initialize_arm_tdep): Add ``set debug arm'' command.
4107
4108 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
4109
4110         * Makefile.in (sim_arm_h): Define.
4111         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4112         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4113         (arm_register_sim_regno): New function, map an internal REGNUM
4114         onto a simulator register number.
4115         (arm_gdbarch_init): Set register_sim_regno.
4116
4117 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
4118
4119         * MAINTAINERS: Add self.
4120
4121 2002-06-11  Jim Blandy  <jimb@redhat.com>
4122
4123         * source.c (source_info): Mention whether the symtab has
4124         information about preprocessor macros.
4125
4126         Call the command `info macro', not `show macro'.
4127         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4128         Fix error message.
4129         (_initialize_macrocmd): Register `info_macro_command' in
4130         `infolist', not `showlist'.
4131
4132 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
4133
4134         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4135         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4136         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4137         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4138         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
4139         unconditionally.
4140         (set_mipsfpu_single_command, set_mipsfpu_double_command)
4141         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4142         (_initialize_mips_tdep): Remove dead code.
4143         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4144         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4145         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4146         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4147         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4148         MIPS_LAST_FP_ARG_REGNUM): Remove.
4149
4150 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
4151
4152         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4153         (unwind_tmp_obstack_free, parse_frame_info)
4154         (update_context, cfi_read_fp, cfi_write_fp)
4155         (cfi_frame_chain, cfi_init_extra_frame_info)
4156         (cfi_virtual_frame_pointer): Use the above function.
4157         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4158
4159 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
4160
4161         * v850-tdep.c (v850_type_is_scalar): New function.
4162         (v850_use_struct_convention): Match current gcc implementation
4163         as close as possible.
4164         (v850_push_arguments): Fix stack_offset handling.  Don't write
4165         struct_addr into register.  This is done by v850_store_struct_return.
4166         (v850_extract_return_value): Care for structs.
4167         (v850_store_return_value): Ditto.
4168         (v850_store_struct_return): Actually write address.
4169
4170 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
4171
4172         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4173         without debug information too.
4174
4175 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
4176
4177         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4178         Make multi-arch pure.
4179         * gdbarch.h, gdbarch.c: Re-generate.
4180         * arm-tdep.c (arm_print_float_info): Update.
4181         * arch-utils.h (default_print_float_info): Update.
4182         * arch-utils.c (default_print_float_info): Update.
4183         * infcmd.c (float_info): Update call.
4184
4185 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
4186
4187         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4188         the front of the initialize list.
4189
4190 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
4191
4192         * infrun.c (struct inferior_status): Replace fields
4193         selected_frame_address and selected_level with field
4194         selected_frame_id.
4195         (save_inferior_status): Update.  Use get_frame_id.
4196         (struct restore_selected_frame_args): Delete.
4197         (restore_selected_frame): Update.  Use frame_find_by_id.
4198         (restore_inferior_status): Update.
4199
4200         * breakpoint.h (struct breakpoint): Change type of
4201         watchpoint_frame to frame_id.
4202         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
4203         call to get_current_frame.
4204         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
4205         get_current_frame.
4206         (watchpoint_check): Use frame_find_by_id.
4207
4208         * frame.h (record_selected_frame): Delete declaration.
4209         * stack.c (record_selected_frame): Delete function.
4210         
4211         * frame.h (struct frame_id): Define.
4212         (get_frame_id): Declare.
4213         (frame_find_by_id): Declare.
4214         * frame.c (frame_find_by_id): New function.
4215         (get_frame_id): New function.
4216
4217 2002-06-10  Andrey Volkov <avolkov@transas.com>
4218
4219         * ser-e7kpc.c: Fix duplicated define and call of 
4220         _initialize_ser_e7000pc
4221             
4222 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
4223
4224         * signals/signals.c (target_signal_from_host): Fix #ifdef
4225         SIGRTMIN case.
4226         (do_target_signal_to_host): Likewise.
4227
4228 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
4229
4230         * mips-tdep.c (mips_find_abi_section): New function.
4231         (mips_gdbarch_init): Call it.
4232
4233 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
4234
4235         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4236         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
4237         after Andrew's 2002-06-08 gdbarch change.
4238
4239 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
4240
4241         * i386-linux-nat.c (suppy_gregset): Don't supply
4242         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4243         register cache.
4244         (fill_gregset): Don't fetch it under the same circumstances.
4245
4246 2002-06-09  Andrew Cagney  <cagney@redhat.com>
4247
4248         * Makefile.in (callback_h): Define.
4249         (remote_sim_h): Update path to remote-sim.h.
4250         (remote-rdp.o): Add $(callback_h).
4251         (remote-sim.o): Use $(callback_h).
4252         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4253         * remote-rdp.c: Include "gdb/callback.h".
4254
4255 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
4256
4257         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4258         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4259
4260 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4261
4262         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4263         * rdi-share/serpardr.c: Ditto.
4264         * rdi-share/unixcomm.c: Ditto.
4265         * rdi-share/serdrv.c: Ditto.
4266         * rdi-share/hostchan.h: Ditto.
4267         * rdi-share/hostchan.c: Ditto.
4268         * rdi-share/host.h: Ditto.
4269         * rdi-share/devsw.c: Ditto.
4270
4271         * objfiles.h: Change type of obj_private to void pointer.
4272         * pa64solib.c: Update copyright.  Don't include "assert.h", use
4273         strcmp instead of STREQ, use LONGEST, do not use PTR
4274         * somsolib.c: Ditto.
4275
4276         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4277         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4278         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4279
4280 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4281
4282         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4283         (default_get_saved_register): Delete function.
4284         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4285         generic_unwind_get_saved_register.
4286         * gdbarch.h, gdbarch.c: Re-generate.
4287         
4288 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4289
4290         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4291         generic_func_frame_chain_valid.
4292         * gdbarch.h, gdbarch.c: Re-generate.
4293         * blockframe.c (generic_func_frame_chain_valid): Only check
4294         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
4295         passing FP to PC_IN_CALL_DUMMY.
4296         Fix PR gdb/360.
4297
4298 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4299
4300         * gdbarch.sh (struct gdbarch_data): Add field init_p.
4301         (register_gdbarch_data): Initialize init_p.
4302         (gdbarch_data): Initialize data pointer using the init function.
4303         (init_gdbarch_data): Delete function.
4304         (gdbarch_update_p): Update.
4305         (initialize_non_multiarch): Update.
4306         (struct gdbarch): Add field initialized_p.
4307         * gdbarch.h, gdbarch.c: Re-generate.
4308
4309 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
4310
4311         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4312         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4313         better do the things actually here.
4314         * x86-64-tdep.c (x86_64_register_name2nr): New.
4315         (x86_64_register_name): Renamed to x86_64_register_nr2name.
4316         (x86_64_gdbarch_init): Respect the above change.
4317         * x86-64-tdep.h (x86_64_register_name2nr)
4318         (x86_64_register_nr2name): Add prototypes.
4319         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4320
4321 2002-06-06  Michael Snyder  <msnyder@redhat.com>
4322
4323         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4324         Delete extra braces and re-indent.
4325         (d10v_store_return_value): Char return values
4326         must be shifted over by one byte in R0.
4327         (d10v_extract_return_value): Delete extra braces, re-indent.
4328
4329 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
4330
4331         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4332         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4333         (d10v_integer_to_address): Rewrite.
4334         (d10v_frame_init_saved_regs): When reading fp and sp registers use
4335         the d10v specific functions which take care of converting to the
4336         correct space.
4337
4338 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
4339
4340         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4341         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4342
4343 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
4344
4345         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4346         includes.
4347         * config/tm-linux.h: Ditto.
4348         * config/alpha/tm-alphalinux.h: Ditto.
4349         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4350         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4351         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4352         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4353         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4354         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4355         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4356         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4357         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4358         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4359         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4360         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4361         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4362         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4363         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4364         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4365         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4366         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4367         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4368         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4369         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4370         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4371         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4372         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4373         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4374         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4375         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4376         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4377         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4378         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4379         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4380         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4381         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4382         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4383         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4384         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4385         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4386
4387 2002-05-04  Aidan Skinner <aidan@velvet.net>
4388
4389         * ada-exp.tab.c: New file
4390         * ada-exp.y: New file
4391         * ada-lang.c: New file
4392         * ada-lang.h: New file
4393         * ada-lex.c: New file
4394         * ada-lex.l: New file
4395         * ada-tasks.c: New file
4396         * ada-typeprint.c: New file
4397         * ada-valprint.c: New file
4398         
4399 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
4400
4401         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4402         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4403
4404 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
4405
4406         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4407         insetead of ppc-linux-tdep.o.
4408         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4409         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4410
4411 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
4412
4413         2002-05-07 Christian Groessler <chris@groessler.org>
4414         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4415         bit register contents for little endian hosts.
4416
4417 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4418
4419         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4420         any maintainer.
4421
4422 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4423
4424         * gdbarch.h: Regenerate.
4425
4426 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4427
4428         * MAINTAINERS: Add everyone to write-after-approval list.
4429
4430 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4431
4432         * stack.c (frame_info): Use frame_register_unwind instead of
4433         saved_regs.  Mention when the SP is on the stack or in a register.
4434
4435         * frame.h (frame_register_unwind_ftype): Define.  Document.
4436         (struct frame_info): Add field register_unwind and
4437         register_unwind_cache.
4438         (frame_register_unwind): Declare.
4439         (generic_unwind_get_saved_register): Declare.
4440
4441         * frame.c (frame_register_unwind): New function.
4442         (generic_unwind_get_saved_register): New function.
4443
4444         * blockframe.c (generic_call_dummy_register_unwind): New function.
4445         (frame_saved_regs_register_unwind): New function.
4446         (set_unwind_by_pc): New function.
4447         (create_new_frame): New function.
4448         (get_prev_frame): New function.
4449
4450 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
4451
4452         * a29k-share/: Delete directory.
4453         * remote-vx29k.c: Delete file.
4454
4455 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4456
4457         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4458         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4459
4460 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4461
4462         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4463         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4464         (sparc64nbsd-nat.o)
4465         (sparcnbsd-nat.o)
4466         (sparcnbsd-tdep.o): New dependency lists.
4467         * NEWS: Note new UltraSPARC NetBSD native configuration.
4468         * configure.host (sparc64-*-netbsd*): New host.
4469         * configure.tgt (sparc-*-netbsdelf*)
4470         (sparc-*-netbsd*): Set gdb_target to nbsd.
4471         (sparc64-*-netbsd*): New target.
4472         * sparc64nbsd-nat.c: New file.
4473         * sparcnbsd-nat.c: New file.
4474         * sparcnbsd-tdep.c: New file.
4475         * sparcnbsd-tdep.h: New file.
4476         * config/sparc/nbsd.mt: New file.
4477         * config/sparc/nbsd64.mh: New file.
4478         * config/sparc/nbsd64.mt: New file.
4479         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4480         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4481         (HOST_IPC): Remove.
4482         * config/sparc/nbsdaout.mt: Remove.
4483         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4484         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4485         (HOST_IPC): Remove.
4486         * config/sparc/nbsdelf.mt: Remove.
4487         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
4488         sparc-nat.c compatiblity defines.
4489         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
4490         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4491         * config/sparc/tm-nbsd64.h: New file.
4492         * config/sparc/tm-nbsdaout.h: Remove.
4493         * config/sparc/xm-nbsd.h: Remove.
4494
4495 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4496
4497         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4498         * sparc-tdep.c: Include osabi.h.
4499         (gdbarch_tdep): Add osabi member.
4500         (_initialize_sparc_tdep): Use gdbarch_register.
4501         (sparc_gdbarch_init): Use generic OS ABI framework.
4502         (sparc_dump_tdep): New function.
4503
4504 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
4505
4506         * corefile.c (do_captured_read_memory_integer): Return non-zero
4507         result.
4508         (safe_read_memory_integer): Copy result of memory read when
4509         status is non-zero.  Also, add comments.
4510
4511 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
4512
4513         * Makefile.in (ppc_tdep_h): Define.
4514         (ppc-linux-nat.o)
4515         (ppc-linux-tdep.o)
4516         (rs6000-tdep.o): Use $(ppc_tdep_h).
4517         (ppc-sysv-tdep.o)
4518         (ppcnbsd-nat.o)
4519         (ppcnbsd-tdep.o): New dependency lists.
4520         * ppc-tdep.h: Use generic OS ABI framework.
4521         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4522         (ppc_linux_init_abi): New functions.
4523         (ppc_sysv_abi_broken_use_struct_convention)
4524         (ppc_sysv_abi_use_struct_convention)
4525         (ppc_sysv_abi_push_arguments): Move to...
4526         * ppc-sysv-tdep.c: ...here.
4527         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4528         * rs6000-tdep.c (process_note_abi_tag_sections)
4529         (get_elfosabi): Remove.
4530         (rs6000_gdbarch_init): Use generic OS ABI framework.
4531         (rs6000_dump_tdep): New function.
4532         (_initialize_rs6000_tdep): Use gdbarch_register.
4533         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4534         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4535         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4536         of ppc-linux-tdep.o.
4537         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4538         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4539         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4540         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4541         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4542         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4543
4544 2002-05-29  Jim Blandy  <jimb@redhat.com>
4545
4546         * macroscope.c (default_macro_scope): Put `void' in empty argument
4547         list.
4548
4549 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
4550
4551         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4552         * arch-utils.c: Include "sim-regno.h".
4553         * gdbarch.sh: Don't include "sim-regno.h".
4554         * gdbarch.h, gdbarch.c: Regenerate.
4555         * sim-regno.h (legacy_register_sim_regno): Move declaration from
4556         here.
4557         * arch-utils.h (legacy_register_sim_regno): To here.
4558         * remote-sim.c (legacy_register_sim_regno): Move function from
4559         here.
4560         * arch-utils.c (legacy_register_sim_regno): To here.
4561
4562 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
4563
4564         * sim-regno.h: New file.
4565         * Makefile.in (sim_regno_h): Define.
4566         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4567         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4568         (legacy_register_sim_regno): New function.
4569         (one2one_register_sim_regno): New function.
4570         (gdbsim_fetch_register): Rewrite.
4571         (gdbsim_store_register): Only store a register when
4572         REGISTER_SIM_REGNO is valid.
4573         * d10v-tdep.c: Include "sim-regno.h".
4574         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4575         (d10v_ts3_register_sim_regno): Ditto.
4576         * gdbarch.sh: Include "sim-regno.h".
4577         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4578         * gdbarch.h, gdbarch.c: Regenerate.
4579         * arch-utils.h (default_register_sim_regno): Delete declaration.
4580         * arch-utils.c (default_register_sim_regno): Delete function.
4581
4582 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
4583
4584         * ppcnbsd-nat.c: Rewrite.
4585         * ppcnbsd-tdep.c: New file.
4586         * ppcnbsd-tdep.h: New file.
4587         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4588         solib.o, and solib-svr4.o.
4589         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4590         nbsd-tdep.o, and corelow.o.
4591
4592 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
4593
4594         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4595         `tr' and `sed'.  Mention that `broken' targets are not expected to
4596         build.
4597
4598 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
4599
4600         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4601         Let PC point right after the prologue before looking up symbols.
4602         
4603 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
4604
4605         * i386-tdep.c (i386_register_virtual_type): Return 
4606         builtin_type_vec128i for SSE registers.
4607
4608         * gdbtypes.h (builtin_type_vec128i): Declare.
4609
4610         * gdbtypes.c (build_builtin_type_vec128i): New function.
4611         (builtin_type_v2_double, builtin_type_v4_int64): New types.
4612         (builtin_type_vec128i): New type for SSE2 128-bit registers.
4613         (build_gdbtypes): Initialize new builtin vector types.
4614         (_initialize_gdbtypes): Register new vector types with gdbarch.
4615
4616 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4617
4618         * MAINTAINERS: ns32k is not longer an obsolete candidate,
4619         since it has been multi-arch'd.
4620         * NEWS: Note that ns32k-*-* is now partial multi-arch.
4621         Move Alpha and VAX multi-arch news entries to same section
4622         as other multi-arch news.
4623
4624 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4625
4626         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4627         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
4628         static.  Rename some register numbers to put them in ns32k-tdep
4629         private namespace.
4630         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4631         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4632         functions.
4633         (_initialize_ns32k_tdep): Use gdbarch_register.
4634         * ns32k-tdep.h: New file.
4635         * ns32knbsd-tdep.c: New file.
4636         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4637         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4638         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4639         REGISTER_BYTES, REGISTER_BYTE): Remove.
4640         * config/ns32k/tm-ns32k.h: New file.
4641         * config/ns32k/tm-umax.h: Remove.
4642
4643 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4644
4645         * ns32k-tdep.c (ns32k_saved_pc_after_call,
4646         ns32k_store_struct_return, ns32k_extract_return_value,
4647         ns32k_store_return_value, ns32k_extract_struct_value_address): New
4648         functions.
4649         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4650         ns32k_saved_pc_after_call.
4651         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4652         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4653         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4654         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4655         ns32k_extract_struct_value_address.
4656
4657 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4658
4659         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4660         ns32k_fix_call_dummy): New.
4661         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4662         ns32k_call_dummy_words.
4663         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4664         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4665         CALL_DUMMY_NARGS): Remove.
4666         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4667
4668 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4669
4670         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4671         ns32k_frame_saved_pc, ns32k_frame_args_address,
4672         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4673         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4674         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4675         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4676         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4677         (BREAKPOINT): Remove..
4678         (FRAME_CHAIN): Define as ns32k_frame_chain.
4679         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4680         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4681         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4682         (FRAME_FIND_SAVED_REGS): Remove.
4683         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4684         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4685         (POP_FRAME): Define as ns32k_pop_frame.
4686
4687 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4688
4689         * ns32k-tdep.c (ns32k_register_byte_32082,
4690         ns32k_register_byte_32382, ns32k_register_raw_size,
4691         ns32k_register_virtual_size, ns32k_register_virtual_type): New
4692         functions.
4693         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4694         ns32k_register_byte_32382.
4695         * config/ns32k/tm-umax.h: Update copyright years.
4696         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4697         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4698         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4699         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4700         (ns32k_get_enter_addr): Fix prototype.
4701
4702 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4703
4704         * ns32k-tdep.c: Update copyright years.
4705         (ns32k_register_name_32082): New function.
4706         (ns32k_register_name_32382): Ditto.
4707         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4708         (REGISTER_NAME): Define as ns32k_register_name_32382.
4709         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4710         (REGISTER_NAME): Define as ns32k_register_name_32082.
4711
4712 2002-05-24  Jim Blandy  <jimb@redhat.com>
4713
4714         * dwarf2read.c (free_line_header): Use xfree, not free.
4715
4716 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
4717
4718         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4719         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4720
4721 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4722
4723         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4724
4725 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4726
4727         From Ross Alexander at NEC Europe:
4728         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4729
4730 2002-05-23  Michael Snyder  <msnyder@redhat.com>
4731
4732         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4733         for input, rather than parse_and_eval_address.  
4734
4735 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4736
4737         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4738         * Makefile.in (sim_d10v_h): Update definition.
4739
4740 2002-05-24  Andrew Cagney  <cagney@redhat.com>
4741
4742         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4743         change `2002-05-22 Michael Snyder' below.
4744         (d10v_push_arguments): Ditto.
4745         (d10v_extract_return_value): Ditto.
4746
4747 2002-05-23  Jim Blandy  <jimb@redhat.com>
4748
4749         * macrotab.c (check_for_redefinition): Don't complain if the new
4750         definition is the same as the previous one.  Take more arguments
4751         to allow the comparison.
4752         (macro_define_object, macro_define_function): Pass more arguments
4753         to check_for_redefinition.
4754
4755 2002-05-22  Michael Snyder  <msnyder@redhat.com>
4756
4757         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4758         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4759         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4760         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4761         Don't bail if return_pc is PC_IN_CALL_DUMMY.
4762         Add a temp variable to save a call (and a memory read).
4763         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4764         if possible (so that PC_IN_CALL_DUMMY will work).
4765
4766 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
4767
4768         * MAINTAINERS: Remove status `OBSOLETE' from v850.
4769
4770 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
4771
4772         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4773         fde->cie_ptr.
4774         (dwarf2_build_frame_info): Corrected handling of eh_frame.
4775         (dwarf2_build_frame_info): Add offset to fde->initial_location 
4776         so that frames of shared libraries are mapped correctly.
4777         (execute_stack_op): Change type of 'result' from ULONGEST to
4778         CORE_ADDR.
4779         
4780 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4781
4782         * config/alpha/tm-nbsd.h: Include solib.h.
4783
4784 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4785
4786         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4787         assumptions about the host's byte order.
4788
4789 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4790
4791         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4792         to dependency list.
4793         * alphanbsd-tdep.c: Include solib-svr4.h.
4794         * shnbsd-tdep.c: Ditto.
4795
4796 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4797
4798         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4799         nbsd-tdep.h to dependency list.
4800         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4801         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4802         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4803         nbsdaout.mh and nbsdelf.mh consistently.
4804         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4805         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4806         nbsdaout.mt and nbsdelf.mh consistently.
4807         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
4808         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4809         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4810         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
4811         a.out shared library stuff from here...
4812         * config/nm-nbsdaout.h: ...to here.
4813         * config/tm-nbsd.h: Remove.
4814         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4815         * config/arm/nbsd.mh: Remove.
4816         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4817         nbsd-tdep.o.
4818         * config/arm/nbsdaout.mh: New file. 
4819         * config/arm/nbsdelf.mh: New file.
4820         * config/arm/nm-nbsdaout.h: New file.
4821         * config/i386/nbsd.mh: Remove.
4822         * config/i386/nbsd.mt: Remove.
4823         * config/i386/nbsdaout.mh: New file.
4824         * config/i386/nbsdaout.mt: New file.
4825         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4826         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4827         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
4828         i386_register_u_addr): Remove.
4829         * config/i386/nm-nbsdaout.h: New file.
4830         * config/i386/nm-nbsdelf.h: Remove.
4831         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4832         (USE_STRUCT_CONVENTION): Remove.
4833         * config/i386/tm-nbsdaout.h: New file.
4834         * config/i386/tm-nbsdelf.h: Remove.
4835         * config/m68k/nbsd.mh: Remove.
4836         * config/m68k/nbsd.mt: Remove.
4837         * config/m68k/nbsdaout.mh: New file.
4838         * config/m68k/nbsdaout.mt: New file. 
4839         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4840         * config/m68k/nm-nbsdaout.h: New file.
4841         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4842         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4843         * config/ns32k/nbsd.mh: Remove.
4844         * config/ns32k/nbsd.mt: Remove. 
4845         * config/ns32k/nbsdaout.mh: New file.
4846         * config/ns32k/nbsdaout.mt: New file.
4847         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
4848         * config/ns32k/nm-nbsdaout.h: New file.
4849         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
4850         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4851         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4852         (SVR4_SHARED_LIBS): Remove.
4853         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4854         * config/sparc/nbsd.mh: Remove.
4855         * config/sparc/nbsd.mt: Remove.
4856         * config/sparc/nbsdaout.mh: New file.
4857         * config/sparc/nbsdaout.mt: New file.
4858         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4859         * config/sparc/nbsdelf.mt: New file.
4860         * config/sparc/nm-nbsdaout.h: New file.   
4861         * config/sparc/nm-nbsdelf.h: Remove.
4862         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4863         * config/sparc/tm-nbsdaout.h: New file.
4864
4865 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4866
4867         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4868         mipsnbsd-tdep.c
4869         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4870
4871 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4872
4873         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4874         shnbsd-nat.c.
4875         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4876
4877 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4878
4879         * NEWS: Note new MIPS NetBSD native configuration. 
4880         * configure.host (mips*-*-netbsd*): New host. 
4881         * configure.tgt (mips*-*-netbsd*): New target. 
4882         * mipsnbsd-nat.c: New file.
4883         * mipsnbsd-tdep.c: New file.
4884         * mipsnbsd-tdep.h: New file.
4885         * config/mips/nbsd.mh: New file.
4886         * config/mips/nbsd.mt: New file.
4887         * config/mips/nm-nbsd.h: New file.
4888         * config/mips/tm-nbsd.h: New file.
4889
4890 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4891
4892         * Makefile.in (SFILES): Add osabi.c.
4893         (COMMON_OBS): Add osabi.o.
4894         (osabi.o): New dependency list.
4895         * osabi.c: New file.
4896         * osabi.h: New file.
4897         * doc/gdbint.texinfo: Document new generic OS ABI framework.
4898
4899         * Makefile.in (alpha_tdep_h): Define and use instead of
4900         alpha-tdep.h.
4901         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4902         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4903         Remove.
4904         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4905         * alpha-tdep.h: Include osabi.h.
4906         (alpha_abi): Remove.
4907         (gdbarch_tdep): Use generic OS ABI framework.
4908         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4909         gdbarch_register_osabi.
4910         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4911         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4912         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4913
4914         * Makefile.in (sh_tdep_h): Add osabi.h.
4915         * sh-tdep.h (sh_osabi): Remove.
4916         (gdbarch_tdep): Use generic OS ABI framework.
4917         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4918         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4919         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4920         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4921
4922         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4923         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4924         gdbarch_register_osabi.
4925         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4926         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4927         (get_elfosabi): Rename to...
4928         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
4929         ABI framework support routines.
4930         (arm_gdbarch_init): Use generic OS ABI framework.
4931         (arm_dump_tdep): Likewise.
4932         (_initialize_arm_tdep): Likewise.
4933         * arm-tdep.h: Include osabi.h.
4934         (arm_abi): Remove.
4935         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
4936         osabi member.
4937         (arm_gdbarch_register_os_abi): Remove prototype.
4938         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4939         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4940
4941         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4942         * mips-tdep.c: Include osabi.h.
4943         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4944         OS ABI framework.
4945
4946 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
4947
4948         * h8300-tdep.c: Fix formatting.
4949
4950 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
4951
4952         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4953         printing vector registers.
4954
4955 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4956
4957         From Fernando Nasser:
4958         * remote.c (remote_async_open_1): Re-throw the exception when the
4959         connection fails.
4960         (remote_cisco_open): Ditto.
4961         (remote_open_1): Ditto.
4962
4963 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4964
4965         * remote.c (remote_start_remote_dummy): Add uiout parameter.
4966         (remote_start_remote): Add uiout parameter.  Pass through to
4967         remote_start_remote_dummy.
4968         (remote_open_1): Use catch_exception instead of catch_errors.
4969         (remote_async_open_1): Ditto.
4970         (remote_cisco_open): Ditto.
4971
4972 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4973
4974         * remote.c (remote_start_remote): Replace PTR with void pointer.
4975         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
4976         static.
4977
4978 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
4979
4980         * gdb_indent.sh: Allow the script to be run in the sim directory.
4981
4982 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
4983
4984         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4985         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4986
4987         * corelow.c (core_open): Only call set_gdbarch_from_file if
4988         exec_bfd is NULL.
4989
4990 2002-05-17  Andrey Volkov <avolkov@transas.com>
4991
4992         * h8300-tdep.c: Add support of EXR register
4993         * config/h8300/tm-h8300.h: Ditto. 
4994         
4995 2002-05-17  Andrey Volkov <avolkov@transas.com>
4996
4997         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
4998         
4999 2002-05-17  Andrey Volkov <avolkov@transas.com>
5000
5001         * h8300-tdep.c: Change literal regnums to REGNO.
5002         
5003 2002-05-17  Jim Blandy  <jimb@redhat.com>
5004
5005         * NEWS: Note addition of macro support.
5006
5007         Expand preprocessor macros in C expressions.
5008         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5009         (scan_macro_expansion, scanning_macro_expansion,
5010         finished_macro_expansion): New function declarations.
5011         (expression_macro_lookup_func, expression_macro_lookup_baton): New
5012         variable declarations.
5013         * parser-defs.h (expression_context_pc): New declaration.
5014         * parse.c (expression_context_pc): New variable.
5015         (parse_exp_1): Set expression_context_pc, as well as
5016         expression_context_block.
5017         * c-exp.y (yylex): If we're not already reading the result of a
5018         macro expansion, try to macro-expand the next token.  When we're
5019         done scanning a macro expansion, switch back to the mainline text.
5020         Commas and `if's in a macro's expansion don't terminate the input.
5021         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5022         (macro_original_text, macro_expanded_text,
5023         expression_macro_lookup_func, expression_macro_lookup_baton): New
5024         variables.
5025         (scan_macro_expansion, scanning_macro_expansion,
5026         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5027         c_preprocess_and_parse): New functions.
5028         (c_language_defn, cplus_language_defn, asm_language_defn): Call
5029         c_preprocess_and_parse, instead of c_parse.
5030         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5031         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5032
5033 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
5034
5035         * sh-tdep.c (gdb_print_insn_sh64): Delete.
5036         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5037         (sh_gdbarch_init): Always use gdb_print_insn_sh.
5038
5039 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
5040
5041         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
5042
5043 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
5044
5045         * Makefile.in (sh_tdep_h): Define and use.
5046         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5047         register enum): Move to...
5048         * * sh-tdep.h: ...here.
5049         * sh-tdep.c: Include sh-tdep.h.
5050         * sh3-rom.c: Likewise.
5051         * shnbsd-tdep.c: Likewise.
5052
5053 2002-05-16  Michael Snyder  <msnyder@redhat.com>
5054
5055         * arm-tdep.c: Spelling fix in comment.
5056
5057 2002-05-16  Jim Blandy  <jimb@redhat.com>
5058
5059         Add commands for manually expanding macros and showing their
5060         definitions.
5061         * macrocmd.c, macroscope.c, macroscope.h: New files.
5062         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5063         (macroscope_h): New variable.
5064         (HFILES_NO_SRCDIR): Add macroscope.h.
5065         (COMMON_OBS): Add macrocmd.o, macroscope.o.
5066         (macroscope.o, macrocmd.o): New rules.
5067
5068         Teach the Dwarf 2 reader to read macro information.
5069         * dwarf2read.c: #include "macrotab.h".
5070         (dwarf_macinfo_buffer): New variable.
5071         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5072         dwarf_macinfo_size.
5073         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5074         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5075         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5076         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5077         dwarf2_macro_spaces_in_definition): New complaints.
5078         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5079         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5080         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5081         the partial symbol table.
5082         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5083         from what's recorded in the partial symbol table.
5084         (read_file_scope): If the compilation unit has a
5085         `DW_AT_macro_info' attribute, read its macro information.
5086         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5087
5088 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
5089
5090         Fix PR gdb/546
5091         * ser-tcp.c: Don't include <netinet/udp.h>.
5092
5093 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
5094
5095         * MAINTAINERS: Update my email address.
5096
5097 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
5098
5099         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5100         include file of the same name.
5101
5102 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5103
5104         * configure.tgt: Mark v850 as multi-arched.
5105         * config/v850/tm-v850.h: Remove file.
5106         * config/v850/v850.mt: Eliminate TM_FILE.
5107
5108 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5109
5110         * v850-tdep.c: Full multi-arch.
5111         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5112         Define GDB_MULTI_ARCH to 2.
5113
5114 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
5115
5116         * p-exp.y (current_type): New static variable.
5117         Carries the type of the expression at the position that is parsed.
5118         (push_current_type, pop_current_type): Two new functions. Used
5119         to store/restore current_type in expression on specific tokens.
5120         (search_field): New static variable. Set to one after parsing a point
5121         as at that point only a FIELDNAME token should be searched.
5122         (FIELDNAME): New token. After a point only a token belonging to 
5123         current_type type definition is allowed.
5124         (all over token rules): reset and change current_type according
5125         to rules.
5126         (exp '[' rule): insert implicit array index field if
5127         exp is a pascal string type.
5128
5129 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5130
5131         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
5132         frame info.  Use frame_info's saved_regs instead of matching member
5133         in extra_frame_info throughout.
5134         (v850_frame_init_saved_regs): New function.
5135         (v850_init_extra_frame_info): Move most functionality into
5136         v850_frame_init_saved_regs().
5137         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5138         (v850_frame_find_saved_regs): Remove declaration.
5139         (FRAME_FIND_SAVED_REGS): Remove definition.
5140         (v850_frame_init_saved_regs): Add declaration.
5141         (FRAME_INIT_SAVED_REGS): Add definition.
5142
5143 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5144
5145         * v850-tdep.c: Begin multi-arch'ing v850.
5146         (v850_target_architecture_hook): Remove function.
5147         (v850_gdbarch_init): New function.  Add code previously in
5148         v850_target_architecture_hook().
5149         (_initialize_v850_tdep): Don't  set target_architecture_hook.
5150         Call register_gdbarch_init() instead.
5151
5152 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
5153
5154         * gdbtypes.h (struct cplus_struct_type): Remove args field.
5155         * hpread.c (hpread_read_struct_type): Remove assignments to args.
5156         (fixup_class_method_type): Likewise.
5157
5158 2002-05-15  Jim Blandy  <jimb@redhat.com>
5159
5160         Add macro structures to GDB's symbol tables.  Nobody puts anything
5161         in them yet.
5162         * symtab.h (struct symtab): New member: `macro_table'.
5163         * buildsym.h (pending_macros): New global variable.
5164         * buildsym.c: #include "macrotab.h".
5165         (buildsym_init): Initialize `pending_macros'.
5166         (end_symtab): If we found macro information while reading a CU's
5167         debugging info, do build a symtab structure for it.  Make the
5168         symtab point to the macro information, and clear the
5169         `pending_macros' pointer which held it while we were reading the
5170         debug info.
5171         (really_free_pendings): Free any pending macro table.
5172         * objfiles.h (struct objfile): New member: `macro_cache'.
5173         * objfiles.c (allocate_objfile): Set allocate and free functions
5174         for the macro cache's objstack.
5175         (free_objfile): Empty the macro cache's obstack.
5176         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5177         set new allocate and free functions for it.
5178         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5179         free functions for the macro cache's objstack.  (Why is this
5180         function building its own objfile?)
5181         * symmisc.c (print_objfile_statistics): Print statistics on the
5182         macro bcache.
5183         * Makefile.in: Note that buildsym.o depends on macrotab.h.
5184
5185 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
5186
5187         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5188         (REGISTER_U_ADDR): Delete definition.
5189         (arm_register_u_addr): Delete declaration.
5190
5191 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
5192
5193         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5194         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5195
5196 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
5197
5198         * regcache.c (register_valid): Revise comments refering to "Not
5199         available" and "unavailable".
5200         * frame.c (frame_register_read): Ditto.
5201         * findvar.c (value_of_register): Ditto.
5202
5203 2002-05-15  Andrew Cagney  <cagney@redhat.com>
5204
5205         * Makefile.in (remote_sim_h): Replace remote-sim_h.
5206         (remote-sim.o): Update dependencies.
5207         (d10v-tdep.o): Specify dependencies.
5208         (sim_d10v_h): Define.
5209
5210 2002-05-14  Jim Blandy  <jimb@redhat.com>
5211
5212         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5213         * macrotab.c (macro_lookup_inclusion, find_definition,
5214         new_macro_table): Same.
5215         
5216         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5217         not `! strcmp ()'.  This is a dubious improvement.
5218         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5219
5220         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5221         although it's not necessary, to avoid a warning.
5222
5223 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
5224
5225         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5226         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5227         TYPE_INSTANCE_FLAGS.
5228         (struct main_type): New.
5229         (struct type): Move most members to struct main_type.  Change
5230         cv_type and as_type to new type_chain member.  Add instance_flags.
5231         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5232         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5233         (finish_cv_type): Remove prototype.
5234         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
5235         Set TYPE_CHAIN.
5236         (alloc_type_instance): New function.
5237         (smash_type): New function.
5238         (make_pointer_type, make_reference_type, make_function_type)
5239         (smash_to_member_type, smash_to_method_type): Call smash_type.
5240         (make_qualified_type): New function.
5241         (make_type_with_address_space): Call make_qualified_type.
5242         (make_cv_type): Likewise.
5243         (finish_cv_type): Remove unnecessary function.
5244         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
5245         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5246         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5247         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5248         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5249         * hpread.c (hpread_read_struct_type): Likewise.
5250         * stabsread.c (read_struct_type): Likewise.
5251
5252 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
5253
5254         * configure.tgt: Add a catch all sh* target, for cases like
5255         sh[2,3,4]-elf and sh-hms.
5256
5257 2002-05-14  Keith Seitz  <keiths@redhat.com>
5258
5259         * event-loop.c (create_file_handler): Don't do anything but
5260         update data when we are given a fd which we are already
5261         monitoring.
5262
5263 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
5264
5265         * dwarf2cfi.c (context_cpy): Copy registers correctly.
5266         (update_context): Use __func__ in warnings.
5267         
5268 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
5269
5270         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
5271         and tcp_close to net_open and net_close.
5272         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
5273         using UDP if requested.  Don't try to disable Nagle on UDP
5274         sockets.
5275         * remote.c (remote_serial_open): New function.  Warn about UDP.
5276         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5277
5278 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
5279
5280         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5281
5282 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
5283
5284         * configure.tgt: Remove sh-hms target.
5285         * MAINTAINERS: Don't list sh-hms as a separate target.
5286
5287 2002-05-13  Jim Blandy  <jimb@redhat.com>
5288
5289         Add first preprocessor macro-expansion files.
5290         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5291         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5292         (splay_tree_h, macroexp_h, macrotab_h): New variable.
5293         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5294         (COMMON_OBS): Add macrotab.o, macroexp.o.
5295         (macroexp.o, macrotab.o): New rules.
5296
5297 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
5298
5299         * config/m88k/tm-m88k.h: Update copyright.
5300         (m88k_target_write_pc): Declare
5301         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5302         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5303         (SHIFT_INST_REGS): Update definition.
5304         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
5305         using old definition of TARGET_WRITE_PC.
5306         * regcache.c (generic_target_write_pc): Delete code handling
5307         NNPC_REGNUM.
5308         * gdbarch.sh (NNPC_REGNUM): Delete.
5309         * gdbarch.h, gdbarch.c: Regenerate.
5310
5311 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
5312
5313         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5314         builtin reg number.
5315
5316 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
5317
5318         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5319         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5320         (gen_address_of, gen_struct_ref, gen_repeat): Use type
5321         access macros.
5322         * c-typeprint.c (cp_type_print_method_args): Likewise.
5323         (c_type_print_args): Likewise.
5324         * d10v-tdep.c (d10v_push_arguments): Likewise.
5325         (d10v_extract_return_value): Likewise.
5326         * expprint.c (print_subexp): Likewise.
5327         * gdbtypes.c (lookup_primitive_typename): Likewise.
5328         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5329         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5330         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5331         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5332         (TYPE_VECTOR): Likewise.
5333         * hpread.c (hpread_read_struct_type)
5334         (fix_static_member_physnames, fixup_class_method_type)
5335         (hpread_type_lookup): Likewise.
5336         * mdebugread.c (parse_symbol, parse_type): Likewise.
5337         * p-lang.c (is_pascal_string_type): Likewise.
5338         * valops.c (hand_function_call): Likewise.
5339         * x86-64-tdep.c (classify_argument): Likewise.
5340
5341         * hpread.c (hpread_read_function_type)
5342         (hpread_read_doc_function_type): Call replace_type.
5343         * dstread.c (create_new_type): Delete.
5344         (decode_dst_structure, process_dst_function): Call alloc_type.
5345         Use type access macros.
5346
5347 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5348
5349         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5350         the're not supported by the current architecture.
5351         (i387_fill_fxsave): Likewise.
5352
5353 2002-05-12  Fred Fish  <fnf@redhat.com>
5354
5355         * symfile.c (default_symfile_offsets): Arrange for uninitialized
5356         sect_index_xxx members to index the first slot in section_offsets
5357         if all of the section_offsets are zero.
5358
5359 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5360
5361         * configure.tgt (sparc-*openbsd): Remove entry accidentially
5362         checked in with last change.
5363
5364 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5365
5366         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5367         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
5368         config.sub.
5369
5370 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
5371
5372         * Makefile.in: Update dependencies.
5373
5374 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5375
5376         * language.c (local_hex_string_custom): Simplify.  Do not depend
5377         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5378
5379         * memattr.c (mem_info_command): Replace calls to
5380         longest_local_hex_string and longest_local_hex_string_custom.
5381         * buildsym.c (make_blockvector): Ditto.
5382         * solib.c (info_sharedlibrary_command): Ditto.
5383         * tracepoint.c (tracepoints_info): Ditto.
5384         * symtab.c (print_msymbol_info): Ditto.
5385
5386         * language.c (local_hex_string): Delete.
5387         (local_hex_string_custom): Delete.
5388         (longest_local_hex_string): Rename to local_hex_string.
5389         (longest_local_hex_string_custom): Rename to
5390         local_hex_string_custom.
5391         * language.h (local_hex_string): Change parameter type to LONGEST.
5392         (local_hex_string_custom): Ditto.
5393         (longest_local_hex_string): Delete declaration.
5394         (longest_local_hex_string_custom): Ditto.
5395
5396         * solib.c: Update copyright.
5397         * memattr.c: Update copyright.
5398         
5399 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5400
5401         * arch-utils.h (legacy_register_to_value): Declare.
5402         (legacy_value_to_register): Declare.
5403         (legacy_convert_register_p): Declare.
5404         * arch-utils.c (legacy_register_to_value): New function.
5405         (legacy_value_to_register): New function.
5406         (legacy_convert_register_p): New function.
5407
5408         * gdbarch.sh (REGISTER_TO_VALUE): Define.
5409         (VALUE_TO_REGISTER): Define.
5410         (CONVERT_REGISTER_P): Define.
5411         * gdbarch.h, gdbarch.c: Regenerate.
5412
5413         * valops.c (value_assign): Use CONVERT_REGISTER_P and
5414         VALUE_TO_REGISTER.
5415         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5416         CONVERT_REGISTER_P.
5417
5418 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
5419             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5420
5421         * Makefile.in: Update dependencies for valops.c.
5422         * valops.c: Include "gdb_assert.h".
5423         (typecmp): Skip THIS parameter to methods.
5424         (find_method_list): Remove static_memfuncp argument,
5425         update callers.  Check for stub methods.
5426         (find_value_oload_method_list): Don't set *static_memfuncp.
5427         (find_overload_match): Don't check for stub methods.  Assert
5428         that methods are not stubbed.  Handle static methods.
5429         (value_find_oload_method_list): Remove static_memfuncp argument.
5430         * gdbtypes.c (check_stub_method): Do not add THIS pointer
5431         to the argument list for static stub methods.
5432         * value.h (value_find_oload_method_list): Update prototype.
5433
5434 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5435
5436         * arch-utils.h (generic_register_size): Declare.
5437         (generic_register_raw_size, generic_register_virtual_size): Delete
5438         declarations.
5439         * arch-utils.c (generic_register_raw_size): Delete.
5440         (generic_register_size): New function.
5441         (generic_register_virtual_size): Delete.
5442
5443         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5444         default generic_register_size.
5445         * gdbarch.h, gdbarch.c: Re-generate.
5446         
5447         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5448         register_virtual_size.
5449         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5450         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5451
5452 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5453
5454         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5455         * gdbarch.h, gdbarch.c: Regenerate.
5456         * gnu-v3-abi.c: Update copyright.
5457         (vtable_address_point_offset): Update.
5458         (gnuv3_rtti_type): Update.
5459         (gnuv3_baseclass_offset): Update.
5460         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5461         (init_fetch_link_map_offsets): Update.
5462         * remote.c (get_remote_state): Update.
5463         
5464 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
5465
5466         * TODO: Remove value_headof/value_from_vtable_info comment.
5467         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5468         * values.c (value_headof, value_from_vtable_info): Delete.
5469         * value.h (value_from_vtable_info): Delete prototype.
5470
5471 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5472
5473         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5474         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5475         $(gdb_regex_h).
5476         (gdb_assert_h): Define.
5477         (gdb_wait_h): Define.
5478         (gdb_regex_h): Define.
5479
5480 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
5481
5482         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5483         * linespec.c (find_methods): Handle GCC 3.x template constructors.
5484
5485 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5486
5487         * nbsd-tdep.c: Fix comment.
5488
5489 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5490
5491         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5492         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5493         (nbsd-tdep.o): New dependency list.
5494         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
5495         nbsd-tdep.h.
5496         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5497         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5498         * nbsd-tdep.c: New file.
5499         * nbsd-tdep.h: New file.
5500         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
5501         nbsd-tdep.h.
5502         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5503         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5504         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5505         * config/sh/nbsd.mt (TDEPFILES): Ditto.
5506
5507 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5508
5509         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5510         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5511         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5512         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5513         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5514         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5515
5516 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5517
5518         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5519         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5520         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5521         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5522         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5523         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5524         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5525
5526 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5527
5528         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
5529         fetch_elfcore_registers to...
5530         * i386nbsd-tdep.c: ...here.
5531         (i386nbsd_use_struct_convention): Rename to...
5532         (i386nbsd_aout_use_struct_convention): ...this.
5533         (i386nbsd_supply_reg): New function.
5534         (i386nbsd_fill_reg): New function.
5535         (fetch_core_registers): Use i386nbsd_supply_reg.
5536         (fetch_elfcore_registers): Likewise.
5537         (_initialize_i386nbsd_tdep): New function.
5538         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5539         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5540         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5541         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5542         (i386nbsd_aout_use_struct_convention): ...this.
5543
5544 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5545
5546         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5547         (store_inferior_registers): Use shnbsd_fill_reg.
5548         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
5549         sh_nbsd_supply_register): Collapse into...
5550         (shnbsd_supply_reg): ...this.
5551         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5552         (shnbsd_fill_reg): ...this.
5553         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5554         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5555         (fetch_core_registers): Use shnbsd_supply_reg.
5556         (fetch_elfcore_registers): Use shnbsd_supply_reg.
5557         (sh_nbsd_core_fns): Rename to...
5558         (shnbsd_core_fns): ...this.
5559         (sh_nbsd_elfcore_fns): Rename to...
5560         (shnbsd_elfcore_fns): ...this.
5561         (sh_nbsd_init_abi): Rename to...
5562         (shnbsd_init_abi): ...this.
5563         (_initialize_sh_nbsd_tdep): Rename to...
5564         (_initialize_shnbsd_tdep): ...this.
5565         * shnbsd-tdep.h (sh_nbsd_supply_registers,
5566         sh_nbsd_supply_register, sh_nbsd_fill_registers,
5567         sh_nbsd_fill_register): Remove prototypes.
5568         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5569
5570 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5571
5572         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5573         (i387-nat.o): Delete dependency list.
5574         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5575         (x86-64-linux-nat.o): Likewise.
5576         * i387-nat.c: Delete file, moving contents to...
5577         * i387-tdep.c: ...here.
5578         * i387-nat.h: Rename...
5579         * i387-tdep.h: ...to this.
5580         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5581         * i386-linux-nat.c: Likewise.
5582         * i386bsd-nat.c: Likewise.
5583         * i386gnu-nat.c: Likewise.
5584         * i386nbsd-nat.c: Likewise.
5585         * i386v4-nat.c: Likewise.
5586         * x86-64-linux-nat.c: Likewise.
5587         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5588         * config/i386/go32.mh (NATDEPFILES): Likewise.
5589         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5590         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5591         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5592         * config/i386/linux.mh (NATDEPFILES): Likewise.
5593         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5594         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5595         * config/i386/obsd.mh (NATDEPFILES): Likewise.
5596         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5597
5598 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5599
5600         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5601         (alphanbsd-nat.o): Remove dependency list.
5602         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5603         * alphanbsd-nat.c: Delete.  Contents moved to...
5604         * alphanbsd-tdep.c: ...here.
5605         (_initialize_alphanbsd_tdep): Register core functions.
5606         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5607
5608 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5609
5610         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5611         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5612         (alphanbsd-nat.o): Likewise.
5613         (alphabsd-tdep.o): New dependency list.
5614         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5615         (fill_gregset): Use alphabsd_fill_reg.
5616         (supply_fpregset): Use alphabsd_supply_fpreg.
5617         (fill_fpregset): Use alphabsd_fill_fpreg.
5618         (fetch_inferior_registers): Use struct reg and struct fpreg
5619         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
5620         and alphabsd_supply_fpreg.
5621         (store_inferior_registers): Use struct reg and struct fpreg
5622         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
5623         and alphabsd_fill_fpreg.
5624         * alphabsd-tdep.c: New file.
5625         * alphabsd-tdep.h: New file.
5626         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5627         (fetch_elfcore_registers): Use alphabsd_supply_reg and
5628         alphabsd_supply_fpreg.
5629         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5630         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5631
5632 2002-05-11  Eric Christopher  <echristo@redhat.com>
5633
5634         * mips-tdep.c (mips_double_register_type): Fix thinko.
5635         (mips_single_register_type): Ditto.
5636         * MAINTAINERS: Add self.
5637
5638 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
5639
5640         * i387-nat.c (i387_supply_register, i387_fill_fsave,
5641         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5642         right thing on architectures with different endianness and/or
5643         integer sizes.
5644
5645 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
5646
5647         From Christian Limpach <chris@Pin.LU>
5648         * configure.in: Change sed expression which comments out
5649         NATDEPFILES to also comment out continuation lines.
5650         * configure: Regenerate.
5651
5652 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5653
5654         * sh-tdep.c: Clean up code erroneously reintroduced by previous
5655         big patch.
5656
5657 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5658
5659         * sh-tdep.c: Include correct file.
5660
5661 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5662
5663         New support for sh64-elf (sh5) target.
5664
5665         * configure.tgt: For sh64-elf target, default to sh-elf.
5666
5667         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5668         (struct gdbarch_tdep): Add new fields for new registers and ABI
5669         info.
5670
5671         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5672         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5673         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5674         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5675         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5676         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5677         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5678         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5679         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5680         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5681         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5682         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5683         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5684         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5685         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5686         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5687         sh64_get_gdb_regnum, sh64_media_reg_base_num,
5688         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5689         sign_extend, sh64_nofp_frame_init_saved_regs,
5690         sh64_init_extra_frame_info, sh64_get_saved_register,
5691         sh64_extract_struct_value_address, sh64_pop_frame,
5692         sh64_push_arguments, sh64_extract_return_value,
5693         sh64_store_return_value, sh64_show_media_regs,
5694         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5695         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5696         sh_sh64_register_virtual_type,
5697         sh_sh64_register_convert_to_virtual,
5698         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5699         sh64_register_read, sh64_pseudo_register_write,
5700         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5701         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5702         sh64_do_pseudo_register, sh_compact_do_registers_info,
5703         sh64_do_registers_info, sh_gdbarch_init): New functions.
5704
5705 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5706
5707         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5708
5709 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
5710
5711         * linespec.c (decode_line_1): Check for a double quote after
5712         a filename correctly.
5713
5714 2002-05-10  Jim Blandy  <jimb@redhat.com>
5715
5716         Properly track the size of the current objfile's .debug_line section.
5717         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5718         (DWARF_LINE_SIZE): New macro.
5719         (dwarf2_build_psymtabs_hard): Record the line section's size in
5720         the partial symbol table.
5721         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5722         symbol table.
5723
5724 2002-05-10  Petr Sorfa  <petrs@caldera.com>
5725
5726         * ia64-tdep.c: Handle breakpoints on L instruction type
5727         in MLX instruction bundle by moving the breakpoint to
5728         the third slot (X instruction type) as L holds only data.
5729
5730 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
5731
5732         * dbxread.c (discarding_local_symbols_complaint): New complaint.
5733         (process_one_symbol): Complain about discarding local symbols
5734         due to a misplaced N_LBRAC entry.
5735
5736 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
5737
5738         From Daniel Berlin <dan@cgsoftware.com>
5739         * linespec.c (find_toplevel_char): '<' and '>' also increase and
5740         decrease the depth we are at, in the case of templates.
5741
5742 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5743
5744         * mips-tdep.c (mips_float_register_type): New function.
5745         (mips_double_register_type): New function.
5746         (mips_print_register): Use them.
5747         (do_fp_register_row): Likewise.
5748
5749 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5750
5751         * signals/signals.c (signals): Remove conditional compilation around
5752         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
5753         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5754
5755 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5756
5757         * remote-rdp.c (remote_rdp_can_run): Remove.
5758
5759 2002-05-09  Tom Tromey  <tromey@redhat.com>
5760
5761         * jv-valprint.c (java_val_print): Handle `char' as a special case
5762         of TYPE_CODE_INT.
5763
5764 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5765
5766         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5767         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5768         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5769         str r(0123),[sp,#nn].
5770         (arm_skip_prologue): Ditto.  Also make disassembly
5771         order-independent by placing it in a loop.
5772
5773 2002-05-06  Michael Snyder  <msnyder@redhat.com>
5774
5775         * stabsread.c (read_type): Add recognition for new attribute:
5776         "@V;" means that an array type is actually a vector.
5777         This is analogous to the vector flag that's been added to dwarf2.
5778
5779 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
5780
5781         * i386-tdep.h (i386_abi): New enum.
5782         (struct gdbarch_tdep): Replace os_ident member with abi.
5783         (i386_gdbarch_register_os_abi): New prototype.
5784         * i386-tdep.c (i386_abi_names): New array.
5785         (process_note_abi_tag_sections): Removed.
5786         (process_note_sections): New function.
5787         (i386_elf_abi_from_note, i386_elf_abi): New functions.
5788         (struct i386_abi_handler): New struct.
5789         (i386_abi_handler_list): New variable.
5790         (i386_gdbarch_register_os_abi): New function.
5791         (i386_gdbarch_init): Adapt for the changes given above.
5792
5793 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
5794
5795         * gregset.h: Say "GNU/Linux".
5796
5797 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
5798
5799         * gdbtypes.c : Add new builtin type for 64 bit vectors.
5800         (build_gdbtypes): Build builtin_type_v2_float.
5801         (_initialize_gdbtypes): Register new builtin type.
5802
5803 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
5804
5805         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5806         (clear_gdbarch_swap): New function.
5807         (initialize_non_multiarch): Call.
5808         (gdbarch_update_p): Before calling init(), swap out and clear the
5809         existing architecture.
5810         * gdbarch.c: Regenerate.
5811
5812 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5813
5814         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5815         alphanbsd-tdep.c.
5816
5817 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5818
5819         * sh-nbsd-nat.c: Rename to...
5820         * shnbsd-nat.c: ...this.
5821         * sh-nbsd-tdep.c: Rename to...
5822         * shnbsd-tdep.c: ...this.
5823         * sh-nbsd-tdep.h: Rename to...
5824         * shnbsd-tdep.h: ...this.
5825         * config/sh/nbsd.mh: Use shnbsd-nat.o.
5826         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5827
5828 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
5829
5830         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5831         concatenation for command help messages.
5832
5833 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5834
5835         * NEWS: Note new sh*-*-netbsdelf* configuration.
5836         * configure.host: Set gdb_host_cpu to sh for all sh*.
5837         (sh*-*-netbsdelf*): New host.
5838         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5839         (sh*-*-netbsdelf*): New target.
5840         * sh-nbsd-nat.c: New file.
5841         * sh-nbsd-tdep.c: New file.
5842         * sh-nbsd-tdep.h: New file.
5843         * config/sh/nbsd.mh: New file.
5844         * config/sh/nbsd.mt: New file.
5845         * config/sh/nm-nbsd.h: New file.
5846         * config/sh/tm-nbsd.h: New file.
5847
5848 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5849
5850         * sh-tdep.c (sh_osabi_names): Declare.
5851         (process_note_abi_tag_sections): New function.
5852         (get_elfosabi): Ditto.
5853         (sh_gdbarch_register_os_abi): Ditto.
5854         (sh_dump_tdep): Ditto.
5855         _initialize_sh_tdep): Use gdbarch_register to register
5856         sh_gdbarch_init and sh_dump_tdep.
5857         * config/sh/tm-sh.h (sh_osabi): Declare.
5858         (gdbarch_tdep): Add sh_osabi and osabi_name members.
5859
5860 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
5861
5862         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5863         (thumb_scan_prologue): Ditto.
5864         (arm_find_callers_reg): Ditto.
5865         (arm_frame_chain): Ditto.
5866         (arm_init_extra_frame_info): Ditto.
5867         (arm_frame_saved_pc): Ditto.
5868         (arm_pop_frame): Ditto.
5869         (arm_push_return_address): New function.
5870         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5871         call_dummy_location, call_dummy_breakpoint_offset_p,
5872         call_dummy_breakpoint_offset, call_dummy_p,
5873         call_dummy_stack_adjust_p, call_dummy_words,
5874         sizeof_call_dummy_words, call_dummy_start_offset,
5875         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5876         call_dummy_address, push_return_address and push_dummy_frame for
5877         generic dummy frames.
5878
5879 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5880
5881         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5882         size computation for alloca.
5883         (sh_fp_frame_init_saved_regs): Likewise.
5884
5885 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
5886
5887         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5888         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5889         * arm-tdep.c (arm_store_return_value): Use them.
5890         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5891         * remote-rdp.c (remote_rdp_fetch_register): Use
5892         ARM_MAX_REGISTER_RAW_SIZE.
5893         (remote_rdp_store_register): Likewise.
5894
5895 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
5896
5897         * dwarf2cfi.c: Code cleanup, removed unused variables,
5898         added default labels to switch {} statements.
5899         * x86-64-tdep.c: Ditto.
5900         * x86-64-linux-nat.c: Ditto.
5901
5902 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5903
5904         * solib.h: Protect against multiple inclusion.
5905
5906 2002-05-06  Jim Blandy  <jimb@redhat.com>
5907
5908         Add first preprocessor macro-expansion files.
5909         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5910         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5911         (splay_tree_h, macroexp_h, macrotab_h): New variable.
5912         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5913         (COMMON_OBS): Add macrotab.o, macroexp.o.
5914         (macroexp.o, macrotab.o): New rules.
5915
5916         Separate the job of reading the line number info statement program
5917         header (...expialidocious) out into its own function.
5918         * dwarf2read.c (struct line_head, struct filenames, struct
5919         directories): Replace with...
5920         (struct line_header): New structure, containing the full
5921         contents of the statement program header, including the
5922         include directory and file name tables.
5923         (read_file_scope): If we have line number info, instead of just
5924         calling dwarf_decode_lines to do all the work, call
5925         dwarf_decode_line_header first to get a `struct line_header'
5926         containing the data in the statement program header, and then
5927         pass that to dwarf_decode_lines, which will pick up where that
5928         left off.  Be sure to clean up the `struct line_header' object.
5929         (dwarf_decode_line_header, free_line_header, add_include_dir,
5930         add_file_name): New functions.
5931         (dwarf_decode_lines): Move all the code to read the statement
5932         program header into dwarf_decode_line_header.  Take the line
5933         header it built as the first argument, instead of the offset to
5934         the compilation unit's line number info.  Use the new `struct
5935         line_header' type instead of the old structures.  No need to do
5936         cleanups here now, since we don't allocate anything.
5937         (dwarf2_statement_list_fits_in_line_number_section,
5938         dwarf2_line_header_too_long): New complaints.
5939
5940 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
5941
5942         * gdbtypes.c (init_vector_type): New function.
5943         (build_builtin_type_vec128): Simplify the representation of SIMD
5944         registers.
5945         (build_gdbtypes): Initialize new builtin vector types.
5946         (_initialize_gdbtypes): Register new vector types with gdbarch.
5947         (builtin_type_v4_float, builtin_type_v4_int32,
5948         builtin_type_v8_int16, builtin_type_v16_int8,
5949         builtin_type_v2_int32, builtin_type_v4_int16,
5950         builtin_type_v8_int8): New (renamed) SIMD types.
5951
5952 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
5953
5954         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5955         (i387_fill_fxsave): Likewise.
5956
5957 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
5958
5959         * alpha-tdep.c (alpha_extract_return_value): Don't use
5960         non-constant array size in prototype.
5961
5962 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5963
5964         From Brian Taylor <briant at model dot com>:
5965         * ui-out.c (ui_out_field_core_addr): Use the function
5966         longest_local_hex_string_custom'to format addresses > 32 bits
5967         wide.
5968
5969         * ui-out.c (ui_out_field_core_addr): Update comment.
5970
5971 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5972
5973         * stack.c (select_and_print_frame): Make static.  Delete the
5974         parameter `level'.
5975         (func_command): Update call.
5976         (select_frame_command): Delete code computing the frame level.
5977         * frame.h (select_and_print_frame): Delete declaration.
5978
5979 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5980
5981         * sparc-tdep.c (sparc_get_saved_register): Comment why
5982         get_prev_frame call is safe.
5983
5984 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5985
5986         * frame.h (select_frame): Delete level parameter.
5987         * stack.c (select_frame): Update.  Use frame_relative_level to
5988         obtain the frame's level.
5989         (select_and_print_frame): Update call.
5990         (select_frame_command): Ditto.
5991         (up_silently_base): Ditto.
5992         (down_silently_base): Ditto.
5993         * ocd.c (ocd_start_remote): Ditto.
5994         * remote-rdp.c (remote_rdp_open): Ditto.
5995         * remote-mips.c (mips_initialize): Ditto.
5996         (common_open): Ditto.
5997         * remote-e7000.c (e7000_start_remote): Ditto.
5998         * m3-nat.c (select_thread): Ditto.
5999         * hppa-tdep.c (child_get_current_exception_event): Ditto.
6000         (child_get_current_exception_event): Ditto.
6001         * varobj.c (varobj_create): Ditto.
6002         (varobj_update): Ditto.
6003         (c_value_of_root): Ditto.
6004         * tracepoint.c (finish_tfind_command): Ditto.
6005         * corelow.c (core_open): Ditto.
6006         * arch-utils.c (generic_prepare_to_proceed): Ditto.
6007         * thread.c (info_threads_command): Ditto.
6008         (switch_to_thread): Ditto.
6009         * infrun.c (normal_stop): Ditto.
6010         (restore_selected_frame): Ditto.
6011         (restore_inferior_status): Ditto.
6012         * breakpoint.c (insert_breakpoints): Ditto.
6013         (watchpoint_check): Ditto.
6014         (bpstat_stop_status): Ditto.
6015         (do_enable_breakpoint): Ditto.
6016         * blockframe.c (flush_cached_frames): Ditto.
6017         (reinit_frame_cache): Ditto.
6018
6019 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6020
6021         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6022         maintainer.
6023
6024 2002-05-04  Jim Blandy  <jimb@redhat.com>
6025
6026         * gdbtypes.c (replace_type): Doc fix.
6027
6028 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6029
6030         * valprint.c (strcat_longest): Delete commented out function.
6031         Update copyright.
6032
6033 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6034
6035         * MAINTAINERS: Mark a29k as deleted.
6036         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
6037         Move new configurations to the top.
6038         * configure.tgt: Remove a29k.
6039         * config/a29k/tm-vx29k.h: Delete.
6040         * config/a29k/vx29k.mt: Delete.
6041         * config/a29k/tm-a29k.h: Delete.
6042         * config/a29k/a29k-udi.mt: Delete.
6043         * config/a29k/a29k.mt: Delete.
6044         * a29k-tdep.c: Delete.
6045         * remote-udi.c: Delete.
6046         * remote-mm.c: Delete.
6047         * remote-eb.c: Delete.
6048         * remote-adapt.c: Delete.
6049         * Makefile.in: Remove obsolete code.
6050         * config/s390/s390x.mt: Ditto.
6051         * config/s390/s390.mt: Ditto.
6052         * config/sparc/sparclynx.mh: Ditto.
6053         * config/sparc/linux.mh: Ditto.
6054         * config/pa/hppaosf.mh: Ditto.
6055         * config/pa/hppabsd.mh: Ditto.
6056         * config/ns32k/nbsd.mt: Ditto.
6057         * config/mips/vr5000.mt: Ditto.
6058         * config/m68k/sun3os4.mh: Ditto.
6059         * config/m68k/nbsd.mt: Ditto.
6060         * config/m68k/m68klynx.mh: Ditto.
6061         * config/m32r/m32r.mt: Ditto.
6062         * config/i386/x86-64linux.mt: Ditto.
6063         * config/i386/nbsdelf.mt: Ditto.
6064         * config/i386/nbsd.mt: Ditto.
6065         * config/i386/i386lynx.mh: Ditto.
6066
6067 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6068
6069         * target.c (debug_print_register): New function.  Handle oversize
6070         registers.
6071         (debug_to_fetch_registers): Call.
6072         (debug_to_store_registers): Call.
6073
6074 2002-05-03  Jim Blandy  <jimb@redhat.com>
6075
6076         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6077         (read_type): Doc fix.
6078         * gdbtypes.c (replace_type): Doc fix.
6079
6080         * stabsread.c (multiply_defined_struct): New complaint.
6081         (read_struct_type): If the type we were passed isn't empty, or
6082         incomplete, don't read the new struct type into it; complain,
6083         and return the original type unchanged.  Take a new `type_code'
6084         argument, which is the type code for the new type.
6085         (read_type): Rather than storing the type's type code here, pass
6086         it as an argument to read_struct_type, and let that take care of
6087         storing it.  That way, we don't overwrite the original type code,
6088         so read_struct_type can use it to decide whether we're overwriting
6089         something we shouldn't.
6090         (complain_about_struct_wipeout): New function.
6091
6092 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
6093
6094         * gdbarch.sh: Assert that gdbarch is non-NULL.
6095         * gdbarch.c: Regenerate.
6096
6097 2002-05-03  Jason Merrill  <jason@redhat.com>
6098
6099         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6100         and return NULL.
6101
6102 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
6103
6104         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6105         (x86_64_dwarf2gdb_regno_map_length),
6106         (x86_64_dwarf2_reg_to_regnum): Added.
6107         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6108         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6109         (_initialize_x86_64_tdep): Synced with the change above.
6110         (x86_64_skip_prologue): Reformulated message.
6111
6112 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6113
6114         * f-exp.y: Also use new prev_lexptr variable
6115         to improve error reporting. Based on Michael Snyder
6116         2002-04-24 dated patch to c-exp.y.
6117         * jv-exp.y: Likewise.
6118         * m2-exp.y: Likewise.
6119
6120 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
6121
6122         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6123         we are dealing with vectors.
6124
6125 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6126
6127         * config/m68k/tm-nbsd.h: Obvious fix,
6128         correct machine name.
6129
6130 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6131
6132         * p-typeprint.c (pascal_type_print_base): Add support
6133         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6134
6135 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6136
6137         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6138         for fondamental pascal 'char' type.
6139
6140 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6141
6142         * p-lang.h (is_pascal_string_type): Declaration changed,
6143         new sixth argument of type char ** added.
6144         * p-lang.c (is_pascal_string_type): Implementation
6145         changed. Args length_pos, length_size, string_pos, char_size
6146         can now be NULL. New argument arrayname set to the field
6147         name of the char array. Return value set to char array
6148         field index plus one.
6149         * p-valprint.c (pascal_val_print): Adapt to new declaration of
6150         is_pascal_string_type function.
6151
6152 2002-05-02  Andrew Cagney  <cagney@redhat.com>
6153
6154         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6155         <cagney@redhat.com> change.
6156         * gdbarch.c: Regenerate.
6157
6158 2002-05-02  Andrew Cagney  <cagney@redhat.com>
6159
6160         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6161         before probing for a new one.  Detect errorenous gdbarch_init
6162         functions.
6163         * gdbarch.c: Regenerate.
6164
6165 2002-05-01  Andrew Cagney  <cagney@redhat.com>
6166
6167         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6168         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
6169         * config/v850/tm-v850.h: Ditto.  Update copyright.
6170
6171 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
6172
6173         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6174         current_gdbarch.
6175
6176 2002-04-30  Michael Snyder  <msnyder@redhat.com>
6177
6178         * arm-tdep.c: Whitespace clean-ups.
6179         (arm_skip_prologue): Fix thinko; two lines
6180         should have been removed as part of 4/24 change.
6181
6182 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
6183
6184         * rs6000-tdep.c: Added comment describing how fpscr register
6185         numbers were chosen.
6186
6187 2002-04-30  Michael Snyder  <msnyder@redhat.com>
6188
6189         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6190
6191 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
6192
6193         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6194         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6195         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6196
6197 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
6198
6199         From Louis Hamilton <hamilton@redhat.com>:
6200         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6201         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6202         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6203         not bfd-private xcoff data, to determine wordsize.
6204         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6205
6206 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
6207
6208         GDB 5.2 released from 5.2 branch.
6209
6210 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
6211
6212         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6213         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6214         (x86_64_register_info_table): Added comments with register numbers.
6215
6216 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
6217
6218         * rs6000-tdep.c (rs6000_extract_return_value,
6219         rs6000_store_return_value): Handle returning vectors.
6220         (rs6000_gdbarch_init): Use
6221         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6222         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6223         New function.
6224         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6225         vectors.
6226         (ppc_sysv_abi_push_arguments): Handle vector parameters.
6227         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6228
6229 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6230
6231         * hpread.c (hpread_psymtab_to_symtab_1,
6232         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6233         with fprintf_unfiltered (gdb_stderr,...).
6234
6235 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6236
6237         * remote-array.c (printf_monitor, write_monitor,
6238         array_insert_breakpoint, array_remove_breakpoint ):
6239         Replace fprintf (stderr,...
6240         with fprintf_unfiltered (gdb_stderr,....
6241         * remote-es.c: Likewise.
6242         * remote-os9k.c: Likewise.
6243         * remote-st.c: Likewise.
6244
6245 2002-04-28  Andreas Schwab  <schwab@suse.de>
6246
6247         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6248         linux-proc.o and gcore.o.
6249
6250 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
6251
6252         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6253         code without frame pointers.
6254
6255 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6256
6257         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6258         ON_STACK is needed.
6259
6260 2002-04-26  Ben Elliston  <bje@redhat.com>
6261
6262         * target.c (do_xfer_memory): Correct reference to the new option
6263         "trust-readonly-sections".
6264
6265 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
6266
6267         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6268         * gdbtypes.c (recursive_dump_type): Output the vector flag.
6269         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6270         vectors.
6271         (read_array_type): Record the fact that this array type is really a
6272         vector (i.e. are passed in by value).
6273
6274 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
6275
6276         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6277         * alpha-tdep.c (alpha_sigcontext_addr): New function.
6278         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6279         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6280         * alpha-linux-tdep.c: Include frame.h.
6281         (alpha_linux_sigcontext_addr): New function.
6282         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6283         alpha_linux_sigcontext_addr.
6284         * alpha-osf1-tdep.c: Include gdbcore.h.
6285         (alpha_osf1_sigcontext_addr): New function.
6286         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6287         alpha_osf1_sigcontext_addr.
6288         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6289         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6290
6291 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6292
6293         * stack.c (selected_frame_level):
6294         (select_frame): Do not set selected_frame_level.
6295         * frame.h (selected_frame_level): Delete declaration.
6296
6297 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6298
6299         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6300         convert_from_func_ptr-addr when AIX / PowerOpen.
6301
6302 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6303
6304         * valops.c (hand_function_call): Call
6305         generic_save_call_dummy_addr.
6306         * frame.h (generic_save_call_dummy_addr): Declare.
6307         * blockframe.c (struct dummy_frame): Add fields call_lo and
6308         call_hi.
6309         (generic_find_dummy_frame): Check for PC in range call_lo to
6310         call_hi instead of entry_point_address.
6311         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6312         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
6313         (generic_save_call_dummy_addr): New function.
6314
6315 2002-04-24  David S. Miller  <davem@redhat.com>
6316
6317         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6318         sparc_skip_prologue.
6319         (sparc_skip_prologue): Kill frameless_p arg, and use line number
6320         information to find prologue when possible.
6321         (sparc_prologue_frameless_p): Call examine_prologue directly.
6322         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6323         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6324         second argument.
6325         (SKIP_PROLOGUE): Likewise.
6326
6327 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6328
6329         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6330         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6331         indicate that the condition it was testing is always true.
6332         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6333         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6334         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6335
6336 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6337
6338         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6339         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6340         tdep->jb_pc and tdep->jb_elt_size.
6341         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6342         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6343         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6344         * alpha-nat.c (get_longjmp_target): Remove.
6345         (JB_ELEMENT_SIZE): Ditto.
6346         (JB_PC): Ditto.
6347         * alpha-tdep.c (alpha_get_longjmp_target): New function.
6348         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
6349         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6350         to alpha_get_longjmp_target.
6351         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6352         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6353         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6354
6355 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6356
6357         * README: Update to GDB 5.2.
6358
6359 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6360
6361         * gdbarch.sh (LC_ALL): Set to `c'.
6362
6363 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6364
6365         * avr-tdep.c: Ran through gdb_indent.sh.
6366
6367 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6368
6369         * MAINTAINERS: Add myself as AVR maintainer.
6370         * NEWS: Note new target avr.
6371
6372 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6373
6374         * Makefile.in: Add support for AVR target.
6375         * configure.tgt: Add support for AVR target.
6376         * avr-tdep.c: New file
6377         * config/avr/avr.mt: New file.
6378
6379 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6380
6381         * MAINTAINERS: Add myself to write-after-approval.
6382
6383 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6384
6385         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6386         with fprintf_unfiltered (gdb_stderr,....
6387
6388 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6389
6390         Fix PR gdb/508.
6391         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6392
6393 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6394
6395         * p-exp.y: Also use new prev_lexptr variable
6396         to improve error reporting. Based on Michael Snyder
6397         2002-04-24 dated patch to c-exp.y.
6398
6399 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6400
6401         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6402         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6403         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
6404         to 0.
6405         * config/alpha/tm-alpha.h: Remove forward decls of struct type
6406         and struct value.
6407         (FUNCTION_START_OFFSET): Remove.
6408         (BREAKPOINT): Ditto.
6409
6410 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6411
6412         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6413         * NEWS: Ditto.
6414
6415 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6416
6417         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6418         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6419         alpha_linux_pc_in_sigtramp.
6420         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6421         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6422         alpha_osf1_pc_in_sigtramp.
6423         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6424         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6425         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6426         alphafbsd_pc_in_sigtramp.
6427         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6428         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6429         alphanbsd_pc_in_sigtramp.
6430         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6431         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6432
6433 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6434
6435         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6436
6437 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6438
6439         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6440         alphanbsd-tdep.c.
6441         (alphanbsd-nat.o): New dependency list.
6442         (alphanbsd-tdep.o): Ditto.
6443         * NEWS: Note new native NetBSD/alpha configuration.
6444         * alphanbsd-nat.c: New file.
6445         * alphanbsd-tdep.c: Ditto.
6446         * configure.host (alpha*-*-netbsd*): New host.
6447         * configure.tgt (alpha*-*-netbsd*): New target.
6448         * config/alpha/nbsd.mh: New file.
6449         * config/alpha/nbsd.mt: Ditto.
6450         * config/alpha/nm-nbsd.h: Ditto.
6451         * config/alpha/tm-nbsd.h: Ditto.
6452
6453 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6454
6455         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6456         (alpha-osf1-tdep.o): New dependency list.
6457         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6458         and skip_sigtramp_frame members.
6459         * alpha-linux-tdep.c: Include gdbcore.h.
6460         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6461         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6462         * alpha-osf1-tdep.c: New file.
6463         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6464         alpha-osf1-dep.c.
6465         (alpha_frame_past_sigtramp_frame): New function.
6466         (alpha_dynamic_sigtramp_offset): Ditto.
6467         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6468         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6469         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6470         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6471         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6472         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6473         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6474         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6475         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6476         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6477         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
6478         to find_solib_trampoline_target.
6479         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6480         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6481         (SKIP_TRAMPOLINE_CODE): Remove.
6482         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6483         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6484         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6485         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6486         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6487         (PROC_SIGTRAMP_MAGIC): Ditto.
6488         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6489         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6490         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6491         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6492         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6493
6494 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6495
6496         * NEWS: Note that Alpha targets are now multi-arch.
6497
6498 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6499
6500         * parser-defs.h (prev_lexptr): New external variable.
6501         * parse.c (parse_exp_1): Set prev_lexptr to null before
6502         calling the language-specific parser.
6503         * c-exp.y (yylex): Set prev_lexptr to start of current token.
6504         (yyerror): Use prev_lexptr in error reporting.
6505
6506 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
6507
6508         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6509         * gregset.h: If FILL_FPXREGSET is defined, provide
6510         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6511         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6512         is defined, call fill_fpxregset.
6513
6514 2002-04-24  Roland McGrath  <roland@frob.com>
6515
6516         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6517         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6518         (supply_gregset, supply_fpregset): New functions.
6519
6520         * gnu-nat.c (gnu_find_memory_regions): New function.
6521         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6522         (gnu_xfer_memory): Add a cast.
6523
6524 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6525
6526         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6527         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
6528         of argument regs ("str r(0123), [r11, #-nn"]).
6529         (arm_skip_prologue): Better handling for frameless functions.
6530         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
6531         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6532
6533 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
6534
6535         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6536         NUM_PSEUDO_REGS can be used.
6537
6538 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
6539
6540         * arch-utils.h: Update copyright.
6541
6542         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6543         * gdbarch.h, gdbarch.c: Re-generate.
6544
6545         * inferior.h (IN_SIGTRAMP): Delete definition.
6546         * arch-utils.c (legacy_pc_in_sigtramp): New function.
6547         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6548
6549         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6550         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6551         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
6552         (find_proc_framesize): Ditto.
6553         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6554         (alpha_init_extra_frame_info): Ditto.
6555         * infrun.c (handle_inferior_event): Ditto.
6556         (handle_inferior_event): Ditto.
6557         (check_sigtramp2): Ditto.
6558         * blockframe.c (create_new_frame): Ditto.
6559         (get_prev_frame): Ditto.
6560         * ppc-linux-tdep.c: Update comments.
6561         * i386-linux-tdep.c: Update comments.
6562         * breakpoint.c (bpstat_what): Update comment.
6563
6564 2002-04-24  David S. Miller  <davem@redhat.com>
6565
6566         * i960-tdep.c (register_in_window_p): New function.
6567         (i960_find_saved_register): Use it instead of
6568         REGISTER_IN_WINDOW_P.
6569         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6570
6571         * symtab.h (find_stab_function_addr): Kill extern.
6572         * minsyms.c (find_stab_function_addr): Remove from here...
6573         * dbxread.c: ... to here, and mark it static.
6574
6575 2002-04-20  David S. Miller  <davem@redhat.com>
6576
6577         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6578         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6579
6580 2002-04-21  David S. Miller  <davem@redhat.com>
6581
6582         * remote-vxsparc.c (vx_read_register): Fix typo, we want
6583         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6584         (vx_write_register): Likewise.
6585
6586 2002-04-23  J. Brobecker  <brobecker@gnat.com>
6587
6588         * source.c (is_regular_file): New function.
6589         (openp): Check wether file to open is a regular file
6590         to avoid opening directories.
6591
6592 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6593
6594         * findvar.c (extract_signed_integer): Cast printf argument
6595         to suppress format warning.
6596         (extract_unsigned_integer): Likewise.
6597         * infcmd.c (registers_info): Likewise.
6598         * top.c (get_prompt_1): Likewise.
6599         * valops.c (value_assign): Likewise.
6600         * valprint.c (print_decimal): Likewise.
6601
6602 2002-04-22  H.J. Lu  (hjl@gnu.org)
6603
6604         * c-exp.y (typebase): Support
6605
6606         [long|long long|short] [signed|unsigned] [int|]
6607
6608         and
6609
6610         signed [long|long long|short] int
6611
6612 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6613
6614         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6615         and vax-tdep.h.
6616         * vax-tdep.h: New file.
6617         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6618         Make several routines static.
6619         (vax_get_saved_register): New function.
6620         (vax_gdbarch_init): New function.
6621         (_initialize_vax_tdep): Register vax_gdbarch_init.
6622         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6623         Remove macros now under the control of gdbarch.
6624
6625 2002-04-22  Michael Snyder  <msnyder@redhat.com>
6626
6627         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6628         Some whitespace and coding standards tweaks.
6629
6630 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6631
6632         * vax-tdep.c: Include regcache.h.
6633         (vax_call_dummy_words): New.
6634         (sizeof_vax_call_dummy_words): New.
6635         (vax_fix_call_dummy): New function.
6636         (vax_saved_pc_after_call): Ditto.
6637         * config/vax/tm-vax.h: Don't include regcache.h.
6638         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6639         (CALL_DUMMY): Remove.
6640         (CALL_DUMMY_WORDS): Define.
6641         (SIZEOF_CALL_DUMMY_WORDS): Define.
6642         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6643
6644 2002-04-18  Michael Snyder  <msnyder@redhat.com>
6645
6646         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6647
6648 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6649
6650         * vax-tdep.c (vax_frame_chain): New function.
6651         (vax_push_dummy_frame): Ditto.
6652         (vax_pop_frame): Ditto.
6653         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6654         (FRAMELESS_FUNCTION_INVOCATION): Use
6655         generic_frameless_function_invocation_not.
6656         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6657         (POP_FRAME): Use vax_pop_frame.
6658
6659 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6660
6661         * vax-tdep.c (vax_store_struct_return): New function.
6662         (vax_extract_return_value): Ditto.
6663         (vax_store_return_value): Ditto.
6664         (vax_extract_struct_value_address): Ditto.
6665         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6666         vax_store_struct_return.
6667         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6668         (STORE_RETURN_VALUE): Use vax_store_return_value.
6669         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6670
6671 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6672
6673         * vax-tdep.c (vax_frame_saved_pc): New function.
6674         (vax_frame_args_address_correct): Ditto.
6675         (vax_frame_args_address): Ditto.
6676         (vax_frame_locals_address): Ditto.
6677         (vax_frame_num_args): Move code to be in proximity to
6678         other frame-related functions.
6679         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6680         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6681         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6682         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6683         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6684
6685 2002-04-22  H.J. Lu  (hjl@gnu.org)
6686
6687         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6688         includedir.
6689
6690 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6691
6692         * vax-tdep.c (vax_frame_init_saved_regs): New function.
6693         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6694         (FRAME_INIT_SAVED_REGS): New macro.
6695
6696 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6697
6698         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6699
6700 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6701
6702         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6703         where needed.
6704         (fetch_osf_core_registers): Likewise.
6705         (supply_gregset): Likewise.
6706
6707 2002-04-22  J. Brobecker  <brobecker@gnat.com>
6708
6709         * symfile.h (get_section_index): Define.
6710         * symfile.c (get_section_index): New function.
6711         * mdebugread.c (SC_IS_SBSS): New macro.
6712         (SC_IS_BSS): Return true for the scBss storage class only, as
6713         the scSBss storage class refers to the .sbss section.
6714         (parse_partial_symbols): Discard the symbols which associated
6715         section does not exist.
6716         Make sure to use the .sbss section index for symbols which
6717         storage class is scBss, rather than using the .bss section index.
6718
6719 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6720
6721         * vax-tdep.c: Update copyright years.
6722         (vax_register_name): New function.
6723         (vax_register_byte): Ditto.
6724         (vax_register_raw_size): Ditto.
6725         (vax_register_virtual_size): Ditto.
6726         (vax_register_virtual_type): Ditto.
6727         * config/vax/tm-vax.h: Update copyright years.
6728         (REGISTER_NAMES): Remove.
6729         (REGISTER_NAME): Define.
6730         (REGISTER_BYTE): Use vax_register_byte.
6731         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6732         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6733         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6734
6735 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6736
6737         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6738         declaration
6739         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6740
6741 2002-04-21  David S. Miller  <davem@redhat.com>
6742
6743         * arch-utils.c (generic_prologue_frameless_p): Kill
6744         SKIP_PROLOGUE_FRAMELESS_P code.
6745         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6746         references.
6747         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6748         * arc-tdep.c (arc_prologue_frameless_p): Implement.
6749         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6750         references.
6751         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6752         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6753         (sparc_gdbarch_init): Pass it to
6754         set_gdbarch_prologue_frameless_p.
6755
6756 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6757
6758         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6759         (alphabsd-nat.o): New dependency list.
6760
6761 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6762
6763         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6764         alphafbsd-tdep.c.
6765         (alpha-linux-tdep.o): New dependency list.
6766         (alphafbsd-tdep.o): Likewise.
6767
6768 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6769
6770         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
6771         to here...
6772         * alpha-tdep.c: ...from here.
6773         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6774
6775 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6776
6777         * config/alpha/tm-alpha.h: Move alpha_software_single_step
6778         prototype from here...
6779         * alpha-tdep.h: ...to here.
6780
6781 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6782
6783         * frame.h (selected_frame_level): Document as deprecated.
6784         (frame_relative_level): Declare.
6785         * stack.c (frame_relative_level): New function.
6786         (selected_frame_level): Document as deprecated.
6787         (select_frame): Do not set the selected_frame_level.
6788
6789         * stack.c (frame_info, record_selected_frame): Update.
6790         (frame_command, current_frame_command): Update.
6791         (up_silently_base, up_command, down_silently_base): Update.
6792         (down_command): Update.
6793         * inflow.c (kill_command): Update.
6794         * tracepoint.c (finish_tfind_command): Update.
6795         * corelow.c (core_open): Update.
6796         * thread.c (info_threads_command): Update.
6797         (do_captured_thread_select): Update.
6798         * infcmd.c (finish_command): Update.
6799         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6800
6801 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6802
6803         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6804
6805 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6806
6807         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
6808         type const.
6809
6810 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6811
6812         * alphafbsd-tdep.c: Update copyright years.  Include
6813         alpha-tdep.h.
6814         (alphafbsd_use_struct_convention): Make static.
6815         (alphafbsd_init_abi): New function.
6816         (_initialize_alphafbsd_tdep): New function.
6817         * config/alpha/tm-fbsd.h: Update copyright years.
6818         (USE_STRUCT_CONVENTION): Remove.
6819
6820 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6821
6822         * alpha-tdep.c (alpha_abi_handler): New structure to describe
6823         an Alpha ABI variant.
6824         (alpha_abi_handler_list): Declare.
6825         (alpha_gdbarch_register_os_abi): New function.
6826         (alpha_gdbarch_init): Give registered ABI variant handlers a
6827         chance to tweak the gdbarch once we have set up defaults.
6828         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6829
6830 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6831
6832         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6833         to standard_coerce_float_to_double.
6834         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6835
6836 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6837
6838         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6839         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6840         from gdbarch_tdep rather than a constant.
6841         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6842         the default text address for all Alpha Unix ABIs.
6843         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6844         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6845
6846 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6847
6848         * alpha-tdep.h: New file.  Includes several Alpha target constants
6849         taken from...
6850         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
6851         let gdbarch deal with.
6852         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6853         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6854         to dependency list.
6855         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
6856         Alpha target register names.
6857         * alphabsd-nat.c: Likewise.
6858         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
6859         Alpha target register names.  Make serveral routines static.
6860         (alpha_get_saved_register): New function.
6861         (alpha_abi_names): New.
6862         (process_note_abi_tag_sections): New function.
6863         (get_elfosabi): New function.
6864         (alpha_gdbarch_init): New function.
6865         (alpha_dump_tdep): New function.
6866         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6867
6868 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6869
6870         * frame.c (find_saved_register): Delete #ifdef
6871         HAVE_REGISTER_WINDOWS code.
6872         * config/sparc/tm-sparc.h: Update comments.
6873         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6874
6875 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6876
6877         * i960-tdep.c (i960_find_saved_register): New function.
6878         (i960_get_saved_register): New function.
6879         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6880         (i960_get_saved_register): Declare.
6881         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6882
6883 2002-04-20  David S. Miller  <davem@redhat.com>
6884
6885         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6886
6887 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6888
6889         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6890         instead of NUM_PSEUDO_REGS.
6891
6892 2002-04-20  David S. Miller  <davem@redhat.com>
6893
6894         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6895         GDB_MULTI_ARCH_PARTIAL
6896         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6897         define, let tm-sp64.h do it.
6898
6899 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
6900
6901         * frame.c (find_saved_register): Avoid a NULL pointer
6902         dereference and actually walk the frame list.
6903
6904 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6905
6906         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6907         sorted in most most-recent-used order.  Document.
6908         * gdbarch.h, gdbarch.c: Regenerate.
6909
6910 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
6911
6912         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6913         instead of ->prev.
6914         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6915         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6916         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6917         instead of ->prev.
6918
6919 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
6920
6921         Fix PR gdb/471.
6922         * gdbtypes.c (init_simd_type): Rewrite using new functions.
6923         (build_builtin_type_vec128): Ditto.
6924         (append_composite_type_field): Fix calculation of type length in
6925         union case.
6926
6927 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
6928
6929         * config/djgpp/README: Update.
6930
6931         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6932         compiler warnings.
6933
6934 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
6935
6936         * alpha-tdep.c (setup_arbitrary_frame): Rename...
6937         (alpha_setup_arbitrary_frame): ...to this.
6938         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6939         for alpha_setup_arbitrary_frame.
6940
6941 2002-04-18  Andrew Cagney  <cagney@redhat.com>
6942
6943         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6944         * gdbarch.h, gdbarch.c: Regenerate.
6945
6946         * defs.h (breakpoint_from_pc_fn): Delete type definition.
6947         * target.h (memory_breakpoint_from_pc): Update declaration.
6948         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6949
6950         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6951         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6952         * mem-break.c (memory_breakpoint_from_pc): Ditto.
6953         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6954         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6955         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6956         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6957         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6958         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6959         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6960         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6961         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6962
6963         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6964         const pointer.
6965         * monitor.c (monitor_insert_breakpoint): Ditto.
6966         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6967
6968         * config/mcore/tm-mcore.h: Update copyright.
6969         * mem-break.c: Ditto.
6970         * xstormy16-tdep.c: Ditto.
6971
6972 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6973
6974         * p-exp.y: Add precedence rule for '^' token.
6975         This removes the shift/reduce conflicts.
6976         Remove the comment concerning these shift/reduce conflicts.
6977
6978 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
6979
6980         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6981         (registers_powerpc_nofp): New register set for processors
6982         without floating point unit.
6983
6984 2002-04-18  David S. Miller  <davem@redhat.com>
6985
6986         * MAINTAINERS: Add myself to write-after-approval.
6987
6988 2002-04-17  Michael Snyder  <msnyder@redhat.com>
6989
6990         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6991
6992 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6993
6994         * rs6000-tdep.c (frame_initial_stack_address): Use
6995         frame_register_read to read the alloca_reg.
6996
6997 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6998
6999         * frame.c (find_saved_register): Find saved registers in the next
7000         not prev frame.
7001         Fix PR gdb/365.
7002
7003 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
7004
7005         * gdbarch.sh (LANG): Set to ``c''.
7006
7007 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
7008
7009         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7010
7011 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
7012
7013         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7014         Update copyright.
7015
7016         * hpread.c (hpread_get_lntt): Add declaration.
7017         Also fix PR gdb/391.
7018
7019 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
7020
7021         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7022         * aclocal.m4, configure: Re-generate.
7023         Fix PR gdb/391.
7024
7025 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
7026
7027         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7028         instead of tm_print_insn.
7029
7030 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
7031
7032         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7033
7034 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
7035
7036         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7037         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7038         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7039
7040 2002-04-12  Don Howard  <dhoward@redhat.com>
7041
7042         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7043         max_user_call_depth.
7044         (init_cmd_lists): Initialize the new value;
7045         * cli/cli-script.c (execute_user_command): Limit the call depth of
7046         user defined commands.  This avoids a core-dump when user commands
7047         are infinitly recursive.
7048
7049 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7050
7051         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7052         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7053         from tdep struct instead of DEFAULT_LR_SAVE.
7054         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7055         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7056         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7057
7058 2002-04-12  Michael Snyder  <msnyder@redhat.com>
7059
7060         * Remote.c: Spelling fix.
7061         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7062         If no symbol found for "sbrk", try "_sbrk".
7063         (make_output_phdrs): Use bfd_section_name.
7064         (gcore_copy_callback): Use bfd_section_name.
7065         * eval.c: Indentation fix-ups.
7066         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7067         in case it gets applied to an address that is already
7068         in the instruction space.
7069         * cli/cli-decode.c (help_list): Allow long lines to wrap.
7070         * symfile.c: Fix indentation, long lines.
7071         * source.c: White space fix-up.
7072
7073 2002-04-12  Andrew Cagney  <cagney@redhat.com>
7074
7075         * defs.h (read_relative_register_raw_bytes): Delete declaration.
7076         * frame.c (frame_register_read): New function.  Return non-zero on
7077         success.
7078         (read_relative_register_raw_bytes_for_frame): Delete.
7079         (read_relative_register_raw_bytes): Delete.
7080         * frame.h (frame_register_read): Declare.
7081         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
7082         * sh-tdep.c: Ditto.
7083         * infcmd.c (do_registers_info): Ditto.
7084         * hppa-tdep.c: Ditto.
7085         * rs6000-tdep.c: Ditto.
7086         * h8500-tdep.c: Ditto.
7087         * mips-tdep.c: Ditto.
7088         * h8300-tdep.c: Ditto.
7089         * z8k-tdep.c: Ditto.
7090
7091 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7092
7093         From Jimi X <jimix@watson.ibm.com>:
7094         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7095         64-bit SysV ABI.
7096
7097 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7098
7099         From Jimi X <jimix@watson.ibm.com>:
7100         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7101         bfd info.
7102
7103 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7104
7105         From Jimi X <jimix@watson.ibm.com>:
7106         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7107         register sets for these processor variants.
7108
7109 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
7110
7111         * regformats/reg-ppc.dat: Support FPSCR.
7112
7113 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
7114
7115         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7116         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7117         Add fpscr as an invalid/unfetchable register.
7118         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7119         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7120         (fill_fpregset): Add support for register fpscr.
7121         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7122         (fill_gregset): Account for the fact that register ``mq'' might
7123         not exist.
7124         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7125         (registers_power): Add fpscr to register set at slot 71.
7126         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7127         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
7128
7129 2002-04-11  Michael Snyder  <msnyder@redhat.com>
7130
7131         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7132         * configure: Regenerate.
7133         * config.in: Regenerate.
7134         * acconfig.h: Add define for _SYSCALL32.
7135         * core-sol2.c: Remove #define _SYSCALL32.
7136         * solib-legacy.c: Remove #define _SYSCALL32.
7137
7138 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
7139
7140         * stack.c (select_frame): Cleanup internal error message, do not
7141         use %p.
7142
7143 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
7144
7145         * stack.c (select_frame): Check that selected_frame and the
7146         specified level are as expected.
7147         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7148         Update copyright.
7149         * frame.h (struct frame_info): Add field `level'.  Update
7150         copyright.
7151         Work-in-progress PR gdb/464.
7152
7153 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
7154
7155         * maint.c (maint_print_section_info): Rename print_section_info.
7156         (print_bfd_section_info, print_objfile_section_info): Update.
7157         * inferior.h (struct gdbarch): Add opaque declaration.
7158         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7159         * gdbarch.h: Regenerate.
7160
7161 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
7162
7163         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7164         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7165         (kernel_u_size): Added.
7166         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7167         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7168
7169 2002-04-04  Jim Ingham  <jingham@apple.com>
7170
7171        * valarith.c (find_size_for_pointer_math): New function, either returns
7172        the size for a pointer's target, returns 1 for void *, or errors for
7173        incomplete types.
7174        (value_add, value_sub): use find_size_for_pointer_math.
7175
7176 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
7177
7178         * linux-low.c (linux_look_up_symbols): New hook.
7179         (linux_target_ops): Add linux_look_up_symbols.
7180         * remote-utils.c (decode_address): New function.
7181         (look_up_one_symbol): New function.
7182         * server.c (handle_query): Call target look_up_symbols hook.
7183         * server.h (look_up_one_symbol): Add prototype.
7184         * target.h (struct target_ops): Add look_up_symbols hook.
7185
7186 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
7187
7188         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7189         override FP_REGNUM with frame->fp.  Update copyright.
7190         * parse.c (num_std_regs, std_regs): Delete.
7191         (target_map_name_to_register): Do not search std_regs.  Update
7192         function description.
7193         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7194         declarations.  Update copyright.
7195         Fix PR gdb/251.
7196
7197 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
7198
7199         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7200         after the last symbol in a block.
7201
7202 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
7203
7204         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7205         is non zero as a found symbol.
7206
7207 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
7208
7209         * findvar.c: Include "builtin-regs.h".
7210         (value_of_register): Call value_of_builtin_reg when applicable.
7211         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7212         (target_map_name_to_register): Call
7213         builtin_reg_map_name_to_regnum.
7214         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7215         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7216         (builtin_regs_h): Define.
7217         (builtin-regs.o): New target.
7218         (findvar.o): Add $(builtin_regs_h).
7219         * builtin-regs.c, builtin-regs.h: New files.
7220         * std-regs.c: New file.
7221         Partial fix for PR gdb/251.
7222
7223 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7224
7225         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7226         it's no longer required.
7227
7228 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
7229
7230         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7231
7232 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7233
7234         From Jimi X <jimix@watson.ibm.com>:
7235         * rs6000-tdep.c (rs6000_software_single_step): Use
7236         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7237         and size.  Use target_insert_breakpoint() and
7238         target_remove_breakpoint() to insert and remove breakpoints
7239         instead of explicit memory reads and writes.
7240
7241 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7242
7243         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7244         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7245         ELF_OBJECT_FORMAT ifdef.
7246
7247 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7248
7249         From Jimi X <jimix@watson.ibm.com>:
7250         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7251
7252 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7253
7254         From Jimi X <jimix@watson.ibm.com>:
7255         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7256         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7257
7258 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
7259
7260         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7261         s/asprintf/xasprintf/.
7262         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7263
7264 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7265
7266         I believe Jeff Law denies responsability for this one:
7267         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7268         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7269         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7270         Work-around for PR gdb/366.
7271
7272 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
7273
7274         * remote-e7000.c (write_small, e7000_read_inferior_memory,
7275         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7276         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7277
7278 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
7279
7280         * sh-tdep.c (sh_fp_frame_init_saved_regs,
7281         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7282         information.
7283
7284 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7285
7286         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7287         maintainer.
7288
7289 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7290
7291         * README (Reporting Bugs in GDB): Document the bug web page as the
7292         prefered way of submitting bugs.
7293         Fix PR gdb/402.
7294
7295 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7296
7297         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7298         -1.  Update comment.
7299         * gdbarch.h, gdbarch.c: Re-generate.
7300
7301 2002-04-07  Andreas Schwab  <schwab@suse.de>
7302
7303         * m68klinux-nat.c (fill_fpregset): Properly pass address of
7304         buffer to regcache_collect.
7305
7306 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7307
7308         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
7309         * gdbarch.c, gdbarch.h: Re-generate.
7310
7311 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7312
7313         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7314         declaration.  Fix -Werror.
7315
7316 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
7317
7318         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7319         * gdbarch.c: Regenerate.
7320
7321 2002-04-05  Michael Snyder  <msnyder@redhat.com>
7322
7323         * breakpoint.c (clear_command): Rewrite middle section to
7324         combine two loops with identical control conditions.
7325         Add a cleanup to eliminate a memory leak.
7326         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7327
7328 2002-04-05  H.J. Lu  (hjl@gnu.org)
7329
7330         * solib-svr4.c (bkpt_names): Add "__start".
7331
7332 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
7333
7334         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7335         as test for 64 bit target.
7336
7337 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
7338
7339         * h8500-tdep.c (h8500_write_fp): Delete function.
7340         * dwarf2cfi.c (cfi_write_fp): Document as not used.
7341         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7342         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7343         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7344         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7345         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7346         (s390_write_fp):
7347         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7348         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7349         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7350         (d10v_write_fp): Delete function.
7351         * inferior.h (write_fp, generic_target_write_fp): Delete
7352         declarations.
7353         * regcache.c (generic_target_write_fp): Delete function.
7354         (write_fp): Delete function.
7355         * gdbarch.sh (TARGET_WRITE_FP): Delete.
7356         * gdbarch.h, gdbarch.c: Regenerate.
7357         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7358         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7359         (sparc64_write_fp): Delete declaration.
7360         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7361         (h8500_write_fp): Delete declaration.
7362
7363 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
7364
7365         * sparc-tdep.c (sparc64_write_fp): Delete.
7366         (sparc_push_dummy_frame): Replace write_fp call with code to store
7367         the FP directly.
7368         (sparc_gdbarch_init): Do not initialize write_fp.
7369
7370 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
7371
7372         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7373         clause.
7374
7375 2002-03-29  Jim Blandy  <jimb@redhat.com>
7376
7377         * stack.c (get_selected_block): Add new argument `addr_in_block',
7378         used to return the exact code address we used to select the block,
7379         not just the block.
7380         * blockframe.c (get_frame_block, get_current_block): Same.
7381         * frame.h (get_frame_block, get_current_block,
7382         get_selected_block): Update declarations.
7383         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7384         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7385
7386 2002-04-05  Michael Snyder  <msnyder@redhat.com>
7387
7388         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7389         warning message.
7390
7391 2002-04-05  J. Brobecker  <brobecker@gnat.com>
7392
7393         * utils.c (xfullpath): New function.
7394         * defs.h (xfullpath): Add declaration.
7395         * source.c (openp): Use xfullpath in place of gdb_realpath to
7396         avoid resolving the basename part of filenames when the
7397         associated file is a symbolic link. This fixes a potential
7398         inconsistency between the filenames known to GDB and the
7399         filenames it prints in the annotations.
7400         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7401         to be able to match a filename with either the real filename, or
7402         the name of any symbolic link to this file.
7403         (lookup_partial_symtab): Ditto.
7404
7405 2002-04-04  Michael Snyder  <msnyder@redhat.com>
7406
7407         * breakpoint.c: Add support for hardware breakpoints in overlays.
7408         (overlay_events_enabled): New state variable.
7409         (insert_breakpoints): Use overlay_events_enabled to decide
7410         whether to attempt to set a breakpoint at the overlay load addr.
7411         Handle bp_hardware_breakpoint as well as bp_breakpoint.
7412         (remove_breakpoint): Use overlay_events_enabled to decide
7413         whether breakpoints need to be removed from overlay load addr.
7414         Handle bp_hardware_breakpoint as well as bp_breakpoint.
7415         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7416         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7417         disable_overlay_breakpoints): Update overlay_events_enabled.
7418
7419 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
7420
7421         * dwarf2read.c (struct function_range): New.
7422         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7423         (check_cu_functions): New.
7424         (read_file_scope): Initialize global function lists.
7425         Call dwarf_decode_line after processing children.
7426         (read_func_scope): Add to global function list.
7427         (dwarf_decode_lines): Call check_cu_functions everywhere
7428         record_line is called.  Call record_line with a linenumber
7429         of 0 to mark sequence ends.
7430
7431 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
7432
7433         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7434         change sync with glibc.
7435
7436 2002-04-03  Jim Blandy  <jimb@redhat.com>
7437
7438         * configure.in: Call AC_C_INLINE.
7439         * configure: Regenerated.
7440
7441 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
7442
7443         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7444         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7445
7446 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
7447
7448         * NEWS: Mention gcore support on FreeBSD/i386.
7449
7450         * fbsd-proc.c: New file.
7451         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7452         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7453
7454         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7455         while statement.
7456
7457 2002-03-29  Jim Blandy  <jimb@redhat.com>
7458
7459         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7460         unescaped newlines in string literals, but newer ones don't.  So
7461         escape them.
7462
7463 2002-03-26  Michael Snyder  <msnyder@redhat.com>
7464             Andrew Cagney <cagney@redhat.com>
7465
7466         * cli/cli-dump.c: New file.  Dump memory to file,
7467         restore file to memory.
7468         * cli/cli-dump.h: New file.
7469         * Makefile.in: Add rules, dependencies for cli-dump.o.
7470         * NEWS: Mention new commands.
7471
7472 2002-03-28  Michael Snyder  <msnyder@redhat.com>
7473
7474         * symfile.c (symbol_file_add): Move test for null symbols to later.
7475
7476 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7477
7478         From veksler at il.ibm.com:
7479         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7480         the xstrduped original path.
7481         Fix PR gdb/417.
7482
7483 2002-03-27  Michael Snyder  <msnyder@redhat.com>
7484
7485         * breakpoint.c (_initialize_breakpoint): Clean up help string.
7486         * infcmd.c (_initialize_infcmd): Ditto.
7487         * language.c (_initialize_language): Ditto.
7488         * symfile.c (_initialize_symfile): Ditto.
7489         * top.c (_init_main): Ditto.
7490         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7491
7492 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
7493
7494         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7495         vector registers handling.
7496         (skip_prologue): Handle new AltiVec instructions.  Fill in new
7497         fields of frame data.
7498         (frame_get_saved_regs): Fill in information for AltiVec registers.
7499
7500 2002-03-27  Jim Blandy  <jimb@redhat.com>
7501
7502         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7503         a function; leave this macro here to invoke that function.
7504         (symbol_init_mangled_name): Declaration for that function.
7505         * symtab.c (symbol_init_mangled_name): New function.
7506
7507 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7508
7509         * valarith.c: Replace strerror with safe_strerror.
7510         * tracepoint.c: Ditto.
7511         * lin-lwp.c: Ditto.
7512         * go32-nat.c: Ditto.
7513         * inflow.c: Ditto.
7514         * gnu-nat.c: Ditto.
7515
7516 2002-03-27  Andreas Schwab  <schwab@suse.de>
7517
7518         * event-top.c (command_line_handler): Remove useless if.
7519
7520 2002-03-27  Andreas Jaeger  <aj@suse.de>
7521
7522         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7523         comment.
7524
7525 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
7526
7527         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7528         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7529         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7530         (x86_64_linux_dr_get_status, supply_gregset),
7531         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7532         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7533         (x86_64_register_info_table): Add.
7534         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7535         (x86_64_register_raw_size, x86_64_register_virtual_type),
7536         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7537         general x86_64_register_info_table.
7538         (i386_gdbarch_init): gdbarch_register_bytes is now set
7539         dynamicaly during initialization.
7540         * regformats/reg-x86-64.dat: Synced with changes to registers above.
7541         * gdbserver/linux-x86-64-low.c: Ditto.
7542
7543 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7544
7545         * gdbserver/server.c (main): Call target_signal_to_host_p
7546         and target_signal_to_host on signals received from the remote.
7547         * gdbserver/remote-utils.c (prepare_resume_reply): Call
7548         target_signal_from_host on signals sent to the remote.
7549         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
7550         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
7551
7552 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7553
7554         * signals/signals.c: Include "server.h" in gdbserver build.
7555         (target_signal_from_name): Don't use STREQ.
7556         (_initialize_signals): Likewise.  Don't include function in
7557         gdbserver build.
7558
7559 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7560
7561         * signals.c: Moved to...
7562         * signals/signals.c: Here.
7563         * Makefile (signals.o): Update.
7564
7565 2002-03-26  Jeff Law (law@redhat.com)
7566
7567         * somread.c (som_symtab_read): Remove some commented out code and
7568         updated related comments.  Do not set the minimal symbol table to
7569         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7570         in a dynamic executable.
7571         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7572         where we are unable to find the minimal symbol for the given
7573         PC value.
7574
7575 2002-03-25  Jeff Law (law@redhat.com)
7576
7577         * linux-proc.c (read_mapping): Scan up to end of line for filename.
7578
7579 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
7580
7581         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7582
7583 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7584
7585         * command.h: Update copyright.
7586         (struct cmd_list_element): Replace definition with opaque
7587         declaration.
7588         (enum cmd_types): Document that it will eventually be moved to
7589         cli/cli-decode.h
7590         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7591         (MALLOCED_REPLACEMENT): Delete macro.
7592         * Makefile.in (cli_decode_h): Add $(command_h).
7593         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7594         * top.c: Include "cli/cli-decode.h".
7595         * completer.c: Include "cli/cli-decode.h".
7596         * maint.c: Include "cli/cli-decode.h".
7597         * cli/cli-decode.h: Include "command.h".
7598         (enum command_class): Delete.
7599         (enum cmd_types): Comment out.
7600         (enum cmd_auto_boolean): Delete.
7601         (enum var_types): Delete.
7602
7603 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7604
7605         * cli/cli-decode.c: Include "gdb_assert.h".
7606         (add_set_or_show_cmd): New static function.
7607         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
7608         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
7609         all fields, such as func, from the set command.
7610
7611 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7612
7613         * MAINTAINERS (sh-elf): Change warning flag to -w.
7614
7615 2002-03-23  Andrew Cagney  <cagney@redhat.com>
7616
7617         * defs.h (error): Add printf format attribute.
7618         * thread-db.c (thread_from_lwp): Fix error format string.
7619         * stack.c (parse_frame_specification): Ditto.
7620         * cli/cli-decode.c (undef_cmd_error): Ditto.
7621         * scm-lang.c (scm_lookup_name): Ditto.
7622         * tracepoint.c (trace_error): Ditto.
7623         * remote-utils.c (usage): Ditto.
7624         * remote.c (compare_sections_command): Ditto.
7625         Fix PR gdb/328.
7626
7627 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
7628
7629         * gdbtypes.c (append_composite_type_field): New function.
7630         (init_composite_type): New function.
7631         * gdbtypes.h (append_composite_type_field): Declare.
7632         (init_composite_type): Ditto.
7633
7634 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
7635
7636         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7637         function.
7638         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7639         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7640         structure returning convention for SYSV ABI case, but not
7641         for GNU/Linux, FreeBSD, or NetBSD.
7642
7643 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
7644
7645         * symtab.h (lookup_block_symbol): Add mangled_name argument
7646         to prototype.
7647
7648         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7649         with new mangled_name argument.
7650         * linespec.c (decode_line_1): Likewise.
7651         * valops (value_of_this): Likewise.
7652         * symtab.c (lookup_transparent_type): Likewise.
7653         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
7654         (lookup_symbol): If we are given a mangled name, pass it down
7655         to lookup_symbol_aux.
7656         (lookup_block_symbol): If we are given a mangled name to check
7657         against, only return symbols which match it.
7658
7659 2002-03-22  Christopher Faylor  <cgf@redhat.com>
7660
7661         * win32-nat.c (child_create_inferior): Check for proper shell to use
7662         here, in case the user changes it on the fly.
7663         (_initialize_inftarg): Remove shell path considerations.
7664
7665 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
7666
7667         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7668         for gdbarch_max_register_raw_size and max_register_virtual_size.
7669         Adjust copyright year.
7670
7671 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
7672
7673          * dbxread.c (process_one_symbol): Extend the first N_SLINE
7674          in a function to cover the entire beginning of the function
7675          as well if it does not already.
7676
7677 2002-03-21  Tom Rix  <trix@redhat.com>
7678
7679         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7680         (rs6000_ptrace64): Renamed from ptrace64.
7681
7682 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7683
7684         * gdbserver/remote-utils.c (remote_open): Don't call
7685         getprotobyname, we're all using TCP here so just use
7686         IPPROTO_TCP.
7687         * gdbserver/gdbreplay.c (remote_open): Ditto.
7688
7689 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7690
7691         * regcache.c (_initialize_regcache): No need to call
7692         build_regcache() at this time; it gets called whenever
7693         the gdbarch changes.
7694
7695 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
7696
7697         * sparc-nat.c:  Include sys/param.h where possible.
7698
7699 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
7700
7701         Fix PR gdb/422.
7702         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7703         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7704         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7705         complex types.
7706         * stabsread.c (rs6000_builtin_type): Likewise.
7707         (read_sun_floating_type): Likewise.
7708
7709 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7710
7711         * stabsread.c (read_member_functions): Remove skip code for duplicate
7712         constructor/destructor methods.  Use standard parsing for these
7713         methods and just do not chain them to the list of methods after
7714         parsing.
7715
7716 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
7717
7718         * coffread.c: Remove redundant static declarations.  Replace
7719         occurrences of `PTR' with `void *'.
7720         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7721         * top.h (quit_cover): Likewise.
7722         * defs.h (catch_errors): Likewise.
7723
7724 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7725
7726         * defs.h (XMALLOC): Define.
7727         * gdb-events.sh (XMALLOC): Delete macro.
7728         * gdb-events.c, gdb-events.h: Regenerate.
7729         * gdbarch.sh (XMALLOC): Delete macro.
7730         * gdbarch.c: Regenerate.
7731         * serial.c (XMALLOC): Delete macro.
7732         * ui-file.c (XMALLOC): Ditto.
7733         * ser-unix.h (XMALLOC): Ditto.
7734         * sh-tdep.c (XMALLOC): Ditto.
7735         * ui-out.c (XMALLOC): Ditto.
7736         * utils.c (XMALLOC): Ditto.
7737         * i386-tdep.c (XMALLOC): Ditto.
7738         * gdb-events.c (XMALLOC): Ditto.
7739         * d10v-tdep.c (XMALLOC): Ditto.
7740         * cli-out.c (XMALLOC): Ditto.
7741
7742         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7743         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7744         * ui-file.c, ui-out.c: Ditto.
7745
7746 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7747
7748         * command.h (struct cmd_list_element): Add field context.
7749         (set_cmd_context, get_cmd_context): Declare.
7750         * cli/cli-decode.h: Ditto.
7751         * cli/cli-decode.c (get_cmd_context): New function.
7752         (set_cmd_context): New function.
7753         (add_cmd): Initialize context.
7754         Part of fixing PR gdb/145 and PR gdb/146.
7755
7756 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7757
7758         * cli/cli-decode.c (cmd_type): New function.
7759         * command.h (cmd_type): Declare.
7760         * infrun.c (set_schedlock_func): Call function cmd_type.
7761         * kod.c (kod_set_os): Call cmd_type.
7762         * cris-tdep.c (cris_version_update): Use function cmd_type.
7763         (cris_mode_update, cris_abi_update): Ditto.
7764
7765         * command.h: (execute_cmd_post_hook): Declare.
7766         (execute_cmd_pre_hook): Declare.
7767         * cli/cli-script.c (clear_hook_in_cleanup): New function.
7768         (execute_cmd_post_hook, execute_cmd_pre_hook): New
7769         functions. Execute pre/post hook while ensuring that afterwords
7770         hook_in is cleared.
7771         * top.c (execute_command): Use execute_cmd_post_hook, and
7772         execute_cmd_pre_hook to execute pre/post commands.
7773         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7774         hook_stop_stub.
7775         (hook_stop_stub): Call execute_cmd_pre_hook.
7776
7777 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7778
7779         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
7780         set'' and this leads to a core dump.  Move xstrdup of
7781         operating_system to after check that it is not NULL.
7782
7783 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7784
7785         * kod.c (kod_set_os): Remove unnecessary check that
7786         ``command->type'' is set_cmd.
7787
7788         * valprint.c (set_input_radix): Use input_radix.
7789         (set_output_radix): Use output_radix.
7790         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7791         isn't reverted.
7792
7793 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
7794
7795         * value.h (struct value): Delete field ``substring_addr''.  Change
7796         aligner fields to force_doublest_align, force_longest_align,
7797         force_core_addr_align and force_pointer_aligh.
7798
7799         * value.h (struct value): Fix typo in above change.
7800
7801 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7802
7803         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7804         to fix internal_error from ``maintenance print architecture''.
7805
7806 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7807
7808         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7809         for gcc versions after gcc-2.8.1.
7810
7811 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7812
7813         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7814         for method resolution.  Restore adjustment of ``this'' pointer after
7815         calling value_struct_elt, which was accidentally removed during the
7816         HP merge.
7817
7818 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
7819
7820         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7821         value_of_register.
7822         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
7823         get_saved_register.
7824         * value.h (value_of_register): Update.
7825
7826 2002-03-14  Richard Henderson  <rth@redhat.com>
7827
7828         * configure.in: Detect declaration for canonicalize_file_name.
7829         * utils.c (canonicalize_file_name): Declare, if needed.
7830         (gdb_realpath): Prefer realpath if available and usable.
7831         * config.in, configure: Rebuild.
7832
7833 2002-03-14  Richard Henderson  <rth@redhat.com>
7834
7835         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7836         a constant array bound.
7837
7838         * MAINTAINERS: Add myself to write-after-approval.
7839
7840 2002-03-14  Michael Snyder  <msnyder@redhat.com>
7841
7842         * symfile.c (syms_from_objfile): Return immediately if no syms.
7843         (symbol_file_add): Return immediately if no syms.
7844         (find_sym_fns): Return immediately if no syms.
7845
7846 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
7847
7848         * gdbserver/remote-util.c (remote_open): Print remote-side's
7849         IP address when remote debugging over the network.
7850
7851 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
7852
7853         * config/sparc/fbsd.mh: Fix copyright.
7854         * config/sparc/fbsd.mt: Likewise.
7855
7856 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
7857
7858         * MAINTAINERS: Fix typo in name of gdb warnings option.
7859         (x86-64): Fix formating so that this can be parsed by awk.
7860
7861 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7862
7863         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7864         * defs.h: Include "gdb/signals.h".
7865         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7866
7867 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
7868
7869         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7870         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7871         from x86-64-tdep.h
7872
7873 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7874             Don Howard <dhoward@redhat.com>
7875
7876         * mips-tdep.c (ST0_FR): Define.
7877         (mips2_fp_compat): New function, temporarily disabled.
7878         (mips_read_fp_register_single): New function.
7879         (mips_read_fp_register_double): New function.
7880         (mips_print_register): Use them.
7881         (do_fp_register_row): Likewise.
7882
7883 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
7884
7885         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7886         approval''.
7887
7888 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7889
7890         * stabsread.c (read_member_functions): Fix is_stub test for
7891         static member functions, improve comment.
7892
7893 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
7894
7895         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7896         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7897         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7898         commands that set boolean values.
7899         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7900         (arm_rdi_resume): Always initialize PC.
7901         (arm_rdi_open): Don't use rslt as a boolean.
7902         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7903         (arm_rdi_fetch_registers, arm_rdi_store_registers)
7904         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7905         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7906
7907 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
7908
7909         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7910         * configure: Rebuilt.
7911
7912 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7913
7914         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7915         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7916
7917 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
7918
7919         * cli/cli-decode.c (set_cmd_completer): New function.
7920         * command.h (set_cmd_completer): Declare.
7921         * cli/cli-decode.h (set_cmd_completer): Ditto.
7922
7923         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7924         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7925         * win32-nat.c (_initialize_inftarg): Ditto.
7926         * remote-rdi.c (_initialize_remote_rdi): Ditto.
7927         * proc-api.c (_initialize_proc_api): Ditto.
7928         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7929         * source.c (_initialize_source): Ditto.
7930         * exec.c (_initialize_exec): Ditto.
7931         * solib.c (_initialize_solib): Ditto.
7932         * top.c (init_main): Ditto.
7933         * tracepoint.c (_initialize_tracepoint): Ditto.
7934         * symfile.c (_initialize_symfile): Ditto.
7935         * printcmd.c (_initialize_printcmd): Ditto.
7936         * infcmd.c (_initialize_infcmd): Ditto.
7937         * corefile.c (_initialize_core): Ditto.
7938
7939 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7940
7941         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7942
7943 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7944
7945         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7946
7947 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7948
7949         * NEWS: Update headings, 5.2 has branched.
7950
7951 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
7952
7953         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7954         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7955         (register_addr, REGISTER_RAW_SIZE): Likewise.
7956         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7957         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7958
7959 2002-03-03  Michal Ludvig <mludvig@suse.cz>
7960
7961         * MAINTAINERS (x86-64): Add myself.
7962         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7963         changed value_ptr -> struct value *
7964
7965 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
7966
7967         * configure.host (sparc64-*-freebsd): Add.
7968         * configure.tgt: Likewise.
7969         * config/sparc/fbsd.mh: New file.
7970         * config/sparc/fbsd.mt: Likewise.
7971         * config/sparc/nm-fbsd.h: Likewise.
7972         * config/sparc/tm-fbsd.h: Likewise.
7973
7974 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
7975
7976         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7977         regformats/reg-s390x.dat.
7978
7979 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
7980
7981         * utils.c: Add FIXME explaining true/false problem.
7982
7983 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
7984
7985         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7986
7987 2002-02-28  Michael Chastain  <mec@shout.net>
7988
7989         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7990
7991 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
7992
7993         * gdbserver/linux-s390-low.c: New file.
7994         * regformats/reg-s390.dat: New file.
7995         * regformats/reg-s390x.dat: New file.
7996         * gdbserver/configure.srv: Add S/390.
7997         * gdbserver/Makefile.in: Add S/390.
7998         * configure.tgt: Enable gdbserver for S/390.
7999
8000 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
8001
8002         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8003         first line of the doc string for "info dos", except at the end of
8004         the sentence, since the short help stops at the first period.
8005
8006 2002-02-28  Jason Merrill  <jason@redhat.com>
8007
8008         * dwarf2read.c (dwarf_cfi_name): Add new codes.
8009
8010 2002-02-27  Fred Fish  <fnf@redhat.com>
8011
8012         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8013         comment (dumy -> dummy).
8014
8015 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8016
8017         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8018
8019 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
8020
8021       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8022
8023 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8024
8025         * gdbserver/acconfig.h: New file.
8026         * gdbserver/i387-fp.c: New file.
8027         * gdbserver/i387-fp.h: New file.
8028         * gdbserver/linux-x86-64.c: New file.
8029         * regformats/reg-x86-64.dat: New file.
8030         * configure.tgt: Add x86_64-*-linux* gdbserver support.
8031         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8032         * gdbserver/configure.in: Add support for regsets.
8033         * gdbserver/config.in: Regenerate.
8034         * gdbserver/configure: Regenerate.
8035         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
8036         * gdbserver/linux-low.h: New file.
8037         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
8038         for regsets.
8039         * gdbserver/linux-arm-low.c: Include "linux-low.h".
8040         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8041         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8042         * gdbserver/linux-mips-low.c: Include "linux-low.h".
8043         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8044         * gdbserver/linux-sh-low.c: Include "linux-low.h".
8045         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
8046         "i387-fp.h".  Add PTRACE_GETREGS and friends.
8047         * gdbserver/regcache.c (supply_register): New function.
8048         (supply_register_by_name): New function.
8049         (collect_register): New function.
8050         (collect_register_by_name): New function.
8051
8052 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8053
8054         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8055         (config.status): Add configure.srv dependency.
8056         (server_h): Add config.h dependency.
8057
8058 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8059
8060         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8061         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8062         * gdbserver/configure.srv: Change i386-*-linux* to use
8063         reg-i386-linux.o.
8064
8065 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8066
8067         * x86-64-tdep.c: Re-indent.  Update copyright date.
8068
8069 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8070
8071         From Michal Ludvig <mludvig@suse.cz>:
8072         * x86-64-tdep.c (value.h): Delete.
8073         (gdb_assert.h): Include.
8074         (x86_64_register_convert_to_virtual,
8075         x86_64_register_convert_to_raw ): Add check which lets only
8076         floating-point values to be converted.
8077         (value_push): Delete.
8078         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8079         (i386_gdbarch_init): Number of register_bytes fixed.
8080
8081 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8082
8083         * MAINTAINERS: Add x86-64 target.
8084
8085 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8086
8087         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8088         * osfsolib.c (solib_map_sections): Ditto.
8089         * irix5-nat.c (solib_map_sections): Ditto.
8090         * corelow.c (gdb_check_format): Ditto.
8091         * symfile.c (symfile_bfd_open): Ditto.
8092         * solib.c (solib_map_sections): Ditto.
8093         Fix PR gdb/354.
8094
8095 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8096
8097         * remote.c (_initialize_remote): By default, disable ``e'' and
8098         ``E'' step out-of-range packets.
8099
8100 2002-02-26  Andreas Schwab  <schwab@suse.de>
8101
8102         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8103         m68k_linux_frame_saved_pc.
8104         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8105         in_sigtramp.
8106         (SIGCONTEXT_PC_OFFSET): Remove.
8107         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8108         m68k_linux_sigtramp_saved_pc): New functions.
8109         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8110         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8111         (UCONTEXT_PC_OFFSET): Define.
8112         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8113         non-RT and RT signal trampolines.
8114
8115 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
8116
8117         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8118         (TARGET_NBPG, STACK_END_ADDR): Delete
8119         (VARIABLES_INSIDE_BLOCK): Delete.
8120
8121 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
8122
8123         * utils.c (perror_with_name): Make string parameter constant.
8124         (print_sys_errmsg): Ditto.
8125         (query): Ditto.
8126         * defs.h (perror_with_name): Update.
8127         (print_sys_errmsg): Update.
8128         (query): Update.
8129
8130 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
8131
8132         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8133         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8134
8135 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8136
8137         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8138         if it already matches the current architecture from the exec file.
8139         Include arch-utils.h for gdbarch_info_init prototype.
8140         * Makefile.in (rs6000-nat.o): Update dependencies.
8141
8142 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
8143
8144         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8145          list of exported variables.
8146
8147 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
8148
8149         * gdbserver/configure.srv: New file.
8150         * gdbserver/configure.in: Use configure.srv instead
8151         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
8152         from it.
8153         * gdbserver/configure: Regenerated.
8154         * gdbserver/terminal.h: New file.
8155         * gdbserver/Makefile.in: Update for configure changes.  Remove
8156         more unneeded include paths.
8157
8158 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
8159
8160         From wiz at danbala:
8161         * config/sparc/tm-sp64.h: Fix grammar and typos.
8162         Fix PR gdb/287.
8163
8164 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
8165
8166         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8167         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
8168         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8169         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8170         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8171         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8172         * s390-tdep.c: Ditto.
8173         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8174         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8175         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8176         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8177         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8178         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8179         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8180         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8181         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8182         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8183         Fix PR gdb/378.
8184
8185 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8186
8187         * lin-thread.c: Delete file.
8188         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8189         to gdb_proc_service.h.
8190         * configure: Re-generate.
8191
8192         * ocd.c (ocd_open): Do not try to open the "ocd" device.
8193         * serial.c (serial_open): Delete check for "ocd".
8194         Fix PR gdb/349.
8195
8196         * Makefile.in (linux-thread.o): Delete target.
8197         * linux-thread.c: Delete file.
8198
8199         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
8200         renamed SH files to be consistent.
8201
8202         * symtab.c (sort_search_symbols): Use xfree.
8203
8204 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8205
8206         * arm-linux-tdep.c (arm_linux_init_abi): Register
8207         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8208         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8209         definition with undef, since we don't want the sysvr4 definition.
8210         (SKIP_TRAMPOLINE_CODE): Likewise.
8211
8212 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8213
8214         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8215
8216         * configure.in: (AC_CHECK_FUNCS) Added test for
8217         canonicalize_file_name Regenerated.
8218         * config.in, configure: Regenerated.
8219         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8220         defined use canonicalize_file_name.
8221
8222 2002-02-23  Michael Chastain  <mec@shout.net>
8223
8224         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8225
8226 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8227
8228         * README: Remove references to cygnus.com.
8229         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8230         dot com'' form.  Remove references to cygnus.com and sourceware.
8231
8232 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8233
8234         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8235         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8236         1003.1-2001 no longer allows "head -1".
8237         * gdb/Makefile.in (version.c): Likewise.
8238         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8239         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8240         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
8241
8242 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8243
8244         * cli/cli-decode.c (cmd_cfunc_eq): New function.
8245         * command.h (cmd_cfunc_eq): Declare.
8246         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8247
8248         * cli/cli-cmds.h (is_complete_command): Change parameter to a
8249         ``struct cmd_list_element *''.
8250         * cli/cli-cmds.c (is_complete_command): Update.  Use
8251         cmd_cfunc_eq.
8252         * top.c (execute_command): Pass the command to
8253         is_complete_command.
8254         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8255
8256 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8257
8258         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8259         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8260         architecture defines.
8261         * s390-tdep.c (s390_gdbarch_init): Likewise.
8262
8263 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8264
8265         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8266         (arm_linux_push_arguments): Likewise.
8267         (arm_linux_init_abi): Register them.  Also register linux-specific
8268         call_dummy_words.
8269         (find_minsym_and_objfile): Use strcmp, not STREQ.
8270         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8271         (arm_linux_call_dummy_words): Delete declaration.
8272         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8273         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8274         declarations.
8275         (LOWEST_PC): Delete.
8276
8277 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8278
8279         * maint.c (print_section_info): Do not prepend `0x' to filepos
8280         output, it will be handled by local_hex_string_custom.
8281
8282 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8283
8284         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8285         (store_newfpe_double, store_newfpe_extended, store_fpregister)
8286         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8287
8288 2002-02-22  Jim Blandy  <jimb@redhat.com>
8289
8290         Indicate that the bcache functions don't change the strings
8291         they're passed.
8292         * bcache.h (bcache, hash): Add `const' keywords to declarations.
8293         * bcache.c (bcache, hash): Add `const' keywords to definitions.
8294
8295 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
8296
8297         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8298
8299 2002-02-21  Christopher Faylor  <cgf@redhat.com>
8300
8301         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8302         find the complete path to a loaded DLL.
8303
8304 2002-02-21  Fred Fish  <fnf@redhat.com>
8305
8306         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8307         that marks the end of the range of a function, enter a line number
8308         entry that has a line number of zero and a PC offset that matches
8309         the end of the function.  This starts a range of PC's for which no
8310         line number information is known.
8311         * symtab.c (find_pc_sect_line): If our best fit is in a range of
8312         PC's for which no line number info is found (line number is zero)
8313         then we didn't find any valid line information.
8314         * symtab.h: Document use of zero line number entry.
8315
8316 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
8317
8318         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8319         (have_ptrace_getvrregs): Define for run time checks.
8320         (gdb_vrregset_t): New type for Altivec register handling.
8321         (fetch_register, store_register): Fetch/store altivec register
8322         when needed.
8323         (fetch_altivec_register, store_altivec_register): New functions.
8324         (supply_vrregset, fill_vrregset): New functions.
8325         (fetch_altivec_registers, store_altivec_registers): New functions.
8326         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8327         registers as well.
8328
8329 2002-02-21  Jiri Smid  <smid@suse.cz>
8330
8331         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8332
8333 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
8334
8335         * Makefile.in (armnbsd-nat.o): Update dependencies.
8336         * armnbsd-nat.c (supply_gregset): New function.  Common code to
8337         supply the integer register set.
8338         (supply_fparegset): New function.  Similar for FPA registers.
8339         (fetch_regs, fetch_fp_regs): Use them.
8340         (fetch_core_registers): Likewise.
8341         (fetch_elfcore_registers): New function.
8342         (arm_netbsd_elfcore_fns): New core-file type specification.
8343         (_initialize_arm_netbsd_nat): Register it.
8344
8345 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
8346
8347         * armnbsd-nat.c: Include gdbcore.h.
8348         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8349         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8350         'void' to declaration, to shut up ARI.
8351         (fetch_core_registers): Make static.  Rewrite using supply_register.
8352         (arm_netbsd_core_fns): New core-file type specification.
8353         (_initialize_arm_netbsd_nat): New function.
8354
8355 2002-02-21  Christopher Faylor  <cgf@redhat.com>
8356
8357         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8358         value.
8359
8360 2002-02-20  Christopher Faylor  <cgf@redhat.com>
8361
8362         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8363         fails.
8364
8365 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8366
8367         * jv-exp.y (parse_number): Change type of implicit longs
8368         to builtin_type_uint64.
8369
8370 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8371
8372         * gdbserver/linux-low.c (mywait): Change argument to waitpid
8373         to be an integer instead of a `union wait'.
8374
8375 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8376
8377         * mips-linux-nat.c: Call the operating system GNU/Linux.
8378         * mips-linux-tdep.c: Likewise.
8379         * mips-tdep.c: Likewise.
8380
8381 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8382
8383         Fix PR gdb/265.
8384         * jv-exp.y (parse_number): Handle 64-bit integers.
8385
8386 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8387
8388         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
8389         AC_STDC_HEADERS to AC_HEADER_STDC.
8390         * gdbserver/configure: Regenerated.
8391
8392 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
8393
8394         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8395         is defined.
8396         * sparc-tdep.c (get_longjmp_target): Likewise.
8397
8398 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
8399
8400         * News: Add news about ARM and Multi-arch.  Mention the new target
8401         arm*-*-netbsd*.
8402
8403 2002-02-19  Jim Blandy  <jimb@redhat.com>
8404
8405         * stabsread.c (error_type_complaint): Improve error message.
8406
8407 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
8408
8409         * gdbserver/README: Update documentation.
8410         * gdbserver/configure.in: Update configury to match documentation.
8411         * gdbserver/Makefile.in: Likewise.
8412         * gdbserver/configure: Regenerated.
8413         * gdbserver/aclocal.m4: New file, generated by aclocal.
8414         * gdbserver/config.in: New file, generated by autoheader.
8415
8416 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8417
8418         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8419         armnbsd-nat.c.
8420
8421 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8422
8423         * arm-tdep.h (enum arm_float_model): New enum.
8424         (struct gdbarch_tdep): Add fp_model.
8425         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
8426         up floating-point conversions until we know the floating-point model
8427         in use by the inferior.  Don't complain about being unable to
8428         determine the ABI of the inferior when we don't have one.
8429         (arm_extract_return_value): Support different floating-point models.
8430         (arm_store_return_value): Likewise.
8431         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8432         ARM_FLOAT_SOFT.
8433         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8434
8435 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8436
8437         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8438         of ``current_gdbarch''.
8439
8440 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8441
8442         * armnbsd-nat.c : ANSIfy all function declarations.
8443         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8444         (fetch_inferior_registers): Re-implement in terms of above.
8445         (store_register, store_regs, store_fp_register, store_fp_regs): New.
8446         (store_inferior_registers): Re-implement in terms of above.
8447
8448 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8449
8450         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8451         kernel.
8452         * arm-linux-tdep.c: Likewise.
8453         * config/arm/tm-linux.h: Likewise.
8454
8455 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8456
8457         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8458         * config/arm/nbsd.mt (TM_FILE): Delete.
8459         * config/arm/tm-nbsd.h: Delete.
8460
8461 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8462
8463         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8464         Initialize CALL_DUMMY_LENGTH.
8465
8466 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8467
8468         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8469         function.
8470         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8471         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8472         defines one thing and that is incorrect for this port.
8473         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8474
8475 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8476
8477         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8478
8479 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8480
8481         * win32-nat.c (display_selector): New function. Displays information
8482         about the information returned by GetThreadSelectorEntry API function.
8483         (display_selectors): New function. Displays the infomation of
8484         the selector given as argument, or of CS, DS ans FS selectors
8485         if no argument is given.
8486         ( _initialize_inftarg): Add "w32" as info prefix command.
8487         Add "info w32 selector" as command calling display_selectors.
8488
8489 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8490
8491         * i386-tdep.c (get_longjmp_target): Fix compilation failure
8492         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8493         if not defined.
8494
8495 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8496
8497         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8498
8499 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8500
8501         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8502         (arm_fix_call_dummy): Call it.
8503         (arm_call_dummy_breakpoint_offset): Delete.
8504         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8505         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8506
8507 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
8508
8509         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8510         Default to func_frame_chain_valid.
8511         * gdbarch.h, gdbarch.c: Re-generate.
8512         * frame.h (FRAME_CHAIN_VALID): Delete definition.
8513
8514 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
8515
8516         * ppc-linux-nat.c: Update copyright.
8517         (fetch_register, store_register): Add tid parameter, don't compute
8518         tid here.
8519         (fetch_ppc_registers, store_ppc_registers): Add tid
8520         parameter. Pass it along to callees.
8521         (fetch_inferior_registers, store_inferior_registers): Compute tid
8522         here, and pass it to calleed functions.
8523         (fill_gregset, supply_fpregset): Clean up formatting.
8524
8525 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8526
8527         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8528         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8529
8530 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8531
8532         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8533         * gdbarch.c gdbarch.h: Regenerate.
8534         * breakpoint.c (create_longjmp_breakpoint): Always compile this
8535         function.
8536         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8537         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8538         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8539
8540         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8541         * arm-tdep.c (arm_get_longjmp_target): New function.
8542         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
8543         this to a positive value register arm_get_longjmp_target as the
8544         longjmp handler.
8545         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8546         (arm_linux_init_abi): Set up longjmp description in tdep.
8547         * armnbsd-nat.c (get_longjmp_target): Delete.
8548         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8549         description in tdep.
8550         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8551         (get_longjmp_target): Delete declaration.
8552         (GET_LONGJMP_TARGET): Delete.
8553         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8554         (GET_LONGJMP_TARGET): Delete.
8555
8556 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
8557
8558         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
8559         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8560         of ``current_gdbarch''.
8561
8562 2002-02-17  Tom Tromey  <tromey@redhat.com>
8563
8564         * cli/cli-cmds.c (compare_strings): New function.
8565         (complete_command): Only print each unique item once.
8566         * completer.h (complete_line): Declare.
8567         * completer.c (complete_line): New function.
8568         (line_completion_function): Use it.
8569
8570 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
8571
8572         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8573         * gdbarch.h, gdbarch.c: Re-generate.
8574
8575 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8576
8577         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8578
8579 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8580
8581         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8582         * valops.c (value_arg_coerce): Don't take the address of a reference
8583         to convert an argument to a reference.
8584
8585 2002-02-15  Christopher Faylor  <cgf@redhat.com>
8586
8587         * win32-nat.c (get_image_name): New function.
8588         (handle_load_dll): Use get_image_name function.
8589         (get_child_debug_event): Avoid registering debug events until possibly
8590         execed process is started.
8591         (child_create_inferior): Allow invocation via shell so that command
8592         line redirection, etc.  works ok.
8593         (_initialize_inftarg): Add new command: "set shell" to control whether
8594         a shell is used to start a process.
8595
8596 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8597
8598         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8599         instead of find_register_by_number.
8600         (cannot_store_register): Likewise.
8601
8602 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8603
8604         * dwarf2read.c: Replace fprintf (stderr, ...) by
8605         fprintf_unfiltered (gdb_stderr, ...).
8606
8607 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8608
8609         * gdbserver/gdbserver.1: Document --attach.
8610
8611 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8612
8613         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8614         descriptions.
8615         * arm-tdep.c (arm_default_arm_le_breakpoint)
8616         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8617         (arm_default_thumb_be_breakpoint): New.  Initialize them from
8618         traditional breakpoint defines.
8619         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8620         (arm_gdbarch_init): Initialize new breakpoint variables.
8621         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8622         (arm_linux_init_abi): Initialize linux-specific breakpoint.
8623         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8624         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8625         code out to ...
8626         (arm_netbsd_init_abi_common): ... here; new function.
8627         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8628         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8629         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8630         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8631
8632 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8633
8634         * arm-tdep.h (enum arm_abi): New enum.
8635         (struct gdbarch_tdep): New structure.
8636         (LOWEST_PC): Provide a default.
8637         (arm_gdbarch_register_os_abi): Declare new function.
8638         * arm-tdep.c (arm_abi_names): New array.
8639         (process_note_abi_tag_sections): New function.
8640         (get_elfosabi): New function.
8641         (arm_gdbarch_register_os_abi): New function.
8642         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
8643         support for that ABI has been built in, then call the appropriate
8644         configuration routine.  Use gdbarch_num_regs() to get the number
8645         of registers.
8646         (arm_dump_tdep): New function.
8647         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8648         place-holder functions.
8649         (_initialize_arm_tdep): Register them.
8650         * config/arm/tm-arm.h (LOWEST_PC): Delete.
8651
8652         * armnbsd-tdep.c: New file.
8653         * Makefile.in (armnbsd-tdep.o): Add dependencies.
8654         * config/arm/nbsd.mt (TDEPFILES): Add it.
8655         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8656
8657         * armnbsd-nat.c: Include regcache.h.
8658         * Makefile.in (armnbsd-nat.o): Update dependency list.
8659
8660         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8661
8662 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8663
8664         * gdbserver/Makefile.in: Fix typos in target rules.
8665
8666 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8667
8668         Fix part of PR gdb/267.
8669         * linespec.c (find_methods): Handle constructors specially for now.
8670
8671 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
8672
8673         * arm-tdep.c (arm_push_arguments): Eliminate special float type
8674         handling.
8675         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8676         standard_coerce_float_to_double().
8677
8678 2002-02-14  Christopher Faylor  <cgf@redhat.com>
8679
8680         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8681         GDBINIT_FILENAME.
8682
8683 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
8684
8685         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8686         find_variant_by_name, because it confuses the multiarch
8687         framework. Return NULL if there isn't an architecture with the
8688         user supplied name, instead of forcing a different one without
8689         recording the change with the multiarch machinery.
8690         (find_variant_by_name): Delete.
8691
8692 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8693
8694         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8695         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8696
8697 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
8698
8699         * stack.c (print_frame_info_base): When calling
8700         print_frame_info_listing_hook, set current_source_symtab.
8701
8702 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8703
8704         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8705         and remove unused $(INCLUDE_DIR).
8706         Add regcache.c to OBS.
8707         Add generated register protocol files to clean target.
8708         Update dependencies for new objects, obsolete old target code.
8709
8710         * gdbserver/linux-low.c: Remove all platform-specific code to
8711         new files.  Remove various dead code.  Update to use regcache
8712         functionality.
8713         * gdbserver/remote-utils.c (fromhex): Add return statement
8714         to quiet warning.
8715         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8716         constant.
8717         (input_interrupt): Add integer parameter to match prototype
8718         of a signal handler.
8719         (outreg): Use register_data ().
8720         (prepare_resume_reply): Use gdbserver_expedite_regs.
8721         * gdbserver/server.c (main): Dynamically allocate own_buf because
8722         PBUFSIZ is no longer constant.  Use registers_to_string () and
8723         registers_from_string ().
8724         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
8725         for error (), fatal (), and warning ().  Update definition of
8726         PBUFSIZ to use regcache functionality.  Add include guard.
8727         * gdbserver/utils.c (fatal): Add missing ``const''.
8728         (warning): New function.
8729
8730         * regformats/regdat.sh: Include "regcache.h" in generated files.
8731         Provide init_registers () function.
8732         * regformats/regdef.h: Add prototype for set_register_cache ().
8733         Add include guard.
8734
8735         * gdbserver/linux-arm-low.c: New file.
8736         * gdbserver/linux-i386-low.c: New file.
8737         * gdbserver/linux-ia64-low.c: New file.
8738         * gdbserver/linux-m68k-low.c: New file.
8739         * gdbserver/linux-mips-low.c: New file.
8740         * gdbserver/linux-ppc-low.c: New file.
8741         * gdbserver/linux-sh-low.c: New file.
8742
8743         * gdbserver/regcache.c: New file.
8744         * gdbserver/regcache.h: New file.
8745
8746         * gdbserver/low-linux.c: Removed obsolete file.
8747
8748 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8749
8750         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8751         * config/i386/linux.mt: Likewise.
8752         * config/ia64/linux.mt: Likewise.
8753         * config/m68k/linux.mh: Likewise.
8754         * config/powerpc/linux.mh: Likewise.
8755         * config/mips/linux.mt: Likewise.
8756
8757         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8758
8759         * config/i386/i386lynx.mh: Mark gdbserver variables
8760         as (currently) obsolete for this target.
8761         * config/i386/nbsd.mt: Likewise.
8762         * config/i386/nbsdelf.mt: Likewise.
8763         * config/m32r/m32r.mt: Likewise.
8764         * config/m68k/m68klynx.mh: Likewise.
8765         * config/m68k/nbsd.mt: Likewise.
8766         * config/m68k/sun3os4.mh: Likewise.
8767         * config/mips/vr5000.mt: Likewise.
8768         * config/ns32k/nbsd.mt: Likewise.
8769         * config/pa/hppabsd.mh: Likewise.
8770         * config/pa/hppaosf.mh: Likewise.
8771         * config/powerpc/nbsd.mt: Likewise.
8772         * config/rs6000/rs6000lynx.mh: Likewise.
8773         * config/s390/s390.mt: Likewise.
8774         * config/s390/s390x.mt: Likewise.
8775         * config/sparc/sparclynx.mh: Likewise.
8776         * config/sparc/sun4os4.mh: Likewise.
8777         * config/i386/x86-64linux.mt: Likewise.
8778         * config/sparc/linux.mh: Likewise.
8779
8780 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8781
8782         * configure.tgt: Configure gdbserver only for known working
8783         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
8784         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
8785         SUBDIRS if it is configured.  Update comment for ${nativefile}.
8786         * configure: Regenerated.
8787
8788 2002-02-13  Michael Snyder  <msnyder@redhat.com>
8789
8790         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8791
8792         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8793         (default_gcore_mach): Just return 0, work around a problem in bfd.
8794         (default_gcore_target): OK to return NULL if exec_bfd is null.
8795         (make_mem_sec): Use a cast, avoid a warning.
8796
8797         * procfs.c (find_memory_regions_callback): Use a cast instead of
8798         calling host_pointer_to_address (which complains if
8799         sizeof (host pointer) != sizeof (target pointer)).
8800         (procfs_make_note_section): Avoid overflow in psargs string.
8801
8802         * procfs.c (procfs_make_note_section): Make the default
8803         implementation return an error.
8804
8805 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
8806
8807         * procfs.c (procfs_make_note_section): Provide a default definition
8808         (for alpha-dec-osf4.0f). Fix typos.
8809
8810 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
8811
8812         * linux-proc.c: Add include of regcache.h.
8813         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8814
8815 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
8816
8817         From 2002-01-18 Greg McGary <greg@mcgary.org>:
8818         * memattr.c (create_mem_region): Disallow useless empty region.
8819         Regions are half-open intervals, so allow [A..B) [B..C) as
8820         non-overlapping.
8821
8822 2002-02-13  Michael Chastain <mec@shout.net>
8823
8824         * defs.h: Kill CONST_PTR.
8825         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8826         * c-lang.c (c_builtin_types): Likewise.
8827         * ch-lang.c (ch_builtin_types): Likewise.
8828         * f-lang.c (f_builtin_types): Likewise.
8829         * language.c (unknown_builtin_types): Likewise.
8830         * m2-lang.c (m2_builtin_types): Likewise.
8831         * p-lang.c (pascal_builtin_types): Likewise.
8832         * scm-lang.c (c_builtin_types): Likewise.
8833
8834 2002-02-13  Keith Seitz  <keiths@redhat.com>
8835
8836         * arm-tdep.h (arm_get_next_pc): Add declaration.
8837
8838 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
8839
8840         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
8841         with other related struct-returning functions.
8842         (arm_extract_struct_value_address): New function.
8843         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
8844         initialize float_format, double_format and long_double_format as
8845         appropriate to the endianness of the target.
8846         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8847         (arm_use_struct_convention): Delete declaration.
8848         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8849
8850 2002-02-13  Keith Seitz  <keiths@redhat.com>
8851
8852         * defs.h (core_addr_to_string_nz): New function.
8853
8854 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
8855
8856         Apply missing bits of 2002-01-15 patch.
8857         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8858         (fill_fpregset): Use i387_fill_fsave.
8859
8860 2002-02-12  Keith Seitz  <keiths@redhat.com>
8861
8862         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8863         (core_addr_to_string_nz): New function.
8864
8865 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8866
8867         * arm-linux-nat.c: Really include arm-tdep.h.
8868         * config/arm/tm-linux.h (struct type, struct value): Declare.
8869
8870 2002-02-11  Michael Snyder  <msnyder@redhat.com>
8871
8872         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8873         (gcore section): Ifdef for Solaris and Unixware only.
8874         (procfs_do_thread_registers): Unixware needs one lwpstatus
8875         per thread (not one prstatus or pstatus).
8876         (procfs_make_note_section): Iterate only over kernel threads (lwps),
8877         not over all gdb threads.  For unixware, call elfcore_write_pstatus
8878         once before iterating over threads.
8879
8880 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8881
8882         * arm-tdep.h: New file.
8883         * arm-tdep.c: Include arm-tdep.h.
8884         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8885         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8886         (arm_print_float_info, arm_register_type, convert_to_extended)
8887         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8888         (arm_extract_return_value, arm_register_name): Make static.
8889         (arm_software_single_step): Similarly.  Fix types in declaration.
8890         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8891         (arm_store_return_value, arm_store_struct_return): New functions.
8892         (arm_gdbarch_init): Register the above functions.  Also register
8893         call_dummy_start_offset, sizeof_call_dummy_words,
8894         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8895         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8896         max_register_virtual_size, register_size.  Set up
8897         prologue_cache.saved_regs here, rather than ...
8898         (_initialize_arm_tdep): ... here.
8899         * config/arm/tm-arm.h (struct type, struct value): Delete forward
8900         declarations.
8901         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8902         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8903         (arm_print_float_info, arm_register_type, convert_to_extended)
8904         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8905         (arm_extract_return_value, arm_register_name): Delete declarations.
8906         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8907         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8908         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8909         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8910         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8911         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8912         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8913         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8914         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8915         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8916         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8917         (arm_get_next_pc): No-longer static -- these are needed by the RDI
8918         interface.
8919         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8920         * remote-rdi.c remote-rdp.c: Likewise.
8921         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8922         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8923         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8924         definition.
8925
8926         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8927         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8928         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8929         from non-ARM_ prefixed definitions.
8930         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8931         all uses of above.
8932         * remote-rdi.c remote-rdp.c: Likewise.
8933         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8934
8935 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8936
8937         * arm-tdep.c (arm_frameless_function_invocation)
8938         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8939         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8940         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8941         (arm_pop_frame, arm_get_next_pc): Make static.
8942         (arm_gdbarch_init): Register above in gdbarch structure.
8943         (arm_read_fp): Renamed from arm_target_read_fp.
8944         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8945         * config/arm/tm-arm.h (arm_frameless_function_invocation)
8946         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8947         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8948         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8949         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8950         (arm_pc_is_thumb_dummy): Delete declarations.
8951         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8952         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8953         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8954         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8955
8956 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
8957
8958         * symtab.c (compare_search_syms): New function.
8959         (sort_search_symbols): New function.
8960         (search_symbols): Sort symbols after searching rather than
8961         before.
8962
8963 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8964
8965         * NEWS: Linux -> GNU/Linux.
8966
8967 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8968
8969         * gdbarch.sh: For for level one methods, disallow a definition
8970         when partially multi-arched.  Add comments explaining rationale.
8971         * gdbarch.h: Re-generate.
8972
8973 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8974
8975         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8976         multi-arch partial.
8977
8978 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8979
8980         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
8981         field.  Use diff -u.
8982         * gdbarch.c: Re-generate.
8983
8984 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8985
8986         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8987         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8988         partial.
8989
8990 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8991
8992         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8993         multi-arch partial.
8994         (PUSH_ARGUMENTS): Switch to using predefault.
8995         * gdbarch.c: Regenerate.
8996
8997 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8998
8999         * valops.c (PUSH_ARGUMENTS): Delete definition.
9000         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9001         partial.  Default to default_push_arguments.
9002         * gdbarch.h, gdbarch.c: Regenerate.
9003
9004 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9005
9006         * defs.h (throw_exception): Rename return_to_top_level.  Update
9007         comments.
9008         * utils.c (error_stream, internal_verror, quit): Ditto.
9009         * top.c (throw_exception, catcher): Ditto.
9010         * sparclet-rom.c (sparclet_load): Ditto.
9011         * remote.c (interrupt_query, minitelnet): Ditto.
9012         * remote-sds.c (interrupt_query): Ditto.
9013         * remote-mips.c (mips_error, mips_kill): Ditto.
9014         * ocd.c (interrupt_query): Ditto.
9015         * monitor.c (monitor_interrupt_query): Ditto.
9016         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9017         * target.h: Update comment.
9018
9019         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9020
9021 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9022
9023         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9024         default_double_format.
9025         * gdbarch.h, gdbarch.c: Re-generate.
9026         * findvar.c (floatformat_unknown): Delete variable definition.
9027         * doublest.h (floatformat_unknown): Delete variable declaration.
9028
9029 2002-02-09  Jim Blandy  <jimb@redhat.com>
9030
9031         * stabsread.c (read_type): Add code to parse Sun's syntax for
9032         prototyped function types.
9033
9034 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9035
9036         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9037         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9038
9039 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9040
9041         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9042         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
9043         now _initialize_xcoffsolib gets called again and overrides the
9044         commands from solib.c in a native configuration.
9045
9046 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
9047
9048         * doublest.c (store_typed_floating): Don't try to return a value.
9049         Fixes PR gdb/290.
9050
9051 2002-02-08  Jim Blandy  <jimb@redhat.com>
9052
9053         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9054         is prototyped and has no arguments, print its argument list as
9055         `(void)'.
9056
9057 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9058
9059         * MAINTAINERS (write-after-approval): Add myself.
9060         (paper-trail): I've escaped!
9061
9062 2002-02-08  Christopher Faylor  <cgf@redhat.com>
9063
9064         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9065         changes.
9066         (_initialize_check_for_gdb_ini): Ditto.
9067
9068 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
9069
9070         * win32-nat.c (cygwin_pid_to_str): Fix typo.
9071         xaprintf -> xasprintf.
9072
9073 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
9074
9075         * win32-nat.c: Remove use of printf and sprintf functions.
9076
9077 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
9078
9079         * arm-tdep.c (arm_frame_chain_valid): Make static.
9080         (arm_push_arguments): Likewise.
9081         (arm_gdbarch_init): New function.
9082         (_initialize_arm_tdep): Call it.
9083         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9084         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9085         (FRAME_CHAIN_VALID): Delete.
9086         (arm_frame_chain_valid): Delete declaration.
9087         (PUSH_ARGUMENTS): Delete.
9088         (arm_push_arguments): Delete declaration.
9089         (CALL_DUMMY_P): Delete.
9090
9091 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
9092             Corinna Vinschen  <vinschen@redhat.com>
9093
9094         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9095         on builtin float types.
9096
9097 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9098
9099         * utils.c: Include <curses.h> before "bfd.h".
9100         * tui/tui-hooks.c: Likewise.
9101         * tui/tui.c: Likewise.
9102         * tui/tuiCommand.c: Likewise.
9103         * tui/tuiData.c: Likewise.
9104         * tui/tuiDataWin.c: Likewise.
9105         * tui/tuiDisassem.c: Likewise.
9106         * tui/tuiGeneralWin.c: Likewise.
9107         * tui/tuiIO.c: Likewise.
9108         * tui/tuiLayout.c: Likewise.
9109         * tui/tuiRegs.c: Likewise.
9110         * tui/tuiSource.c: Likewise.
9111         * tui/tuiSourceWin.c: Likewise.
9112         * tui/tuiStack.c: Likewise.
9113         * tui/tuiWin.c: Likewise.
9114
9115 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
9116
9117         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9118         to include space for pseudoregs as well. Update loops accordingly.
9119         (sh_fp_frame_init_saved_regs): Ditto.
9120         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9121
9122 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
9123
9124         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9125         Add Richard Earnshaw to Arm maintainers.
9126
9127 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
9128
9129         * defs.h (warning_begin): Delete declaration.
9130
9131         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9132         Delete macro.
9133
9134 2002-02-07  Michael Snyder  <msnyder@redhat.com>
9135
9136         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9137         Logic bug, remove misplaced else.
9138
9139 2002-02-07  Klee Dienes  <klee@apple.com>
9140
9141         * fork-inferior.c (fork_inferior): Add '!' to the list of
9142         characters that need to be quoted when building a string for the
9143         shell.  Quote '!' specifically with a backslash, since CSH chokes
9144         when trying to evaluate "str!str".
9145
9146 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
9147
9148         * rdi-share/host.h: Only provide a typedef for bool if it is not
9149         defined.
9150
9151 2002-02-04  Michael Snyder  <msnyder@redhat.com>
9152
9153         * breakpoint.h (enum bptype): Add new overlay event bp type.
9154         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9155
9156         * breakpoint.c (create_internal_breakpoint): New function.
9157         (internal_breakpoint_number): Moved into create_internal_breakpoint.
9158         (create_longjmp_breakpoint): Use create_internal_breakpoint.
9159         (create_thread_event_breakpoint): Ditto.
9160         (create_solib_event_breakpoint): Ditto.
9161         (create_overlay_event_breakpoint): New function.
9162         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9163         (update_breakpoints_after_exec): Delete and re-initialize
9164         overlay event breakpoints after an exec.  Add FIXME comment
9165         about longjmp breakpoint.
9166         (print_it_typical): Ignore overlay event breakpoints.
9167         (print_one_breakpoint): Ditto.
9168         (mention): Ditto.
9169         (bpstat_what): Do not stop for overlay event breakpoints.
9170         (delete_breakpoint): Don't delete overlay event breakpoints.
9171         (breakpoint_re_set_one): Delete the overlay event breakpoint.
9172         (breakpoint_re_set): Re-create overlay event breakpoint.
9173
9174         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9175         (overlay_manual_command): Disable overlay breakpoints.
9176         (overlay_off_command): Disable overlay breakpoints.
9177
9178 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
9179
9180         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9181         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9182         to here from config/tm-arm.h.
9183         (coff_sym_is_thumb): Make static.
9184         (arm_elf_make_msymbol_special): New function.
9185         (arm_coff_make_msymbol_special): New function.
9186         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9187         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9188         (coff_sym_is_thumb): Delete declaration.
9189         (arm_elf_make_msymbol_special): Declare.
9190         (arm_coff_make_msymbol_special): Declare.
9191         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9192         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9193
9194 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
9195
9196         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9197
9198 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
9199
9200         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9201         * gdbarch.c gdbarch.h: Regenerate.
9202         * arch-utils.c (default_print_float_info): New function.
9203         * arch-utils.h (default_print_float_info): Prototype it.
9204         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9205         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9206         (PRINT_FLOAT_INFO): Document it.
9207
9208         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9209         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9210         (PRINT_FLOAT_INFO): Define.
9211
9212 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
9213
9214         * win32-nat.c (_initialize_check_for_gdb_ini):
9215         Add typecast to sprintf argument to suppress a warning.
9216
9217 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
9218
9219         * win32-nat.c (last_sig): Changed type of variable to target_signal,
9220         to allow easier handling of pass state.
9221         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9222         that gives exception name and address.
9223         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9224         and set last_sig value to ourstatus->value.sig. Some missing
9225         exceptions added.
9226         (child_continue): Correctly report continue_status.
9227         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9228         TARGET_SIGNAL_0 (new default value).
9229         (child_resume): consider sig argument passed to decide if
9230         the exception should be passed to debuggee or not.
9231
9232 2002-02-05  Michael Snyder  <msnyder@redhat.com>
9233
9234         * regcache.c (fetch_register): Call target_fetch_register
9235         only if we don't call FETCH_PSEUDO_REGISTER.
9236         (store_register): Call target_store_register only if we
9237         don't call STORE_PSEUDO_REGISTER.
9238
9239 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
9240
9241         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9242         ELF_MAKE_MSYMBOL_SPECIAL.
9243         * gdbarch.c, gdbarch.h: Regenerate.
9244         * arch-utils.c (default_make_msymbol_special): New function.
9245         * arch-utils.h (default_make_msymbol_special): Export.
9246         * elfread.c (elf_symtab_read): Compile use of
9247         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9248         multiarched.
9249         * coffread.c (coff_symtab_read): Ditto, for
9250         COFF_MAKE_MSYMBOL_SPECIAL.
9251
9252 2002-02-05  Jim Blandy  <jimb@redhat.com>
9253
9254         * solib-svr4.c (svr4_truncate_ptr): New function.
9255         (svr4_relocate_section_addresses): Do the address arithmetic with
9256         the appropriate truncation for target addresses, even when
9257         CORE_ADDR is larger than a target address.
9258
9259 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9260
9261         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9262         to (int *).
9263
9264 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9265
9266         * gdbserver/linux-low.c (kill_inferior): Remove commented out
9267         code.
9268
9269 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9270
9271         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9272
9273 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9274
9275         * gdbserver/linux-low.c: Remove unused include files.
9276
9277 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9278
9279         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9280         (read_inferior_memory): Use it.
9281         (write_inferior_memory): Likewise.
9282
9283 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9284
9285         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9286         grubbing through sys_errlist.
9287
9288 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9289
9290         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9291
9292 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
9293         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9294
9295 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
9296
9297         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9298         (do_sfunc, set_cmd_sfunc): New functions.
9299
9300         * command.h (struct cmd_list_element): Add field func.
9301         * cli/cli-decode.h (struct cmd_list_element): Ditto.
9302         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9303         * cli/cli-decode.h: Ditto.
9304
9305         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9306         (help_all, help_cmd_list): Ditto.
9307         (find_cmd, complete_on_cmdlist): Ditto.
9308         * top.c (execute_command): Ditto.
9309
9310         * cli/cli-setshow.c (do_setshow_command): Call func instead of
9311         function.sfunc.
9312
9313         * infcmd.c (notice_args_read): Fix function signature.
9314
9315         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9316         * cli/cli-decode.c (add_set_cmd): Ditto.
9317         * utils.c (initialize_utils): Ditto.
9318         * maint.c (_initialize_maint_cmds): Ditto.
9319         * infrun.c (_initialize_infrun): Ditto.
9320         * demangle.c (_initialize_demangler): Ditto.
9321         * remote.c (add_packet_config_cmd): Ditto.
9322         * mips-tdep.c (_initialize_mips_tdep): Ditto.
9323         * cris-tdep.c (_initialize_cris_tdep): Ditto.
9324         * proc-api.c (_initialize_proc_api): Ditto.
9325         * kod.c (_initialize_kod): Ditto.
9326         * valprint.c (_initialize_valprint): Ditto.
9327         * top.c (init_main): Ditto.
9328         * infcmd.c (_initialize_infcmd): Ditto.
9329         * corefile.c (_initialize_core): Ditto.
9330         * arm-tdep.c (_initialize_arm_tdep): Ditto.
9331         * arch-utils.c (initialize_current_architecture): Ditto.
9332         (_initialize_gdbarch_utils): Ditto.
9333         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9334
9335         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9336         * wince.c (_initialize_inftarg): Ditto.
9337         * symfile.c (_initialize_symfile): Ditto.
9338         * mips-tdep.c (_initialize_mips_tdep): Ditto.
9339         * language.c (_initialize_language): Ditto.
9340         * arc-tdep.c (_initialize_arc_tdep): Ditto.
9341
9342 2002-02-04  Michael Snyder  <msnyder@redhat.com>
9343
9344         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9345
9346 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9347
9348         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9349         Add rules for building the register data files.
9350
9351 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9352
9353         * regformats/regdat.sh: Add braces to the definition of
9354         expedite_regs_${arch}.
9355
9356 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9357
9358         * regformats/regdef.h (struct reg): Add comment describing the
9359         requirements for offset and size fields.
9360
9361 2002-02-04  Andreas Schwab  <schwab@suse.de>
9362
9363         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9364         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9365
9366 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
9367
9368         * gdbarch.sh (copyright): Update years in generated header.
9369         (SMASH_TEXT_ADDRESS): Add rule.
9370         * gdbarch.h, gdbarch.c: Re-generate.
9371         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9372         * dbxread.c: Likewise.
9373         * dwarfread.c: Likewise.
9374         * elfread.c: Likewise.
9375         * somread.c: Likewise.
9376
9377         * arm-tdep.c (arm_smash_text_address): New function.
9378         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9379
9380 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
9381
9382         Add support for hardware watchpoints on win32 native.
9383         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9384         CONTEXT_DEBUG_REGISTERS.
9385         (dr variable): New variable. Static array containing a local copy
9386         of debug registers.
9387         (debug_registers_changed): New variable.  Reflects when debug registers
9388         are changed and need to be written to inferior.
9389         (debug_registers_used): New variable. Reflects when any debug register
9390         was set, used when new threads are created.
9391         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9392         i386-nat code.
9393         (thread_rec): Set dr array if id is the thread of current_event .
9394         (child_continue, child_resume): Change the debug registers for all
9395         threads if debug_registers_changed.
9396         (child_add_thread): Change the debug registers if debug_registers_used.
9397         * config/i386/cygwin.mh: Add use of i386-nat.o file.
9398         Link nm.h to new nm-cygwin.h file.
9399         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9400         of hardware registers.
9401
9402 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
9403
9404         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9405         Restore behavour broken by 2002-01-20 Andrew Cagney
9406         <ac131313@redhat.com> IEEE_FLOAT removal.
9407
9408 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9409
9410         * c-valprint.c (c_val_print): Pass a proper valaddr to
9411         cp_print_class_method.
9412         * valops.c (search_struct_method): If there is only one method
9413         and args is NULL, return that method.
9414
9415 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9416
9417         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9418         accessing tag_name directly.
9419
9420 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9421
9422         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9423         of accessing tag_name directly.
9424
9425 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9426
9427         PR gdb/280
9428         * gdbtypes.c (replace_type): New function.
9429         * gdbtypes.h (replace_type): Add prototype.
9430         * stabsread.c (read_type): Use replace_type.
9431
9432 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
9433
9434         * Makefile.in (memattr.o): Add missing dependencies rule.
9435
9436 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9437
9438         * breakpoint.c (break_at_finish_command): Really export.
9439         (break_at_finish_at_depth_command): Ditto.
9440         (tbreak_at_finish_command): Ditto.
9441         * hppa-tdep.c: Include completer.h.
9442         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9443         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9444
9445 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9446
9447         * utils.c (do_write): New function.
9448         (error_stream): Rewrite combining the code from error_begin and
9449         verror.
9450         (verror): Rewrite using error_stream.
9451         (error_begin): Delete function.
9452
9453 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9454
9455         * utils.c (error_begin): Make static.
9456         * defs.h (error_begin): Delete declaration.
9457
9458         * linespec.c (cplusplus_error): Replace cplusplus_hint.
9459         (decode_line_1): Use cplusplus_error instead of error_begin,
9460         cplusplus_hint and return_to_top_level.
9461         * coffread.c (coff_symfile_read): Use error instead of error_begin
9462         and return_to_top_level.
9463         * infrun.c (default_skip_permanent_breakpoint): Ditto.
9464
9465 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9466
9467         * language.h (type_error, range_error): Make string parameter
9468         constant.
9469         * language.c (warning_pre_print): Delete extern declaration.
9470         * dwarfread.c (warning_pre_print): Ditto.
9471         * language.c (type_error, range_error): Rewrite to use verror and
9472         vwarning instead of warning_begin.
9473
9474 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9475
9476         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9477         (set_ignore_count): Move misplaced comment back where it belongs.
9478
9479 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9480
9481         * command.h (NO_FUNCTION): Delete macro.
9482         * cli/cli-decode.h (NO_FUNCTION): Ditto.
9483         * top.c (execute_command): Replace NO_FUNCTION with NULL.
9484         * tracepoint.c (_initialize_tracepoint): Ditto.
9485         * cli/cli-decode.c (add_set_cmd): Ditto.
9486         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9487
9488 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9489
9490         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9491         Update ``this'' pointer when calling virtual functions.
9492
9493 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9494
9495         * breakpoint.c (create_temp_exception_breakpoint): Delete.
9496         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9497
9498 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9499
9500         * regformats/reg-arm.dat: New file.
9501         * regformats/reg-i386.dat: New file.
9502         * regformats/reg-ia64.dat: New file.
9503         * regformats/reg-m68k.dat: New file.
9504         * regformats/reg-mips.dat: New file.
9505         * regformats/reg-ppc.dat: New file.
9506         * regformats/reg-sh.dat: New file.
9507         * regformats/regdef.h: New file.
9508         * regformats/regdat.sh: New file.
9509
9510 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
9511
9512         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9513         (arm_frame_args_address, arm_frame_locals_address): New functions.
9514         (arm_frame_num_args): New function.
9515         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9516         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9517         (FRMA_NUM_ARGS): Call arm_frame_num_args.
9518
9519 2002-01-31  Michael Snyder  <msnyder@redhat.com>
9520
9521         * breakpoint.c (break_at_finish_command): Export.
9522         (break_at_finish_at_depth_command): Export.
9523         (tbreak_at_finish_command): Export.
9524         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9525         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9526         "tbreak" commands, which are HPPA specific.
9527
9528         * printcmd.c (disassemble_command): Remove an ancient
9529         artifact of an old merge.
9530
9531         * symfile.h (enum overlay_debugging_state):
9532         Define enum constant values for overlay mode.
9533         * symfile.c (overlay_debugging): Use enums instead of literals.
9534         (overlay_is_mapped, overlay_auto_command,
9535         overlay_manual_command): Ditto.
9536
9537         * breakpoint.c (insert_breakpoints, remove_breakpoint,
9538         breakpoint_here_p, breakpoint_inserted_here_p,
9539         breakpoint_thread_match, bpstat_stop_status,
9540         describe_other_breakpoints, check_duplicates, clear_command):
9541         Coding standard fixes.
9542
9543         * target.c (target_xfer_memory): Add spaces, coding standard.
9544         (do_xfer_memory): Add missing line to trust-readonly
9545         code: check bfd SEC_READONLY flag for section.
9546
9547 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
9548
9549         * PROBLEMS: Fix typo, 5.1->5.1.1.
9550
9551 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
9552
9553         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9554         data symbols, since we search based on textlow and texthigh.
9555         (find_pc_sect_symtab): Likewise.
9556
9557 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9558
9559         * defs.h (vwarning): Declare.
9560         * utils.c (vwarning): New function.
9561         (warning): Call vwarning.
9562         (warning_begin): Delete function.
9563
9564         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9565         the warning message.
9566         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9567         warning_begin.
9568
9569 2002-01-30  Michael Snyder  <msnyder@redhat.com>
9570
9571         * NEWS: Mention "set trust-readonly-sections" command.
9572         Mention generate-core-file command.
9573
9574 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9575
9576         * target.c: New command, "set trust-readonly-sections on".
9577         (do_xfer_memory): Honor the suggestion to trust readonly sections
9578         by reading them from the object file instead of from the target.
9579         (initialize_targets): Register command "set trust-readonly-sections".
9580
9581 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9582
9583         * parse.c (target_map_name_to_register): Simplify, search regs and
9584         pseudo-regs using a single loop.
9585
9586 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9587
9588         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9589
9590 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
9591
9592         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9593         * config/i386/i386v42mp.mh: Add i387-nat.o .
9594         * i386v4-nat.c: Include i387-nat.h.
9595         (supply_fpregset): Use i387_supply_fsave.
9596         (fill_fpregset): Use i387_fill_fsave.
9597
9598 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
9599
9600         * arm-tdep.c (arm_call_dummy_words): Define.
9601         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9602         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9603         (CALL_DUMMY_WORDS): Define.
9604         (arm_call_dummy_words): Declare.
9605         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9606         (arm_linux_call_dummy_words): Declare.
9607
9608 2002-01-30  Andreas Schwab  <schwab@suse.de>
9609
9610         * m68klinux-nat.c: Fix last change to use regcache_collect
9611         instead of referencing registers[] directly.
9612
9613 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9614
9615         * parse.c (target_map_name_to_register): Delete code wrapped in
9616         #ifdef REGISTER_NAME_ALIAS_HOOK.
9617
9618 2002-01-28  Michael Snyder  <msnyder@redhat.com>
9619
9620         * regcache.c (legacy_read_register_gen): Need to be able to
9621         read pseudo-register as well as real register.
9622         (legacy_write_register_gen): Ditto.
9623
9624 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9625
9626         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9627         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9628         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9629         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9630         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9631         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9632         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9633         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9634         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9635         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9636         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9637         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9638         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9639         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9640         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9641         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9642         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9643         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9644         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9645         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9646
9647 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9648
9649         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9650         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9651         (initialize_current_architecture): Update target_byte_order using
9652         information from BFD.
9653         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9654         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9655
9656 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9657
9658         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9659         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
9660
9661         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9662         #ifdef INVALID_FLOAT.
9663         * infcmd.c (do_registers_info): Ditto.
9664         * values.c (unpack_double): Ditto.  Add comment.
9665
9666         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9667         already commented out.
9668
9669 2002-01-26  Andreas Schwab  <schwab@suse.de>
9670
9671         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9672         * m68klinux-nat.c: Update ptrace interface for fetching/storing
9673         registers and add support for PTRACE_GETREGS.
9674
9675 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
9676
9677         GDB 5.1.1 released from 5.1 branch.
9678         * NEWS: Add 5.1.1 news.
9679         * README: Sync with 5.1 branch.
9680
9681 2002-01-23  Fred Fish  <fnf@redhat.com>
9682
9683         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9684         stabstring on initial malloc.  Reallocing will copy it for us,
9685         if necessary.
9686
9687 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9688
9689         * Makefile.in (hpread_h): Delete.
9690         (HFILES_NO_SRCDIR): Remove hpread.h.
9691         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9692         (hpread.o): Update dependencies.
9693         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9694
9695         * hp-psymtab-read.c: Remove file.
9696         * hp-symtab-read.c: Remove file.
9697         * hpread.h: Remove file.
9698
9699         * hpread.c: Merge all contents of hp-psymtab-read.c,
9700         hp-symtab-read.c and hpread.h into this file, as it was prior to
9701         January 1999.
9702
9703         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9704         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9705         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9706         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9707
9708 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9709
9710         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9711         fill_gregset): Call gdbarch_tdep() just once, assign result to
9712         variable and use that, instead of calling the function several
9713         times.
9714
9715 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9716
9717         * configure.host: Accept sparcv9 as alias for sparc64.
9718         * configure.tgt: Likewise.
9719
9720 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
9721
9722         * solib-aix5.c (build_so_list_from_mapfile)
9723         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9724         arguments is not reversed.
9725         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9726         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9727
9728 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
9729
9730         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9731         modified version of obsolete sh_fetch_pseudo_register.
9732         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9733         (sh4_register_read): New function.
9734         (sh_pseudo_register_write): New function. Renamed and modified
9735         version of obsolete sh_store_pseudo_register.
9736         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9737         (sh4_register_write): New function.
9738         (sh_gdbarch_init): Remove setting of gdbarch function
9739         fetch_pseudo_register and store_pseudo_register. Remove setting of
9740         register_convert_to_raw, register_convert_to_virtual,
9741         register_convertible.
9742         (sh_sh4_register_convertible): Delete. No longer needed. All is
9743         taken care by architecture specific functions
9744         register_read/register_write.
9745         (sh_sh4_register_convert_to_virtual): Make static.
9746         (sh_sh4_register_convert_to_raw): Ditto.
9747
9748 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
9749
9750         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9751         (floatformat_is_nan, floatformat_mantissa): Ditto.
9752
9753         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9754         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9755         builtin_type_ieee_double_little,
9756         builtin_type_ieee_double_littlebyte_bigword,
9757         builtin_type_m68881_ext, builtin_type_i960_ext,
9758         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9759         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9760         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9761         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9762
9763 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
9764
9765         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9766         parameter.  Set frameless flag if it exists and depended of
9767         whether the scanned function is frameless or not.
9768         (xstormy16_skip_prologue): If function is frameless, return
9769         result of xstormy16_scan_prologue().
9770         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9771         call.
9772
9773 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
9774
9775         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9776         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9777         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9778         sh_sh4_register_byte, sh_sh4_register_raw_size,
9779         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9780         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9781         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9782         sh_store_pseudo_register, sh_do_pseudo_register): Call
9783         gdbarch_tdep() just once, assign result to variable and use that,
9784         instead of calling the function several times.
9785
9786 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
9787
9788         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9789         macros instead of LAST_FPU_CTRL_REGNUM.
9790         (store_register): Likewise.
9791
9792 2002-01-21  Jim Blandy  <jimb@redhat.com>
9793
9794         * infcmd.c (run_command): Check that the `exec' target layer's BFD
9795         is up-to-date before running the program, not just when a program
9796         exits.
9797
9798 2002-01-21  Fred Fish  <fnf@redhat.com>
9799
9800         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9801         when we have found all instructions we are looking for.
9802
9803 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9804
9805         * arm-tdep.c (arm_register_name): New function.
9806         (arm_registers_names): Make static.
9807         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9808         (arm_register_name): Declare.
9809         (REGISTER_NAME): Use it.
9810
9811 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9812             Kevin Buettner  <kevinb@redhat.com>
9813
9814         Convert arm targets to new FRAME interface.
9815         * arm-tdep.c (struct frame_extra_info): Remove fsr.
9816         (arm_frame_find_save_regs): Delete.
9817         (arm_frame_init_saved_regs): New.
9818         (arm_init_extra_frame_info): Alloacte saved_regs as required.
9819         Allocate extra_info as required.  Convert all uses of fsr.regs
9820         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9821         to use extra_info.
9822         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9823         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9824         (check_prologue_cache, save_prologue_cache): Likewise.
9825         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9826         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9827         (FRAME_FIND_SAVED_REGS): Delete.
9828         (arm_frame_find_saved_regs): Delete prototype.
9829         (arm_frame_init_saved_regs): New prototype.
9830         (FRAME_INIT_SAVED_REGS): Define.
9831
9832 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9833
9834         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9835
9836 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9837
9838         From Jeff Law <law@redhat.com>:
9839         * infttrace.c: Include <sys/pstat.h>.
9840         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
9841         exec file if the ttrace equivalent fails.
9842
9843 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9844
9845         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9846         (closeLogFile): Ditto.
9847
9848 2002-01-20  Michael Chastain  <mec@shout.net>
9849
9850         * top.c (print_gdb_version): Bump copyright year to 2002.
9851
9852 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9853
9854         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9855         Zannoni and Eli Zaretskii.
9856
9857 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9858
9859         * buildsym.c: Update copyright years.
9860         * c-typeprint.c: Likewise.
9861         * dwarf2read.c: Likewise.
9862         * f-typeprint.c: Likewise.
9863         * gdbtypes.c: Likewise.
9864         * gdbtypes.h: Likewise.
9865         * hp-symtab-read.c: Likewise.
9866         * hpread.c: Likewise.
9867         * mdebugread.c: Likewise.
9868         * p-typeprint.c: Likewise.
9869
9870 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9871
9872         * remote-sim.c (gdbsim_open): Simplify code testing the macro
9873         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
9874         byte-order selectable.
9875         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9876         * arch-utils.c: Ditto.
9877         (set_endian): Ditto.
9878         (set_endian_from_file): Ditto.
9879         * gdbserver/low-sim.c (create_inferior): Ditto.
9880         * gdbarch.sh: Ditto.
9881         * gdbarch.h: Re-generate.
9882         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9883         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9884         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9885         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9886         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9887         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9888         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9889         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9890         macro definition.
9891         * config/mips/tm-wince.h: Remove #undef of macro
9892         TARGET_BYTE_ORDER_SELECTABLE.
9893         * config/sh/tm-wince.h: Ditto.
9894
9895 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9896
9897         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9898         member function fields.  Add accessor macro
9899         TYPE_FN_FIELD_ARTIFICIAL.
9900         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9901         * c-typeprint.c (c_type_print_base): Skip artificial member
9902         functions.
9903
9904 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9905
9906         * f-typeprint.c: Delete unused function f_type_print_args.
9907         * p-typeprint.c: Delete unused function pascal_type_print_args.
9908
9909 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9910
9911         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
9912         comment.  Add ``artificial'' to ``union field_location''.
9913
9914         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9915
9916         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9917         * mdebugread.c (parse_symbol): Likewise.
9918         * stabsread.c (define_symbol): Likewise.
9919         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9920         initializing TYPE_FIELD_BITPOS to n (obsolete).
9921         (hpread_doc_function_type): Likewise.
9922         * hpread.c (hpread_function_type): Likewise.
9923
9924 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9925
9926         * configure.in (host_makefile_frag): Only require a host makefile
9927         fragment when a native build.
9928         * configure: Re-generate.
9929
9930 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9931
9932         * doublest.h (floatformat_from_type): Declare.
9933         * doublest.c (floatformat_from_type): New function.
9934         (convert_typed_floating): Use.
9935
9936         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9937         call to function floatformat_from_type.
9938
9939         * gdbarch.sh (IEEE_FLOAT): Delete.
9940         * gdbarch.h, gdbarch.c: Re-generate.
9941         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9942         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9943         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9944         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9945         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9946         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9947         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9948         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9949         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9950         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9951         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9952         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9953
9954         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9955         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9956         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9957         * sh-tdep.c (sh_gdbarch_init): Ditto.
9958         * mips-tdep.c (mips_gdbarch_init): Ditto.
9959         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9960         * cris-tdep.c (cris_gdbarch_init): Ditto.
9961
9962 2002-01-20  Jiri Smid  <smid@suse.cz>
9963
9964         * configure.host, configure.tgt: Support x86-64.
9965         * NEWS: Note new target x86-64.
9966
9967         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9968         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9969         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9970         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9971         x86-64-linux-nat.o): Fix dependencies.
9972
9973 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9974
9975         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9976         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9977         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9978         * config/sparc/xm-sun4os4.h: Delete file.
9979         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9980
9981 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9982
9983         * config/sparc/sparclynx.mh (XM_FILE): Delete.
9984         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9985         * config/m68k/m68klynx.mh (XM_FILE): Delete.
9986         * config/i386/i386lynx.mh (XM_FILE): Delete.
9987         * config/rs6000/xm-rs6000ly.h: Delete file.
9988         * config/sparc/xm-sparclynx.h: Delete file.
9989         * config/m68k/xm-m68klynx.h: Delete file.
9990         * config/i386/xm-i386lynx.h: Delete file.
9991         * config/xm-lynx.h: Delete file.
9992         * config/djgpp/fnchange.lst: Update.
9993
9994 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9995
9996         * alpha-tdep.c (alpha_register_byte): New function.
9997         (alpha_register_raw_size): Ditto.
9998         (alpha_register_virtual_size): Ditto.
9999         (alpha_skip_prologue_internal): Renamed from
10000         alpha_skip_prologue.
10001         (alpha_skip_prologue): New version that calls
10002         alpha_skip_prologue_internal.
10003         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10004         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10005         second argument from alpha_skip_prologue.
10006         (REGISTER_BYTE): Use alpha_register_byte.
10007         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10008         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10009         (FRAMELESS_FUNCTION_INVOCATION): Use
10010         generic_frameless_function_invocation_not.
10011         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10012         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10013
10014 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10015
10016         * config/mips/xm-news-mips.h: Delete file.
10017         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10018
10019         * config/m88k/xm-m88k.h: Delete file.
10020         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10021         * config/m88k/xm-delta88v4.h: Ditto.
10022         * config/m88k/xm-delta88.h: Ditto.
10023
10024         * config/alpha/xm-fbsd.h: Delete file.
10025         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10026
10027         * config/sparc/xm-sparc.h: Delete file.
10028         * Makefile.in (xm-sun4os4.h): Delete dependency.
10029         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10030         * config/sparc/xm-sun4os4.h: Ditto.
10031         * config/sparc/xm-linux.h: Ditto.
10032
10033         * config/i386/xm-windows.h: Delete file.
10034
10035 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10036
10037         * utils.c: Include <sys/param.h> for MAXPATHLEN.
10038         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10039
10040 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10041
10042         * alpha-tdep.c (alpha_call_dummy_words): New.
10043         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10044         (CALL_DUMMY_P): Define.
10045         (CALL_DUMMY_WORDS): Define.
10046         (SIZEOF_CALL_DUMMY_WORDS): Define.
10047
10048 2002-01-19  Per Bothner  <per@bothner.com>
10049
10050         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
10051         isn't NULL, which can happen with some gcj-3.x-produced code.
10052
10053 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10054
10055         * alpha-tdep.c (alpha_register_virtual_type): New function.
10056         (alpha_init_frame_pc_first): Ditto.
10057         (alpha_fix_call_dummy): Ditto.
10058         (alpha_store_struct_return): Ditto.
10059         (alpha_extract_struct_value_address): Ditto.
10060         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10061         alpha_register_virtual_type.
10062         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10063         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10064         alpha_extract_struct_value_address.
10065         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10066         (INIT_FRAME_PC): Use init_frame_pc_noop.
10067         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10068
10069 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
10070
10071         * i386gnu-nat.c: Include "i386-tdep.h".
10072         (fetch_fpregs): Simplify code dealing with uninitialized floating
10073         point states such that it doesn't require FP7_REGNUM.
10074
10075 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10076
10077         * alpha-tdep.c (frame_extra_info): New.
10078         (alpha_find_saved_regs): Make static.  Use
10079         frame->extra_info.
10080         (alpha_frame_init_saved_regs): New function.
10081         (alpha_frame_saved_pc): Use frame->extra_info.
10082         (temp_saved_regs): Don't declare as struct frame_saved_regs.
10083         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10084         (init_extra_frame_info): Rename to...
10085         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
10086         (alpha_print_extra_frame_info): New function.
10087         (alpha_frame_locals_address): Ditto.
10088         (alpha_frame_args_address): Ditto.
10089         (alpha_pop_frame): Use frame->extra_info.
10090         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10091         alpha_frame_args_address.
10092         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10093         (alpha_find_saved_regs): Remove prototype.
10094         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10095         (EXTRA_FRAME_INFO): Remove.
10096         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10097         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10098
10099 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10100
10101         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10102         (alpha_cannot_fetch_register): Ditto.
10103         (alpha_cannot_store_register): Ditto.
10104         (alpha_register_convertible): Ditto.
10105         (alpha_use_struct_convention): Ditto.
10106         * config/alpha/tm-alpha.h: Update copyright years.
10107         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10108         (INNER_THAN): Use core_addr_lessthan.
10109         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10110         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10111         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10112         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10113         (FRAME_CHAIN): Remove unnecessary cast.
10114
10115 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
10116
10117         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10118         obsolete.
10119
10120 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
10121
10122         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
10123         * monitor.c, remote-array.c, remote-bug.c: Ditto.
10124         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10125         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10126         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10127         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10128         * x86-64-linux-nat.c: Ditto.
10129
10130 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10131
10132         * alpha-tdep.c (alpha_register_name): New function.
10133         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10134         (REGISTER_NAME): Define.
10135
10136 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10137
10138         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10139
10140 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10141
10142         * alpha-tdep.c: Update copyright years.
10143         (alpha_next_pc): New function.
10144         (alpha_software_single_step): Ditto.
10145         * config/alpha/tm-alpha.h: Add prototype for
10146         alpha_software_single_step.
10147
10148 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10149
10150         * alphabsd-nat.c: Update copyright years.
10151         (fill_gregset): Use regcache_collect.
10152         (fill_fpregset): Likewise.
10153         (fetch_inferior_registers): Only fetch integer registers
10154         if requested to do so.
10155         (store_inferior_registers): Only store integer registers
10156         if requested to do so.
10157
10158 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
10159
10160         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10161         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10162         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10163         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10164         * config/alpha/fbsd.mh (XDEPFILES): Delete.
10165         * config/arm/linux.mh (XDEPFILES): Delete.
10166         * config/arm/nbsd.mh (XDEPFILES): Delete.
10167         * config/i386/i386dgux.mh (XDEPFILES): Delete.
10168         * config/i386/i386sol2.mh (XDEPFILES): Delete.
10169         * config/i386/i386m3.mh (XDEPFILES): Delete.
10170         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10171         * config/i386/i386gnu.mh (XDEPFILES): Delete.
10172         * config/i386/fbsd.mh (XDEPFILES): Delete.
10173         * config/i386/i386bsd.mh (XDEPFILES): Delete.
10174         * config/i386/i386sco5.mh (XDEPFILES): Delete.
10175         * config/i386/i386v4.mh (XDEPFILES): Delete.
10176         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10177         * config/i386/i386sco4.mh (XDEPFILES): Delete.
10178         * config/i386/i386aix.mh (XDEPFILES): Delete.
10179         * config/i386/go32.mh (XDEPFILES): Delete.
10180         * config/i386/cygwin.mh (XDEPFILES): Delete.
10181         * config/i386/i386lynx.mh (XDEPFILES): Delete.
10182         * config/i386/i386mach.mh (XDEPFILES): Delete.
10183         * config/i386/i386v32.mh (XDEPFILES): Delete.
10184         * config/i386/linux.mh (XDEPFILES): Delete.
10185         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10186         * config/i386/ncr3000.mh (XDEPFILES): Delete.
10187         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10188         * config/i386/i386sco.mh (XDEPFILES): Delete.
10189         * config/i386/i386v.mh (XDEPFILES): Delete.
10190         * config/i386/nbsd.mh (XDEPFILES): Delete.
10191         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10192         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10193         * config/i386/symmetry.mh (XDEPFILES): Delete.
10194         * config/i386/obsd.mh (XDEPFILES): Delete.
10195         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10196         * config/ia64/linux.mh (XDEPFILES): Delete.
10197         * config/ia64/aix.mh (XDEPFILES): Delete.
10198         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10199         * config/m68k/dpx2.mh (XDEPFILES): Delete.
10200         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10201         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10202         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10203         * config/m68k/linux.mh (XDEPFILES): Delete.
10204         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10205         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10206         * config/m68k/nbsd.mh (XDEPFILES): Delete.
10207         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10208         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10209         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10210         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10211         * config/m88k/delta88.mh (XDEPFILES): Delete.
10212         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10213         * config/m88k/m88k.mh (XDEPFILES): Delete.
10214         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10215         * config/mips/linux.mh (XDEPFILES): Delete.
10216         * config/mips/irix6.mh (XDEPFILES): Delete.
10217         * config/mips/irix5.mh (XDEPFILES): Delete.
10218         * config/mips/irix4.mh (XDEPFILES): Delete.
10219         * config/mips/irix3.mh (XDEPFILES): Delete.
10220         * config/mips/decstation.mh (XDEPFILES): Delete.
10221         * config/mips/mipsm3.mh (XDEPFILES): Delete.
10222         (NATDEPFILES): Move core-aout.o to here.
10223         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10224         * config/pa/hpux1020.mh (XDEPFILES): Delete.
10225         * config/pa/hppabsd.mh (XDEPFILES): Delete.
10226         * config/pa/hppahpux.mh (XDEPFILES): Delete.
10227         * config/pa/hpux11w.mh (XDEPFILES): Delete.
10228         * config/pa/hppaosf.mh (XDEPFILES): Delete.
10229         * config/pa/hpux11.mh (XDEPFILES): Delete.
10230         * config/powerpc/aix.mh (XDEPFILES): Delete.
10231         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10232         * config/powerpc/linux.mh (XDEPFILES): Delete.
10233         * config/romp/rtbsd.mh: Rename XDEPFILES.
10234         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10235         * config/rs6000/aix4.mh (XDEPFILES): Delete.
10236         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10237         * config/s390/s390.mh (XDEPFILES): Delete.
10238         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10239         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10240         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10241         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10242         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10243         * config/sparc/nbsd.mh (XDEPFILES): Delete.
10244         * config/sparc/linux.mh (XDEPFILES): Delete.
10245         * config/vax/vaxult.mh (XDEPFILES): Delete.
10246         * config/vax/vaxult2.mh (XDEPFILES): Delete.
10247         * Makefile.in (DEPFILES): Remove XDEPFILES.
10248
10249 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
10250
10251         * utils.c (internal_verror): Fix comments, default is yes not no.
10252         Update queries to match.  Default to quit and dump core.
10253
10254 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
10255
10256         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
10257         copyright.
10258         * defs.h, event-top.c, gdbcmd.h: Ditto.
10259         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10260         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10261         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10262         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10263         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10264         * mi/mi-main.c:Ditto.
10265
10266         * stack.c, symfile.c: Update copyright.
10267
10268 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
10269
10270         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10271         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10272         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10273         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10274
10275 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
10276
10277         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10278         * gdbserver/low-lynx.c (myattach): Likewise.
10279         * gdbserver/low-nbsd.c (myattach): Likewise.
10280         * gdbserver/low-sim.c (myattach): Likewise.
10281         * gdbserver/low-sparc.c (myattach): Likewise.
10282         * gdbserver/low-sun3.c (myattach): Likewise.
10283
10284         * gdbserver/low-linux.c (myattach): New function.
10285
10286         * gdbserver/server.c (attach_inferior): New function.
10287         (main): Handle "--attach".
10288
10289 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
10290
10291         * MAINTAINERS (language support): Daniel Jacobwitz is C++
10292         maintainer.
10293
10294 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
10295
10296         * c-typeprint.c (is_type_conversion_operator): Add additional
10297         check for non-conversion operators.
10298
10299 2002-01-15  Michael Snyder  <msnyder@redhat.com>
10300
10301         * linux-proc.c: Add "info proc" command, a la procfs.c.
10302         (read_mapping): New function, abstract and re-use code.
10303         (linux_find_memory_regions): Use new func read_mapping.
10304         (linux_info_proc_cmd): New function, implement "info proc".
10305         (_initialize_linux_proc): Add new command "info proc".
10306
10307 2002-01-15  Michael Snyder  <msnyder@redhat.com>
10308
10309         * symfile.c (generic_load): Use bfd_map_over_sections method
10310         instead of manipulating bfd structure members directly.
10311         (add_section_size_callback): New function, bfd sections callback
10312         used by generic_load.
10313         (load_sections_callback): New function, bfd sections callback
10314         used by generic_load.
10315
10316 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
10317
10318         [Based on work by Jim Blandy]
10319         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10320         (builtin_type_vec128): Export.
10321         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10322         types.
10323         (builtin_type_vec128): New builtin type for 128 bit vector
10324         registers.
10325         (build_gdbtypes): Initialize builtin_type_v16qi and
10326         builtin_type_v8hi. Create the vec128 register builtin type
10327         structure.
10328         (build_builtin_type_vec128): New function.
10329         (_initialize_gdbtypes): Register builtin_type_v16qi and
10330         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10331         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10332         AltiVec register to new builtin type.
10333
10334 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
10335
10336         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10337         to make_cv_type.
10338
10339 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
10340
10341         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10342         CLEAN_UP_REGISTER_VALUE.
10343         * regcache.c (supply_register): Update only call.
10344
10345 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
10346
10347         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10348         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10349         a29k-*-vxworks* targets as obsolete.
10350
10351 2002-01-14  Michael Snyder  <msnyder@redhat.com>
10352
10353         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10354         until we can resolve portability issues.
10355         * gregset.h: Remove references to fpxregs.
10356         * gcore.c (gcore_command): Initialize note_sec to NULL.
10357
10358 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10359
10360         * signals.c (target_signal_to_name): Rewrite.  Only use
10361         signals[].name when in bounds and non-NULL.
10362
10363 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10364
10365         From Petr Ledvina <ledvinap@kae.zcu.cz>:
10366         * signals.c (target_signal_to_name): Verify that SIG is within the
10367         bounds of the signals array.
10368
10369 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10370
10371         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10372
10373 2002-01-13  Keith Seitz  <keiths@redhat.com>
10374
10375         * stack.c (print_frame_info_base): Print the frame's pc
10376         only if when print_frame_info_listing_hook is not defined.
10377
10378 2002-01-13  Keith Seitz  <keiths@redhat.com>
10379
10380         * varobj.c (varobj_set_value): Make sure that there were no
10381         errors evaluating the object before attempting to set its
10382         value.
10383         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10384         so this offset adjustment is no longer necessary.
10385         (create_child): Don't set the error flag if the child is
10386         a CPLUS_FAKE_CHILD.
10387         (value_of_child): If value_fetch_lazy fails, return NULL
10388         so that callers will be notified that an error occurred.
10389         (c_value_of_variable): Delay check of variable's validity
10390         until later. We actually want all structs and unions to have
10391         the value "{...}".
10392         Do not return "???" for variables which could not be evaluated.
10393         This error condition must be returned to the caller so that it
10394         can get the error condition from gdb.
10395         (cplus_name_of_child): Adjust index for vptr before figuring
10396         out the name of the child.
10397         (cplus_value_of_child): If a child's (real) parent is not valid,
10398         don't even bother trying to give a value for it. Just return
10399         an error. Change all instances in this function.
10400         (cplus_type_of_child): If our parent is one of the "fake"
10401         parents, we need to get at the type of the real parent, and
10402         derive the child's true type using this information.
10403
10404 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10405
10406         From 2002-01-09 John Marshall <johnm@falch.net>:
10407         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10408         sources.redhat.com, and tweak some related URLs which had
10409         suffered from linkrot.
10410
10411 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10412
10413         From Jeff law:
10414         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10415         structures passed in registers.
10416
10417 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
10418
10419         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10420         white space which prevented compilation.  Reported by DSK
10421         <dsk@student.unsw.edu.au>.
10422
10423 2002-01-11  Michael Snyder  <msnyder@redhat.com>
10424
10425         * symfile.c (build_section_addr_info_from_section_tab):
10426         Use bfd access method instead of manipulating bfd directly.
10427         (syms_from_objfile): Ditto.
10428         (simple_overlay_update_1): Ditto.
10429         (simple_overlay_update): Ditto.
10430         (generic_load): Ditto.
10431         (overlay_unmapped_address): FIXME comment, bfd access methods.
10432         (sections_overlap): FIXME comment, bfd access methods.
10433         (pc_in_mapped_range): FIXME comment, bfd access methods.
10434         (pc_in_unmapped_range): FIXME comment, bfd access methods.
10435         (section_is_mapped): FIXME comment, bfd access methods.
10436         (section_is_overlay): FIXME comment, bfd access methods.
10437
10438         * symfile.c (generic_load): Whitespace and long line cleanups.
10439         Remove duplicate variable, change several local variables to
10440         more appropriate data types.
10441         (print_transfer_performance): Use %lu instead of %ld for ulongs.
10442
10443 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10444
10445         From Peter Schauer:
10446         * language.c (longest_local_hex_string_custom): Use phex_nz to
10447         convert NUM to a hex string.
10448
10449 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
10450
10451         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10452         the function.
10453         Update Copyright year.
10454
10455 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10456
10457         * language.c (longest_raw_hex_string): Delete unused function.
10458
10459 2002-01-11  Petr Sorfa  <petrs@caldera.com>
10460
10461         * MAINTAINERS (write-after-approval): Add myself.
10462         * dwarf2read.c (read_tag_string_type): Handling of
10463         DW_AT_byte_size.
10464         (read_tag_string_type): FORTRAN fix to prevent propagation of
10465         first string size.
10466         (set_cu_language): Handling of DW_LANG_Fortran95
10467
10468 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
10469
10470         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10471         GETPID(inferior_ptid).
10472         (store_inferior_registers): Likewise.
10473
10474 2002-01-10  Jason Merrill  <jason@redhat.com>
10475
10476         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10477         Fix DW_OP_minus.
10478
10479 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
10480
10481         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10482         and bfd/elf32-sh-nbsd.c.
10483
10484 2002-01-10  Michael Snyder  <msnyder@redhat.com>
10485
10486         * NEWS: Mention --pid and corefile/proc-id behavior change.
10487
10488         * Makefile.in: Add rules for gcore.o and linux-proc.o.
10489         * gcore.c: Include cli/cli-decode.h instead of command.h.
10490
10491         * main.c (captured_main): Add new command line option "--pid".
10492         If the second command line argument (following the symbol-file)
10493         begins with a digit, try to attach to it before trying to open
10494         it as a corefile.
10495         (print_gdb_help): Document the "--pid" argument.
10496
10497 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
10498
10499         * completer.c (command_completer): New function.
10500
10501         * completer.h <command_completer>: Add prototype.
10502
10503         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10504         completer for the "help" command.
10505
10506 2002-01-09  Jason Merrill  <jason@redhat.com>
10507
10508         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10509
10510 2002-01-09  Michael Snyder  <msnyder@redhat.com>
10511
10512         * i386-linux-nat.c (fill_fpxregset): Make global.
10513         (store_fpxregset): Ditto.
10514
10515         * gregset.h (gdb_fpxregset_t): Define.
10516         (supply_fpxregset): Prototype.
10517         (fill_fpxregset): Prototype.
10518
10519         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10520
10521 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10522
10523         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10524         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10525         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10526
10527 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
10528
10529         * MAINTAINERS: Update target maintainer rules so that any
10530         Maintainer can approve a tested patch for a maintenance-only
10531         target.
10532
10533 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10534
10535         * MAINTAINERS (write-after-approval): Add myself.
10536
10537         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10538         IN_SIGTRAMP.
10539
10540 2002-01-08  Michael Snyder  <msnyder@redhat.com>
10541
10542         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10543         real name of the executable, rather than the /proc name.
10544
10545 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10546
10547         Implement a "generate-core-file" command in gdb, save target state.
10548         * gcore.c: New file.  Implement new command 'generate-core-file'.
10549         Save a corefile image of the current state of the inferior.
10550         * linux-proc.c: Add linux-specific code for saving corefiles.
10551         * target.h (struct target_ops): Add new target vectors for saving
10552         corefiles; to_find_memory_regions and to_make_corefile_notes.
10553         (target_find_memory_regions): New macro.
10554         (target_make_corefile_notes): New macro.
10555         * target.c (update_current_target): Inherit new target methods.
10556         (dummy_find_memory_regions): New place-holder method.
10557         (dummy_make_corefile_notes): New place-holder method.
10558         (init_dummy_target): Initialize new dummy target vectors.
10559         * exec.c (exec_set_find_memory_regions): New function.
10560         Allow the exec_ops vector for memory regions to be taken over.
10561         (exec_make_note_section): New function, target vector method.
10562         * defs.h (exec_set_find_memory_regions): Export prototype.
10563         * procfs.c (proc_find_memory_regions): New function, corefile method.
10564         (procfs_make_note_section): New function, corefile method.
10565         (init_procfs_ops): Set new target vector pointers.
10566         (find_memory_regions_callback): New function.
10567         (procfs_do_thread_registers): New function.
10568         (procfs_corefile_thread_callback): New function.
10569         * sol-thread.c (sol_find_memory_regions): New function.
10570         (sol_make_note_section): New function.
10571         (init_sol_thread_ops): Initialize new target vectors.
10572         * inftarg.c (inftarg_set_find_memory_regions): New function.
10573         Allow to_find_memory_regions vector to be taken over.
10574         (inftarg_set_make_corefile_notes): New function.
10575         Allow to_make_corefile_notes vector to be taken over.
10576         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10577         interface layer if not target_has_execution (may be a corefile).
10578         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10579         * config/sparc/sun4sol2.mh: Ditto.
10580         * config/alpha/alpha-linux.mh: Ditto.
10581         * config/arm/linux.mh: Ditto.
10582         * config/i386/x86-64linux.mh: Ditto.
10583         * config/ia64/linux.mh: Ditto.
10584         * config/m68k/linux.mh: Ditto.
10585         * config/mips/linux.mh: Ditto.
10586         * config/powerpc/linux.mh: Ditto.
10587         * config/sparc/linux.mh: Ditto.
10588
10589 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10590
10591         * arm-linux-nat.c: Remove references to regcache.c internal data
10592         (registers[] and register_valid[]).
10593
10594 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10595
10596         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
10597         so that attaching to a pid will automatically read the process's
10598         symbol file and shlibs.
10599         * Makefile.in: Add rule for linux-proc.o.
10600         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10601         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10602         * config/arm/linux.mh: Ditto.
10603         * config/i386/linux.mh: Ditto.
10604         * config/i386/x86-64linux.mh: Ditto.
10605         * config/ia64/linux.mh: Ditto.
10606         * config/m68k/linux.mh: Ditto.
10607         * config/mips/linux.mh: Ditto.
10608         * config/powerpc/linux.mh: Ditto.
10609         * config/sparc/linux.mh: Ditto.
10610
10611 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
10612
10613         * win32-nat.c: Add i386-tdep.h dependency.
10614
10615 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10616
10617         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10618         instead of bfd_get_arch_size.  Don't bail out just because
10619         there's no exec_bfd.
10620
10621         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10622         * p-valprint.c (pascal_object_print_value): Ditto.
10623         * somread.c (som_symtab_read): Ditto.
10624         * symfile.c (simple_free_overlay_region_table): Ditto.
10625         * valops.c (value_assign): Ditto.
10626
10627         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10628         use tilde_expand and strerror for opening save-tracepoints file.
10629
10630         * thread-db.c (thread_db_new_objfile): Indendation fix.
10631
10632         * infptrace.c (GDB_MAX_ALLOCA): New define.
10633         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10634         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10635         can be overridden with whatever value is appropriate to the host).
10636         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10637         alloca to allocate potentially large buffer.
10638         * rs6000-nat.c (child_xfer_memory): Ditto.
10639         * symm-nat.c (child_xfer_memory): Ditto.
10640         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10641
10642 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
10643
10644         From Nick Clifton  <nickc@redhat.com>
10645         * d10v-tdep.c: Set STACK_START to 0x200bffe.
10646
10647 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10648
10649         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10650         Don't use exec_bfd if it's NULL.
10651
10652 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
10653
10654         * valops.c (value_arg_coerce): Fix formatting.
10655
10656 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10657
10658         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10659         * gnu-nat.c: Ditto.
10660
10661 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10662
10663         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10664         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10665         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10666         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10667         z8k-coff have not been multi-arched.  Update z8k-coff build
10668         status.
10669
10670 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10671
10672         * MAINTAINERS: Mark a29k target as obsolete.
10673         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10674         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
10675         comments.
10676         * NEWS: Note that a29k targets are obsolete.
10677         * a29k-tdep.c: Mark as obsolete.
10678         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10679         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10680         a29k-*-vxworks* targets as obsolete.
10681         * remote-adapt.c: Obsolete.
10682         * remote-eb.c: Obsolete.
10683         * remote-mm.c: Obsolete.
10684         * remote-udi.c: Obsolete.
10685         * config/a29k/a29k-udi.mt: Obsolete.
10686         * config/a29k/a29k.mt: Obsolete.
10687         * config/a29k/tm-a29k.h: Obsolete.
10688         * config/a29k/tm-vx29k.h: Obsolete.
10689         * config/a29k/vx29k.mt: Obsolete.
10690
10691 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10692
10693         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10694         with BFD_ENDIAN_BIG.
10695
10696 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10697
10698         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10699         * configure, config.in: Re-generate.
10700         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10701         * defs.h: Do not include <endian.h>.
10702
10703 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
10704
10705         * acconfig.h (HAVE_PT_GETXMMREGS): New.
10706         * config.in: Regenerate.
10707         * configure.in: Update copyright years.
10708         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10709         * configure: Regenerate.
10710         * i386bsd-nat.c: Update copyright years.
10711         (fill_gregset): Use regcache_collect.
10712         (fetch_inferior_registers): Only fetch integer registers
10713         if requested to do so.  Add support for XMM registers
10714         using PT_GETXMMREGS.
10715         (store_inferior_registers): Only store integer registers
10716         if requested to do so.  Add support for XMM registers
10717         using PT_SETXMMREGS.
10718         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10719         (store_inferior_registers): Remove.
10720         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10721         (fetch_elfcore_registers): New function.
10722         (i386nbsd_elfcore_fns): New.
10723         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10724         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10725         i386bsd-nat.o.
10726         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10727         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10728         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10729         * config/i386/tm-nbsd.h: Update copyright years.
10730         (HAVE_SSE_REGS): Define.
10731         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10732         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10733         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10734         (SIGCONTEXT_PC_OFFSET): Remove.
10735         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10736
10737 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10738
10739         * configure.tgt: Remove powerpc-*-macos* target.
10740         * config/m68k/xm-mpw.h: Delete file.
10741         * config/xm-mpw.h: Delete file.
10742         * ser-mac.c: Delete file.
10743         * mpw-make.sed: Delete file.
10744         * mpw-config.in: Delete file.
10745         * mac-xdep.c: Delete file.
10746         * mac-gdb.r: Delete file.
10747         * mac-defs.h: Delete file.
10748         * mac-nat.c: Delete file.
10749         * config/powerpc/macos.mh: Delete file.
10750         * config/powerpc/macos.mt: Delete file.
10751         * config/powerpc/nm-macos.h: Delete file.
10752         * config/powerpc/tm-macos.h: Delete file.
10753         * source.c (openp, open_source_file): Remove obsolete code.
10754         * top.c (gdb_readline): Ditto.
10755         * utils.c (query): Ditto.
10756         * event-top.c (display_gdb_prompt): Ditto.
10757         * Makefile.in (ser-mac.o): Delete obsolete target.
10758         * NEWS: Update.
10759
10760 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10761
10762         * defs.h (BIG_ENDIAN): Delete macro definition.
10763         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10764         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10765         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10766         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10767         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10768         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10769         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10770         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10771         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10772         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10773         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10774         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10775         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10776         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10777         * gdbarch.c: Re-generate.
10778
10779 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10780
10781         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10782         for core files.
10783
10784 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10785
10786         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10787
10788 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10789
10790         * value.h (value_ptr): Delete typedef.
10791
10792 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10793
10794         * i386nbsd-nat.c: Update copyright years.
10795         Include i386-tdep.h.
10796
10797 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
10798
10799         * stabsread.c: Update copyright years.
10800
10801         From Debashis Mahata <debashis.mahata@wipro.com>:
10802         (read_struct_fields): Deal with Sun C compiler erroneous stab
10803         output for structs and unions.
10804         Fix PR gdb/269.
10805
10806 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10807
10808         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10809         prototype.
10810
10811 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10812
10813         * cp-abi.c: Fix whitespace.
10814         (baseclass_offset): New wrapper function.
10815         * cp-abi.h (baseclass_offset): Add prototype.
10816         (struct cp_abi_ops): Add baseclass_offset pointer.
10817
10818         * valops.c (vb_match): Move to...
10819         * gnu-v2-abi.c (vb_match): here.
10820         * valops.c (baseclass_offset): Move to...
10821         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10822
10823         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10824
10825         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10826         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10827         * hpacc-abi.c (init_hpacc_ops): Likewise.
10828
10829 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10830
10831         * valops.c (find_overload_match): Accept obj as a
10832         reference parameter.  Update it before returning.
10833         * value.h (find_overload_match): Update prototype.
10834         * eval.c (evaluate_subexp_standard): Pass object to
10835         find_overload_match by reference.
10836
10837 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
10838
10839         * valarith.c: Replace value_ptr with struct value pointer.  Remove
10840         register attribute from value declarations.
10841         * valops.c: Ditto.
10842         * value.h: Ditto.
10843         * scm-lang.c (scm_lookup_name): Ditto.
10844
10845 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10846
10847         Abstract the functionality of iterating over mapped memory
10848         regions into a general purpose iterator function.
10849         * procfs.c (iterate_over_mappings): New function, general purpose
10850         iterator for memory sections.
10851         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10852         (solib_mappings_callback): New function, callback for above.
10853         (info_proc_mappings): Reimpliment using iterate_over_mappings.
10854         (info_mappings_callback): New function, callback for above.
10855
10856         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10857
10858 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
10859
10860         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10861         * i386-tdep.c: Include "elf-bfd.h".
10862         (process_note_abi_tag_sections): New function.
10863         (i386_gdbarch_init): Add code to recognize various OS/ABI
10864         combinations.
10865
10866         * maint.c (_initialize_maint_cmds): Add missing \ in
10867         string-literal.
10868
10869 For older changes see ChangeLog-2001
10870 \f
10871 Local Variables:
10872 mode: change-log
10873 left-margin: 8
10874 fill-column: 74
10875 version-control: never
10876 End: