* config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2
3         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4         here from ...
5         * config/i386/tm-i386sco5.h: ... here.  File removed.
6         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
7
8         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
9         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
10         (TM_FILE): Set to tm-i386.h.
11         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
12         * config/i386/tm-i386v.h: Remove file.
13         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
14         instead of "i386/tm-i386v.h".
15         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
16         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
17         "i386/tm-i386v.h".
18         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
19         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
20         "i386/tm-i386.h".
21
22 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
23
24         * config/i386/nm-i386v.h: Add protection against
25         multiple-inclusion.
26         (i386_register_u_addr): Remove prototype.
27         (register_u_addr): New prototype.
28         (REGISTER_U_ADDR): Redefine accordingly.
29         * i386v-nat.c: Improve several comments.
30         (i386_register_u_addr): Change signature and rename to
31         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
32         ubase variable.
33
34 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
35
36         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
37         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
38         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
39         deprecated_extract_return_value.
40         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
41         rename mips_o32o64_push_arguments.
42         (mips_gdbarch_init): Update.
43         (mips_extract_return_value): Delete.
44         (mips_o32_extract_return_value): Clone mips_extract_return_value.
45         (mips_o64_extract_return_value): Clone mips_extract_return_value.
46         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
47         (mips_n32n64_extract_return_value): Clone
48         mips_extract_return_value.
49         (mips_store_return_value): Delete.
50         (mips_o32_store_return_value): Clone mips_store_return_value.
51         (mips_o64_store_return_value): Clone mips_store_return_value.
52         (mips_eabi_store_return_value): Clone mips_store_return_value.
53         (mips_n32n64_store_return_value): Clone mips_store_return_value.
54
55 2002-08-18  Aidan Skinner <aidan@velvet.net>
56
57         * ada-lang.c: Use gdb_string.h instead of <string.h>.
58         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
59                 
60 2002-08-18  Aidan Skinner <aidan@velvet.net>
61
62         * ada-lang.c: Run through gdb_indent.sh.
63         * ada-lang.h: Run through gdb_indent.sh.
64         * ada-tasks.c: Run through gdb_indent.sh.
65         * ada-typeprint.c: Run through gdb_indent.sh.
66         * ada-valprint.c: Run through gdb_indent.sh.
67
68 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
69
70         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
71         ABI.
72
73 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
74
75         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
76
77         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
78         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
79
80         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
81         write_register_gen instead of write_register_bytes.
82
83         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
84         i[3456]-*-osf1mk* configurations have been made obsolete.
85         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
86         i[3456]86-*-osf1mk* hosts obsolete.
87         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
88         targets obsolete.
89         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
90         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
91         config/i386/i386m3.mt, config/i386/nm-m3.h,
92         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
93         config/i386/i386mk.mh, config/i386/i386mk.mt,
94         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
95         obsolete.
96         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
97         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
98         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
99
100 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
101
102         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
103         (hppa_value_returned_from_stack): Declare.
104         (hppa_extract_return_value): Declare.
105         * config/pa/hppa.mt: New file.
106         * configure.tgt: Recognize hppa*-*-*.
107         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
108
109 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
110
111         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
112         comment.
113
114 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
115
116         * top.c (gdb_rl_operate_and_get_next): Make sure
117         operate-and-get-next functions correctly even when the history
118         list is completely filled.
119
120 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
121
122         * MAINTAINERS (Target Instruction Set Architectures): Rename
123         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
124         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
125         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
126         already listed under Host/Native.
127
128         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
129         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
130         mips*-*-*.
131
132 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
133
134         * config/ia64/ia64.mt: New file.
135         * config/alpha/alpha.mt: New file.
136         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
137         ia64-linux-gnu.  Mention that ia64-elf is broken.
138         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
139
140 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
141
142         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
143         generic_func_frame_valid instead of func_frame_valid.
144
145 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
146
147         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
148         procfs appears to be broken when debugging on multi-processor
149         machines. So enable software single stepping in order to avoid
150         using the procfs interface to do next/step operations, using
151         internal breakpoints instead.
152
153         * infrun.c (handle_inferior_event): Readjust the stop_pc by
154         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
155         make this pc address equal to the value it would have if the
156         system stepping capability was used. Also set a new flag used
157         to ensure that we don't readjust the PC one more time later.
158
159         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
160         address by DECR_PC_AFTER_BREAK when software single step is
161         in use for this architecture, as this has already been taken
162         care of in handle_inferior_event().
163
164 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
165
166         * infrun.c (handle_inferior_event): Minor reformatting, to make
167         a rather long condition expression easier to read.
168
169 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
170
171         * Makefile.in (gdbtk.o): Move to end of file.
172         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
173         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
174         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
175         (gdbtk-wrapper.o, gdbres.o): Ditto.
176
177 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
178
179         * Makefile.in (copying.o): Separate out compile rule.
180         (hpux-thread.o, procfs.o, signals.o): Ditto.
181         (v850ice.o, z8k-tdep.o): Ditto.
182         (tui-file.o): Move to TUI section.
183         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
184         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
185
186 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
187
188         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
189         skip_trampoline_code, for better namespace-proofing.   
190
191         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
192
193 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
194
195         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
196
197 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
198
199         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
200         signal, check whether we hit a breakpoint before checking for a
201         single step breakpoint. Otherwise, GDB fails to notice that a
202         breakpoint has been hit when stepping onto a breakpoint.
203
204 2002-08-16  Keith Seitz  <keiths@redhat.com>
205
206         * gdb-events.sh (clear_gdb_event_hooks): New function.
207         * gdb-events.c: Regenerate.
208         * gdb-events.h: Regenerate.
209
210 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
211
212         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
213         not_a_sw_breakpoint.
214         * breakpoint.h (bpstat_stop_status): Add parameter names.
215
216 2002-08-16  Grace Sainsbury  <graces@redhat.com>
217
218         * remote.c (remote_insert_hw_breakpoint)
219         (remote_remove_hw_breakpoint): Fix calculation of length field
220         for Z-packet.
221
222 2002-08-15  Michael Snyder  <msnyder@redhat.com>
223
224         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
225         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
226         (supply_fpregset): Ditto.
227         
228         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
229         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
230         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
231         (TARGET_READ_SP): Delete.
232         (DO_REGISTERS_INFO): Delete.
233         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
234         Delete.
235         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
236         from macros to functions.
237
238         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
239         (mips_register_convertible, mips_register_convert_to_virtual,
240         mips_register_convert_to_raw): Make static.
241         (mips_read_sp): New function.
242         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
243         (mips_do_registers_info): Make static.
244         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
245         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
246         (mips_register_convert_from_type, mips_register_convert_to_type):
247         New functions.
248         (mips_gdbarch_init): Set up function_start_offset, 
249         register_virtual_size, pc_in_sigtramp.
250
251 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
252
253         * infcmd.c (vector_info): New function.
254         (_initialize_infcmd): Add command "info vector".
255         (print_vector_info): New function.
256
257         * gdbarch.sh (PRINT_VECTOR_INFO): New method
258         * gdbarch.h, gdbarch.c: Regenerate.
259
260 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
261
262         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
263         ``print_all''.  Only print vector registers when ``print_all''.
264
265 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
266
267         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
268         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
269
270         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
271         Add `args' parameter.
272         * gdbarch.h, gdbarch.c: Regenerate.
273         
274         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
275         
276         * infcmd.c (float_info): Call print_float_info.
277         (print_float_info): New function.  By default, print the
278         floating-point registers.
279
280         * arch-utils.h (default_print_float_info): Delete declaration.
281         * arch-utils.c (default_print_float_info): Delete function.
282         
283 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
284
285         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
286         out define.
287
288         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
289         FRAME.
290
291         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
292         * configure.host: Make i[3456]86-*-aix host obsolete.
293         * configure.tgt: Make i[3456]86-*-aix target obsolete.
294         * config/i386/i386aix.mh, config/i386/i386aix.mt,
295         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
296         config/i386/xm-i386aix.h: Make files obsolete.
297         * i386aix-nat.c: Make file obsolete.
298         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
299         (i386aix-nat.o): Make target obsolete.
300
301         * config/i386/nm-gnu.h: Removed.
302         * config/i386/nm-i386gnu.h: New file.
303         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
304         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
305         Moved here from ...
306         * config/i386/tm-i386gnu.h: ... here.  Removed.
307         * config/i386/xm-i386gnu.h: Removed.
308         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
309         (NAT_FILE): Set to nm-i386gnu.h.
310         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
311         * i386-tdep.c: New file.
312         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
313         (i386gnu-tdep.o): Specify dependencies.
314
315 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
316
317         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
318         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
319         Adjust a few comments to reflect reality a bit closer.
320         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
321         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
322         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
323         target_insert_watchpoint, target_remove_watchpoint):
324         Move defines to ...
325         * config/i386/nm-i386sco5.h: ... here.
326         (kernel_u_size): Add prototype.  Improve a few comments and add
327         protection against multiple inclusion.
328         
329         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
330         out define.
331
332         * uw-thread.c (SP_ARG0): Define if not already defined.
333         * config/i386/tm-i386.h (SO_ARG0): Remove define.
334
335         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
336
337         * config/i386/tm-i386.h: Don't include "regcache.h".
338
339         * i387-tdep.h (i387_print_float_info): New prototype.
340         * i387-tdep.c (print_i387_value, print_i387_ext,
341         print_i387_status_word, print_i387_control_word): Add `struct
342         ui_file *' argument and use it for output.
343         (i387_print_float_info): Renamed from i387_float_info.  Add
344         `struct gdbarch *' and `struct ui_file *' arguments and use the
345         latter for output.
346         * i386-tdep.c: Include "i387-tdep.h".
347         (i386_gdbarch_init): Set print_float_info.
348         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
349         (FLOAT_INFO): Remove define.
350
351 2002-08-13  Michael Snyder  <msnyder@redhat.com>
352
353         * mips-tdep.c (mips_push_arguments): Rename to
354         mips_eabi_push_arguments, and tune for EABI.
355         (MIPS_REGS_HAVE_HOME_P): Delete.
356         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
357         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
358         Delete references to mips_regs_have_home_p.
359
360 2002-08-14  Keith Seitz  <keiths@redhat.com>
361
362         * Makefile.in (install-gdbtk): Create insight plugin directory.
363         Install plugins.tcl file.
364
365 2002-08-14  Keith Seitz  <keiths@redhat.com>
366
367         * configure.in: Move SUBDIRS to near top of the file so that
368         --enable options may add things to it.
369         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
370         * configure: Regenerate.
371
372 2002-08-13  Michael Snyder  <msnyder@redhat.com>
373
374         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
375         cloned from mips_push_arguments, tuned for o32/o64 ABI.
376         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
377
378 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
379
380         * vax-tdep.c (vax_get_saved_register): Delete function.
381         (vax_gdbarch_init): Update.
382         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
383         (ns32k_gdbarch_init): Update.
384         * alpha-tdep.c (alpha_get_saved_register): Delete function.
385         (alpha_gdbarch_init): Update.
386
387 2002-08-13  Andrew Cagney  <cagney@redhat.com>
388
389         * regcache.c (init_regcache_descr): Overallocate the
390         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
391         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
392         nr_raw_registers.
393         (set_register_cached): Add range checking assertions.  Use
394         current_regcache.
395
396 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
397
398         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
399         numbers for MMX registers.
400
401 2002-08-13  Andrew Cagney  <cagney@redhat.com>
402
403         * i386-tdep.c (i386_gdbarch_init): Use
404         generic_unwind_get_saved_register.
405
406 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
407
408         * procfs.c (procfs_can_use_hw_breakpoint): New function.
409         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
410         target vector.
411         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
412         Delete.  Add comment regarding this now-deleted target method.
413
414 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
415
416         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
417         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
418         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
419         real PC and the page number (if it's within the memory bank window).
420         (m68hc11_pseudo_register_write): Likewise when saving.
421         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
422         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
423         (m68hc11_register_raw_size): And use 32-bit for it.
424         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
425         16K memory bank is used by the prog; also use the virtual pc.
426
427 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
428
429         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
430         (m68hc11_gdbarch_init): Install it in gdbarch.
431         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
432         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
433         (MSYMBOL_SIZE): New for documentation.
434         (insn_return_kind): Enum to specify how a function returns.
435         (frame_extra_info): Cleanup and record the return mode.
436         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
437         register in address computation.
438         (m68hc11_get_return_insn): New to obtain the return instruction used
439         by the function.
440         (m68hc11_frame_init_saved_regs): Take into account the return
441         instruction used by the function for far and interrupt functions.
442         (m68hc11_init_extra_frame_info): Take into account page register.
443         (m68hc11_frame_args_address): Adjust according to the return mode.
444         (show_regs): Print page register only when it's used.
445
446 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
447
448         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
449         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
450         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
451         registers.
452         (m68hc11_register_raw_size): Likewise.
453
454 2002-08-13  Andrew Cagney  <cagney@redhat.com>
455
456         * i386-tdep.c (i386_register_name): Handle mmx registers.
457         (mmx_regnum_p): New function.
458         (i386_mmx_names): New array.
459         (mmx_num_regs): New variable.
460         (i386_pseudo_register_read): New function.
461         (i386_pseudo_register_write): New function.
462         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
463
464         * regcache.c (regcache_raw_read_unsigned): New function.
465         (regcache_raw_read_signed): New function.
466         * regcache.h (regcache_raw_read_unsigned): Declare.
467         (regcache_raw_read_signed): Declare.
468
469 2002-08-13  Andrew Cagney  <cagney@redhat.com>
470
471         * regcache.c (regcache_raw_read_as_address): Delete function.
472         (regcache_cooked_read_signed): New function.
473         (regcache_cooked_read_unsigned): New function.
474         * regcache.h (regcache_cooked_read_signed): Declare.
475         (regcache_cooked_read_unsigned): Declare.
476         (regcache_raw_read_as_address): Delete declaration.
477
478         * blockframe.c (generic_read_register_dummy): Use
479         regcache_cooked_read_unsigned.
480         * i386-tdep.c (i386_extract_struct_value_address): Use
481         regcache_cooked_read_unsigned.
482
483 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
484
485         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
486         double sizes according to ELF ABI flags.
487         (gdbarch_tdep): Record elf_flags.
488
489 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
490
491         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
492         (m6812_prolog): They can appear in 68HC12 function prologue.
493         (m68hc11_frame_chain): Cleanup.
494
495 2002-08-12  Andrew Cagney  <cagney@redhat.com>
496
497         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
498         declarations.
499         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
500         (i386_linux_register_raw_size): Delete function.
501         (i386_linux_init_abi): Update.
502         * i386-tdep.c (i386_register_raw_size): Delete function.
503         (i386_register_byte): Delete function.
504         (i386_gdbarch_init): Update.
505         (i386_register_size): Delete array.
506         (i386_register_offset): Delete array.
507
508         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
509         (REGISTER_RAW_SIZE): Delete macro.
510         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
511         (REGISTER_BYTE): Delete macro.
512
513 2002-08-11  Aidan Skinner <aidan@velvet.net>
514
515         * ada-lang.c (ada_lookup_partial_symbol)
516         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
517         prototype names so that grep ^func works properly.
518
519         * ada-lang.c (ada_array_element_type)
520         (ada_lookup_partial_symbol): Fix typos in parameter list.
521
522         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
523         Fix prototype names so that grep ^func works properly.
524         
525 2002-08-10  Andrew Cagney  <cagney@redhat.com>
526             Elena Zannoni  <ezannoni@redhat.com>
527             Martin M. Hunt  <hunt@redhat.com>
528
529         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
530         (build_builtin_type_vec128i): Set the vector bit.
531         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
532         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
533         (build_builtin_type_vec64): New function.
534         (build_builtin_type_vec64i): New function.
535         (build_gdbtypes): Initialize builtin_type_vec64 and
536         builtin_type_vec64i.
537
538 2002-08-09  Andrew Cagney  <cagney@redhat.com>
539
540         * regcache.c (regcache_dump): Compare the register offset
541         with REGISTER_BYTE.
542         * arch-utils.c (generic_register_byte): New function.
543         * arch-utils.h (generic_register_byte): Declare.
544         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
545         * gdbarch.h, gdbarch.c: Regenerate.
546
547 2002-08-09  Andrew Cagney  <cagney@redhat.com>
548
549         * regcache.c: Include "gdbcmd.h"
550         (_initialize_regcache): Add commands "maintenance print
551         registers", "maintenance print raw-registers" and "maintenance
552         print cooked-registers".
553         (enum regcache_dump_what): Define.
554         (dump_endian_bytes): New function.
555         (regcache_dump): New function.
556         (regcache_print): New function.
557         (maintenance_print_registers): New function.
558         (maintenance_print_raw_registers): New function.
559         (maintenance_print_cooked_registers): New function.
560         * Makefile.in (regcache.o): Update dependencies.
561
562 2002-08-09  Michael Snyder  <msnyder@redhat.com>
563
564         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
565         (mips_push_arguments): Correct some comments.  Use paddr_nz
566         for printing addresses in debug output.  Replace static
567         allocation using MAX_REGISTER_RAW_SIZE with alloca.
568         (mips_n32n64_push_arguments): New function, cloned from
569         mips_push_arguments and tuned for the n32/n64 ABI.
570         (mips_push_register): Buffer needs dynamic allocation.
571         (mips_print_register): Ditto.
572         (do_gp_register_row): Ditto.
573         (mips_store_return_value): Ditto.
574         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
575
576 2002-08-09  Don Howard  <dhoward@redhat.com>
577
578         * memattr.c (mem_info_command): Print special case of upper bound
579         as max CORE_ADDR + 1.
580
581 2002-08-08  Michael Snyder  <msnyder@redhat.com>
582
583         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
584         returns structs by ref if they're too big to fit in two registers.
585
586 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
587
588         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
589         saved regs value.
590         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
591         mips_find_saved_regs().
592         (mips_pop_frame): Likewise.
593
594 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
595
596         * blockframe.c (frame_saved_regs_register_unwind): Revise
597         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
598         frames are in use.
599
600 2002-08-09  Grace Sainsbury  <graces@redhat.com>
601         
602         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
603         T-packets; the 'a' is not taken as a register number.
604         (remote_check_watch_resources, remote_stopped_by_watchpoint)
605         (remote_stopped_data_address): New functions; add to target
606         vector.
607         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
608         prototypes to match other implementations of this
609         function. replace integer argument with pointer -- the length
610         field in the Z-packet is the length of what is pointed to or 1 if
611         pointer is null. Add to target vector.
612         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
613         target vector.
614
615         From Mark Salter:
616         * remote.c (remote_wait): Add support to extract optional
617         watchpoint information from T-packet. Ignore unrecognized
618         optional info in T-packet.
619         (remote_async_wait): Ditto.
620
621 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
622
623         * cli/cli-dump.c: Change fopen modes to use binary open modes
624         as defined in include/fopen-bin.h throughout.
625
626 2002-08-08  Michael Snyder  <msnyder@redhat.com>
627
628         * mips-tdep.c: Minor whitespace and indentation clean-ups.
629
630 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
631
632         * doublest.c (store_floating): Avoid floatformat_from_doublest()
633         assertion failure by returning early after a warning.
634
635 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
636
637         * mips-tdep.c (mips_find_saved_regs): Make static.
638         (mips_frame_init_saved_regs): New function.
639         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
640         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
641         (mips_find_saved_regs): Delete declaration.
642
643 2002-08-08  Grace Sainsbury  <graces@redhat.com>
644
645         * remote.c (remote_wait, remote_async_wait): Change
646         thread_num from int to ULONGEST.
647         (unpack_varlen_hex): Change result parameter from
648         int * to ULONGEST *.
649
650 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
651
652         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
653         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
654         powerpc*-*-*.
655         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
656
657 2002-08-08  Andrew Cagney  <cagney@redhat.com>
658
659         * gcore.c (override_derive_stack_segment): Delete variable.
660         (preempt_derive_stack_segment): Delete function.
661         (derive_stack_segment): Delete function.
662         (default_derive_stack_segment): Renamed to derive_stack_segment.
663         (override_derive_heap_segment): Delete variable.
664         (preempt_derive_heap_segment): Delete function.
665         (derive_heap_segment): Delete function.
666         (default_derive_heap_segment): Rename to derive_heap_segment.
667
668 2002-08-06  Michael Snyder  <msnyder@redhat.com>
669
670         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
671         * mips-tdep.c (mips_EABI_use_struct_convention, 
672         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
673         New functions.  (mips_use_struct_convention): Delete.
674         (mips_gdbarch_init): set use_gdbarch_convention.
675
676 2002-08-06  Michael Snyder  <msnyder@redhat.com>
677
678         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
679         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
680         mips_o32_reg_struct_has_addr): New functions.
681         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
682
683 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
684
685         * regcache.c (pseudo_register): Delete function.
686         (fetch_register): Delete function.
687         (store_register): Delete function.
688         (regcache_raw_read, legacy_read_register_gen): Use
689         target_fetch_registers instead of fetch_register.
690         (legacy_write_register_gen, regcache_raw_write): Use
691         target_store_register instead of store_register.
692         (write_register_bytes): Ditto.
693
694         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
695         (STORE_PSEUDO_REGISTER): Delete.
696         * gdbarch.h, gdbarch.c: Regenerate.
697
698 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
699
700         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
701         write dump file binary.
702
703 2002-08-05  Michael Snyder  <msnyder@redhat.com>
704
705         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
706         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
707         (mips_gdbarch_init): Set N32 target to be mips64.
708
709 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
710
711         * frame.c (find_saved_register): Break out of loop once saved
712         register address is found.  Don't mention sparc in loop comment
713         anymore.
714
715 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
716
717         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
718         mips_default_saved_regsize to 8.
719
720 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
721
722         * gcore.c: Do not include <sys/procfs.h>.
723         * Makefile.in (gcore.o): Update dependencies.
724
725 2002-08-06  Andrew Cagney  <cagney@redhat.com>
726
727         * configure.tgt: Make arc-*-* obsolete.
728         * NEWS: Mention that arc-*-* has been identifed as obsolete.
729         * MAINTAINERS: Make arc-elf obsolete.
730         * arc-tdep.c: Make file obsolete.
731         * config/arc/arc.mt: Ditto.
732         * config/arc/tm-arc.h: Ditto.
733
734 2002-08-05  Theodore A. Roth  <troth@verinet.com>
735
736         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
737
738 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
739
740         * mcore-tdep.c (mcore_gdbarch_init): Use
741         generic_unwind_get_saved_register instead of
742         generic_get_saved_register.
743         * v850-tdep.c (v850_gdbarch_init): Ditto.
744         * frv-tdep.c (frv_gdbarch_init): Ditto.
745         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
746         * s390-tdep.c (s390_gdbarch_init): Ditto.
747         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
748         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
749         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
750
751 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
752
753         * objfiles.h: Add missing #include "symfile.h"
754
755         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
756
757 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
758
759         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
760         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
761         of FIELD_BITSIZE.
762
763 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
764
765         * NEWS: Cleanup and nitpick.
766
767 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
768
769         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
770
771 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
772
773         * Makefile.in (gdbtk-bp.o): Update dependencies.
774         (gdbtk-register.o): Ditto.
775         (gdbtk-varobj.o): Ditto.
776
777 2002-08-03  Andrew Cagney  <cagney@redhat.com>
778
779         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
780         m68hc11_fetch_pseudo_register.
781         (m68hc11_pseudo_register_write): Replace
782         m68hc11_store_pseudo_register.
783         (m68hc11_gdbarch_init): Update.
784
785 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
786
787         * gdbarch.sh: Include "gdb_string.h".
788         * gdbarch.c: Regenerate.
789
790         * regcache.c: Include "gdb_string.h".
791         * ax-general.c: Ditto.
792         * varobj.c: Ditto.
793         * std-regs.c: Ditto.
794         * fbsd-proc.c: Ditto.
795         * thread.c: Ditto.
796
797         * Makefile.in (regcache.o): Update dependencies.
798         (thread.o, gdbarch.o): Ditto.
799         (ax-general.o, gdbarch.o): Ditto.
800         (varobj.o, std-regs.o): Ditto.
801         (fbsd-proc.o): Specify dependencies.
802
803 2002-08-02  Andrew Cagney  <cagney@redhat.com>
804
805         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
806         regnum.
807         (regcache_cooked_write): Ditto.
808
809 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
810
811         * regcache.c (regcache_cooked_read): New function.
812         (regcache_cooked_write): New function.
813         (read_register_gen): Rewrite using regcache_cooked_read.
814         (write_register_gen): Rewrite using regcache_cooked_write.
815
816         * regcache.h (regcache_cooked_read, regcache_cooked_write):
817         Declare.
818
819 2002-08-02  Andrew Cagney  <cagney@redhat.com>
820
821         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
822         Replace the architecture methods register_read and register_write.
823         * gdbarch.h, gdbarch.c: Regenerate.
824         * regcache.c (init_regcache_descr): Update.
825         (read_register_gen): Update.
826         (write_register_gen): Update.
827         (supply_register): Update comment.
828
829         * sh-tdep.c (sh_gdbarch_init): Update.
830         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
831         `regcache' and `gdbarch' parameters.  Make `buffer' a void
832         pointer.  Update code.
833         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
834         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
835         void pointer.  Update code.
836         (sh64_register_write): Delete.
837         (sh4_register_read): Delete.
838         (sh64_register_read): Delete.
839         (sh4_register_write): Delete.
840         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
841         void pointer, `to' parameter a void pointer.
842         (sh_sh64_register_convert_to_raw): Ditto.
843
844 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
845
846         * mips-tdep.c (mips_register_virtual_type): Use architecture
847         invariant return values.
848
849 2002-08-01  Andrew Cagney  <cagney@redhat.com>
850
851         * linux-proc.c: Include "gdb_string.h".
852         * Makefile.in (linux-proc.o): Update dependency list.
853
854 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
855
856         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
857         comment.
858
859 2002-08-01  Grace Sainsbury  <graces@redhat.com>
860
861         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
862         to_insert_watchpoint, to_remove_watchpoint,
863         to_stopped_by_watchpoint, to_stopped_data_address,
864         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
865         target vecctor. Define their corresponding macros so they call
866         them.
867         
868         * target.c: Add default and debug versions of for
869         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
870         to_insert_watchpoint, to_remove_watchpoint,
871         to_stopped_by_watchpoint, to_stopped_data_address,
872         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
873
874 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
875
876         * mips-tdep.c (mips_register_virtual_type): New function.
877         (mips_gdbarch_init): Register mips_register_virtual_type()
878         with gdbarch machinery.
879         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
880         this file instead of tm-bigmips.h.
881         (MIPS_REGSIZE): Delete this macro.
882         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
883         multiarch version in mips-tdep.c will be found.
884
885 2002-08-01  Andrew Cagney  <cagney@redhat.com>
886
887         * NEWS: Menion that CHILL has been made obsolete.
888
889         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
890         * gdbserver/Makefile.in: Ditto.
891         * stabsread.c (read_range_type): Ditto.
892         * gdbtypes.h: Ditto.
893         * language.c (binop_type_check): Ditto.
894         (binop_result_type): Ditto.
895         (integral_type): Ditto.
896         (character_type): Ditto.
897         (string_type): Ditto.
898         (boolean_type): Ditto.
899         (structured_type): Ditto.
900         (lang_bool_type): Ditto.
901         (binop_type_check): Ditto.
902         * language.h (_LANG_chill): Ditto.
903         * dwarfread.c (set_cu_language): Ditto.
904         * dwarfread.c (CHILL_PRODUCER): Ditto.
905         * dwarfread.c (handle_producer): Ditto.
906         * expression.h (enum exp_opcode): Ditto.
907         * eval.c: Ditto for comments.
908         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
909         * expprint.c (print_subexp): Ditto.
910         (print_subexp): Ditto.
911         * valops.c (value_cast): Ditto.
912         (search_struct_field): Ditto.
913         * value.h (COERCE_VARYING_ARRAY): Ditto.
914         * symfile.c (init_filename_language_table): Ditto.
915         (add_psymbol_with_dem_name_to_list): Ditto.
916         * valarith.c (value_binop): Ditto.
917         (value_neg): Ditto.
918         * valops.c (value_slice): Ditto.
919         * symtab.h (union language_specific): Ditto.
920         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
921         (SYMBOL_DEMANGLED_NAME): Ditto.
922         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
923         * defs.h (enum language): Ditto.
924         * symtab.c (got_symtab): Ditto.
925         * utils.c (fprintf_symbol_filtered): Ditto.
926
927         * ch-typeprint.c: Make file obsolete.
928         * ch-valprint.c: Make file obsolete.
929         * ch-lang.h: Make file obsolete.
930         * ch-exp.c: Make file obsolete.
931         * ch-lang.c: Make file obsolete.
932
933         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
934         CHILL_LIB.
935         (TARGET_FLAGS_TO_PASS): Ditto.
936         (CHILLFLAGS): Obsolete.
937         (CHILL): Obsolete.
938         (CHILL_FOR_TARGET): Obsolete.
939         (CHILL_LIB): Obsolete.
940         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
941         ch-valprint.c.
942         (HFILES_NO_SRCDIR): Remove ch-lang.h.
943         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
944         ch-lang.o.
945         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
946         targets.
947
948 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
949
950         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
951         This does not change anything at the moment, but will be helpful
952         later when full Ada support is integrated.
953
954 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
955
956         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
957         help message.
958
959 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
960
961         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
962         and save it in a local variable.  Use variable in later test.
963
964 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
965
966         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
967         test.  (Thanks to Daniel Jacobowitz.)
968         
969 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
970
971         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
972         (mips_abi_strings): Add "n64".
973         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
974
975 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
976
977         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
978         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
979
980 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
981
982         * utils.c (host_pointer_to_address, address_to_host_pointer):
983         Use gdb_assert() instead of explicit call to internal_error().
984
985 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
986
987         * Makefile.in (rs6000-nat.o): Update dependencies.
988
989         From Nicholas Duffek:
990         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
991         (aix-thread.o): New rule.
992         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
993         * config/powerpc/aix432.mh: New file.
994
995 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
996
997         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
998         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
999         (fetch_core_registers, ppc_linux_supply_gregset)
1000         (ppc_linux_supply_fpregset): New functions.
1001         (ppc_linux_regset_core_fns): New.
1002         (_initialize_ppc_linux_tdep): Call add_core_fns.
1003         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1004         and ppc_linux_supply_gregset.
1005         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1006         (supply_fpregset): Call ppc_linux_supply_fpregset.
1007         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1008         corelow.o.
1009         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1010
1011 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1012
1013         * symtab.c (lookup_symbol): Demangle before lowercasing.
1014
1015 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
1016
1017         * symtab.h: Replace #include "gdb_obstack.h" with opaque
1018         declaration.
1019         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1020         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1021         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1022         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1023         "gdb_string.h".
1024         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1025         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1026         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1027         (avr-tdep.o, mon960-rom.o): Ditto.
1028         (aout_stabs_gnu_h): Define.
1029         (symtab_h): Remove $(gdb_obstack_h).
1030
1031 2002-07-30  Jim Blandy  <jimb@redhat.com>
1032
1033         Patch from David Carlton <carlton@math.stanford.edu>:
1034         * gdbinit.in: Move the `dir' commands that add GDB's own source
1035         directory to the search path to the end, so that the `gdb' source
1036         directory will be searched first.
1037
1038 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1039
1040         * gdb_obstack.h: New file.
1041         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1042         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1043         * objfiles.h: Include "gdb_obstack.h".
1044         * Makefile.in (gdb_obstack_h): Define.
1045         (symtab_h): Add $(gdb_obstack_h).
1046         (objfiles_h): Add $(gdb_obstack_h).
1047         
1048         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1049         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1050         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1051         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1052         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1053         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1054         * symfile.c, coffread.c, c-typeprint.c: Ditto.
1055         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1056
1057         * Makefile.in (bcache.o): Update dependencies.
1058         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1059         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1060         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1061         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1062         (stabsread.o, symfile.o, symmisc.o): Ditto.
1063         (symtab.o, typeprint.o, macroexp.o): Ditto.
1064         (macrotab.o, mdebugread.o): Ditto.
1065         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1066         (coff_ecoff_h, aout_aout64_h): Define.
1067         (aout_stabs_gnu_h, libaout_h): Define.
1068
1069 2002-07-29  Andrew Cagney  <cagney@redhat.com>
1070
1071         * regcache.c (struct regcache_descr): Rename nr_registers to
1072         nr_cooked_registers.  Revise comments describing the structure
1073         member fields.
1074         (init_regcache_descr): Update.
1075         (init_legacy_regcache_descr): Update.
1076         (read_register_gen, write_register_gen): When a cooked register in
1077         the raw register range, directly access the value from the raw
1078         register cache.
1079
1080 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1081
1082         * z8k-tdep.c: Do not include "obstack.h".
1083         * h8300-tdep.c, h8500-tdep.c: Ditto.
1084         * m68hc11-tdep.c, sh-tdep.c: Ditto.
1085         * valprint.c, v850-tdep.c: Ditto.
1086         * d10v-tdep.c, mn10300-tdep.c: Ditto.
1087         * mn10200-tdep.c: Ditto.
1088
1089         * Makefile.in (z8k-tdep.o): Update dependencies.
1090         (m68hc11-tdep.o, valprint.o): Ditto.
1091         (v850-tdep.o, d10v-tdep.o): Ditto.
1092         (mn10300-tdep.o, sparc-tdep.o): Ditto.
1093         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1094         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1095         (sh_opc_h, gdb_sim_sh_h): Define.
1096         (elf_sh_h, elf_bfd_h): Define.
1097         (opcode_m68hc11_h): Define.
1098         (OPCODES_SRC, OPCODES_DIR): define.
1099         (OPCODES): Use $(OPCODES_DIR).
1100         (gdb_sim_d10v_h): Rename sim_d10v_h.
1101         (gdb_sim_arm_h): Rename sim_arm_h.
1102
1103 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1104
1105         * utils.c (host_pointer_to_address, address_to_host_pointer):
1106         Change internal_error() message to indicate function responsible
1107         for the error.
1108
1109 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1110
1111         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1112         calls to local_hex_string_custom().
1113
1114 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1115
1116         * irix5-nat.c: Move IRIX shared library support from here...
1117         * solib-irix.c: ...to here.  Revised substantially to work with
1118         generic solib framework.
1119
1120         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1121         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1122         * mips-irix-tdep.c: New file.
1123
1124         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1125         (mips-irix-tdep.o, solib-irix.o): New rules.
1126         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1127         solib-irix.o.
1128         * config/mips/irix6.mt (TDEPFILES): Likewise.
1129         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1130
1131 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1132
1133         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1134         disabled (via ``#if 0'') includes.
1135
1136 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1137
1138         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1139         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1140         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1141         Add support for the fpscr register.
1142         * rs6000-nat.c (regmap, fetch_inferior_registers)
1143         (store_inferior_registers, fetch_core_registers): Likewise.
1144
1145 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1146
1147         * rs6000-nat.c (language.h): Include.
1148         (special_regs): Delete this array.
1149         (regmap): New function.
1150         (fetch_register, store_register):  Use regmap() to map gdb
1151         register numbers to ptrace register numbers.  Also, use
1152         outputs from regmap() to make decisions regarding type of
1153         ptrace() call to make.  In particular, don't compare against
1154         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1155         (fetch_inferior_registers, store_inferior_registers): Where
1156         possible, obtain register numbers from tdep struct.  Don't
1157         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1158         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1159         (LAST_UISA_SP_REGNUM): Delete.
1160         
1161 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
1162
1163         * rs6000-nat.c (ppc-tdep.h): Include.
1164         (fetch_registers, store_register, fetch_core_registers): Don't
1165         access registers[] directly.  Instead, use supply_register() or
1166         regcache_collect() as appropriate.
1167         (find_toc_address): Format hex address with local_hex_string().
1168
1169 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
1170
1171         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1172         bfd/elf32-frv.c.
1173
1174 2002-07-24  Tom Tromey  <tromey@redhat.com>
1175
1176         * jv-exp.y: Marked all strings with _().
1177         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1178         internal_error.
1179         (MethodInvocation, CastExpression, parse_number, yyerror,
1180         java_type_from_name, push_expression_name, yylex): Typo fixes.
1181
1182 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
1183
1184         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1185         (tee_file_flush, tee_file_write, tee_file_fputs)
1186         (tee_file_isatty): New.
1187         * ui-file.h (tee_file_new): Add prototype.
1188
1189 2002-07-24  Aidan Skinner <aidan@velvet.net>
1190
1191         * ada-lang.c: Change k&r style function definitions to prototyped
1192         form.
1193         * ada-typeprint.c: Change k&r style function definitions to prototyped
1194         form.
1195         * ada-valprint.c: Change k&r style function definitions to prototyped
1196         form.
1197         
1198 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1199
1200         * README: Remove reference to remote-bug.
1201         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1202         remote-bug.c.
1203         (m88k-nat.o): Delete rule.
1204         (m88k-tdep.o): Delete rule.
1205         (remote-bug.o): Delete rule.
1206         * MAINTAINERS: Mark as obsolete.
1207         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1208         * m88k-tdep.c: Make file obsolete.
1209         * config/m88k/m88k.mh: Ditto.
1210         * config/m88k/delta88v4.mh: Ditto.
1211         * config/m88k/delta88v4.mt: Ditto.
1212         * config/m88k/delta88.mt: Ditto.
1213         * config/m88k/delta88.mh: Ditto.
1214         * remote-bug.c: Ditto.
1215         * config/m88k/tm-delta88.h: Ditto.
1216         * config/m88k/nm-delta88v4.h: Ditto.
1217         * config/m88k/xm-delta88.h: Ditto.
1218         * config/m88k/xm-dgux.h: Ditto.
1219         * config/m88k/tm-m88k.h: Ditto.
1220         * config/m88k/nm-m88k.h: Ditto.
1221         * config/m88k/tm-delta88v4.h: Ditto.
1222         * m88k-nat.c: Ditto.
1223         * cxux-nat.c: Ditto.
1224         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1225         and m88*-*-* obsolete.
1226         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1227         m88*-*-* obsolete.
1228
1229 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1230
1231         * findvar.c (extract_unsigned_integer): Make `addr' parameter
1232         constant.  Same for local pointer variables.
1233         (extract_signed_integer): Ditto.
1234         * defs.h (extract_unsigned_integer): Update.
1235         (extract_signed_integer): Update.
1236
1237 2002-07-24  Kevin Buettner  <kevinb@redhat.com>
1238
1239         * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1240         * gdbserver/configure: Regenerate.
1241         * gdbserver/config.in: Regenerate.
1242
1243 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1244
1245         * regcache.c (regcache_raw_write): Change buf parameter to a
1246         constant void pointer.
1247         (regcache_raw_read): Change buf parameter to a void pointer.
1248         (legacy_write_register_gen): Change myaddr parameter a constant
1249         void pointer.
1250         (supply_register): Change val parameter to a const void pointer.
1251         * regcache.h (regcache_raw_write): Update declaration.
1252         (regcache_raw_read): Update declaration.
1253         (supply_register): Update declaration.
1254
1255 2002-07-24  Tom Tromey  <tromey@redhat.com>
1256
1257         * defs.h (gdb_readline_wrapper): Declare.
1258         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1259         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1260         * top.c (gdb_readline_wrapper): New function.
1261         (command_line_input): Use it.
1262
1263 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1264
1265         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1266         regcache_read and regcache_write.
1267         (regcache_raw_read_as_address): Replace regcache_read_as_address.
1268         * regcache.c: Update.
1269         * sh-tdep.c (sh64_push_arguments): Update comment.
1270         (sh_pseudo_register_read): Update.
1271         (sh_pseudo_register_write): Update.
1272         (sh4_register_read): Update.
1273         (sh4_register_write): Update.
1274         (sh64_pseudo_register_read): Update.
1275         (sh64_pseudo_register_write): Update.
1276         (sh64_register_read): Update.
1277         (sh64_register_write): Update.
1278         * i386-tdep.c (i386_extract_return_value): Update.
1279         (i386_extract_struct_value_address): Update.
1280         (i386_extract_return_value): Update.
1281         * blockframe.c (generic_read_register_dummy): Update.
1282         (generic_call_dummy_register_unwind): Update
1283         * infrun.c (write_inferior_status_register): Update.
1284
1285 2002-07-23  Jim Blandy  <jimb@redhat.com>
1286
1287         * parser-defs.h (expression_context_pc): Make this extern.
1288         (Thanks to Michael Snyder.)
1289
1290 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
1291
1292         GDB 5.2.1 released from 5.2 branch.
1293         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1294         * README: Update to mention 5.2.1.
1295
1296 2002-07-23  Mark Salter  <msalter@redhat.com>
1297
1298         * remote.c (remote_read_bytes): Fix check for error.
1299
1300 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1301
1302         * aix-thread.c (language.h): Include.
1303         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1304         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1305         Print newlines at end of debug messages.
1306         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1307         (pdc_write_data): Use local_hex_string() instead of %llx formats.
1308
1309 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1310
1311         * aix-thread.c (ppc-tdep.h): Include.
1312         (special_register_p): New function.
1313         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1314         (store_regs_user_thread): Use register number information from
1315         gdbarch_tdep struct instead of hardcoded offsets relative to
1316         FIRST_UISA_SP_REGNUM.
1317         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
1318         special_register_p() instead of using FPLAST_REGNUM and
1319         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1320         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
1321         will be MQ's register number.
1322
1323 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1324
1325         * aix-thread.c (ops): Rename to aix_thread_ops.
1326         (base_ops): Rename to base_target.
1327         (ops_attach): Rename to aix_thread_attach.
1328         (ops_detach): Rename to aix_thread_detach.
1329         (ops_resume): Rename to aix_thread_detach.
1330         (ops_wait):   Rename to aix_thread_wait.
1331         (ops_kill):   Rename to aix_thread_kill.
1332         (init_ops):   Rename to init_aix_thread_ops.
1333         (ops_fetch_register): Rename to aix_thread_fetch_register.
1334         (ops_store_register): Rename to aix_thread_store_register.
1335         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1336         (ops_thread_alive):   Rename to aix_thread_thread_alive.
1337         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1338         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
1339         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1340         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
1341         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1342         (store_regs_lib):  Rename to store_regs_user_thread.
1343         (store_regs_kern): Rename to store_regs_kernel_thread.
1344
1345 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1346
1347         * aix-thread.c (ops_prepare_to_store): Eliminate.
1348         (init_ops): Don't initialize ops.prepare_to_store.
1349         (store_regs_kern): Pre-fetch register buffers from child, 
1350         because some registers may not be in the cache.  Copy
1351         regs from register cache only if they are cached.
1352         (store_regs_lib): Copy regs from register cache only
1353         if they are cached.
1354         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1355         fill_gprs64): Ditto.
1356
1357 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1358
1359         * aix-thread.c (gdb_assert.h): Include.
1360         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1361         register sizes (from register cache) match size of buffer holding
1362         register data.
1363         (fill_sprs32): Change parameter types to match those in the ptrace()
1364         buffer.
1365         (store_regs_lib): Likewise, but for 32-bit temporary variables.
1366         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1367
1368 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1369
1370         * aix-thread.c (supply_sprs64): Cosmetic change.
1371         (supply_sprs32): Cosmetic change.
1372         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1373         (fill_sprs64): Use regcache_collect instead of read_register.
1374         (store_regs_lib): Use regcache_collect instead of 
1375         read_register.  Use fill_sprs32 instead of fill_sprs64,
1376         if debugging a 32-bit architecture.
1377         (store_regs_kern): Use fill_gprs64 etc. to pull the values
1378         out of the register cache, instead of passing a pointer into
1379         the register cache directly to ptrace.  Use regcache_collect
1380         insteaad of read_register.
1381         (ops_prepare_to_store): Use target_read_registers instead
1382         of read_register_bytes.
1383
1384 2002-07-20  Aidan Skinner <aidan@velvet.net>
1385
1386         * MAINTAINERS: Add self under write after approval. 
1387                 
1388 2002-07-20  Aidan Skinner <aidan@velvet.net>
1389
1390         * ada-tasks.c: Change k&r style function definitions to prototyped
1391         form.
1392                 
1393 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
1394
1395         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1396         * x86-64-tdep.c: Include "objfiles.h".
1397         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1398         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1399
1400 2002-07-17  Michal Ludvig  <michal@suse.cz>
1401
1402         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1403         (update_context): Initialise cfa variable.
1404
1405 2002-07-17  Michael Snyder  <msnyder@redhat.com>
1406
1407         * aix-thread.c: Shorten some long lines.  
1408         Bring comments into line with code spec.
1409
1410 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
1411
1412         * infrun.c: Re-indent using gdb_indent.sh.
1413
1414 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
1415
1416         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1417         Leave the indentation temporarily untouched, to minimize the diffs.
1418
1419 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
1420
1421         * stabsread.c: Make os9k sections of the code obsolete,
1422         for real this time.
1423         * stabsread.h: Make os9k sections of the code obsolete.
1424
1425 2002-07-18  Michal Ludvig <mludvig@suse.cz>
1426
1427         * linux-low.c (regsets_store_inferior_registers): Add free()
1428         at the end of a loop to prevent memory leak.
1429         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1430         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1431         * config/sparc/tm-sp64linux.h: Make the rest of #endif
1432         line a comment.
1433         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1434
1435 2002-07-17  Jim Blandy  <jimb@redhat.com>
1436
1437         * macrocmd.c (info_macro_command): Remove newline from error
1438         message.
1439
1440 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
1441
1442         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1443         (sh_gdbarch_init): Use it for sh-dsp.
1444
1445 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
1446
1447         * dwarf2read.c (read_initial_length): Handle older, non-standard,
1448         64-bit DWARF2 format.
1449
1450 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
1451
1452         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1453         <sys/proc.h> when not available.
1454
1455 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
1456
1457         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1458         * stabsread.c: Make os9k sections of the code obsolete.
1459         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1460         * config/i386/i386os9k.mt: Make file obsolete.
1461         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1462         (COMMON_OBS): Remove os9kread.o
1463         (SFILES): Remove os9kread.c.
1464         (os9kread.o, remote-os9k.o): Make target obsolete.
1465         * remote-os9k.c: Make file obsolete.
1466         * os9kread.c: Make file obsolete.
1467         * Makefile.in
1468
1469 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
1470
1471         * NEWS: Mention that the FR30 has been made obsolete.
1472         * fr30-tdep.c: Make file obsolete.
1473         * config/fr30/tm-fr30.h: Ditto.
1474         * config/fr30/fr30.mt: Ditto.
1475         * configure.tgt: Make fr30-*-elf obsolete.
1476         * MAINTAINERS: Make fr30-elf obsolete.
1477
1478 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
1479
1480         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1481         found is not inside a section.
1482
1483 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
1484
1485         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1486         strerror().
1487         (pdc_realloc): Use xrealloc() instead of realloc().
1488
1489 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
1490
1491         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1492         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1493         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1494         macros.
1495
1496 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
1497
1498         * aix-thread.c (ptrace_check): Eliminate goto.
1499         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
1500         problem.
1501
1502 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
1503
1504         * aix-thread.c (gdbcmd.h): Include.
1505         (DEBUG, DBG, DBG2, dbg): Eliminate.
1506         (debug_aix_thread): New static global.
1507         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1508         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1509         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1510         invocations to DBG and DBG2 macros to test against
1511         ``debug_aix_thread'' and call fprintf_unfiltered().
1512         (_initialize_aix_thread): Add new command "set debug aix-thread".
1513
1514 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
1515
1516         From Gerhard Tonn <TON@de.ibm.com>:
1517         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1518         instead of supply_register.
1519
1520 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
1521
1522         * dwarf2cfi.c: Include "gdb_assert.h".
1523         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1524         non-NULL.
1525         (update_context): Do not use __func__.  Add missing ``break''.
1526         (update_context): Do not use __func__.
1527
1528 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
1529
1530         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1531         and its setting.  Set gdbarch instruction printing functions
1532         directly.  For non-rs6000 case use new function
1533         gdb_print_insn_powerpc.
1534         (gdb_print_insn_powerpc): New function.
1535
1536 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
1537
1538         * NEWS: Mention that the d30v has been marked obsolete.
1539         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1540         * configure.tgt: Mark d30v-*-* as obsolete.
1541         * d30v-tdep.c: Mark file as obsolete.
1542         * config/d30v/d30v.mt: Ditto.
1543         * config/d30v/tm-d30v.h: Ditto.
1544
1545 2002-07-13  Aidan Skinner <aidan@velvet.net>
1546
1547         * ada-tasks.c (add_task_entry): replace calls to
1548         malloc() with xmalloc
1549         * ada-tasks.c (init_task_list): replace calls to free with xfree()
1550         
1551         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1552         ada_finish_decode_line_1, all_sals_for_line
1553         ada_breakpoint_rewrite): replace calls to free() with xfree()
1554                 
1555 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
1556
1557         From Nicholas Duffek (with minor changes by Martin Hunt, 
1558         Louis Hamilton, and Kevin Buettner):
1559         * aix-thread.c: New file.
1560
1561 2002-07-12  Petr Sorfa <petrs@caldera.com>
1562
1563         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
1564         complaint for invalid attribute class or form.
1565         (read_func_scope): DW_AT_frame_base
1566         better handling of DW_AT_block*.
1567         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1568         better handling of DW_AT_block*.
1569         (read_common_block): DW_AT_location
1570         better handling of DW_AT_block*.
1571         (read_partial_die): DW_AT_location better handling
1572         of DW_AT_block*.
1573         (new_symbol): DW_AT_external better handling of
1574         DW_AT_block*. Proper initialization of variable
1575         "addr".
1576         (attr_form_is_block): New function that returns true
1577         if the attribute's form is of DW_FORM_block*.
1578
1579 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1580
1581         * valops.c (find_method_list): Remove comment about
1582         removed STATIC_MEMFUNCP argument.
1583         (value_find_oload_method_list): Likewise.
1584
1585 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
1586
1587         From Nicholas Duffek:
1588         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1589         target_new_objfile_hook.
1590
1591 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
1592
1593         From Nicholas Duffek:
1594         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1595         csect.
1596
1597 2002-07-12  Andrew Cagney  <cagney@redhat.com>
1598
1599         * MAINTAINERS: Mention --enable-sim-build-warnings.
1600         (m68hc11-elf): Disable sim build warnings.
1601         (m32r-elf): Mark as broken obsolete candidate.
1602         (x86_64-linux-gnu): Mark as buildable with -Werror.
1603         (arm-elf): Change -w to ``,'' which enables warnings but not
1604         -Werror.
1605
1606 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
1607
1608         * bcache.h: Update copyright.
1609         (struct bstring, struct bcache): Move definition to "bcache.c".
1610         Replaced by opaque declaration.
1611         (bcache_xfree): Replace free_bcache.
1612         (bcache_xmalloc, bcache_memory_used): Declare.
1613         
1614         * bcache.c: Update copyright.
1615         (struct bstring, struct bcache): Moved to here from "bcache.h".
1616         Update comments.
1617         (bcache_xmalloc, bcache_memory_used): New functions.
1618         (bcache_xfree): Replace function free_bcache.
1619         
1620         * Makefile.in (objfiles.o): Add $(bcache_h).
1621         (objfiles_h): Remove $(bcache_h).
1622         (symfile.o): Add $(bcache_h).
1623
1624         * symmisc.c: Update copyright.
1625         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1626         (print_objfile_statistics): Use bcache_memory_used.
1627
1628         * symfile.c: Include "bcache.h".
1629         (reread_symbols): Use bcache_xfree.
1630         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1631         (add_psymbol_to_list): Pass psymbol_cache by value.
1632         (add_psymbol_with_dem_name_to_list): Ditto.
1633
1634         * objfiles.h: Update copyright.
1635         (struct bcache): Declare opaque.  Do not include "bcache.h".
1636         (struct objfile): Change psymbol_cache and macro_cache to ``struct
1637         bcache'' pointers.
1638         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1639
1640         * objfiles.c: Include "bcache.h".  Update copyright.
1641         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1642         macro_cache.
1643         (free_objfile): Use bcache_xfree.
1644
1645 2002-07-11  Grace Sainsbury  <graces@redhat.com>
1646
1647         * monitor.c (monitor_fetch_register): Make name a constant.
1648         (monitor_store_register): Same.
1649
1650 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
1651
1652         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1653         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1654         (finish_block) For non-function blocks, hash the symbol table.  For
1655         function blocks, mark the symbol table as unhashed.
1656         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1657         (msymbol_hash_iw): Likewise.
1658         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1659         value.
1660         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1661         (lookup_minimal_symbol): Likewise for both.
1662         * symtab.h (struct block): Add `hashtable' flag.  Comment the
1663         hashtable.
1664         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1665         (ALL_BLOCK_SYMBOLS): Update.
1666         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1667         (struct symbol): Add `hash_next' pointer.
1668         * symtab.c (lookup_block_symbol): Search using the hash table when
1669         possible.
1670         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1671         (search_symbols, find_addr_symbol): Likewise.
1672
1673         * dstread.c (process_dst_block): Clear hashtable bit for new block.
1674         (read_dst_symtab): Likewise.
1675         * jv-lang.c (get_java_class_symtab): Likewise.
1676         * mdebugread.c: Include "gdb_assert.h".
1677         (shrink_block): Assert that the block being modified is not hashed.
1678         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1679         * symmisc.c (free_symtab_block): Walk the hash table when freeing
1680         symbols.
1681         (dump_symtab): Recognize hashed blocks.
1682         * printcmd.c (print_frame_args):  Assert that function blocks do not
1683         have hashed symbol tables.
1684         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1685         (fill_in_ada_prototype, debug_print_block): Likewise.
1686         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
1687
1688 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
1689
1690         * stack.c (print_frame): Use result of frame_address_in_block()
1691         instead of fi->pc when evaluating symbols.
1692         (backtrace_command_1): Ditto.
1693
1694 2002-07-11  Andrew Cagney  <cagney@redhat.com>
1695
1696         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1697         Make static.
1698
1699         * arm-tdep.c (arm_register_name): Make return type constant.
1700
1701 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
1702
1703         * win32-nat.c (has_detach_ability): Convert to strict ISO C
1704         prototype.
1705         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1706         * s390-tdep.c (s390_fp_regnum): Ditto.
1707         (s390_read_fp): Ditto.
1708         (s390_pop_frame): Ditto.
1709         (_initialize_s390_tdep): Ditto.
1710         * remote.c (get_remote_state): Ditto.
1711         * procfs.c (mappingflags): Ditto.
1712         * memattr.c (_initialize_mem): Ditto.
1713         * mcore-tdep.c (mcore_pop_frame): Ditto.
1714         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1715         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1716         * language.c (set_case_str): Ditto.
1717         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1718         * frv-tdep.c (new_variant): Ditto.
1719         (frv_stopped_data_address): Ditto.
1720         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1721         (context_alloc): Ditto.
1722         (frame_state_alloc): Ditto.
1723         (unwind_tmp_obstack_init): Ditto.
1724         (unwind_tmp_obstack_free): Ditto.
1725         (cfi_read_fp): Ditto.
1726         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1727         (cris_pop_frame): Ditto.
1728         * c-lang.c (scanning_macro_expansion): Ditto.
1729         (finished_macro_expansion): Ditto.
1730         (c_preprocess_and_parse): Ditto.
1731         * gdbarch.sh: Ditto.
1732         * gdbarch.h, gdbarch.c: Regenerate.
1733         * config/mn10200/tm-mn10200.h: Adjust indentation.
1734         * target.c: Adjust indentation.
1735         * symtab.h: Adjust indentation.
1736         * stabsread.h: Adjust indentation.
1737         * remote-es.c: Adjust indentation.
1738         * os9kread.c: Adjust indentation.
1739
1740 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
1741         
1742         * wince.c (_initialize_wince): Rename _initialize_inftarg.
1743         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1744
1745 2002-07-10  Grace Sainsbury  <graces@redhat.com>
1746         
1747         * NEWS: Mention m68k, mcore multi-arching.  
1748         * MAINTAINERS: Change status of m68k, mcore to reflect
1749         multi-arching.
1750
1751 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
1752
1753         * valops.c (find_overload_match): Free oload_syms.
1754
1755 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
1756
1757         Define HAVE_SYS_PROC_H if sys/proc.h exists
1758         * configure.in: Add check for sys/proc.h
1759         * config.in: Regenerate.
1760         * configure: Regenerate.
1761
1762 2002-07-09  Grace Sainsbury  <graces@redhat.com>
1763
1764         * config/m68k/tm-m68k.h: Remove macros wrapped in 
1765         #if !GDB_MULTI_ARCH. 
1766
1767 2002-07-09  David O'Brien  <obrien@FreeBSD.org>
1768
1769         * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1770         (perror_with_name, remote_close, remote_open, expect, play): Static.
1771
1772 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
1773
1774         * config.in, configure: Regenerate.
1775
1776 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
1777
1778         * dwarf2cfi.c: Include "gcore.h".
1779         (execute_stack_op): Fix implementation of the
1780         DW_OP_deref and DW_OP_deref_size operators by letting do their
1781         lookup in the target.
1782
1783 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
1784
1785         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1786         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1787         tdep->sc_sp_offset.
1788
1789 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
1790
1791         Fix PR gdb/595, gdb/602
1792         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1793         Don't call value_cast, just read the vtable pointer; update comments
1794         to match.
1795
1796 2002-07-05  Grace Sainsbury  <graces@redhat.com>
1797
1798         * config/mcore/tm-mcore.h: Remove file.
1799         * config/mcore/mcore.mt: Remove definition of TM_FILE
1800         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1801
1802 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
1803
1804         * i386bsd-tdep.c: Include "gdb_string.h".
1805
1806 2002-07-04  Grace Sainsbury  <graces@redhat.com>
1807
1808         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1809         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1810         mcore-tdep.
1811         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1812         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1813         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1814         (RETVAL_REGNUM): Move macros from tm-mcore.h
1815         (mcore_reg_struct_has_addr): New function.
1816         (mcore_gdbarch_init): Added initializations for the macros removed
1817         from tm-mcore.h.
1818
1819 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
1820
1821         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1822         traditonal string branding within the ELF header.
1823
1824 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
1825
1826         * symtab.c (remove_params): New function.
1827         (make_symbol_overload_list): Use it instead of cplus_demangle.
1828         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
1829
1830 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
1831
1832         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1833
1834         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1835         New variables.
1836         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1837         and tdep->sigtramp_end.
1838         * i386obsd-nat.c: New file.
1839         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1840
1841         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1842         Don't call get_current_frame().
1843
1844 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
1845
1846         * i386-nat.c (child_post_startup_inferior): New function
1847         calling i386_cleanup_dregs if
1848         I386_USE_GENERIC_WATCHPOINTS is defined.
1849         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1850         conditional to acknowledge that i386-nat.c has its
1851         own child_post_startup_inferior function.
1852
1853 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
1854
1855         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1856         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1857         instead of MAX_REGISTER_RAW_SIZE.
1858         (i386_extract_return_value, i386_extract_struct_value_address):
1859         Convert to use regcache.
1860         (i386_gdbarch_init): Set max_register_raw_size and
1861         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1862         Set extract_return_value and extract_struct_value_address instead
1863         of their deprecated variants.
1864
1865         Convert i386 target to generic dummy frames.
1866         * i386-tdep.c: Include "symfile.h".
1867         (i386_frameless_signal_p): Consider a function to be frameless if
1868         the pc points at the first instruction of the function.
1869         (i386_frame_chain): Handle (generic) call dummies.
1870         (i386_frame_saved_pc): Likewise.
1871         (i386_frame_init_saved_regs): Remove code dealing with call
1872         dummies on the stack.
1873         (i386_push_dummy_frame): Removed.
1874         (i386_call_dummy_words): Removed.
1875         (i386_fix_call_dummy): Removed.
1876         (i386_push_return_address): New function.
1877         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
1878         parameter, and don't call get_current_frame.
1879         (i386_pop_frame): New function.
1880         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1881         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1882         entry_point_address, set call_dummy_breakpoint_offset to 0, set
1883         call_dummy_length to 0, set call_dummy_words to NULL, set
1884         sizeof_call_dummy_words to 0, set fix_call_dummy to
1885         generic_fix_call_dummy, set pc_in_call_dummy to
1886         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1887         generic_push_dummy_frame, set push_return_address to
1888         i386_push_return_address and set frame_chain_valid to
1889         generic_file_frame_chain_valid.
1890
1891 2002-07-04  Michal Ludvig  <mludvig@suse.cz>
1892
1893         * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of 
1894         byte offsets instead of an array of indexes.
1895         (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1896
1897 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
1898
1899         * gdbarch.sh (struct regcache): Add opaque declaration.
1900         (EXTRACT_RETURN_VALUE): New architecture method.
1901         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1902         * gdbarch.h, gdbarch.c: Regenerate.
1903         * arch-utils.c (legacy_extract_return_value): New function.
1904         * arch-utils.h (legacy_extract_return_value): Declare.
1905         * values.c (value_being_returned): Re-enable code handling
1906         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
1907         deprecated_grub_regcache_for_registers call to block handling
1908         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1909         (EXTRACT_RETURN_VALUE): Do not define.
1910
1911 2002-07-03  Grace Sainsbury  <graces@redhat.com>
1912
1913         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1914         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1915         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1916         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1917         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1918         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1919         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1920         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1921         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1922         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1923         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1924         argument so the function fits the prototype in the architecture
1925         vector.
1926         (mcore_pop_frame): Remove argument so the function fits the
1927         prototype. Use get_current_frame instead of the argument.
1928         (mcore_push_arguments): Change type of struct_return so the
1929         function can be used in the architecture vector.
1930         (mcore_store_struct_return): Add.
1931         (mcore_frame_init_saved_regs): Add.
1932         (mcore_gdbarch_init): Add function calls to replace the macros
1933         removed from tm-mcore.h
1934
1935 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
1936
1937         * infcmd.c (print_return_value): Remove compatibility code calling
1938         deprecated_grub_regcache_for_registers.
1939         
1940         * values.c: Include "regcache.h".
1941         (value_being_returned): Update.  Use
1942         deprecated_grub_regcache_for_registers to extract the register
1943         buffer address.  
1944         * value.h (value_being_returned): Change ``retbuf'' parameter to a
1945         ``struct regcache''.
1946         * Makefile.in (values.o): Add dependency on $(regcache_h).
1947
1948         * inferior.h (run_stack_dummy): Change type of second parameter to
1949         a ``struct regcache''.
1950         * valops.c (hand_function_call): Change type of retbuf to ``struct
1951         regcache''.  Allocate using regcache_xmalloc, clean using
1952         make_cleanup_regcache_xfree.
1953         * infcmd.c (run_stack_dummy): Update.  Use
1954         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1955
1956         * regcache.c (do_regcache_xfree): New function.
1957         (make_cleanup_regcache_xfree): New function.
1958         * regcache.h (make_cleanup_regcache_xfree): Declare.
1959
1960 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
1961
1962         * event-top.c (command_line_handler): Don't read past
1963         beginning of buffer.
1964
1965 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
1966         
1967         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
1968         struct frame_id. 
1969         (varobj_create): Store frame_id for root.
1970         (varobj_gen_name): Use xasprintf.
1971         (varobj_update): Save and restore frame using get_frame_id() and
1972         frame_find_by_id().
1973         (create_child): Use xasprintf.
1974         (new_root_variable): Initialize frame_id.
1975         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1976         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1977         to prevent memory leak.
1978
1979 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
1980
1981         * valops.c (hand_function_call): Move declaration of retbuf to
1982         start of function, allocate using malloc, add a cleanup but before
1983         the inf_status cleanup, cleanup the buffer.  Rename local variable
1984         old_chain to inf_status_cleanup.
1985
1986 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
1987
1988         * top.c (execute_command): Use cmd_func() and cmd_func_p().
1989
1990         * cli/cli-decode.c (cmd_func_p): New function.
1991         (cmd_func): New function.
1992
1993         * command.h: Add cmd_func() and cmd_func_p().   
1994         
1995 2002-07-03  Grace Sainsbury  <graces@redhat.com>
1996
1997         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1998         (REGISTER_SIZE): Remove.
1999         (MAX_REGISTER_RAW_SIZE): Remove.
2000         (REGISTER_VIRTUAL_TYPE): Remove.
2001         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2002         (REGISTER_NAME): Remove.
2003         (USE_GENERIC_DUMMY_FRAMES): Remove.
2004         (CALL_DUMMY): Remove.
2005         (CALL_DUMMY_START_OFFSET): Remove.
2006         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2007         (CALL_DUMMY_LOCATION): Remove.
2008         (FIX_CALL_DUMMY): Remove.
2009         (CALL_DUMMY_ADDRESS): Remove.
2010         (SIZEOF_CALL_DUMMY_WORDS): Remove.
2011         (SAVE_DUMMY_FRAME_TOS): Remove.
2012         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2013         (mcore_register_virtual_type): New function.
2014         (mcore_register_byte): New function.
2015         (mcore_register_size): New function.
2016         (mcore_register_name): New function.
2017         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2018         macros removed from tm-mcore.h.
2019         (mcore_dump_tdep): Add.
2020         (_initialize_mcore_tdep): Add gdbarch_register call.
2021
2022 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
2023
2024         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2025         frameless_look_for_prologue, such that we actually call this
2026         function.
2027
2028 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2029
2030         * frame.h (frame_address_in_block): New function.
2031
2032         * blockframe.c (frame_address_in_block): New function extracted
2033         from get_frame_block().
2034         (get_frame_block): Use frame_address_in_block().
2035         (block_innermost_frame): Use frame_address_in_block() to match
2036         the frame pc address against the block boundaries rather than
2037         the frame pc directly. This prevents a failure when a frame pc
2038         is actually a return-address pointing immediately after the end
2039         of the given block. 
2040
2041 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2042
2043         * MAINTAINERS: Add self under write after approval. 
2044
2045 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2046
2047         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2048         used in architecture vector. The default is
2049         m68k_local_breakpoint_from_pc.
2050         (m68k_local_breakpoint_from_pc): Add.
2051         (enum): Add register numbers from tm-m68k.h.
2052         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2053         vector.  
2054         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2055         GDB_MULTI_ARCH_PARTIAL.
2056         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2057         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2058         m68k-tdep.c.
2059         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2060         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2061         to enum in m68k-tdep.c
2062
2063 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2064
2065         * solib-osf.c (open_map): Compute the list of shared libraries
2066         loaded by the inferior, rather than the list of libraries loaded
2067         by GDB itself.  Otherwise, GDB ends up reading the symbols from
2068         the wrong shared libraries...
2069
2070 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
2071
2072         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2073         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2074         macros.
2075         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2076         Remove functions.
2077         (FRAMELESS_SIGNAL): Remove function.
2078         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2079         i386_linux_saved_pc_after_call): Removed.
2080         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2081         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
2082         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2083
2084         * i386-tdep.c (i386_frameless_signal_p): New function.
2085         (i386_frame_chain): Deal with frameless signals.
2086         (i386_sigtramp_saved_sp): New function.
2087         (i386_frame_saved_pc): Deal with frameless signals.
2088         (i386_saved_pc_after_call): Make sure the correct value is
2089         returned just after entry into a sigtramp.
2090         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2091         i386fbsd4_sc_sp_offset): New variables.
2092         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2093         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
2094         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2095         similiar to what we already did for sc_pc_offset.
2096         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2097         tdep->sc_sp_offset.
2098
2099         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2100
2101 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
2102
2103         * config/i386/tm-x86-64linux.h: New.
2104         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2105         definitions.
2106         * config/i386/nm-x86-64.h: Rename to ...
2107         * config/i386/nm-x86-64linux.h: ... this one.
2108         * config/i386/x86-64linux.mh: Reflect the above change.
2109         
2110 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
2111
2112         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2113         with sigcontext_addr.  Add sc_sp_offset.
2114         (i386bsd_sigtramp_saved_pc): Remove prototype.
2115         (i386bsd_sicontext_addr): Add prototype.
2116         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2117         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2118         (i386_svr4_sigtramp_saved_pc): Removed.
2119         (i386_svr4_sigcontext_addr): New function.
2120         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2121         Initialize tdep->sigcontext_addr instead.  Initialize
2122         tdep->sc_pc_offset and tdep->sc_sp_offset.
2123         (i386_gdbarch_init): Likewise.
2124         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2125         any more.
2126         (i386bsd_sigtramp_saved_pc): Remove function.
2127         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2128         Initialize tdep->sigcontext_addr instead.  Initialize
2129         tdep->sc_pc_offset.
2130         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2131         of tdep->sigtramp_saved_pc.
2132         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2133         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
2134         instead.
2135
2136         * i386-tdep.c (i386_frameless_function_invocation,
2137         i386_frame_num_args, i386_frame_init_saved_regs,
2138         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2139         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2140         i386_extract_return_value, i386_store_return_value,
2141         i386_extract_struct_value_address, i386_register_virtual_type,
2142         i386_register_convertible, i386_register_convert_to_virtual,
2143         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2144         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2145         static.
2146
2147 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
2148
2149         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2150
2151         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2152         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2153         this macro.  Include "value.h".
2154
2155 2002-06-30  Aidan Skinner  <aidan@velvet.net>
2156
2157         * ada-exp.tab.c: remove as it's a generated file
2158         * ada-lex.c: remove as it's a generated file
2159                 
2160 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
2161
2162         * config/i386/tm-i386.h (struct frame_info, struct
2163         frame_saved_regs, struct value, struct type): Remove forward
2164         declarations.
2165
2166         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2167         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2168         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2169         (FILL_FPXREGSET): Define.
2170
2171         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2172
2173         * configure.tgt (i[3456]86-*-openbsd*): Fold into
2174         i[3456]86-*-netbsd* case.
2175         * config/i386/tm-obsd.h: Removed.
2176         * config/i386/obsd.mt: Removed.
2177         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2178         core-aout.o.
2179         (MH_CFLAGS): Add -DYYDEBUG=0.
2180
2181         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2182         i386nbsd_sc_pc_offset on OpenBSD too.
2183
2184         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2185         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2186         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2187         define.
2188         * i386bsd-tdep.c: Include "arch-utils.h".
2189         (i386bsd_aout_in_solib_call_trampoline): New function.
2190         (i386bsd_init_abi): Set in_solib_call_trampoline to
2191         i386bsd_aout_in_solib_call_trampoline.
2192         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2193         in_solib_call_trampoline to generic_in_solib_call_trampoline.
2194
2195 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2196
2197         * macrotab.h: Do not include "obstack.h" or "bcache.h".
2198         (struct obstack, struct bcache): Add opaque declarations.
2199         * Makefile.in (macrotab_h): Update
2200
2201 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2202
2203         * blockframe.c (generic_find_dummy_frame): Change return type to
2204         ``struct regcache''.
2205         (struct dummy_frame): Replace field ``registers'' with regcache, a
2206         struct regcache object.
2207         (generic_find_dummy_frame): Update.
2208         (generic_push_dummy_frame): Update.  Use regcache_xfree,
2209         regcache_xmalloc and regcache_cpy.
2210         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
2211         regcache_xfree.
2212         (deprecated_generic_find_dummy_frame): Update.
2213         (generic_read_register_dummy): Update.  Use
2214         regcache_read_as_address.
2215         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
2216         (generic_get_saved_register): Update.  Use regcache_read.
2217
2218 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2219
2220         * Makefile.in (objfiles_h): Add $(bcache_h).
2221         * objfiles.h: Include "bcache.h".
2222
2223         * Makefile.in (symtab_h): Remove $(bcache_h).
2224         * symtab.h: Do not include "bcache.h".
2225
2226 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2227
2228         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2229         generic_func_frame_chain_valid.
2230
2231 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
2232
2233         * config/i386/nm-fbsd.h: Include <sys/param.h>.
2234         * config/i386/tm-fbsd.h: Likewise.
2235
2236 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2237
2238         * rs6000-tdep.c (rs6000_gdbarch_init): Use
2239         generic_unwind_get_saved_register.
2240
2241 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
2242
2243         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2244         * regcache.c (supply_register): Add missing argument to
2245         register_buffer call.
2246
2247 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
2248
2249         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
2250         Solaris /bin/grep does not not like it.  From Peter Schauer.
2251
2252 2002-06-26  Tom Tromey  <tromey@redhat.com>
2253
2254         * command.h (add_setshow_cmd): Declare.
2255         (add_setshow_cmd_full): Declare.
2256         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
2257         returns void.  Use add_setshow_cmd_full.
2258         (add_setshow_cmd_full): New function.
2259         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2260         (add_setshow_boolean_cmd): Likewise.
2261
2262 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2263
2264         * config/vax/tm-vax.h: Protect from multiple inclusion.
2265         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2266         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2267         * config/vax/tm-vaxbsd.h: ...here.  New file.
2268         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2269
2270 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2271
2272         * config/vax/tm-vax.h (BREAKPOINT): Remove.
2273         (BELIEVE_PCC_PROMOTION): Remove.
2274         (AP_REGNUM): Move to...
2275         * config/vax/nm-vax.h: ...here.
2276         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2277         (vax_breakpoint_from_pc): New function.
2278         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2279         and gdbarch_believe_pcc_promotion.
2280
2281 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2282
2283         * Makefile.in (vax_tdep_h): Define.  
2284         (vax-tdep.o): Use $(vax_tdep_h).
2285         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2286         (vax_dump_tdep): New function. 
2287         (_initialize_vax_tdep): Register vax_dump_tdep.
2288         * vax-tdep.h: Include osabi.h.     
2289         (struct gdbarch_tdep): New. 
2290
2291 2002-06-26  Andrew Cagney  <cagney@redhat.com>
2292
2293         * frame.h (deprecated_generic_find_dummy_frame): Rename
2294         generic_find_dummy_frame.
2295         * blockframe.c (generic_find_dummy_frame): Make static.
2296         (deprecated_generic_find_dummy_frame): New function.
2297         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2298         generic_find_dummy_frame with deprecated_find_dummy_frame.
2299         (sh64_nofp_frame_init_saved_regs): Ditto.
2300         (sh_fp_frame_init_saved_regs): Ditto.
2301         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2302         (s390_frame_chain): Ditto.
2303         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2304
2305 2002-06-26  Grace Sainsbury  <graces@redhat.com>
2306
2307         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2308         gdbarch vector are at the top.
2309         (NUM_REGS): Remove.
2310         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2311         (FRAME_ARGS_ADDRESS): Remove.
2312         (FRAME_LOCALS_ADDRESS): Remove.
2313         (FRAME_NUM_ARGS): Remove.
2314         (FRAME_ARGS_SKIP): Remove.  
2315         * m68k-tdep.c (enum): Add eumeration of special register numbers.
2316         (m68k_gdbarch_init): Add gdbarch initializations for macros
2317         undefined in tm-m68k.h
2318
2319 2002-06-26  Grace Sainsbury  <graces@redhat.com>
2320
2321         * monitor.h: Add the function regname to monitor_ops
2322         structure. This way NUM_REGS does not have to be a constant.
2323         * monitor.c (monitor_fetch_register): Added support for regname
2324         function. The function is called if the array regnames is NULL.
2325         (monitor_store_register): Same.
2326         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2327         regnames array.
2328         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2329         cpu32bug_cmds.regname to point to new function.
2330         * abug-rom.c (abug_regname): Same as above.
2331         (init_abug_cmds): Same.
2332         * dbug-rom.c (dbug_regname): Same as above.
2333         (init_dbug_cmds): Same.
2334         * remote-est.c (est_regname): Same. 
2335         (init_est_cmds): Same.
2336         * rom68k-rom.c (rom68k_regname): Same. 
2337         (init_rom68k_cmds): Same.
2338
2339 2002-06-25  Tom Tromey  <tromey@redhat.com>
2340
2341         * breakpoint.c (delete_command): Don't repeat `delete' commands.
2342
2343 2002-06-25  Andrew Cagney  <cagney@redhat.com>
2344
2345         * infrun.c (stop_registers): Change variable's type to ``struct
2346         regcache'''.
2347         (xmalloc_inferior_status): Delete function.
2348         (free_inferior_status): Delete function.
2349         (normal_stop): Use regcache_cpy.
2350         (struct inferior_status): Change type of fields ``stop_registers''
2351         and ``registers'' to ``struct regcache''.
2352         (write_inferior_status_register): Use regcache_write.
2353         (save_inferior_status): Instead of calling
2354         xmalloc_inferior_status, allocate the inf_status buffer directly.
2355         Use regcache_dup_no_passthrough and regcache_dup to save the
2356         buffers.
2357         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2358         Replace the stop_registers regcache instead of overriding it.  Use
2359         regcache_xfree.  Instead of calling free_inferior_status, xfree
2360         the buffer directly.
2361         (discard_inferior_status): Use regcache_xfree.  Instead of calling
2362         free_inferior_status, xfree the buffer directly.
2363         (build_infrun): Use regcache_xmalloc.
2364         (_initialize_infrun): Delete redundant call to build_infrun.
2365
2366         * Makefile.in (infcmd.o): Add $(regcache_h).
2367
2368         * infcmd.c: Include "regcache.h".
2369         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2370         obtain the address of `stop_registers' register buffer.
2371         (print_return_value): Ditto.
2372
2373         * inferior.h (struct regcache): Add opaque declaration.
2374         (stop_registers): Change variable's declared type to ``struct
2375         regcache''.
2376
2377 2002-06-24  Tom Tromey  <tromey@redhat.com>
2378
2379         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2380         * target.c (initialize_targets): Fixed typo in
2381         trust-readonly-sections `show' documentation.
2382
2383         * main.c: Marked all strings with _().
2384
2385 2002-06-24  Don Howard  <dhoward@redhat.com>
2386
2387         * memattr.c (create_mem_region): Treat hi == 0 as a special case
2388         that means max CORE_ADDR+1.
2389         (lookup_mem_region): Ditto.
2390         (mem_info_command): Ditto.
2391
2392 2002-06-24  Grace Sainsbury  <graces@redhat.com>
2393
2394         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2395         (REGISTER_BYTES_OK): Remove.
2396         (REGISTER_BYTES): Remove.
2397         (STORE_STRUCT_RETURN): Remove.
2398         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2399         (STORE_RETURN_VALUE): Remove.
2400         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2401         (FRAME_CHAIN): Remove.
2402         (FRAMELESS_FUNCTION_INVOCATION): Remove.
2403         (FRAME_SAVED_PC): Remove.  
2404         * m68k-tdep.c (m68k_register_bytes_ok):Add.
2405         (m68k_store_struct_return): Add.
2406         (m68k_deprecated_extract_return_value): Add.
2407         (m68k_deprecated_extract_struct_value_address): Add.
2408         (m68k_store_return_value): Add.
2409         (m68k_frame_chain): Add.
2410         (m68k_frameless_function_invocation): Add.
2411         (m68k_frame_saved_pc): Add.
2412         (m68k_gdbarch_init): added set_gdbarch calls for new 
2413         functions and deleted macros.
2414
2415 2002-06-23  Tom Tromey  <tromey@redhat.com>
2416
2417         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2418         (ALLDEPFILES): Likewise.
2419         (udiheaders): Removed.
2420         (udip2soc.o): Likewise.
2421         (udi2go32.o): Likewise.
2422         (udr.o): Likewise.
2423         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2424
2425 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
2426
2427         * infrun.c (_initialize_infrun): Delete unnecessary call to
2428         build_infrun.
2429
2430         * regcache.h: Update comments describing the regcache_cpy family
2431         of functions.
2432         (regcache_save, regcache_restore): Delete declaration.
2433         (regcache_save_no_passthrough): Delete declaration.
2434         (regcache_restore_no_passthrough): Delete declaration.
2435         * regcache.c (regcache_save): Delete function.
2436         (regcache_save_no_passthrough): Delete function.
2437         (regcache_restore): Delete function.
2438         (regcache_restore_no_passthrough): Delete function.
2439
2440 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
2441
2442         * config/m68k/tm-m68k.h: Fix typo.
2443         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2444         (m68k_frame_init_saved_regs): Declare.
2445
2446 2002-06-21  Jim Blandy  <jimb@redhat.com>
2447
2448         Remove some vestiges of Harris 88k support.
2449         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2450         register numbering quirk.
2451         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2452         odd symbols occurring in Harris 88k ELF targets.
2453
2454 2002-06-21  Tom Tromey  <tromey@redhat.com>
2455
2456         * gdb_locale.h: New file.
2457         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2458         (defs_h): Added gdb_locale.h.
2459         * configure, config.in: Rebuilt.
2460         * configure.in (PACKAGE): Define.
2461         * defs.h: Include gdb_locale.h.
2462         * main.c (captured_main): Call setlocale, bindtextdomain,
2463         textdomain.
2464
2465 2002-06-21  Dave Brolley  <brolley@redhat.com>
2466
2467         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2468         * config/frv/frv.mt: New file.
2469         * config/frv/tm-frv.h: New file.
2470         * configure.tgt: Support frv-*-*.
2471         * Makefile.in (frv-tdep.o): New target.
2472         * frv-tdep.c: New file.
2473         * NEWS: Mention frv.
2474
2475 2002-06-21  Dave Brolley  <brolley@redhat.com>
2476
2477         * MAINTAINERS: Add self to "Write After Approval" list.
2478
2479 2002-06-21  Grace Sainsbury  <graces@redhat.com>
2480
2481         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2482         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2483         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2484         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2485         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2486
2487         * m68k-tdep.c: Include arch-utils.h
2488         (m68k_register_raw_size): Add.
2489         (m68k_register_virtual_size): Add.
2490         (m68k_register_virtual_type): Add.
2491         (m68k_register_name): Add.
2492         (m68k_stack_align): Add.
2493         (m68k_register_byte): Add.
2494         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2495         tm-m68k.h.
2496
2497 2002-06-21  Grace Sainsbury  <graces@redhat.com>
2498
2499         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2500         m68k_find_saved_regs.
2501         (m68k_pop_frame): Removed saved_regs structure, and replaced
2502         references to it with frame->saved_regs.
2503         (m68k_gdbarch_init): Added function calls to initialize the
2504         gdbarch structure.
2505         (m68k_fix_call_dummy): Add. 
2506         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2507         (CALL_DUMMY): Remove.
2508         (CALL_DUMMY_LENGTH): Remove.
2509         (CALL_DUMMY_START_OFFSET): Remove.
2510         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2511         (FIX_CALL_DUMMY): Remove.
2512         (PUSH_DUMMY_FRAME): Remove.
2513         (POP_FRAME): Remove.
2514
2515 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2516
2517         * parse.c (parse_fprintf): New function used to avoid calls to
2518         fprintf in bison parser generated debug code.
2519         * parser-defs.h: Declaration of new parse_fprintf function.
2520         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2521         Set YYDEBUG to 1 by default.
2522         Set YYFPRINTF as parse_fprintf.
2523
2524 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
2525
2526         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
2527         encoding anymore.
2528         (pointer_encoding, enum ptr_encoding): New.
2529         (execute_cfa_program): Take care about pointer encoding.        
2530         (dwarf2_build_frame_info): Only call parse_frame_info for 
2531         .debug_frame and .eh_frame.
2532         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2533         fixed augmentation handling, added relative addressing, 
2534         ignore duplicate FDEs. Added comments.
2535         * dwarf2cfi.c: Reindented.
2536         
2537 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
2538
2539         * event-top.c (command_handler): Don't use space_at_cmd_start
2540         unless there is sbrk() on the host. Assign time and space data
2541         to union fields of the appropriate length.
2542
2543 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
2544
2545         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
2546         x86_64_register_name. Return type changed to 'const char *'.
2547         (x86_64_register_name2nr): Rename to x86_64_register_number.
2548         (x86_64_gdbarch_init): Update to reflect the change.
2549         * x86-64-tdep.h: Ditto.
2550         * x86-64-linux-nat.c (x86_64_fxsave_offset)
2551         (supply_fpregset): Ditto.
2552
2553 2002-06-19  Andrew Cagney  <cagney@redhat.com>
2554
2555         * regcache.h: Update copyright.
2556         (struct regcache, struct gdbarch): Add opaque declarations.
2557         (current_regcache): Declare global variable.
2558         (regcache_read, regcache_write): Add gdbarch parameter.
2559         (regcache_save, regcache_save_no_passthrough)
2560         (regcache_restore, regcache_restore_no_passthrough)
2561         (regcache_dup, regcache_dup_no_passthrough)
2562         (regcache_cpy, regcache_cpy_no_passthrough)
2563         (deprecated_grub_regcache_for_registers)
2564         (deprecated_grub_regcache_for_register_valid)
2565         (regcache_valid_p): Add function declarations.
2566         
2567         * regcache.c: Update copyright.
2568         (regcache_descr_handle): New global variable.
2569         (struct regcache_descr): Define.
2570         (init_legacy_regcache_descr, init_regcache_descr): New functions.
2571         (regcache_descr, xfree_regcache_descr): New functions.
2572         (struct regcache): Define.
2573         (regcache_xmalloc, regcache_xfree): New functions.
2574         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2575         (regcache_dup, regcache_dup_no_passthrough): New functions.
2576         (regcache_valid_p, regcache_read_as_address): New functions.
2577         (deprecated_grub_regcache_for_registers): New function.
2578         (deprecated_grub_regcache_for_register_valid): New function.
2579         (current_regcache): New global variable.
2580         (register_buffer): Add regcache parameter.  Update calls.
2581         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
2582         (read_register_gen, write_register_gen): Update register_buffer
2583         call.  Test for legacy_p instead of gdbarch_register_read_p or
2584         gdbarch_register_write_p.
2585         (regcache_collect): Update register_buffer call.
2586         (build_regcache): Rewrite.  Use deprecated grub functions.
2587         (regcache_save, regcache_save_no_passthrough): New functions.
2588         (regcache_restore, regcache_restore_no_passthrough): New
2589         functions.
2590         (_initialize_regcache): Create the regcache_data_handle. Swap
2591         current_regcache global variable.
2592         
2593         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2594         parameter to regcache_read and regcache_write calls.
2595         (sh4_register_read): Ditto.
2596         (sh64_pseudo_register_read): Ditto.
2597         (sh64_register_read): Ditto.
2598         (sh_pseudo_register_write): Ditto.
2599         (sh4_register_write): Ditto.
2600         (sh64_pseudo_register_write): Ditto.
2601         (sh64_register_write): Ditto.
2602
2603         * defs.h (XCALLOC): Define.
2604
2605 2002-06-19  Grace Sainsbury  <graces@redhat.com>
2606
2607         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2608         * m68k-tdep.c (m68k_gdbarch_init): Added.
2609         (m68k_dump_tdep): Added.
2610
2611 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
2612
2613         * ada-lang.c (fill_in_ada_prototype): Update comment.
2614
2615 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
2616
2617         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
2618         MIPS_ABI_LAST.
2619         (mips_abi_string, mips_abi_strings): New.
2620         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2621         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
2622         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
2623         O32 if no ABI is found.
2624         (mips_dump_tdep): Use mips_abi_strings.
2625         (mips_abi_update): New function.
2626         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
2627         ``set mips abi'' and ``show mips abi''.  Check the size of
2628         mips_abi_strings.
2629
2630 2002-06-19  Andrew Cagney  <cagney@redhat.com>
2631
2632         * i386-linux-tdep.c (i386_linux_register_name): Make return type
2633         constant.
2634
2635 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
2636
2637         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
2638         current frame using only the first stack size adjustment. All
2639         subsequent size adjustments are not considered to be part of
2640         the "static" part of the current frame.
2641         Compute the address of the saved registers relative to the
2642         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2643         in use in this frame.
2644
2645 2002-06-18  Don Howard  <dhoward@redhat.com>
2646  
2647         * valops.c (value_ind): Use value_at_lazy() when dereferencing
2648         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
2649         suggesting this solution.
2650
2651 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
2652
2653         * config/romp/xm-rtbsd.h: Delete file.
2654         * config/romp/rtbsd.mh: Delete file.
2655
2656 2002-06-18  Keith Seitz  <keiths@redhat.com>
2657
2658         * breakpoint.c (condition_command): Post breakpoint_modify
2659         when a condition is added to an existing breakpoint.
2660         (commands_command): Likewise for commands.
2661         (set_ignore_count): Likewise for ignore counts.
2662         If no tty, do not simply return, still need to send event
2663         notification.
2664         (ignore_command): Only print a newline if the command came
2665         from a tty.
2666         Don't call breakpoints_changed, since this is now properly
2667         handled by set_ignore_count.
2668
2669 2002-06-18  Andrew Cagney  <cagney@redhat.com>
2670
2671         * MAINTAINERS: Note that cris-elf target can be compiled with
2672         -Werror.
2673         * cris-tdep.c (cris_register_name): Make return type constant.
2674         (cris_breakpoint_from_pc): Ditto.
2675
2676 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
2677
2678         * frame.h (struct frame_info): Change type of context to 
2679         'struct context'.
2680
2681 2002-06-17  Andrew Cagney  <cagney@redhat.com>
2682
2683         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2684         pointer.
2685         * gdbarch.h, gdbarch.c: Regenerate.
2686         * config/mips/tm-mips.h (mips_register_name): Update.
2687         * i386-tdep.h (i386_register_name): Update.
2688         * mips-tdep.c (mips_register_name): Update
2689         * alpha-tdep.c (alpha_register_name): Update.
2690         * arch-utils.c (legacy_register_name): Update.
2691         * arch-utils.h (legacy_register_name): Update.
2692         * avr-tdep.c (avr_register_name): Update.
2693         * ia64-tdep.c (ia64_register_name): Update.
2694         * i386-tdep.c (i386_register_name): Update.
2695         * sparc-tdep.c (sparc32_register_name): Update.
2696         (sparc64_register_name): Update.
2697         (sparclite_register_name): Update.
2698         (sparclet_register_name): Update.
2699         * sh-tdep.c (sh_generic_register_name): Update.
2700         (sh_sh_register_name): Update.
2701         (sh_sh3_register_name): Update.
2702         (sh_sh3e_register_name): Update.
2703         (sh_sh_dsp_register_name): Update.
2704         (sh_sh3_dsp_register_name): Update.
2705         (sh_sh4_register_name): Update.
2706         (sh_sh64_register_name): Update.
2707         * s390-tdep.c (s390_register_name): Update.
2708         * rs6000-tdep.c (rs6000_register_name): Update.
2709         * ns32k-tdep.c (ns32k_register_name_32082): Update.
2710         (ns32k_register_name_32382): Update.
2711         * d10v-tdep.c (d10v_ts2_register_name): Update.
2712         (d10v_ts3_register_name): Update.
2713         * xstormy16-tdep.c (xstormy16_register_name): Update.
2714         * vax-tdep.c (vax_register_name): Update.
2715         * v850-tdep.c (v850_register_name): Update.
2716         * m68hc11-tdep.c (m68hc11_register_name): Update.
2717         * mn10300-tdep.c (mn10300_generic_register_name): Update.
2718         (am33_register_name): Update.
2719
2720 2002-06-17  Grace Sainsbury  <graces@redhat.com>
2721
2722         * m68k-tdep.c: Reindented.
2723
2724 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
2725
2726         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2727         list of predefined types.
2728
2729 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
2730
2731         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2732         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2733         REGISTER_CONVERT_TO_RAW): Remove defines.
2734         (i386_register_virtual_type, i386_register_convertible,
2735         i386_register_convert_to_virtual, i386_register_convert_to_raw):
2736         Remove prototypes.
2737         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2738         macros mentioned above.
2739
2740         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2741         (i386lynx_saved_pc_after_call): Remove prototype.
2742         * i386ly-tdep.c: Include "i386-tdep.h".
2743         (i386lynx_saved_pc_after_call): Make static.  Use
2744         read_memory_nobpt instead of read_memory.  Use
2745         read_memory_unsigned_integer instead of read_memory_integer.
2746         (i386lynx_init_abi): New function.
2747         (i386lynx_coff_osabi_sniffer): New function.
2748         (_initialize_i386bsd_tdep): New function.
2749
2750         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2751         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2752         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2753         (i386_fix_call_dummy): Remove prototype.
2754         * i386-tdep.c (i386_call_dummy_words): New variable.
2755         (i386_gdbarch_init): Adjust for removal of the
2756         macros mentioned above.
2757
2758 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
2759
2760         * command.h (add_setshow_auto_boolean_cmd): Replace
2761         add_set_auto_boolean_cmd.
2762         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2763         add_set_auto_boolean_cmd.
2764         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2765         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2766         mask-address'' command.
2767         (show_mask_address): Add cmd parameter.
2768         * remote.c (add_packet_config_cmd): Update.  Change type of
2769         set_func and show_func to cmd_sfunc_ftype.
2770         (_initialize_remote): Update `set remote Z-packet'
2771         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2772         (show_remote_protocol_e_packet_cmd): Ditto.
2773         (show_remote_protocol_E_packet_cmd): Ditto.
2774         (show_remote_protocol_P_packet_cmd): Ditto.
2775         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2776         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2777         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2778         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2779         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2780         (show_remote_protocol_Z_packet_cmd): Ditto.
2781         (show_remote_protocol_binary_download_cmd): Ditto.
2782         (show_remote_cmd): Pass NULL to all of above.
2783
2784 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
2785
2786         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2787         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2788         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2789         POP_FRAME): Remove defines.
2790         (i386_push_arguments, i386_store_struct_return,
2791         i386_extract_return_value, i386_store_return_value,
2792         i386_extract_struct_value_address, i386_push_dummy_frame,
2793         i386_pop_frame): Renove prototypes.
2794         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2795         macros mentioned above.
2796
2797 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
2798
2799         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2800         add_set_boolean_cmd.
2801         (add_setshow_cmd): New function.
2802         * command.h (add_setshow_boolean_cmd): Replace
2803         add_set_boolean_cmd.
2804         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2805         and ``set rdiromatzero''.
2806         * maint.c (_initialize_maint_cmds): Update commented out code.
2807         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2808         * target.c (initialize_targets): Update `set
2809         trust-readonly-sections'.
2810         * remote.c (_initialize_remote): Update `set remotebreak'.
2811
2812 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
2813
2814         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2815         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2816         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2817         fit into multi-arch framework.
2818         (i386_breakpoint_from_pc): New function.
2819         (i386_gdbarch_init): Adjust for removal of the macros mentioned
2820         above.
2821
2822         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2823         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2824         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2825         (i386_frameless_function_invocation, i386_frame_num_args,
2826         i386_frame_init_saved_regs): Remove prototypes.
2827         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2828         macros mentioned above.
2829
2830 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
2831
2832         * cli/cli-decode.c (set_cmd_cfunc): Update.
2833         (set_cmd_sfunc): Update.
2834         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2835         (set_cmd_sfunc, set_cmd_cfunc): Update.
2836         * cli/cli-decode.h: Update.
2837
2838 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
2839
2840         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2841         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2842
2843 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
2844
2845         * defs.h (auto_boolean): Declare enum.
2846         * command.h (cmd_auto_boolean): Delete enum.
2847         * mips-tdep.c (mask_address_var): Update.
2848         (mips_mask_address_p): Update.
2849         (show_mask_address): Update.
2850         * remote.c (struct packet_config): Update.
2851         (update_packet_config): Update.
2852         (show_packet_config_cmd): Update.
2853         (packet_ok): Update.
2854         (add_packet_config_cmd): Update.
2855         (_initialize_remote): 
2856         * command.h: Update.
2857         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2858         (do_setshow_command): Update.
2859         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2860         * cli/cli-decode.h: Update.
2861
2862 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
2863
2864         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2865         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2866         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2867         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2868         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2869         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2870
2871         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2872         list of DJGPP COFF targets.
2873
2874         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2875         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2876         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2877         (FP0_REGNUM): Remove define.
2878         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2879         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2880         (i386_register_virtual_size): Remove protoype.
2881         * i386-tdep.c (i386_register_virtual_size): Removed.
2882         (i386_extract_return_value, i386_store_return_value): Use
2883         FP0_REGNUM instead of NUM_FREGS to determine whether the
2884         floating-point registers are available.
2885         (i386_gdbarch_init): Tweak FIXME about FPU registers.
2886         Adjust for removal of macros mentioned above.
2887
2888 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
2889
2890         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
2891         comments.
2892         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2893         Remove prototypes.
2894         (supply_gregset, fill_gregset): Remove use of register keyword and
2895         remove declaration for regmap.  Use I386_NUM_GREGS instead of
2896         NUM_REGS and NUM_FREGS.
2897         (FPREGSET_FSAVE_OFFSET): Remove.
2898         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2899         NUM_FREGS to determine whether the floating-point registers are
2900         available.
2901
2902         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2903         gnu_store_registers): Replace usage of NUM_GREGS with
2904         I386_NUM_GREGS.
2905
2906         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2907         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2908         usage of NUM_GREGS with I386_NUM_GREGS.
2909
2910         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2911
2912         * i386bsd-nat.c: Include "i386-tdep.h".
2913         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2914         I386_NUM_GREGS.
2915
2916         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2917         and associated comment.  They no longer make any sense, since we
2918         don't use this file anymore on Linux.
2919
2920         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2921         * i386-tdep.c (i386_register_offset, i386_register_size): Use
2922         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2923         elements in these arrays.
2924         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2925         MAX_NUM_REGS.
2926
2927 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
2928
2929         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2930         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2931
2932 2002-06-14  Andrew Cagney  <cagney@redhat.com>
2933
2934         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2935         EXTRACT_RETURN_VALUE.
2936         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2937         EXTRACT_STRUCT_VALUE_ADDRESS.
2938         * gdbarch.h, gdbarch.c: Regenerate.
2939         
2940         * values.c (value_being_returned): Handle
2941         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2942         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2943
2944         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
2945         * arm-tdep.c (arm_gdbarch_init): Update.
2946         * avr-tdep.c (avr_gdbarch_init): Update.
2947         * cris-tdep.c (cris_gdbarch_init): Update.
2948         * d10v-tdep.c (d10v_gdbarch_init): Update.
2949         * ia64-tdep.c (ia64_gdbarch_init): Update.
2950         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2951         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2952         * s390-tdep.c (s390_gdbarch_init): Update.
2953         * sh-tdep.c (sh_gdbarch_init): Update.
2954         * s390-tdep.c (s390_gdbarch_init): Update.
2955         * sparc-tdep.c (sparc_gdbarch_init): Update.
2956         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2957         * v850-tdep.c (v850_gdbarch_init): Update.
2958         * vax-tdep.c (vax_gdbarch_init): Update.
2959         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2960         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2961
2962         * config/arc/tm-arc.h: Update.
2963         * config/d30v/tm-d30v.h: Update.
2964         * config/fr30/tm-fr30.h: Update.
2965         * config/h8300/tm-h8300.h: Update.
2966         * config/h8500/tm-h8500.h: Update.
2967         * config/i386/tm-i386.h: Update.
2968         * config/i386/tm-ptx.h: Update.
2969         * config/i386/tm-symmetry.h: Update.
2970         * config/i960/tm-i960.h: Update.
2971         * config/m32r/tm-m32r.h: Update.
2972         * config/m68k/tm-delta68.h: Update.
2973         * config/m68k/tm-linux.h: Update.
2974         * config/m68k/tm-m68k.h: Update.
2975         * config/m88k/tm-m88k.h: Update.
2976         * config/mcore/tm-mcore.h: Update.
2977         * config/mips/tm-mips.h: Update.
2978         * config/mn10200/tm-mn10200.h: Update.
2979         * config/pa/tm-hppa.h: Update.
2980         * config/pa/tm-hppa64.h: Update.
2981         * config/sparc/tm-sp64.h: Update.
2982         * config/sparc/tm-sparc.h: Update.
2983         * config/sparc/tm-sparclet.h: Update.
2984         * config/z8k/tm-z8k.h: Update.
2985
2986 2002-06-14  Andrew Cagney  <cagney@redhat.com>
2987
2988         * Makefile.in (i386_linux_tdep_h): Define.
2989         (i386_tdep_h, i387_tdep_h): Define.
2990         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2991         $(i386_tdep_h) and $(i387_tdep_h).
2992         * i386-linux-nat.c: Include "i386-linux-tdep.h".
2993
2994 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
2995
2996         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2997         Already covered by the default.
2998
2999         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3000         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
3001         (i386_gdbarch_init): Initialize long_double_format and long_double
3002         bit.
3003
3004         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3005         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
3006         Move these to ...
3007         * config/i386/i386sol2.mh: ... here.
3008         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3009         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3010         (SIGCONTEXT_PC_OFFSET): Remove define.
3011         (IN_SIGTRAMP): Remove define.
3012         * i386-sol2-tdep.c: New file.
3013         
3014         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3015         * config/i386/tm-i386nw.h: Removed.
3016
3017         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3018         USE_STRUCT_CONVENTION): Remove defines.
3019         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3020         (get_longjmp_target): Remove prototype.
3021         (IN_SIGTRAMP): Remove define.
3022         (i386bsd_in_sigtramp): Remove prototype.
3023         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3024         function.  Update comment accordingly
3025         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3026         (FRAME_SAVED_PC): Remove define.
3027         (i386bsd_frame_saved_pc): Remove prototype.
3028         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3029         GET_LONGJMP_TARGET): Remove defines.
3030         (get_longjmp_target): Remove prototype.
3031         (IN_SIGTRAMP): Remove define.
3032         (i386bsd_in_sigtramp): Remove prototype.
3033         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3034         function.  Update comment accordingly
3035         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3036         (FRAME_SAVED_PC): Remove define.
3037         (i386bsd_frame_saved_pc): Remove prototype.
3038         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3039         Remove prototype.
3040         (USE_STRUCT_CONVENTION): Remove prototype.
3041         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3042         declaration.
3043         (_initialize_i386bsd_nat): Revise logic to determine some
3044         constants at compile time when compiling a native GDB.  Warn if
3045         things don't match up with what we expect.
3046         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3047         Remove variables.
3048         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
3049         to use date stored in `struct gdbarch_tdep'.
3050         (i386bsd_sigcontext_offset): Remove varaible.
3051         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
3052         stored in `struct gdbarch_tdep'.
3053         (i386bsd_frame_saved_pc): Make static.
3054         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3055         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3056         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3057         i386fbsd4_sc_pc_offset): New variables.
3058         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3059         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3060         functions.
3061         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3062         functions.
3063         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3064         Modify the value of i386fbsd_sigtramp_start and
3065         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3066         i386fbsd_sigtramp_end.
3067         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3068         function.
3069
3070         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3071         define to i386-linux-tdep.h.
3072         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3073         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3074         defines.
3075         (i386_linux_register_name, i386_linux_register_byte,
3076         i386_linux_register_raw_size): Remove prototypes.
3077         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3078         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3079         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3080         TARGET_WRITE_PC): Remove defines.
3081         (i386_linux_in_sigtramp, i386_linux_frame_chain,
3082         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3083         i386_linux_write_pc): Remove prototypes.
3084         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3085         (get_longjmp_target): Remove prototype.
3086         * i386-linux-tdep.h: New file.
3087         * i386-linux-nat.c: Include "i386-linux-tdep.h".
3088         * i386-linux-tdep.c: Include "i386-tdep.h" and
3089         "i386-linux-tdep.h".
3090         (i386_linux_register_name, i386_linux_register_byte,
3091         i386_linux_register_raw_size, i386_linux_in_sigtramp,
3092         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3093         Make static.
3094         (i386_linux_init_abi): New function.
3095         (_initialize_i386_linux_tdep): New function.
3096
3097         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3098         (i386_saved_pc_after_call): Remove prototype.
3099         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3100         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3101         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3102         (i386_register_name, i386_stab_reg_to_regnum,
3103         i386_dwarf_reg_to_regnum): Remove prototypes.
3104         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3105         SIZEOF_SSE_REGS): Remove defines.
3106         (REGISTER_BYTES): Remove define.
3107         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3108         (i386_register_byte, i386_register_raw_size): Remove prototypes.
3109         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3110         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3111         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3112         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3113         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3114         (get_longjmp_target): Remove prototype.
3115         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3116         (sigtramp_saved_pc): Remove define.
3117         (i386v4_sigtramp_saved_pc): Remove prototype.
3118         * config/i386/tm-go32.h (FRAME_CHAIN,
3119         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3120         (i386go32_frame_saved_pc): Remove prototype.
3121         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3122         (get_longjmp_target): Remove prototype.
3123         * i386-tdep.h: Include "osabi.h".
3124         (enum i386_abi): Removed.
3125         (enum struct_return): New enum.
3126         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3127         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3128         sc_pc_offset members.
3129         (i386_gdbarch_register_os_abi): Remove prototype.
3130         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3131         I386_SSE_NUM_REGS): New defines.
3132         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3133         I386_SSE_SIZEOF_REGS): New defines.
3134         (i386_register_name, i386_register_byte, i386_register_raw_size):
3135         New prototypes.
3136         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3137         (i386bsd_sigtramp_saved_pc): New prototype.
3138         * i386-tdep.c: Don't include "elf-bfd.h".
3139         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3140         i386_frame_chain, i386_saved_pc_after_call): Make static.
3141         (i386_frame_saved_pc): Rewrite to call architecture dependent
3142         function to deal with signal handlers.  Make static.
3143         (i386go32_frame_saved_pc): Removed.
3144         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3145         Removed.
3146         (i386_get_longjmp_target): New function.
3147         (default_struct_convention, pcc_struct_convention,
3148         reg_struct_convention, valid_conventions, struct_convention): New
3149         variables.
3150         (i386_use_struct_convention): New function.
3151         (i386v4_sigtramp_saved_pc): Renamed to
3152         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
3153         (i386_pc_in_sigtramp): New function.
3154         (i386_abi_names): Removed.
3155         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3156         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3157         Removed.
3158         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3159         i386_gdbarch_register_os_abi): Removed.
3160         (struct i386_abi_handler): Removed.
3161         (i386_abi_handler_list): Removed.
3162         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3163         functions.
3164         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3165         i386_nw_init_abi): New functions.
3166         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3167         Use set_gdbarch_xxx() calls instead of relying on macros for a
3168         number of calls.
3169         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3170         (_initialize_i386_tdep): Add new 'struct-convcention' command.
3171         Register the various architecture variants defined in this file.
3172
3173 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
3174
3175         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3176         (struct main_type): Remove arg_types member.  Update comments for
3177         struct field.
3178         (TYPE_ARG_TYPES): Remove.
3179         (TYPE_FN_FIELD_ARGS): Update.
3180         (smash_to_method_type): Update prototype.
3181
3182         * c-typeprint.c (cp_type_print_method_args): Take method type
3183         instead of argument list.  Use new argument layout.  Simplify.
3184         (c_type_print_args): Use new argument layout.  Simplify.
3185         (c_type_print_base): Update call to cp_type_print_method_args.
3186         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3187         argument; use die->type instead.  Update call to
3188         smash_to_method_type.
3189         (read_structure_scope): Update call to dwarf2_add_member_fn.
3190         * gdbtypes.c (allocate_stub_method): Update comment.
3191         (smash_to_method_type): Take new NARGS and VARARGS arguments.
3192         Use new argument layout.
3193         (check_stub_method): Use new argument layout.  Don't count
3194         void as an argument.
3195         (print_arg_types): Update comments.  Use new argument layout.
3196         (recursive_dump_type): Don't print arg_types member.
3197         * hpread.c (hpread_read_struct_type): Use new argument layout.
3198         (fixup_class_method_type): Likewise.
3199         (hpread_type_lookup): Likewise.
3200         * stabsread.c (read_type): Update calls to read_args and
3201         smash_to_method_type.
3202         (read_args): Use new argument layout.  Simplify.
3203         * valops.c (typecmp): Use new argument layout.  Update parameters
3204         and comments.  Simplify.
3205         (hand_function_call): Use new argument layout.
3206         (search_struct_method): Update call to typecmp.
3207         (find_overload_match): Use new argument layout.
3208
3209 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3210
3211         * NEWS: Mention multithreaded debug support for gdbserver.
3212
3213 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3214
3215         * MAINTAINERS: Mention NEWS.
3216
3217 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3218
3219         * gdbserver/regcache.c: Add comment.
3220
3221 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3222
3223         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3224         (struct mips_objfile_private, compare_pdr_entries): New.
3225         (non_heuristic_proc_desc): Read the ".pdr" section if it
3226         is present.
3227
3228 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
3229
3230         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3231         (arm_debug): New static variable.
3232         (_initialize_arm_tdep): Add ``set debug arm'' command.
3233
3234 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
3235
3236         * Makefile.in (sim_arm_h): Define.
3237         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3238         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3239         (arm_register_sim_regno): New function, map an internal REGNUM
3240         onto a simulator register number.
3241         (arm_gdbarch_init): Set register_sim_regno.
3242
3243 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
3244
3245         * MAINTAINERS: Add self.
3246
3247 2002-06-11  Jim Blandy  <jimb@redhat.com>
3248
3249         * source.c (source_info): Mention whether the symtab has
3250         information about preprocessor macros.
3251
3252         Call the command `info macro', not `show macro'.
3253         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3254         Fix error message.
3255         (_initialize_macrocmd): Register `info_macro_command' in
3256         `infolist', not `showlist'.
3257
3258 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
3259
3260         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3261         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3262         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3263         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3264         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
3265         unconditionally.
3266         (set_mipsfpu_single_command, set_mipsfpu_double_command)
3267         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3268         (_initialize_mips_tdep): Remove dead code.
3269         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3270         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3271         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3272         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3273         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3274         MIPS_LAST_FP_ARG_REGNUM): Remove.
3275
3276 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
3277
3278         * gdbserver/thread-db.c: New file.
3279         * gdbserver/proc-service.c: New file.
3280         * gdbserver/acinclude.m4: New file.
3281         * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3282         proc-service.o, and thread-db.o.
3283         (linux-low.o): Add USE_THREAD_DB.
3284         * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3285         HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3286         * gdbserver/aclocal.m4: Regenerated.
3287         * gdbserver/config.in: Regenerated.
3288         * gdbserver/configure: Regenerated.
3289         * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3290         thread_db.h, and linux/elf.h headrs.
3291         Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3292         PRFPREGSET_T_BROKEN.  Introduce srv_thread_depfiles and USE_THREAD_DB.
3293         Check for -lthread_db and thread support.
3294         * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3295         PowerPC, and SuperH.
3296         * gdbserver/i387-fp.c: Constify arguments.
3297         * gdbserver/i387-fp.h: Likewise.
3298         * gdbserver/inferiors.c: (struct thread_info): Renamed from
3299         `struct inferior_info'.  Remove PID member.  Use generic inferior
3300         list header.  All uses updated.
3301         (inferiors, signal_pid): Removed.
3302         (all_threads): New variable.
3303         (get_thread): Define.
3304         (add_inferior_to_list): New function.
3305         (for_each_inferior): New function.
3306         (change_inferior_id): New function.
3307         (add_inferior): Removed.
3308         (remove_inferior): New function.
3309         (add_thread): New function.
3310         (free_one_thread): New function.
3311         (remove_thread): New function.
3312         (clear_inferiors): Use for_each_inferior and free_one_thread.
3313         (find_inferior): New function.
3314         (find_inferior_id): New function.
3315         (inferior_target_data): Update argument type.
3316         (set_inferior_target_data): Likewise.
3317         (inferior_regcache_data): Likewise.
3318         (set_inferior_regcache_data): Likewise.
3319         * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3320         (all_processes, stopping_threads, using_thrads)
3321         (struct pending_signals, debug_threads, pid_of): New.
3322         (inferior_pid): Replace with macro.
3323         (struct inferior_linux_data): Remove.
3324         (get_stop_pc, add_process): New functions.
3325         (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3326         Use add_process and add_thread.
3327         (linux_attach_lwp): New function, based on old linux_attach.  Use
3328         add_process and add_thread.  Set stop_expected for new threads.
3329         (linux_attach): New function.
3330         (linux_kill_one_process): New function.
3331         (linux_kill): Kill all LWPs.
3332         (linux_thread_alive): Use find_inferior_id.
3333         (check_removed_breakpoints, status_pending_p): New functions.
3334         (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3335         Update.  Use WNOHANG.  Wait for cloned processes also.  Update process
3336         struct for the found process.
3337         (linux_wait_for_event): New function.
3338         (linux_wait): Use it.  Support LWPs.
3339         (send_sigstop, wait_for_sigstop, stop_all_processes)
3340         (linux_resume_one_process, linux_continue_one_process): New functions.
3341         (linux_resume): Support LWPs.
3342         (REGISTER_RAW_SIZE): Remove.
3343         (fetch_register): Use register_size instead.  Call supply_register.
3344         (usr_store_inferior_registers): Likewise.  Call collect_register.
3345         Fix recursive case.
3346         (regsets_fetch_inferior_registers): Improve error message.
3347         (regsets_store_inferior_registers): Add debugging.
3348         (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3349         (unstopped_p, linux_signal_pid): New functions.
3350         (linux_target_ops): Add linux_signal_pid.
3351         (linux_init_signals): New function.
3352         (initialize_low): Call it.  Initialize using_threads.
3353         * gdbserver/regcache.c (inferior_regcache_data): Add valid
3354         flag.
3355         (get_regcache): Fetch registers lazily.  Add fetch argument
3356         and update all callers.
3357         (regcache_invalidate_one, regcache_invalidate): New
3358         functions.
3359         (new_register_cache): Renamed from create_register_cache.
3360         Return the new regcache.
3361         (free_register_cache): Change argument to a void *.
3362         (registers_to_string, registers_from_string): Call get_regcache
3363         with fetch flag set.
3364         (register_data): Make static.  Pass fetch flag to get_regcache.
3365         (supply_register): Call get_regcache with fetch flag clear.
3366         (collect_register): Call get_regcache with fetch flag set.
3367         (collect_register_as_string): New function.
3368         * gdbserver/regcache.h: Update.
3369         * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3370         stderr.
3371         Handle input interrupts while waiting for an ACK.
3372         (input_interrupt): Use signal_pid method.
3373         (getpkt): Flush after debug output and use stderr.
3374         (outreg): Use collect_register_as_string.
3375         (new_thread_notify, dead_thread_notify): New functions.
3376         (prepare_resume_reply): Check using_threads.  Set thread_from_wait
3377         and general_thread.
3378         (look_up_one_symbol): Flush after debug output.
3379         * gdbserver/server.c (step_thread, server_waiting): New variables.
3380         (start_inferior): Don't use signal_pid.  Update call to mywait.
3381         (attach_inferior): Update call to mywait.
3382         (handle_query): Handle qfThreadInfo and qsThreadInfo.
3383         (main): Don't fetch/store registers explicitly.  Use
3384         set_desired_inferior.  Support proposed ``Hs'' packet.  Update
3385         calls to mywait.
3386         * gdbserver/server.h: Update.
3387         (struct inferior_list, struct_inferior_list_entry): New.
3388         * gdbserver/target.c (set_desired_inferior): New.
3389         (write_inferior_memory): Constify.
3390         (mywait): New function.
3391         * gdbserver/target.h: Update.
3392         (struct target_ops): New signal_pid method.
3393         (mywait): Removed macro, added prototype.
3394
3395         * gdbserver/linux-low.h (regset_func): Removed.
3396         (regset_fill_func, regset_store_func): New.
3397         (enum regset_type): New.
3398         (struct regset_info): Add type field.  Use new operation types.
3399         (struct linux_target_ops): stop_pc renamed to get_pc.
3400         Add decr_pc_after_break and breakpoint_at.
3401         (get_process, get_thread_proess, get_process_thread)
3402         (strut process_info, all_processes, linux_attach_lwp)
3403         (thread_db_init): New.
3404
3405         * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3406         arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3407         (the_low_target): Add new members.
3408         * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3409         (i386_store_fpxregset): Constify.
3410         (target_regsets): Add new kind identifier.
3411         (i386_get_pc): Renamed from i386_stop_pc.  Simplify.
3412         (i386_set_pc): Add debugging.
3413         (i386_breakpoint_at): New function.
3414         (the_low_target): Add new members.
3415         * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3416         (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3417         (mips_breakpoint_at): New.
3418         (the_low_target): Add new members.
3419         * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3420         (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3421         (the_low_target): Add new members.
3422         * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3423         (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3424         (the_low_target): Add new members.
3425         * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3426         identifier.
3427
3428 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
3429
3430         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3431         (unwind_tmp_obstack_free, parse_frame_info)
3432         (update_context, cfi_read_fp, cfi_write_fp)
3433         (cfi_frame_chain, cfi_init_extra_frame_info)
3434         (cfi_virtual_frame_pointer): Use the above function.
3435         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3436
3437 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
3438
3439         * v850-tdep.c (v850_type_is_scalar): New function.
3440         (v850_use_struct_convention): Match current gcc implementation
3441         as close as possible.
3442         (v850_push_arguments): Fix stack_offset handling.  Don't write
3443         struct_addr into register.  This is done by v850_store_struct_return.
3444         (v850_extract_return_value): Care for structs.
3445         (v850_store_return_value): Ditto.
3446         (v850_store_struct_return): Actually write address.
3447
3448 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
3449
3450         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3451         without debug information too.
3452
3453 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3454
3455         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3456         Make multi-arch pure.
3457         * gdbarch.h, gdbarch.c: Re-generate.
3458         * arm-tdep.c (arm_print_float_info): Update.
3459         * arch-utils.h (default_print_float_info): Update.
3460         * arch-utils.c (default_print_float_info): Update.
3461         * infcmd.c (float_info): Update call.
3462
3463 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3464
3465         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3466         the front of the initialize list.
3467
3468 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3469
3470         * infrun.c (struct inferior_status): Replace fields
3471         selected_frame_address and selected_level with field
3472         selected_frame_id.
3473         (save_inferior_status): Update.  Use get_frame_id.
3474         (struct restore_selected_frame_args): Delete.
3475         (restore_selected_frame): Update.  Use frame_find_by_id.
3476         (restore_inferior_status): Update.
3477
3478         * breakpoint.h (struct breakpoint): Change type of
3479         watchpoint_frame to frame_id.
3480         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
3481         call to get_current_frame.
3482         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
3483         get_current_frame.
3484         (watchpoint_check): Use frame_find_by_id.
3485
3486         * frame.h (record_selected_frame): Delete declaration.
3487         * stack.c (record_selected_frame): Delete function.
3488         
3489         * frame.h (struct frame_id): Define.
3490         (get_frame_id): Declare.
3491         (frame_find_by_id): Declare.
3492         * frame.c (frame_find_by_id): New function.
3493         (get_frame_id): New function.
3494
3495 2002-06-10  Andrey Volkov <avolkov@transas.com>
3496
3497         * ser-e7kpc.c: Fix duplicated define and call of 
3498         _initialize_ser_e7000pc
3499             
3500 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
3501
3502         * signals/signals.c (target_signal_from_host): Fix #ifdef
3503         SIGRTMIN case.
3504         (do_target_signal_to_host): Likewise.
3505
3506 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
3507
3508         * mips-tdep.c (mips_find_abi_section): New function.
3509         (mips_gdbarch_init): Call it.
3510
3511 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3512
3513         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3514         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
3515         after Andrew's 2002-06-08 gdbarch change.
3516
3517 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3518
3519         * i386-linux-nat.c (suppy_gregset): Don't supply
3520         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3521         register cache.
3522         (fill_gregset): Don't fetch it under the same circumstances.
3523
3524 2002-06-09  Andrew Cagney  <cagney@redhat.com>
3525
3526         * Makefile.in (callback_h): Define.
3527         (remote_sim_h): Update path to remote-sim.h.
3528         (remote-rdp.o): Add $(callback_h).
3529         (remote-sim.o): Use $(callback_h).
3530         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3531         * remote-rdp.c: Include "gdb/callback.h".
3532
3533 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3534
3535         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3536         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3537
3538 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3539
3540         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3541         * rdi-share/serpardr.c: Ditto.
3542         * rdi-share/unixcomm.c: Ditto.
3543         * rdi-share/serdrv.c: Ditto.
3544         * rdi-share/hostchan.h: Ditto.
3545         * rdi-share/hostchan.c: Ditto.
3546         * rdi-share/host.h: Ditto.
3547         * rdi-share/devsw.c: Ditto.
3548
3549         * objfiles.h: Change type of obj_private to void pointer.
3550         * pa64solib.c: Update copyright.  Don't include "assert.h", use
3551         strcmp instead of STREQ, use LONGEST, do not use PTR
3552         * somsolib.c: Ditto.
3553
3554         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3555         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3556         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3557
3558 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3559
3560         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3561         (default_get_saved_register): Delete function.
3562         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3563         generic_unwind_get_saved_register.
3564         * gdbarch.h, gdbarch.c: Re-generate.
3565         
3566 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3567
3568         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3569         generic_func_frame_chain_valid.
3570         * gdbarch.h, gdbarch.c: Re-generate.
3571         * blockframe.c (generic_func_frame_chain_valid): Only check
3572         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
3573         passing FP to PC_IN_CALL_DUMMY.
3574         Fix PR gdb/360.
3575
3576 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3577
3578         * gdbarch.sh (struct gdbarch_data): Add field init_p.
3579         (register_gdbarch_data): Initialize init_p.
3580         (gdbarch_data): Initialize data pointer using the init function.
3581         (init_gdbarch_data): Delete function.
3582         (gdbarch_update_p): Update.
3583         (initialize_non_multiarch): Update.
3584         (struct gdbarch): Add field initialized_p.
3585         * gdbarch.h, gdbarch.c: Re-generate.
3586
3587 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
3588
3589         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3590         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3591         better do the things actually here.
3592         * x86-64-tdep.c (x86_64_register_name2nr): New.
3593         (x86_64_register_name): Renamed to x86_64_register_nr2name.
3594         (x86_64_gdbarch_init): Respect the above change.
3595         * x86-64-tdep.h (x86_64_register_name2nr)
3596         (x86_64_register_nr2name): Add prototypes.
3597         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3598
3599 2002-06-06  Michael Snyder  <msnyder@redhat.com>
3600
3601         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3602         Delete extra braces and re-indent.
3603         (d10v_store_return_value): Char return values
3604         must be shifted over by one byte in R0.
3605         (d10v_extract_return_value): Delete extra braces, re-indent.
3606
3607 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
3608
3609         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3610         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3611         (d10v_integer_to_address): Rewrite.
3612         (d10v_frame_init_saved_regs): When reading fp and sp registers use
3613         the d10v specific functions which take care of converting to the
3614         correct space.
3615
3616 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
3617
3618         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3619         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3620
3621 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
3622
3623         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3624         includes.
3625         * config/tm-linux.h: Ditto.
3626         * config/alpha/tm-alphalinux.h: Ditto.
3627         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3628         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3629         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3630         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3631         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3632         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3633         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3634         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3635         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3636         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3637         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3638         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3639         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3640         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3641         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3642         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3643         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3644         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3645         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3646         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3647         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3648         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3649         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3650         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3651         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3652         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3653         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3654         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3655         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3656         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3657         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3658         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3659         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3660         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3661         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3662         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3663         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3664
3665 2002-05-04  Aidan Skinner <aidan@velvet.net>
3666
3667         * ada-exp.tab.c: New file
3668         * ada-exp.y: New file
3669         * ada-lang.c: New file
3670         * ada-lang.h: New file
3671         * ada-lex.c: New file
3672         * ada-lex.l: New file
3673         * ada-tasks.c: New file
3674         * ada-typeprint.c: New file
3675         * ada-valprint.c: New file
3676         
3677 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
3678
3679         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3680         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3681
3682 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
3683
3684         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3685         insetead of ppc-linux-tdep.o.
3686         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3687         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3688
3689 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
3690
3691         2002-05-07 Christian Groessler <chris@groessler.org>
3692         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3693         bit register contents for little endian hosts.
3694
3695 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
3696
3697         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3698         any maintainer.
3699
3700 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
3701
3702         * gdbarch.h: Regenerate.
3703
3704 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
3705
3706         * MAINTAINERS: Add everyone to write-after-approval list.
3707
3708 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
3709
3710         * stack.c (frame_info): Use frame_register_unwind instead of
3711         saved_regs.  Mention when the SP is on the stack or in a register.
3712
3713         * frame.h (frame_register_unwind_ftype): Define.  Document.
3714         (struct frame_info): Add field register_unwind and
3715         register_unwind_cache.
3716         (frame_register_unwind): Declare.
3717         (generic_unwind_get_saved_register): Declare.
3718
3719         * frame.c (frame_register_unwind): New function.
3720         (generic_unwind_get_saved_register): New function.
3721
3722         * blockframe.c (generic_call_dummy_register_unwind): New function.
3723         (frame_saved_regs_register_unwind): New function.
3724         (set_unwind_by_pc): New function.
3725         (create_new_frame): New function.
3726         (get_prev_frame): New function.
3727
3728 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
3729
3730         * a29k-share/: Delete directory.
3731         * remote-vx29k.c: Delete file.
3732
3733 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
3734
3735         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3736         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3737
3738 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
3739
3740         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3741         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3742         (sparc64nbsd-nat.o)
3743         (sparcnbsd-nat.o)
3744         (sparcnbsd-tdep.o): New dependency lists.
3745         * NEWS: Note new UltraSPARC NetBSD native configuration.
3746         * configure.host (sparc64-*-netbsd*): New host.
3747         * configure.tgt (sparc-*-netbsdelf*)
3748         (sparc-*-netbsd*): Set gdb_target to nbsd.
3749         (sparc64-*-netbsd*): New target.
3750         * sparc64nbsd-nat.c: New file.
3751         * sparcnbsd-nat.c: New file.
3752         * sparcnbsd-tdep.c: New file.
3753         * sparcnbsd-tdep.h: New file.
3754         * config/sparc/nbsd.mt: New file.
3755         * config/sparc/nbsd64.mh: New file.
3756         * config/sparc/nbsd64.mt: New file.
3757         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3758         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
3759         (HOST_IPC): Remove.
3760         * config/sparc/nbsdaout.mt: Remove.
3761         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3762         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
3763         (HOST_IPC): Remove.
3764         * config/sparc/nbsdelf.mt: Remove.
3765         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
3766         sparc-nat.c compatiblity defines.
3767         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
3768         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3769         * config/sparc/tm-nbsd64.h: New file.
3770         * config/sparc/tm-nbsdaout.h: Remove.
3771         * config/sparc/xm-nbsd.h: Remove.
3772
3773 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
3774
3775         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3776         * sparc-tdep.c: Include osabi.h.
3777         (gdbarch_tdep): Add osabi member.
3778         (_initialize_sparc_tdep): Use gdbarch_register.
3779         (sparc_gdbarch_init): Use generic OS ABI framework.
3780         (sparc_dump_tdep): New function.
3781
3782 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
3783
3784         * corefile.c (do_captured_read_memory_integer): Return non-zero
3785         result.
3786         (safe_read_memory_integer): Copy result of memory read when
3787         status is non-zero.  Also, add comments.
3788
3789 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
3790
3791         * Makefile.in (ppc_tdep_h): Define.
3792         (ppc-linux-nat.o)
3793         (ppc-linux-tdep.o)
3794         (rs6000-tdep.o): Use $(ppc_tdep_h).
3795         (ppc-sysv-tdep.o)
3796         (ppcnbsd-nat.o)
3797         (ppcnbsd-tdep.o): New dependency lists.
3798         * ppc-tdep.h: Use generic OS ABI framework.
3799         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3800         (ppc_linux_init_abi): New functions.
3801         (ppc_sysv_abi_broken_use_struct_convention)
3802         (ppc_sysv_abi_use_struct_convention)
3803         (ppc_sysv_abi_push_arguments): Move to...
3804         * ppc-sysv-tdep.c: ...here.
3805         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3806         * rs6000-tdep.c (process_note_abi_tag_sections)
3807         (get_elfosabi): Remove.
3808         (rs6000_gdbarch_init): Use generic OS ABI framework.
3809         (rs6000_dump_tdep): New function.
3810         (_initialize_rs6000_tdep): Use gdbarch_register.
3811         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3812         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3813         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3814         of ppc-linux-tdep.o.
3815         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3816         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3817         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3818         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3819         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3820         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3821
3822 2002-05-29  Jim Blandy  <jimb@redhat.com>
3823
3824         * macroscope.c (default_macro_scope): Put `void' in empty argument
3825         list.
3826
3827 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
3828
3829         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3830         * arch-utils.c: Include "sim-regno.h".
3831         * gdbarch.sh: Don't include "sim-regno.h".
3832         * gdbarch.h, gdbarch.c: Regenerate.
3833         * sim-regno.h (legacy_register_sim_regno): Move declaration from
3834         here.
3835         * arch-utils.h (legacy_register_sim_regno): To here.
3836         * remote-sim.c (legacy_register_sim_regno): Move function from
3837         here.
3838         * arch-utils.c (legacy_register_sim_regno): To here.
3839
3840 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
3841
3842         * sim-regno.h: New file.
3843         * Makefile.in (sim_regno_h): Define.
3844         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3845         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3846         (legacy_register_sim_regno): New function.
3847         (one2one_register_sim_regno): New function.
3848         (gdbsim_fetch_register): Rewrite.
3849         (gdbsim_store_register): Only store a register when
3850         REGISTER_SIM_REGNO is valid.
3851         * d10v-tdep.c: Include "sim-regno.h".
3852         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3853         (d10v_ts3_register_sim_regno): Ditto.
3854         * gdbarch.sh: Include "sim-regno.h".
3855         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3856         * gdbarch.h, gdbarch.c: Regenerate.
3857         * arch-utils.h (default_register_sim_regno): Delete declaration.
3858         * arch-utils.c (default_register_sim_regno): Delete function.
3859
3860 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
3861
3862         * ppcnbsd-nat.c: Rewrite.
3863         * ppcnbsd-tdep.c: New file.
3864         * ppcnbsd-tdep.h: New file.
3865         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3866         solib.o, and solib-svr4.o.
3867         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3868         nbsd-tdep.o, and corelow.o.
3869
3870 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
3871
3872         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3873         `tr' and `sed'.  Mention that `broken' targets are not expected to
3874         build.
3875
3876 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
3877
3878         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3879         Let PC point right after the prologue before looking up symbols.
3880         
3881 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
3882
3883         * i386-tdep.c (i386_register_virtual_type): Return 
3884         builtin_type_vec128i for SSE registers.
3885
3886         * gdbtypes.h (builtin_type_vec128i): Declare.
3887
3888         * gdbtypes.c (build_builtin_type_vec128i): New function.
3889         (builtin_type_v2_double, builtin_type_v4_int64): New types.
3890         (builtin_type_vec128i): New type for SSE2 128-bit registers.
3891         (build_gdbtypes): Initialize new builtin vector types.
3892         (_initialize_gdbtypes): Register new vector types with gdbarch.
3893
3894 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
3895
3896         * MAINTAINERS: ns32k is not longer an obsolete candidate,
3897         since it has been multi-arch'd.
3898         * NEWS: Note that ns32k-*-* is now partial multi-arch.
3899         Move Alpha and VAX multi-arch news entries to same section
3900         as other multi-arch news.
3901
3902 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
3903
3904         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3905         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
3906         static.  Rename some register numbers to put them in ns32k-tdep
3907         private namespace.
3908         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3909         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3910         functions.
3911         (_initialize_ns32k_tdep): Use gdbarch_register.
3912         * ns32k-tdep.h: New file.
3913         * ns32knbsd-tdep.c: New file.
3914         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3915         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3916         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3917         REGISTER_BYTES, REGISTER_BYTE): Remove.
3918         * config/ns32k/tm-ns32k.h: New file.
3919         * config/ns32k/tm-umax.h: Remove.
3920
3921 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
3922
3923         * ns32k-tdep.c (ns32k_saved_pc_after_call,
3924         ns32k_store_struct_return, ns32k_extract_return_value,
3925         ns32k_store_return_value, ns32k_extract_struct_value_address): New
3926         functions.
3927         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3928         ns32k_saved_pc_after_call.
3929         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3930         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3931         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3932         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3933         ns32k_extract_struct_value_address.
3934
3935 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
3936
3937         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3938         ns32k_fix_call_dummy): New.
3939         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3940         ns32k_call_dummy_words.
3941         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3942         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3943         CALL_DUMMY_NARGS): Remove.
3944         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3945
3946 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
3947
3948         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3949         ns32k_frame_saved_pc, ns32k_frame_args_address,
3950         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3951         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3952         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3953         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3954         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3955         (BREAKPOINT): Remove..
3956         (FRAME_CHAIN): Define as ns32k_frame_chain.
3957         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3958         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3959         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3960         (FRAME_FIND_SAVED_REGS): Remove.
3961         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3962         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3963         (POP_FRAME): Define as ns32k_pop_frame.
3964
3965 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
3966
3967         * ns32k-tdep.c (ns32k_register_byte_32082,
3968         ns32k_register_byte_32382, ns32k_register_raw_size,
3969         ns32k_register_virtual_size, ns32k_register_virtual_type): New
3970         functions.
3971         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3972         ns32k_register_byte_32382.
3973         * config/ns32k/tm-umax.h: Update copyright years.
3974         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3975         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3976         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3977         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3978         (ns32k_get_enter_addr): Fix prototype.
3979
3980 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
3981
3982         * ns32k-tdep.c: Update copyright years.
3983         (ns32k_register_name_32082): New function.
3984         (ns32k_register_name_32382): Ditto.
3985         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3986         (REGISTER_NAME): Define as ns32k_register_name_32382.
3987         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3988         (REGISTER_NAME): Define as ns32k_register_name_32082.
3989
3990 2002-05-24  Jim Blandy  <jimb@redhat.com>
3991
3992         * dwarf2read.c (free_line_header): Use xfree, not free.
3993
3994 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
3995
3996         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3997         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3998
3999 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4000
4001         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4002
4003 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4004
4005         From Ross Alexander at NEC Europe:
4006         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4007
4008 2002-05-23  Michael Snyder  <msnyder@redhat.com>
4009
4010         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4011         for input, rather than parse_and_eval_address.  
4012
4013 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4014
4015         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4016         * Makefile.in (sim_d10v_h): Update definition.
4017
4018 2002-05-24  Andrew Cagney  <cagney@redhat.com>
4019
4020         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4021         change `2002-05-22 Michael Snyder' below.
4022         (d10v_push_arguments): Ditto.
4023         (d10v_extract_return_value): Ditto.
4024
4025 2002-05-23  Jim Blandy  <jimb@redhat.com>
4026
4027         * macrotab.c (check_for_redefinition): Don't complain if the new
4028         definition is the same as the previous one.  Take more arguments
4029         to allow the comparison.
4030         (macro_define_object, macro_define_function): Pass more arguments
4031         to check_for_redefinition.
4032
4033 2002-05-22  Michael Snyder  <msnyder@redhat.com>
4034
4035         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4036         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4037         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4038         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4039         Don't bail if return_pc is PC_IN_CALL_DUMMY.
4040         Add a temp variable to save a call (and a memory read).
4041         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4042         if possible (so that PC_IN_CALL_DUMMY will work).
4043
4044 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
4045
4046         * MAINTAINERS: Remove status `OBSOLETE' from v850.
4047
4048 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
4049
4050         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4051         fde->cie_ptr.
4052         (dwarf2_build_frame_info): Corrected handling of eh_frame.
4053         (dwarf2_build_frame_info): Add offset to fde->initial_location 
4054         so that frames of shared libraries are mapped correctly.
4055         (execute_stack_op): Change type of 'result' from ULONGEST to
4056         CORE_ADDR.
4057         
4058 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4059
4060         * config/alpha/tm-nbsd.h: Include solib.h.
4061
4062 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4063
4064         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4065         assumptions about the host's byte order.
4066
4067 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4068
4069         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4070         to dependency list.
4071         * alphanbsd-tdep.c: Include solib-svr4.h.
4072         * shnbsd-tdep.c: Ditto.
4073
4074 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4075
4076         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4077         nbsd-tdep.h to dependency list.
4078         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4079         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4080         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4081         nbsdaout.mh and nbsdelf.mh consistently.
4082         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4083         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4084         nbsdaout.mt and nbsdelf.mh consistently.
4085         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
4086         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4087         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4088         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
4089         a.out shared library stuff from here...
4090         * config/nm-nbsdaout.h: ...to here.
4091         * config/tm-nbsd.h: Remove.
4092         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4093         * config/arm/nbsd.mh: Remove.
4094         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4095         nbsd-tdep.o.
4096         * config/arm/nbsdaout.mh: New file. 
4097         * config/arm/nbsdelf.mh: New file.
4098         * config/arm/nm-nbsdaout.h: New file.
4099         * config/i386/nbsd.mh: Remove.
4100         * config/i386/nbsd.mt: Remove.
4101         * config/i386/nbsdaout.mh: New file.
4102         * config/i386/nbsdaout.mt: New file.
4103         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4104         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4105         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
4106         i386_register_u_addr): Remove.
4107         * config/i386/nm-nbsdaout.h: New file.
4108         * config/i386/nm-nbsdelf.h: Remove.
4109         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4110         (USE_STRUCT_CONVENTION): Remove.
4111         * config/i386/tm-nbsdaout.h: New file.
4112         * config/i386/tm-nbsdelf.h: Remove.
4113         * config/m68k/nbsd.mh: Remove.
4114         * config/m68k/nbsd.mt: Remove.
4115         * config/m68k/nbsdaout.mh: New file.
4116         * config/m68k/nbsdaout.mt: New file. 
4117         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4118         * config/m68k/nm-nbsdaout.h: New file.
4119         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4120         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4121         * config/ns32k/nbsd.mh: Remove.
4122         * config/ns32k/nbsd.mt: Remove. 
4123         * config/ns32k/nbsdaout.mh: New file.
4124         * config/ns32k/nbsdaout.mt: New file.
4125         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
4126         * config/ns32k/nm-nbsdaout.h: New file.
4127         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
4128         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4129         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4130         (SVR4_SHARED_LIBS): Remove.
4131         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4132         * config/sparc/nbsd.mh: Remove.
4133         * config/sparc/nbsd.mt: Remove.
4134         * config/sparc/nbsdaout.mh: New file.
4135         * config/sparc/nbsdaout.mt: New file.
4136         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4137         * config/sparc/nbsdelf.mt: New file.
4138         * config/sparc/nm-nbsdaout.h: New file.   
4139         * config/sparc/nm-nbsdelf.h: Remove.
4140         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4141         * config/sparc/tm-nbsdaout.h: New file.
4142
4143 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4144
4145         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4146         mipsnbsd-tdep.c
4147         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4148
4149 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4150
4151         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4152         shnbsd-nat.c.
4153         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4154
4155 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4156
4157         * NEWS: Note new MIPS NetBSD native configuration. 
4158         * configure.host (mips*-*-netbsd*): New host. 
4159         * configure.tgt (mips*-*-netbsd*): New target. 
4160         * mipsnbsd-nat.c: New file.
4161         * mipsnbsd-tdep.c: New file.
4162         * mipsnbsd-tdep.h: New file.
4163         * config/mips/nbsd.mh: New file.
4164         * config/mips/nbsd.mt: New file.
4165         * config/mips/nm-nbsd.h: New file.
4166         * config/mips/tm-nbsd.h: New file.
4167
4168 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4169
4170         * Makefile.in (SFILES): Add osabi.c.
4171         (COMMON_OBS): Add osabi.o.
4172         (osabi.o): New dependency list.
4173         * osabi.c: New file.
4174         * osabi.h: New file.
4175         * doc/gdbint.texinfo: Document new generic OS ABI framework.
4176
4177         * Makefile.in (alpha_tdep_h): Define and use instead of
4178         alpha-tdep.h.
4179         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4180         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4181         Remove.
4182         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4183         * alpha-tdep.h: Include osabi.h.
4184         (alpha_abi): Remove.
4185         (gdbarch_tdep): Use generic OS ABI framework.
4186         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4187         gdbarch_register_osabi.
4188         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4189         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4190         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4191
4192         * Makefile.in (sh_tdep_h): Add osabi.h.
4193         * sh-tdep.h (sh_osabi): Remove.
4194         (gdbarch_tdep): Use generic OS ABI framework.
4195         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4196         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4197         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4198         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4199
4200         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4201         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4202         gdbarch_register_osabi.
4203         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4204         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4205         (get_elfosabi): Rename to...
4206         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
4207         ABI framework support routines.
4208         (arm_gdbarch_init): Use generic OS ABI framework.
4209         (arm_dump_tdep): Likewise.
4210         (_initialize_arm_tdep): Likewise.
4211         * arm-tdep.h: Include osabi.h.
4212         (arm_abi): Remove.
4213         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
4214         osabi member.
4215         (arm_gdbarch_register_os_abi): Remove prototype.
4216         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4217         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4218
4219         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4220         * mips-tdep.c: Include osabi.h.
4221         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4222         OS ABI framework.
4223
4224 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
4225
4226         * h8300-tdep.c: Fix formatting.
4227
4228 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
4229
4230         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4231         printing vector registers.
4232
4233 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4234
4235         From Fernando Nasser:
4236         * remote.c (remote_async_open_1): Re-throw the exception when the
4237         connection fails.
4238         (remote_cisco_open): Ditto.
4239         (remote_open_1): Ditto.
4240
4241 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4242
4243         * remote.c (remote_start_remote_dummy): Add uiout parameter.
4244         (remote_start_remote): Add uiout parameter.  Pass through to
4245         remote_start_remote_dummy.
4246         (remote_open_1): Use catch_exception instead of catch_errors.
4247         (remote_async_open_1): Ditto.
4248         (remote_cisco_open): Ditto.
4249
4250 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4251
4252         * remote.c (remote_start_remote): Replace PTR with void pointer.
4253         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
4254         static.
4255
4256 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
4257
4258         * gdb_indent.sh: Allow the script to be run in the sim directory.
4259
4260 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
4261
4262         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4263         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4264
4265         * corelow.c (core_open): Only call set_gdbarch_from_file if
4266         exec_bfd is NULL.
4267
4268 2002-05-17  Andrey Volkov <avolkov@transas.com>
4269
4270         * h8300-tdep.c: Add support of EXR register
4271         * config/h8300/tm-h8300.h: Ditto. 
4272         
4273 2002-05-17  Andrey Volkov <avolkov@transas.com>
4274
4275         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
4276         
4277 2002-05-17  Andrey Volkov <avolkov@transas.com>
4278
4279         * h8300-tdep.c: Change literal regnums to REGNO.
4280         
4281 2002-05-17  Jim Blandy  <jimb@redhat.com>
4282
4283         * NEWS: Note addition of macro support.
4284
4285         Expand preprocessor macros in C expressions.
4286         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4287         (scan_macro_expansion, scanning_macro_expansion,
4288         finished_macro_expansion): New function declarations.
4289         (expression_macro_lookup_func, expression_macro_lookup_baton): New
4290         variable declarations.
4291         * parser-defs.h (expression_context_pc): New declaration.
4292         * parse.c (expression_context_pc): New variable.
4293         (parse_exp_1): Set expression_context_pc, as well as
4294         expression_context_block.
4295         * c-exp.y (yylex): If we're not already reading the result of a
4296         macro expansion, try to macro-expand the next token.  When we're
4297         done scanning a macro expansion, switch back to the mainline text.
4298         Commas and `if's in a macro's expansion don't terminate the input.
4299         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4300         (macro_original_text, macro_expanded_text,
4301         expression_macro_lookup_func, expression_macro_lookup_baton): New
4302         variables.
4303         (scan_macro_expansion, scanning_macro_expansion,
4304         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4305         c_preprocess_and_parse): New functions.
4306         (c_language_defn, cplus_language_defn, asm_language_defn): Call
4307         c_preprocess_and_parse, instead of c_parse.
4308         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4309         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4310
4311 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
4312
4313         * sh-tdep.c (gdb_print_insn_sh64): Delete.
4314         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4315         (sh_gdbarch_init): Always use gdb_print_insn_sh.
4316
4317 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
4318
4319         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
4320
4321 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
4322
4323         * Makefile.in (sh_tdep_h): Define and use.
4324         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4325         register enum): Move to...
4326         * * sh-tdep.h: ...here.
4327         * sh-tdep.c: Include sh-tdep.h.
4328         * sh3-rom.c: Likewise.
4329         * shnbsd-tdep.c: Likewise.
4330
4331 2002-05-16  Michael Snyder  <msnyder@redhat.com>
4332
4333         * arm-tdep.c: Spelling fix in comment.
4334
4335 2002-05-16  Jim Blandy  <jimb@redhat.com>
4336
4337         Add commands for manually expanding macros and showing their
4338         definitions.
4339         * macrocmd.c, macroscope.c, macroscope.h: New files.
4340         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4341         (macroscope_h): New variable.
4342         (HFILES_NO_SRCDIR): Add macroscope.h.
4343         (COMMON_OBS): Add macrocmd.o, macroscope.o.
4344         (macroscope.o, macrocmd.o): New rules.
4345
4346         Teach the Dwarf 2 reader to read macro information.
4347         * dwarf2read.c: #include "macrotab.h".
4348         (dwarf_macinfo_buffer): New variable.
4349         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4350         dwarf_macinfo_size.
4351         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4352         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4353         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4354         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4355         dwarf2_macro_spaces_in_definition): New complaints.
4356         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4357         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4358         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4359         the partial symbol table.
4360         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4361         from what's recorded in the partial symbol table.
4362         (read_file_scope): If the compilation unit has a
4363         `DW_AT_macro_info' attribute, read its macro information.
4364         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4365
4366 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
4367
4368         Fix PR gdb/546
4369         * ser-tcp.c: Don't include <netinet/udp.h>.
4370
4371 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
4372
4373         * MAINTAINERS: Update my email address.
4374
4375 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
4376
4377         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4378         include file of the same name.
4379
4380 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4381
4382         * configure.tgt: Mark v850 as multi-arched.
4383         * config/v850/tm-v850.h: Remove file.
4384         * config/v850/v850.mt: Eliminate TM_FILE.
4385
4386 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4387
4388         * v850-tdep.c: Full multi-arch.
4389         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4390         Define GDB_MULTI_ARCH to 2.
4391
4392 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4393
4394         * p-exp.y (current_type): New static variable.
4395         Carries the type of the expression at the position that is parsed.
4396         (push_current_type, pop_current_type): Two new functions. Used
4397         to store/restore current_type in expression on specific tokens.
4398         (search_field): New static variable. Set to one after parsing a point
4399         as at that point only a FIELDNAME token should be searched.
4400         (FIELDNAME): New token. After a point only a token belonging to 
4401         current_type type definition is allowed.
4402         (all over token rules): reset and change current_type according
4403         to rules.
4404         (exp '[' rule): insert implicit array index field if
4405         exp is a pascal string type.
4406
4407 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4408
4409         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
4410         frame info.  Use frame_info's saved_regs instead of matching member
4411         in extra_frame_info throughout.
4412         (v850_frame_init_saved_regs): New function.
4413         (v850_init_extra_frame_info): Move most functionality into
4414         v850_frame_init_saved_regs().
4415         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4416         (v850_frame_find_saved_regs): Remove declaration.
4417         (FRAME_FIND_SAVED_REGS): Remove definition.
4418         (v850_frame_init_saved_regs): Add declaration.
4419         (FRAME_INIT_SAVED_REGS): Add definition.
4420
4421 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4422
4423         * v850-tdep.c: Begin multi-arch'ing v850.
4424         (v850_target_architecture_hook): Remove function.
4425         (v850_gdbarch_init): New function.  Add code previously in
4426         v850_target_architecture_hook().
4427         (_initialize_v850_tdep): Don't  set target_architecture_hook.
4428         Call register_gdbarch_init() instead.
4429
4430 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
4431
4432         * gdbtypes.h (struct cplus_struct_type): Remove args field.
4433         * hpread.c (hpread_read_struct_type): Remove assignments to args.
4434         (fixup_class_method_type): Likewise.
4435
4436 2002-05-15  Daniel Jacobowitz  <drow@mvista.com>
4437
4438         From Martin Pool <mbp@samba.org>:
4439         * gdbserver/server.c (gdbserver_usage): New function.
4440         (main): Call it.
4441
4442 2002-05-15  Jim Blandy  <jimb@redhat.com>
4443
4444         Add macro structures to GDB's symbol tables.  Nobody puts anything
4445         in them yet.
4446         * symtab.h (struct symtab): New member: `macro_table'.
4447         * buildsym.h (pending_macros): New global variable.
4448         * buildsym.c: #include "macrotab.h".
4449         (buildsym_init): Initialize `pending_macros'.
4450         (end_symtab): If we found macro information while reading a CU's
4451         debugging info, do build a symtab structure for it.  Make the
4452         symtab point to the macro information, and clear the
4453         `pending_macros' pointer which held it while we were reading the
4454         debug info.
4455         (really_free_pendings): Free any pending macro table.
4456         * objfiles.h (struct objfile): New member: `macro_cache'.
4457         * objfiles.c (allocate_objfile): Set allocate and free functions
4458         for the macro cache's objstack.
4459         (free_objfile): Empty the macro cache's obstack.
4460         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4461         set new allocate and free functions for it.
4462         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4463         free functions for the macro cache's objstack.  (Why is this
4464         function building its own objfile?)
4465         * symmisc.c (print_objfile_statistics): Print statistics on the
4466         macro bcache.
4467         * Makefile.in: Note that buildsym.o depends on macrotab.h.
4468
4469 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
4470
4471         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4472         (REGISTER_U_ADDR): Delete definition.
4473         (arm_register_u_addr): Delete declaration.
4474
4475 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
4476
4477         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4478         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4479
4480 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
4481
4482         * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4483         stop_at -> stop_pc.
4484
4485 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
4486
4487         * regcache.c (register_valid): Revise comments refering to "Not
4488         available" and "unavailable".
4489         * frame.c (frame_register_read): Ditto.
4490         * findvar.c (value_of_register): Ditto.
4491
4492 2002-05-15  Andrew Cagney  <cagney@redhat.com>
4493
4494         * Makefile.in (remote_sim_h): Replace remote-sim_h.
4495         (remote-sim.o): Update dependencies.
4496         (d10v-tdep.o): Specify dependencies.
4497         (sim_d10v_h): Define.
4498
4499 2002-05-14  Jim Blandy  <jimb@redhat.com>
4500
4501         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4502         * macrotab.c (macro_lookup_inclusion, find_definition,
4503         new_macro_table): Same.
4504         
4505         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4506         not `! strcmp ()'.  This is a dubious improvement.
4507         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4508
4509         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4510         although it's not necessary, to avoid a warning.
4511
4512 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
4513
4514         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4515         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4516         TYPE_INSTANCE_FLAGS.
4517         (struct main_type): New.
4518         (struct type): Move most members to struct main_type.  Change
4519         cv_type and as_type to new type_chain member.  Add instance_flags.
4520         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4521         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4522         (finish_cv_type): Remove prototype.
4523         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
4524         Set TYPE_CHAIN.
4525         (alloc_type_instance): New function.
4526         (smash_type): New function.
4527         (make_pointer_type, make_reference_type, make_function_type)
4528         (smash_to_member_type, smash_to_method_type): Call smash_type.
4529         (make_qualified_type): New function.
4530         (make_type_with_address_space): Call make_qualified_type.
4531         (make_cv_type): Likewise.
4532         (finish_cv_type): Remove unnecessary function.
4533         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
4534         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4535         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4536         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4537         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4538         * hpread.c (hpread_read_struct_type): Likewise.
4539         * stabsread.c (read_struct_type): Likewise.
4540
4541 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
4542
4543         * configure.tgt: Add a catch all sh* target, for cases like
4544         sh[2,3,4]-elf and sh-hms.
4545
4546 2002-05-14  Keith Seitz  <keiths@redhat.com>
4547
4548         * event-loop.c (create_file_handler): Don't do anything but
4549         update data when we are given a fd which we are already
4550         monitoring.
4551
4552 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
4553
4554         * dwarf2cfi.c (context_cpy): Copy registers correctly.
4555         (update_context): Use __func__ in warnings.
4556         
4557 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
4558
4559         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
4560         and tcp_close to net_open and net_close.
4561         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
4562         using UDP if requested.  Don't try to disable Nagle on UDP
4563         sockets.
4564         * remote.c (remote_serial_open): New function.  Warn about UDP.
4565         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4566
4567 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
4568
4569         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4570
4571 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
4572
4573         * configure.tgt: Remove sh-hms target.
4574         * MAINTAINERS: Don't list sh-hms as a separate target.
4575
4576 2002-05-13  Jim Blandy  <jimb@redhat.com>
4577
4578         Add first preprocessor macro-expansion files.
4579         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4580         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4581         (splay_tree_h, macroexp_h, macrotab_h): New variable.
4582         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4583         (COMMON_OBS): Add macrotab.o, macroexp.o.
4584         (macroexp.o, macrotab.o): New rules.
4585
4586 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
4587
4588         * config/m88k/tm-m88k.h: Update copyright.
4589         (m88k_target_write_pc): Declare
4590         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4591         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4592         (SHIFT_INST_REGS): Update definition.
4593         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
4594         using old definition of TARGET_WRITE_PC.
4595         * regcache.c (generic_target_write_pc): Delete code handling
4596         NNPC_REGNUM.
4597         * gdbarch.sh (NNPC_REGNUM): Delete.
4598         * gdbarch.h, gdbarch.c: Regenerate.
4599
4600 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
4601
4602         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4603         builtin reg number.
4604
4605 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
4606
4607         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4608         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4609         (gen_address_of, gen_struct_ref, gen_repeat): Use type
4610         access macros.
4611         * c-typeprint.c (cp_type_print_method_args): Likewise.
4612         (c_type_print_args): Likewise.
4613         * d10v-tdep.c (d10v_push_arguments): Likewise.
4614         (d10v_extract_return_value): Likewise.
4615         * expprint.c (print_subexp): Likewise.
4616         * gdbtypes.c (lookup_primitive_typename): Likewise.
4617         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4618         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4619         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4620         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4621         (TYPE_VECTOR): Likewise.
4622         * hpread.c (hpread_read_struct_type)
4623         (fix_static_member_physnames, fixup_class_method_type)
4624         (hpread_type_lookup): Likewise.
4625         * mdebugread.c (parse_symbol, parse_type): Likewise.
4626         * p-lang.c (is_pascal_string_type): Likewise.
4627         * valops.c (hand_function_call): Likewise.
4628         * x86-64-tdep.c (classify_argument): Likewise.
4629
4630         * hpread.c (hpread_read_function_type)
4631         (hpread_read_doc_function_type): Call replace_type.
4632         * dstread.c (create_new_type): Delete.
4633         (decode_dst_structure, process_dst_function): Call alloc_type.
4634         Use type access macros.
4635
4636 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
4637
4638         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4639         the're not supported by the current architecture.
4640         (i387_fill_fxsave): Likewise.
4641
4642 2002-05-12  Fred Fish  <fnf@redhat.com>
4643
4644         * symfile.c (default_symfile_offsets): Arrange for uninitialized
4645         sect_index_xxx members to index the first slot in section_offsets
4646         if all of the section_offsets are zero.
4647
4648 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
4649
4650         * configure.tgt (sparc-*openbsd): Remove entry accidentially
4651         checked in with last change.
4652
4653 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
4654
4655         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4656         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
4657         config.sub.
4658
4659 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
4660
4661         * Makefile.in: Update dependencies.
4662
4663 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
4664
4665         * language.c (local_hex_string_custom): Simplify.  Do not depend
4666         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4667
4668         * memattr.c (mem_info_command): Replace calls to
4669         longest_local_hex_string and longest_local_hex_string_custom.
4670         * buildsym.c (make_blockvector): Ditto.
4671         * solib.c (info_sharedlibrary_command): Ditto.
4672         * tracepoint.c (tracepoints_info): Ditto.
4673         * symtab.c (print_msymbol_info): Ditto.
4674
4675         * language.c (local_hex_string): Delete.
4676         (local_hex_string_custom): Delete.
4677         (longest_local_hex_string): Rename to local_hex_string.
4678         (longest_local_hex_string_custom): Rename to
4679         local_hex_string_custom.
4680         * language.h (local_hex_string): Change parameter type to LONGEST.
4681         (local_hex_string_custom): Ditto.
4682         (longest_local_hex_string): Delete declaration.
4683         (longest_local_hex_string_custom): Ditto.
4684
4685         * solib.c: Update copyright.
4686         * memattr.c: Update copyright.
4687         
4688 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
4689
4690         * arch-utils.h (legacy_register_to_value): Declare.
4691         (legacy_value_to_register): Declare.
4692         (legacy_convert_register_p): Declare.
4693         * arch-utils.c (legacy_register_to_value): New function.
4694         (legacy_value_to_register): New function.
4695         (legacy_convert_register_p): New function.
4696
4697         * gdbarch.sh (REGISTER_TO_VALUE): Define.
4698         (VALUE_TO_REGISTER): Define.
4699         (CONVERT_REGISTER_P): Define.
4700         * gdbarch.h, gdbarch.c: Regenerate.
4701
4702         * valops.c (value_assign): Use CONVERT_REGISTER_P and
4703         VALUE_TO_REGISTER.
4704         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4705         CONVERT_REGISTER_P.
4706
4707 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
4708             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4709
4710         * Makefile.in: Update dependencies for valops.c.
4711         * valops.c: Include "gdb_assert.h".
4712         (typecmp): Skip THIS parameter to methods.
4713         (find_method_list): Remove static_memfuncp argument,
4714         update callers.  Check for stub methods.
4715         (find_value_oload_method_list): Don't set *static_memfuncp.
4716         (find_overload_match): Don't check for stub methods.  Assert
4717         that methods are not stubbed.  Handle static methods.
4718         (value_find_oload_method_list): Remove static_memfuncp argument.
4719         * gdbtypes.c (check_stub_method): Do not add THIS pointer
4720         to the argument list for static stub methods.
4721         * value.h (value_find_oload_method_list): Update prototype.
4722
4723 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
4724
4725         * arch-utils.h (generic_register_size): Declare.
4726         (generic_register_raw_size, generic_register_virtual_size): Delete
4727         declarations.
4728         * arch-utils.c (generic_register_raw_size): Delete.
4729         (generic_register_size): New function.
4730         (generic_register_virtual_size): Delete.
4731
4732         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4733         default generic_register_size.
4734         * gdbarch.h, gdbarch.c: Re-generate.
4735         
4736         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4737         register_virtual_size.
4738         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4739         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4740
4741 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
4742
4743         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4744         * gdbarch.h, gdbarch.c: Regenerate.
4745         * gnu-v3-abi.c: Update copyright.
4746         (vtable_address_point_offset): Update.
4747         (gnuv3_rtti_type): Update.
4748         (gnuv3_baseclass_offset): Update.
4749         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4750         (init_fetch_link_map_offsets): Update.
4751         * remote.c (get_remote_state): Update.
4752         
4753 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
4754
4755         * TODO: Remove value_headof/value_from_vtable_info comment.
4756         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4757         * values.c (value_headof, value_from_vtable_info): Delete.
4758         * value.h (value_from_vtable_info): Delete prototype.
4759
4760 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
4761
4762         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4763         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4764         $(gdb_regex_h).
4765         (gdb_assert_h): Define.
4766         (gdb_wait_h): Define.
4767         (gdb_regex_h): Define.
4768
4769 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
4770
4771         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4772         * linespec.c (find_methods): Handle GCC 3.x template constructors.
4773
4774 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
4775
4776         * nbsd-tdep.c: Fix comment.
4777
4778 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
4779
4780         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4781         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4782         (nbsd-tdep.o): New dependency list.
4783         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
4784         nbsd-tdep.h.
4785         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4786         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4787         * nbsd-tdep.c: New file.
4788         * nbsd-tdep.h: New file.
4789         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
4790         nbsd-tdep.h.
4791         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4792         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4793         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4794         * config/sh/nbsd.mt (TDEPFILES): Ditto.
4795
4796 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
4797
4798         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4799         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4800         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4801         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4802         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4803         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4804
4805 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
4806
4807         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4808         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4809         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4810         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4811         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4812         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4813         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4814
4815 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
4816
4817         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
4818         fetch_elfcore_registers to...
4819         * i386nbsd-tdep.c: ...here.
4820         (i386nbsd_use_struct_convention): Rename to...
4821         (i386nbsd_aout_use_struct_convention): ...this.
4822         (i386nbsd_supply_reg): New function.
4823         (i386nbsd_fill_reg): New function.
4824         (fetch_core_registers): Use i386nbsd_supply_reg.
4825         (fetch_elfcore_registers): Likewise.
4826         (_initialize_i386nbsd_tdep): New function.
4827         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4828         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4829         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4830         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4831         (i386nbsd_aout_use_struct_convention): ...this.
4832
4833 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
4834
4835         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4836         (store_inferior_registers): Use shnbsd_fill_reg.
4837         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
4838         sh_nbsd_supply_register): Collapse into...
4839         (shnbsd_supply_reg): ...this.
4840         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4841         (shnbsd_fill_reg): ...this.
4842         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4843         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4844         (fetch_core_registers): Use shnbsd_supply_reg.
4845         (fetch_elfcore_registers): Use shnbsd_supply_reg.
4846         (sh_nbsd_core_fns): Rename to...
4847         (shnbsd_core_fns): ...this.
4848         (sh_nbsd_elfcore_fns): Rename to...
4849         (shnbsd_elfcore_fns): ...this.
4850         (sh_nbsd_init_abi): Rename to...
4851         (shnbsd_init_abi): ...this.
4852         (_initialize_sh_nbsd_tdep): Rename to...
4853         (_initialize_shnbsd_tdep): ...this.
4854         * shnbsd-tdep.h (sh_nbsd_supply_registers,
4855         sh_nbsd_supply_register, sh_nbsd_fill_registers,
4856         sh_nbsd_fill_register): Remove prototypes.
4857         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4858
4859 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
4860
4861         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4862         (i387-nat.o): Delete dependency list.
4863         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4864         (x86-64-linux-nat.o): Likewise.
4865         * i387-nat.c: Delete file, moving contents to...
4866         * i387-tdep.c: ...here.
4867         * i387-nat.h: Rename...
4868         * i387-tdep.h: ...to this.
4869         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4870         * i386-linux-nat.c: Likewise.
4871         * i386bsd-nat.c: Likewise.
4872         * i386gnu-nat.c: Likewise.
4873         * i386nbsd-nat.c: Likewise.
4874         * i386v4-nat.c: Likewise.
4875         * x86-64-linux-nat.c: Likewise.
4876         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4877         * config/i386/go32.mh (NATDEPFILES): Likewise.
4878         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4879         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4880         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4881         * config/i386/linux.mh (NATDEPFILES): Likewise.
4882         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4883         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4884         * config/i386/obsd.mh (NATDEPFILES): Likewise.
4885         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4886
4887 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
4888
4889         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4890         (alphanbsd-nat.o): Remove dependency list.
4891         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4892         * alphanbsd-nat.c: Delete.  Contents moved to...
4893         * alphanbsd-tdep.c: ...here.
4894         (_initialize_alphanbsd_tdep): Register core functions.
4895         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4896
4897 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
4898
4899         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4900         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4901         (alphanbsd-nat.o): Likewise.
4902         (alphabsd-tdep.o): New dependency list.
4903         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4904         (fill_gregset): Use alphabsd_fill_reg.
4905         (supply_fpregset): Use alphabsd_supply_fpreg.
4906         (fill_fpregset): Use alphabsd_fill_fpreg.
4907         (fetch_inferior_registers): Use struct reg and struct fpreg
4908         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
4909         and alphabsd_supply_fpreg.
4910         (store_inferior_registers): Use struct reg and struct fpreg
4911         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
4912         and alphabsd_fill_fpreg.
4913         * alphabsd-tdep.c: New file.
4914         * alphabsd-tdep.h: New file.
4915         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4916         (fetch_elfcore_registers): Use alphabsd_supply_reg and
4917         alphabsd_supply_fpreg.
4918         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4919         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4920
4921 2002-05-11  Eric Christopher  <echristo@redhat.com>
4922
4923         * mips-tdep.c (mips_double_register_type): Fix thinko.
4924         (mips_single_register_type): Ditto.
4925         * MAINTAINERS: Add self.
4926
4927 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
4928
4929         * i387-nat.c (i387_supply_register, i387_fill_fsave,
4930         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4931         right thing on architectures with different endianness and/or
4932         integer sizes.
4933
4934 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
4935
4936         From Christian Limpach <chris@Pin.LU>
4937         * configure.in: Change sed expression which comments out
4938         NATDEPFILES to also comment out continuation lines.
4939         * configure: Regenerate.
4940
4941 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
4942
4943         * sh-tdep.c: Clean up code erroneously reintroduced by previous
4944         big patch.
4945
4946 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
4947
4948         * sh-tdep.c: Include correct file.
4949
4950 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
4951
4952         New support for sh64-elf (sh5) target.
4953
4954         * configure.tgt: For sh64-elf target, default to sh-elf.
4955
4956         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4957         (struct gdbarch_tdep): Add new fields for new registers and ABI
4958         info.
4959
4960         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4961         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4962         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4963         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4964         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4965         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4966         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4967         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4968         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4969         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4970         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4971         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4972         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4973         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4974         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4975         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4976         sh64_get_gdb_regnum, sh64_media_reg_base_num,
4977         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4978         sign_extend, sh64_nofp_frame_init_saved_regs,
4979         sh64_init_extra_frame_info, sh64_get_saved_register,
4980         sh64_extract_struct_value_address, sh64_pop_frame,
4981         sh64_push_arguments, sh64_extract_return_value,
4982         sh64_store_return_value, sh64_show_media_regs,
4983         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4984         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4985         sh_sh64_register_virtual_type,
4986         sh_sh64_register_convert_to_virtual,
4987         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4988         sh64_register_read, sh64_pseudo_register_write,
4989         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4990         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4991         sh64_do_pseudo_register, sh_compact_do_registers_info,
4992         sh64_do_registers_info, sh_gdbarch_init): New functions.
4993
4994 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
4995
4996         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4997
4998 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
4999
5000         * linespec.c (decode_line_1): Check for a double quote after
5001         a filename correctly.
5002
5003 2002-05-10  Jim Blandy  <jimb@redhat.com>
5004
5005         Properly track the size of the current objfile's .debug_line section.
5006         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5007         (DWARF_LINE_SIZE): New macro.
5008         (dwarf2_build_psymtabs_hard): Record the line section's size in
5009         the partial symbol table.
5010         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5011         symbol table.
5012
5013 2002-05-10  Petr Sorfa  <petrs@caldera.com>
5014
5015         * ia64-tdep.c: Handle breakpoints on L instruction type
5016         in MLX instruction bundle by moving the breakpoint to
5017         the third slot (X instruction type) as L holds only data.
5018
5019 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
5020
5021         * dbxread.c (discarding_local_symbols_complaint): New complaint.
5022         (process_one_symbol): Complain about discarding local symbols
5023         due to a misplaced N_LBRAC entry.
5024
5025 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
5026
5027         From Daniel Berlin <dan@cgsoftware.com>
5028         * linespec.c (find_toplevel_char): '<' and '>' also increase and
5029         decrease the depth we are at, in the case of templates.
5030
5031 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5032
5033         * mips-tdep.c (mips_float_register_type): New function.
5034         (mips_double_register_type): New function.
5035         (mips_print_register): Use them.
5036         (do_fp_register_row): Likewise.
5037
5038 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5039
5040         * signals/signals.c (signals): Remove conditional compilation around
5041         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
5042         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5043
5044 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5045
5046         * remote-rdp.c (remote_rdp_can_run): Remove.
5047
5048 2002-05-09  Tom Tromey  <tromey@redhat.com>
5049
5050         * jv-valprint.c (java_val_print): Handle `char' as a special case
5051         of TYPE_CODE_INT.
5052
5053 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5054
5055         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5056         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5057         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5058         str r(0123),[sp,#nn].
5059         (arm_skip_prologue): Ditto.  Also make disassembly
5060         order-independent by placing it in a loop.
5061
5062 2002-05-06  Michael Snyder  <msnyder@redhat.com>
5063
5064         * stabsread.c (read_type): Add recognition for new attribute:
5065         "@V;" means that an array type is actually a vector.
5066         This is analogous to the vector flag that's been added to dwarf2.
5067
5068 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
5069
5070         * i386-tdep.h (i386_abi): New enum.
5071         (struct gdbarch_tdep): Replace os_ident member with abi.
5072         (i386_gdbarch_register_os_abi): New prototype.
5073         * i386-tdep.c (i386_abi_names): New array.
5074         (process_note_abi_tag_sections): Removed.
5075         (process_note_sections): New function.
5076         (i386_elf_abi_from_note, i386_elf_abi): New functions.
5077         (struct i386_abi_handler): New struct.
5078         (i386_abi_handler_list): New variable.
5079         (i386_gdbarch_register_os_abi): New function.
5080         (i386_gdbarch_init): Adapt for the changes given above.
5081
5082 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
5083
5084         * gregset.h: Say "GNU/Linux".
5085
5086 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
5087
5088         * gdbtypes.c : Add new builtin type for 64 bit vectors.
5089         (build_gdbtypes): Build builtin_type_v2_float.
5090         (_initialize_gdbtypes): Register new builtin type.
5091
5092 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
5093
5094         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5095         (clear_gdbarch_swap): New function.
5096         (initialize_non_multiarch): Call.
5097         (gdbarch_update_p): Before calling init(), swap out and clear the
5098         existing architecture.
5099         * gdbarch.c: Regenerate.
5100
5101 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5102
5103         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5104         alphanbsd-tdep.c.
5105
5106 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5107
5108         * sh-nbsd-nat.c: Rename to...
5109         * shnbsd-nat.c: ...this.
5110         * sh-nbsd-tdep.c: Rename to...
5111         * shnbsd-tdep.c: ...this.
5112         * sh-nbsd-tdep.h: Rename to...
5113         * shnbsd-tdep.h: ...this.
5114         * config/sh/nbsd.mh: Use shnbsd-nat.o.
5115         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5116
5117 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
5118
5119         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5120         concatenation for command help messages.
5121
5122 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5123
5124         * NEWS: Note new sh*-*-netbsdelf* configuration.
5125         * configure.host: Set gdb_host_cpu to sh for all sh*.
5126         (sh*-*-netbsdelf*): New host.
5127         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5128         (sh*-*-netbsdelf*): New target.
5129         * sh-nbsd-nat.c: New file.
5130         * sh-nbsd-tdep.c: New file.
5131         * sh-nbsd-tdep.h: New file.
5132         * config/sh/nbsd.mh: New file.
5133         * config/sh/nbsd.mt: New file.
5134         * config/sh/nm-nbsd.h: New file.
5135         * config/sh/tm-nbsd.h: New file.
5136
5137 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5138
5139         * sh-tdep.c (sh_osabi_names): Declare.
5140         (process_note_abi_tag_sections): New function.
5141         (get_elfosabi): Ditto.
5142         (sh_gdbarch_register_os_abi): Ditto.
5143         (sh_dump_tdep): Ditto.
5144         _initialize_sh_tdep): Use gdbarch_register to register
5145         sh_gdbarch_init and sh_dump_tdep.
5146         * config/sh/tm-sh.h (sh_osabi): Declare.
5147         (gdbarch_tdep): Add sh_osabi and osabi_name members.
5148
5149 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
5150
5151         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5152         (thumb_scan_prologue): Ditto.
5153         (arm_find_callers_reg): Ditto.
5154         (arm_frame_chain): Ditto.
5155         (arm_init_extra_frame_info): Ditto.
5156         (arm_frame_saved_pc): Ditto.
5157         (arm_pop_frame): Ditto.
5158         (arm_push_return_address): New function.
5159         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5160         call_dummy_location, call_dummy_breakpoint_offset_p,
5161         call_dummy_breakpoint_offset, call_dummy_p,
5162         call_dummy_stack_adjust_p, call_dummy_words,
5163         sizeof_call_dummy_words, call_dummy_start_offset,
5164         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5165         call_dummy_address, push_return_address and push_dummy_frame for
5166         generic dummy frames.
5167
5168 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5169
5170         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5171         size computation for alloca.
5172         (sh_fp_frame_init_saved_regs): Likewise.
5173
5174 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
5175
5176         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5177         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5178         * arm-tdep.c (arm_store_return_value): Use them.
5179         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5180         * remote-rdp.c (remote_rdp_fetch_register): Use
5181         ARM_MAX_REGISTER_RAW_SIZE.
5182         (remote_rdp_store_register): Likewise.
5183
5184 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
5185
5186         * dwarf2cfi.c: Code cleanup, removed unused variables,
5187         added default labels to switch {} statements.
5188         * x86-64-tdep.c: Ditto.
5189         * x86-64-linux-nat.c: Ditto.
5190
5191 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5192
5193         * solib.h: Protect against multiple inclusion.
5194
5195 2002-05-06  Jim Blandy  <jimb@redhat.com>
5196
5197         Add first preprocessor macro-expansion files.
5198         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5199         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5200         (splay_tree_h, macroexp_h, macrotab_h): New variable.
5201         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5202         (COMMON_OBS): Add macrotab.o, macroexp.o.
5203         (macroexp.o, macrotab.o): New rules.
5204
5205         Separate the job of reading the line number info statement program
5206         header (...expialidocious) out into its own function.
5207         * dwarf2read.c (struct line_head, struct filenames, struct
5208         directories): Replace with...
5209         (struct line_header): New structure, containing the full
5210         contents of the statement program header, including the
5211         include directory and file name tables.
5212         (read_file_scope): If we have line number info, instead of just
5213         calling dwarf_decode_lines to do all the work, call
5214         dwarf_decode_line_header first to get a `struct line_header'
5215         containing the data in the statement program header, and then
5216         pass that to dwarf_decode_lines, which will pick up where that
5217         left off.  Be sure to clean up the `struct line_header' object.
5218         (dwarf_decode_line_header, free_line_header, add_include_dir,
5219         add_file_name): New functions.
5220         (dwarf_decode_lines): Move all the code to read the statement
5221         program header into dwarf_decode_line_header.  Take the line
5222         header it built as the first argument, instead of the offset to
5223         the compilation unit's line number info.  Use the new `struct
5224         line_header' type instead of the old structures.  No need to do
5225         cleanups here now, since we don't allocate anything.
5226         (dwarf2_statement_list_fits_in_line_number_section,
5227         dwarf2_line_header_too_long): New complaints.
5228
5229 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
5230
5231         * gdbtypes.c (init_vector_type): New function.
5232         (build_builtin_type_vec128): Simplify the representation of SIMD
5233         registers.
5234         (build_gdbtypes): Initialize new builtin vector types.
5235         (_initialize_gdbtypes): Register new vector types with gdbarch.
5236         (builtin_type_v4_float, builtin_type_v4_int32,
5237         builtin_type_v8_int16, builtin_type_v16_int8,
5238         builtin_type_v2_int32, builtin_type_v4_int16,
5239         builtin_type_v8_int8): New (renamed) SIMD types.
5240
5241 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
5242
5243         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5244         (i387_fill_fxsave): Likewise.
5245
5246 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
5247
5248         * alpha-tdep.c (alpha_extract_return_value): Don't use
5249         non-constant array size in prototype.
5250
5251 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5252
5253         From Brian Taylor <briant at model dot com>:
5254         * ui-out.c (ui_out_field_core_addr): Use the function
5255         longest_local_hex_string_custom'to format addresses > 32 bits
5256         wide.
5257
5258         * ui-out.c (ui_out_field_core_addr): Update comment.
5259
5260 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5261
5262         * stack.c (select_and_print_frame): Make static.  Delete the
5263         parameter `level'.
5264         (func_command): Update call.
5265         (select_frame_command): Delete code computing the frame level.
5266         * frame.h (select_and_print_frame): Delete declaration.
5267
5268 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5269
5270         * sparc-tdep.c (sparc_get_saved_register): Comment why
5271         get_prev_frame call is safe.
5272
5273 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5274
5275         * frame.h (select_frame): Delete level parameter.
5276         * stack.c (select_frame): Update.  Use frame_relative_level to
5277         obtain the frame's level.
5278         (select_and_print_frame): Update call.
5279         (select_frame_command): Ditto.
5280         (up_silently_base): Ditto.
5281         (down_silently_base): Ditto.
5282         * ocd.c (ocd_start_remote): Ditto.
5283         * remote-rdp.c (remote_rdp_open): Ditto.
5284         * remote-mips.c (mips_initialize): Ditto.
5285         (common_open): Ditto.
5286         * remote-e7000.c (e7000_start_remote): Ditto.
5287         * m3-nat.c (select_thread): Ditto.
5288         * hppa-tdep.c (child_get_current_exception_event): Ditto.
5289         (child_get_current_exception_event): Ditto.
5290         * varobj.c (varobj_create): Ditto.
5291         (varobj_update): Ditto.
5292         (c_value_of_root): Ditto.
5293         * tracepoint.c (finish_tfind_command): Ditto.
5294         * corelow.c (core_open): Ditto.
5295         * arch-utils.c (generic_prepare_to_proceed): Ditto.
5296         * thread.c (info_threads_command): Ditto.
5297         (switch_to_thread): Ditto.
5298         * infrun.c (normal_stop): Ditto.
5299         (restore_selected_frame): Ditto.
5300         (restore_inferior_status): Ditto.
5301         * breakpoint.c (insert_breakpoints): Ditto.
5302         (watchpoint_check): Ditto.
5303         (bpstat_stop_status): Ditto.
5304         (do_enable_breakpoint): Ditto.
5305         * blockframe.c (flush_cached_frames): Ditto.
5306         (reinit_frame_cache): Ditto.
5307
5308 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5309
5310         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5311         maintainer.
5312
5313 2002-05-04  Jim Blandy  <jimb@redhat.com>
5314
5315         * gdbtypes.c (replace_type): Doc fix.
5316
5317 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5318
5319         * valprint.c (strcat_longest): Delete commented out function.
5320         Update copyright.
5321
5322 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5323
5324         * MAINTAINERS: Mark a29k as deleted.
5325         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
5326         Move new configurations to the top.
5327         * configure.tgt: Remove a29k.
5328         * config/a29k/tm-vx29k.h: Delete.
5329         * config/a29k/vx29k.mt: Delete.
5330         * config/a29k/tm-a29k.h: Delete.
5331         * config/a29k/a29k-udi.mt: Delete.
5332         * config/a29k/a29k.mt: Delete.
5333         * a29k-tdep.c: Delete.
5334         * remote-udi.c: Delete.
5335         * remote-mm.c: Delete.
5336         * remote-eb.c: Delete.
5337         * remote-adapt.c: Delete.
5338         * Makefile.in: Remove obsolete code.
5339         * gdbserver/Makefile.in: Ditto.
5340         * config/s390/s390x.mt: Ditto.
5341         * config/s390/s390.mt: Ditto.
5342         * config/sparc/sparclynx.mh: Ditto.
5343         * config/sparc/linux.mh: Ditto.
5344         * config/pa/hppaosf.mh: Ditto.
5345         * config/pa/hppabsd.mh: Ditto.
5346         * config/ns32k/nbsd.mt: Ditto.
5347         * config/mips/vr5000.mt: Ditto.
5348         * config/m68k/sun3os4.mh: Ditto.
5349         * config/m68k/nbsd.mt: Ditto.
5350         * config/m68k/m68klynx.mh: Ditto.
5351         * config/m32r/m32r.mt: Ditto.
5352         * config/i386/x86-64linux.mt: Ditto.
5353         * config/i386/nbsdelf.mt: Ditto.
5354         * config/i386/nbsd.mt: Ditto.
5355         * config/i386/i386lynx.mh: Ditto.
5356
5357 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5358
5359         * target.c (debug_print_register): New function.  Handle oversize
5360         registers.
5361         (debug_to_fetch_registers): Call.
5362         (debug_to_store_registers): Call.
5363
5364 2002-05-03  Jim Blandy  <jimb@redhat.com>
5365
5366         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5367         (read_type): Doc fix.
5368         * gdbtypes.c (replace_type): Doc fix.
5369
5370         * stabsread.c (multiply_defined_struct): New complaint.
5371         (read_struct_type): If the type we were passed isn't empty, or
5372         incomplete, don't read the new struct type into it; complain,
5373         and return the original type unchanged.  Take a new `type_code'
5374         argument, which is the type code for the new type.
5375         (read_type): Rather than storing the type's type code here, pass
5376         it as an argument to read_struct_type, and let that take care of
5377         storing it.  That way, we don't overwrite the original type code,
5378         so read_struct_type can use it to decide whether we're overwriting
5379         something we shouldn't.
5380         (complain_about_struct_wipeout): New function.
5381
5382 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
5383
5384         * gdbarch.sh: Assert that gdbarch is non-NULL.
5385         * gdbarch.c: Regenerate.
5386
5387 2002-05-03  Jason Merrill  <jason@redhat.com>
5388
5389         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5390         and return NULL.
5391
5392 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
5393
5394         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5395         (x86_64_dwarf2gdb_regno_map_length),
5396         (x86_64_dwarf2_reg_to_regnum): Added.
5397         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5398         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5399         (_initialize_x86_64_tdep): Synced with the change above.
5400         (x86_64_skip_prologue): Reformulated message.
5401
5402 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
5403
5404         * f-exp.y: Also use new prev_lexptr variable
5405         to improve error reporting. Based on Michael Snyder
5406         2002-04-24 dated patch to c-exp.y.
5407         * jv-exp.y: Likewise.
5408         * m2-exp.y: Likewise.
5409
5410 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
5411
5412         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5413         we are dealing with vectors.
5414
5415 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5416
5417         * config/m68k/tm-nbsd.h: Obvious fix,
5418         correct machine name.
5419
5420 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5421
5422         * p-typeprint.c (pascal_type_print_base): Add support
5423         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5424
5425 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5426
5427         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5428         for fondamental pascal 'char' type.
5429
5430 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5431
5432         * p-lang.h (is_pascal_string_type): Declaration changed,
5433         new sixth argument of type char ** added.
5434         * p-lang.c (is_pascal_string_type): Implementation
5435         changed. Args length_pos, length_size, string_pos, char_size
5436         can now be NULL. New argument arrayname set to the field
5437         name of the char array. Return value set to char array
5438         field index plus one.
5439         * p-valprint.c (pascal_val_print): Adapt to new declaration of
5440         is_pascal_string_type function.
5441
5442 2002-05-02  Andrew Cagney  <cagney@redhat.com>
5443
5444         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5445         <cagney@redhat.com> change.
5446         * gdbarch.c: Regenerate.
5447
5448 2002-05-02  Andrew Cagney  <cagney@redhat.com>
5449
5450         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5451         before probing for a new one.  Detect errorenous gdbarch_init
5452         functions.
5453         * gdbarch.c: Regenerate.
5454
5455 2002-05-01  Andrew Cagney  <cagney@redhat.com>
5456
5457         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5458         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
5459         * config/v850/tm-v850.h: Ditto.  Update copyright.
5460
5461 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
5462
5463         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5464         current_gdbarch.
5465
5466 2002-04-30  Michael Snyder  <msnyder@redhat.com>
5467
5468         * arm-tdep.c: Whitespace clean-ups.
5469         (arm_skip_prologue): Fix thinko; two lines
5470         should have been removed as part of 4/24 change.
5471
5472 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
5473
5474         * rs6000-tdep.c: Added comment describing how fpscr register
5475         numbers were chosen.
5476
5477 2002-04-30  Michael Snyder  <msnyder@redhat.com>
5478
5479         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5480
5481 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
5482
5483         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5484         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5485         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5486
5487 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
5488
5489         From Louis Hamilton <hamilton@redhat.com>:
5490         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5491         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5492         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5493         not bfd-private xcoff data, to determine wordsize.
5494         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5495
5496 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
5497
5498         GDB 5.2 released from 5.2 branch.
5499
5500 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
5501
5502         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5503         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5504         (x86_64_register_info_table): Added comments with register numbers.
5505
5506 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
5507
5508         * rs6000-tdep.c (rs6000_extract_return_value,
5509         rs6000_store_return_value): Handle returning vectors.
5510         (rs6000_gdbarch_init): Use
5511         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5512         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5513         New function.
5514         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5515         vectors.
5516         (ppc_sysv_abi_push_arguments): Handle vector parameters.
5517         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5518
5519 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
5520
5521         * hpread.c (hpread_psymtab_to_symtab_1,
5522         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5523         with fprintf_unfiltered (gdb_stderr,...).
5524
5525 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
5526
5527         * remote-array.c (printf_monitor, write_monitor,
5528         array_insert_breakpoint, array_remove_breakpoint ):
5529         Replace fprintf (stderr,...
5530         with fprintf_unfiltered (gdb_stderr,....
5531         * remote-es.c: Likewise.
5532         * remote-os9k.c: Likewise.
5533         * remote-st.c: Likewise.
5534
5535 2002-04-28  Andreas Schwab  <schwab@suse.de>
5536
5537         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5538         linux-proc.o and gcore.o.
5539
5540 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
5541
5542         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5543         code without frame pointers.
5544
5545 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
5546
5547         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5548         ON_STACK is needed.
5549
5550 2002-04-26  Ben Elliston  <bje@redhat.com>
5551
5552         * target.c (do_xfer_memory): Correct reference to the new option
5553         "trust-readonly-sections".
5554
5555 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
5556
5557         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5558         * gdbtypes.c (recursive_dump_type): Output the vector flag.
5559         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5560         vectors.
5561         (read_array_type): Record the fact that this array type is really a
5562         vector (i.e. are passed in by value).
5563
5564 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
5565
5566         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5567         * alpha-tdep.c (alpha_sigcontext_addr): New function.
5568         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5569         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5570         * alpha-linux-tdep.c: Include frame.h.
5571         (alpha_linux_sigcontext_addr): New function.
5572         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5573         alpha_linux_sigcontext_addr.
5574         * alpha-osf1-tdep.c: Include gdbcore.h.
5575         (alpha_osf1_sigcontext_addr): New function.
5576         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5577         alpha_osf1_sigcontext_addr.
5578         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5579         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5580
5581 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
5582
5583         * stack.c (selected_frame_level):
5584         (select_frame): Do not set selected_frame_level.
5585         * frame.h (selected_frame_level): Delete declaration.
5586
5587 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
5588
5589         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5590         convert_from_func_ptr-addr when AIX / PowerOpen.
5591
5592 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
5593
5594         * valops.c (hand_function_call): Call
5595         generic_save_call_dummy_addr.
5596         * frame.h (generic_save_call_dummy_addr): Declare.
5597         * blockframe.c (struct dummy_frame): Add fields call_lo and
5598         call_hi.
5599         (generic_find_dummy_frame): Check for PC in range call_lo to
5600         call_hi instead of entry_point_address.
5601         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5602         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
5603         (generic_save_call_dummy_addr): New function.
5604
5605 2002-04-24  David S. Miller  <davem@redhat.com>
5606
5607         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5608         sparc_skip_prologue.
5609         (sparc_skip_prologue): Kill frameless_p arg, and use line number
5610         information to find prologue when possible.
5611         (sparc_prologue_frameless_p): Call examine_prologue directly.
5612         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5613         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5614         second argument.
5615         (SKIP_PROLOGUE): Likewise.
5616
5617 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
5618
5619         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5620         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5621         indicate that the condition it was testing is always true.
5622         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5623         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5624         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5625
5626 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
5627
5628         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5629         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5630         tdep->jb_pc and tdep->jb_elt_size.
5631         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5632         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5633         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5634         * alpha-nat.c (get_longjmp_target): Remove.
5635         (JB_ELEMENT_SIZE): Ditto.
5636         (JB_PC): Ditto.
5637         * alpha-tdep.c (alpha_get_longjmp_target): New function.
5638         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
5639         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5640         to alpha_get_longjmp_target.
5641         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5642         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5643         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5644
5645 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
5646
5647         * README: Update to GDB 5.2.
5648
5649 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
5650
5651         * gdbarch.sh (LC_ALL): Set to `c'.
5652
5653 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5654
5655         * avr-tdep.c: Ran through gdb_indent.sh.
5656
5657 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5658
5659         * MAINTAINERS: Add myself as AVR maintainer.
5660         * NEWS: Note new target avr.
5661
5662 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5663
5664         * Makefile.in: Add support for AVR target.
5665         * configure.tgt: Add support for AVR target.
5666         * avr-tdep.c: New file
5667         * config/avr/avr.mt: New file.
5668
5669 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5670
5671         * MAINTAINERS: Add myself to write-after-approval.
5672
5673 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
5674
5675         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5676         with fprintf_unfiltered (gdb_stderr,....
5677
5678 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
5679
5680         Fix PR gdb/508.
5681         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5682
5683 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
5684
5685         * p-exp.y: Also use new prev_lexptr variable
5686         to improve error reporting. Based on Michael Snyder
5687         2002-04-24 dated patch to c-exp.y.
5688
5689 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
5690
5691         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5692         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5693         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
5694         to 0.
5695         * config/alpha/tm-alpha.h: Remove forward decls of struct type
5696         and struct value.
5697         (FUNCTION_START_OFFSET): Remove.
5698         (BREAKPOINT): Ditto.
5699
5700 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
5701
5702         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5703         * NEWS: Ditto.
5704
5705 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
5706
5707         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5708         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5709         alpha_linux_pc_in_sigtramp.
5710         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5711         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5712         alpha_osf1_pc_in_sigtramp.
5713         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5714         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5715         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5716         alphafbsd_pc_in_sigtramp.
5717         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5718         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5719         alphanbsd_pc_in_sigtramp.
5720         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5721         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5722
5723 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
5724
5725         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5726
5727 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
5728
5729         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5730         alphanbsd-tdep.c.
5731         (alphanbsd-nat.o): New dependency list.
5732         (alphanbsd-tdep.o): Ditto.
5733         * NEWS: Note new native NetBSD/alpha configuration.
5734         * alphanbsd-nat.c: New file.
5735         * alphanbsd-tdep.c: Ditto.
5736         * configure.host (alpha*-*-netbsd*): New host.
5737         * configure.tgt (alpha*-*-netbsd*): New target.
5738         * config/alpha/nbsd.mh: New file.
5739         * config/alpha/nbsd.mt: Ditto.
5740         * config/alpha/nm-nbsd.h: Ditto.
5741         * config/alpha/tm-nbsd.h: Ditto.
5742
5743 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
5744
5745         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5746         (alpha-osf1-tdep.o): New dependency list.
5747         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5748         and skip_sigtramp_frame members.
5749         * alpha-linux-tdep.c: Include gdbcore.h.
5750         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5751         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5752         * alpha-osf1-tdep.c: New file.
5753         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5754         alpha-osf1-dep.c.
5755         (alpha_frame_past_sigtramp_frame): New function.
5756         (alpha_dynamic_sigtramp_offset): Ditto.
5757         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5758         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5759         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5760         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5761         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5762         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5763         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5764         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5765         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5766         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5767         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
5768         to find_solib_trampoline_target.
5769         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5770         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5771         (SKIP_TRAMPOLINE_CODE): Remove.
5772         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5773         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5774         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5775         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5776         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5777         (PROC_SIGTRAMP_MAGIC): Ditto.
5778         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5779         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5780         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5781         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5782         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5783
5784 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
5785
5786         * NEWS: Note that Alpha targets are now multi-arch.
5787
5788 2002-04-24  Michael Snyder  <msnyder@redhat.com>
5789
5790         * parser-defs.h (prev_lexptr): New external variable.
5791         * parse.c (parse_exp_1): Set prev_lexptr to null before
5792         calling the language-specific parser.
5793         * c-exp.y (yylex): Set prev_lexptr to start of current token.
5794         (yyerror): Use prev_lexptr in error reporting.
5795
5796 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
5797
5798         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5799         * gregset.h: If FILL_FPXREGSET is defined, provide
5800         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5801         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5802         is defined, call fill_fpxregset.
5803
5804 2002-04-24  Roland McGrath  <roland@frob.com>
5805
5806         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5807         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5808         (supply_gregset, supply_fpregset): New functions.
5809
5810         * gnu-nat.c (gnu_find_memory_regions): New function.
5811         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5812         (gnu_xfer_memory): Add a cast.
5813
5814 2002-04-24  Michael Snyder  <msnyder@redhat.com>
5815
5816         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
5817         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
5818         of argument regs ("str r(0123), [r11, #-nn"]).
5819         (arm_skip_prologue): Better handling for frameless functions.
5820         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
5821         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5822
5823 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
5824
5825         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5826         NUM_PSEUDO_REGS can be used.
5827
5828 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
5829
5830         * arch-utils.h: Update copyright.
5831
5832         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5833         * gdbarch.h, gdbarch.c: Re-generate.
5834
5835         * inferior.h (IN_SIGTRAMP): Delete definition.
5836         * arch-utils.c (legacy_pc_in_sigtramp): New function.
5837         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5838
5839         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5840         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5841         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
5842         (find_proc_framesize): Ditto.
5843         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5844         (alpha_init_extra_frame_info): Ditto.
5845         * infrun.c (handle_inferior_event): Ditto.
5846         (handle_inferior_event): Ditto.
5847         (check_sigtramp2): Ditto.
5848         * blockframe.c (create_new_frame): Ditto.
5849         (get_prev_frame): Ditto.
5850         * ppc-linux-tdep.c: Update comments.
5851         * i386-linux-tdep.c: Update comments.
5852         * breakpoint.c (bpstat_what): Update comment.
5853
5854 2002-04-24  Michal Ludvig  <mludvig@suse.cz>
5855
5856         * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
5857         (regsets_store_inferior_registers): Removed cast to int from
5858         ptrace() calls.
5859         * gdbserver/regcache.h: Added declaration of struct inferior_info.
5860
5861 2002-04-24  David S. Miller  <davem@redhat.com>
5862
5863         * i960-tdep.c (register_in_window_p): New function.
5864         (i960_find_saved_register): Use it instead of
5865         REGISTER_IN_WINDOW_P.
5866         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5867
5868         * symtab.h (find_stab_function_addr): Kill extern.
5869         * minsyms.c (find_stab_function_addr): Remove from here...
5870         * dbxread.c: ... to here, and mark it static.
5871
5872 2002-04-20  David S. Miller  <davem@redhat.com>
5873
5874         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5875         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5876
5877 2002-04-21  David S. Miller  <davem@redhat.com>
5878
5879         * remote-vxsparc.c (vx_read_register): Fix typo, we want
5880         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5881         (vx_write_register): Likewise.
5882
5883 2002-04-23  J. Brobecker  <brobecker@gnat.com>
5884
5885         * source.c (is_regular_file): New function.
5886         (openp): Check wether file to open is a regular file
5887         to avoid opening directories.
5888
5889 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
5890
5891         * findvar.c (extract_signed_integer): Cast printf argument
5892         to suppress format warning.
5893         (extract_unsigned_integer): Likewise.
5894         * infcmd.c (registers_info): Likewise.
5895         * top.c (get_prompt_1): Likewise.
5896         * valops.c (value_assign): Likewise.
5897         * valprint.c (print_decimal): Likewise.
5898
5899 2002-04-22  H.J. Lu  (hjl@gnu.org)
5900
5901         * c-exp.y (typebase): Support
5902
5903         [long|long long|short] [signed|unsigned] [int|]
5904
5905         and
5906
5907         signed [long|long long|short] int
5908
5909 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
5910
5911         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5912         and vax-tdep.h.
5913         * vax-tdep.h: New file.
5914         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5915         Make several routines static.
5916         (vax_get_saved_register): New function.
5917         (vax_gdbarch_init): New function.
5918         (_initialize_vax_tdep): Register vax_gdbarch_init.
5919         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5920         Remove macros now under the control of gdbarch.
5921
5922 2002-04-22  Michael Snyder  <msnyder@redhat.com>
5923
5924         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5925         Some whitespace and coding standards tweaks.
5926
5927 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
5928
5929         * vax-tdep.c: Include regcache.h.
5930         (vax_call_dummy_words): New.
5931         (sizeof_vax_call_dummy_words): New.
5932         (vax_fix_call_dummy): New function.
5933         (vax_saved_pc_after_call): Ditto.
5934         * config/vax/tm-vax.h: Don't include regcache.h.
5935         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5936         (CALL_DUMMY): Remove.
5937         (CALL_DUMMY_WORDS): Define.
5938         (SIZEOF_CALL_DUMMY_WORDS): Define.
5939         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5940
5941 2002-04-18  Michael Snyder  <msnyder@redhat.com>
5942
5943         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5944
5945 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
5946
5947         * vax-tdep.c (vax_frame_chain): New function.
5948         (vax_push_dummy_frame): Ditto.
5949         (vax_pop_frame): Ditto.
5950         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5951         (FRAMELESS_FUNCTION_INVOCATION): Use
5952         generic_frameless_function_invocation_not.
5953         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5954         (POP_FRAME): Use vax_pop_frame.
5955
5956 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
5957
5958         * vax-tdep.c (vax_store_struct_return): New function.
5959         (vax_extract_return_value): Ditto.
5960         (vax_store_return_value): Ditto.
5961         (vax_extract_struct_value_address): Ditto.
5962         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5963         vax_store_struct_return.
5964         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5965         (STORE_RETURN_VALUE): Use vax_store_return_value.
5966         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5967
5968 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
5969
5970         * vax-tdep.c (vax_frame_saved_pc): New function.
5971         (vax_frame_args_address_correct): Ditto.
5972         (vax_frame_args_address): Ditto.
5973         (vax_frame_locals_address): Ditto.
5974         (vax_frame_num_args): Move code to be in proximity to
5975         other frame-related functions.
5976         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5977         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5978         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5979         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5980         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5981
5982 2002-04-22  H.J. Lu  (hjl@gnu.org)
5983
5984         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5985         includedir.
5986
5987 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
5988
5989         * vax-tdep.c (vax_frame_init_saved_regs): New function.
5990         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5991         (FRAME_INIT_SAVED_REGS): New macro.
5992
5993 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
5994
5995         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5996
5997 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
5998
5999         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6000         where needed.
6001         (fetch_osf_core_registers): Likewise.
6002         (supply_gregset): Likewise.
6003
6004 2002-04-22  J. Brobecker  <brobecker@gnat.com>
6005
6006         * symfile.h (get_section_index): Define.
6007         * symfile.c (get_section_index): New function.
6008         * mdebugread.c (SC_IS_SBSS): New macro.
6009         (SC_IS_BSS): Return true for the scBss storage class only, as
6010         the scSBss storage class refers to the .sbss section.
6011         (parse_partial_symbols): Discard the symbols which associated
6012         section does not exist.
6013         Make sure to use the .sbss section index for symbols which
6014         storage class is scBss, rather than using the .bss section index.
6015
6016 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6017
6018         * vax-tdep.c: Update copyright years.
6019         (vax_register_name): New function.
6020         (vax_register_byte): Ditto.
6021         (vax_register_raw_size): Ditto.
6022         (vax_register_virtual_size): Ditto.
6023         (vax_register_virtual_type): Ditto.
6024         * config/vax/tm-vax.h: Update copyright years.
6025         (REGISTER_NAMES): Remove.
6026         (REGISTER_NAME): Define.
6027         (REGISTER_BYTE): Use vax_register_byte.
6028         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6029         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6030         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6031
6032 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6033
6034         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6035         declaration
6036         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6037
6038 2002-04-21  David S. Miller  <davem@redhat.com>
6039
6040         * arch-utils.c (generic_prologue_frameless_p): Kill
6041         SKIP_PROLOGUE_FRAMELESS_P code.
6042         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6043         references.
6044         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6045         * arc-tdep.c (arc_prologue_frameless_p): Implement.
6046         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6047         references.
6048         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6049         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6050         (sparc_gdbarch_init): Pass it to
6051         set_gdbarch_prologue_frameless_p.
6052
6053 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6054
6055         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6056         (alphabsd-nat.o): New dependency list.
6057
6058 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6059
6060         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6061         alphafbsd-tdep.c.
6062         (alpha-linux-tdep.o): New dependency list.
6063         (alphafbsd-tdep.o): Likewise.
6064
6065 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6066
6067         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
6068         to here...
6069         * alpha-tdep.c: ...from here.
6070         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6071
6072 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6073
6074         * config/alpha/tm-alpha.h: Move alpha_software_single_step
6075         prototype from here...
6076         * alpha-tdep.h: ...to here.
6077
6078 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6079
6080         * frame.h (selected_frame_level): Document as deprecated.
6081         (frame_relative_level): Declare.
6082         * stack.c (frame_relative_level): New function.
6083         (selected_frame_level): Document as deprecated.
6084         (select_frame): Do not set the selected_frame_level.
6085
6086         * stack.c (frame_info, record_selected_frame): Update.
6087         (frame_command, current_frame_command): Update.
6088         (up_silently_base, up_command, down_silently_base): Update.
6089         (down_command): Update.
6090         * inflow.c (kill_command): Update.
6091         * tracepoint.c (finish_tfind_command): Update.
6092         * corelow.c (core_open): Update.
6093         * thread.c (info_threads_command): Update.
6094         (do_captured_thread_select): Update.
6095         * infcmd.c (finish_command): Update.
6096         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6097
6098 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6099
6100         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6101
6102 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6103
6104         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
6105         type const.
6106
6107 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6108
6109         * alphafbsd-tdep.c: Update copyright years.  Include
6110         alpha-tdep.h.
6111         (alphafbsd_use_struct_convention): Make static.
6112         (alphafbsd_init_abi): New function.
6113         (_initialize_alphafbsd_tdep): New function.
6114         * config/alpha/tm-fbsd.h: Update copyright years.
6115         (USE_STRUCT_CONVENTION): Remove.
6116
6117 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6118
6119         * alpha-tdep.c (alpha_abi_handler): New structure to describe
6120         an Alpha ABI variant.
6121         (alpha_abi_handler_list): Declare.
6122         (alpha_gdbarch_register_os_abi): New function.
6123         (alpha_gdbarch_init): Give registered ABI variant handlers a
6124         chance to tweak the gdbarch once we have set up defaults.
6125         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6126
6127 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6128
6129         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6130         to standard_coerce_float_to_double.
6131         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6132
6133 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6134
6135         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6136         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6137         from gdbarch_tdep rather than a constant.
6138         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6139         the default text address for all Alpha Unix ABIs.
6140         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6141         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6142
6143 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6144
6145         * alpha-tdep.h: New file.  Includes several Alpha target constants
6146         taken from...
6147         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
6148         let gdbarch deal with.
6149         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6150         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6151         to dependency list.
6152         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
6153         Alpha target register names.
6154         * alphabsd-nat.c: Likewise.
6155         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
6156         Alpha target register names.  Make serveral routines static.
6157         (alpha_get_saved_register): New function.
6158         (alpha_abi_names): New.
6159         (process_note_abi_tag_sections): New function.
6160         (get_elfosabi): New function.
6161         (alpha_gdbarch_init): New function.
6162         (alpha_dump_tdep): New function.
6163         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6164
6165 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6166
6167         * frame.c (find_saved_register): Delete #ifdef
6168         HAVE_REGISTER_WINDOWS code.
6169         * config/sparc/tm-sparc.h: Update comments.
6170         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6171
6172 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6173
6174         * i960-tdep.c (i960_find_saved_register): New function.
6175         (i960_get_saved_register): New function.
6176         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6177         (i960_get_saved_register): Declare.
6178         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6179
6180 2002-04-20  David S. Miller  <davem@redhat.com>
6181
6182         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6183
6184 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6185
6186         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6187         instead of NUM_PSEUDO_REGS.
6188
6189 2002-04-20  David S. Miller  <davem@redhat.com>
6190
6191         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6192         GDB_MULTI_ARCH_PARTIAL
6193         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6194         define, let tm-sp64.h do it.
6195
6196 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
6197
6198         * frame.c (find_saved_register): Avoid a NULL pointer
6199         dereference and actually walk the frame list.
6200
6201 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6202
6203         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6204         sorted in most most-recent-used order.  Document.
6205         * gdbarch.h, gdbarch.c: Regenerate.
6206
6207 2002-04-20  Daniel Jacobowitz  <drow@mvista.com>
6208
6209         * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6210         (add_inferior): Call create_register_cache.
6211         (clear_inferiors): Call free_register_cache.
6212         (inferior_regcache_data, set_inferior_regcache_data): New functions.
6213         * gdbserver/regcache.c (struct inferior_regcache_data): New.
6214         (registers): Remove.
6215         (get_regcache): New function.
6216         (create_register_cache, free_register_cache): New functions.
6217         (set_register_cache): Don't initialize the register cache here.
6218         (registers_to_string, registers_from_string, register_data): Call
6219         get_regcache.
6220         * gdbserver/regcache.h: Add prototypes.
6221         * gdbserver/server.h: Likewise.
6222
6223 2002-04-20  Daniel Jacobowitz  <drow@mvista.com>
6224
6225         * gdbserver/mem-break.c: New file.
6226         * gdbserver/mem-break.h: New file.
6227         * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6228         dependencies.
6229         * gdbserver/inferiors.c (struct inferior_info): Add target_data
6230         member.
6231         (clear_inferiors): Free target_data member if set.
6232         (inferior_target_data, set_inferior_target_data): New functions.
6233         * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6234         (i386_stop_pc, i386_set_pc): New.  Add to the_low_target.
6235         * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6236         (struct inferior_linux_data): New.
6237         (linux_create_inferior): Use set_inferior_target_data.
6238         (linux_attach): Likewise.  Call add_inferior.
6239         (linux_wait_for_one_inferior): New function.
6240         (linux_wait): Call it.
6241         (linux_write_memory): Add const.
6242         (initialize_low): Call set_breakpoint_data.
6243         * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6244         handling members.
6245         * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6246         call.
6247         * gdbserver/server.h: Include mem-break.h.  Update inferior.c
6248         prototypes.
6249         * gdbserver/target.c (read_inferior_memory)
6250         (write_inferior_memory): New functions.
6251         * gdbserver/target.h (read_inferior_memory)
6252         (write_inferior_memory): Change macros to prototypes.
6253         (struct target_ops): Update comments.  Add const to write_memory
6254         definition.
6255
6256 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
6257
6258         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6259         instead of ->prev.
6260         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6261         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6262         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6263         instead of ->prev.
6264
6265 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
6266
6267         Fix PR gdb/471.
6268         * gdbtypes.c (init_simd_type): Rewrite using new functions.
6269         (build_builtin_type_vec128): Ditto.
6270         (append_composite_type_field): Fix calculation of type length in
6271         union case.
6272
6273 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
6274
6275         * config/djgpp/README: Update.
6276
6277         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6278         compiler warnings.
6279
6280 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
6281
6282         * alpha-tdep.c (setup_arbitrary_frame): Rename...
6283         (alpha_setup_arbitrary_frame): ...to this.
6284         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6285         for alpha_setup_arbitrary_frame.
6286
6287 2002-04-18  Andrew Cagney  <cagney@redhat.com>
6288
6289         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6290         * gdbarch.h, gdbarch.c: Regenerate.
6291
6292         * defs.h (breakpoint_from_pc_fn): Delete type definition.
6293         * target.h (memory_breakpoint_from_pc): Update declaration.
6294         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6295
6296         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6297         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6298         * mem-break.c (memory_breakpoint_from_pc): Ditto.
6299         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6300         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6301         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6302         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6303         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6304         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6305         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6306         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6307         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6308
6309         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6310         const pointer.
6311         * monitor.c (monitor_insert_breakpoint): Ditto.
6312         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6313
6314         * config/mcore/tm-mcore.h: Update copyright.
6315         * mem-break.c: Ditto.
6316         * xstormy16-tdep.c: Ditto.
6317
6318 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6319
6320         * p-exp.y: Add precedence rule for '^' token.
6321         This removes the shift/reduce conflicts.
6322         Remove the comment concerning these shift/reduce conflicts.
6323
6324 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
6325
6326         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6327         (registers_powerpc_nofp): New register set for processors
6328         without floating point unit.
6329
6330 2002-04-18  David S. Miller  <davem@redhat.com>
6331
6332         * MAINTAINERS: Add myself to write-after-approval.
6333
6334 2002-04-17  Michael Snyder  <msnyder@redhat.com>
6335
6336         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6337
6338 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6339
6340         * rs6000-tdep.c (frame_initial_stack_address): Use
6341         frame_register_read to read the alloca_reg.
6342
6343 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6344
6345         * frame.c (find_saved_register): Find saved registers in the next
6346         not prev frame.
6347         Fix PR gdb/365.
6348
6349 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6350
6351         * gdbarch.sh (LANG): Set to ``c''.
6352
6353 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
6354
6355         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6356
6357 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
6358
6359         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6360         Update copyright.
6361
6362         * hpread.c (hpread_get_lntt): Add declaration.
6363         Also fix PR gdb/391.
6364
6365 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
6366
6367         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6368         * aclocal.m4, configure: Re-generate.
6369         Fix PR gdb/391.
6370
6371 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
6372
6373         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6374         instead of tm_print_insn.
6375
6376 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
6377
6378         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6379
6380 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
6381
6382         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6383         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6384         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6385
6386 2002-04-12  Don Howard  <dhoward@redhat.com>
6387
6388         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6389         max_user_call_depth.
6390         (init_cmd_lists): Initialize the new value;
6391         * cli/cli-script.c (execute_user_command): Limit the call depth of
6392         user defined commands.  This avoids a core-dump when user commands
6393         are infinitly recursive.
6394
6395 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6396
6397         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6398         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6399         from tdep struct instead of DEFAULT_LR_SAVE.
6400         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6401         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6402         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6403
6404 2002-04-12  Michael Snyder  <msnyder@redhat.com>
6405
6406         * Remote.c: Spelling fix.
6407         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6408         If no symbol found for "sbrk", try "_sbrk".
6409         (make_output_phdrs): Use bfd_section_name.
6410         (gcore_copy_callback): Use bfd_section_name.
6411         * eval.c: Indentation fix-ups.
6412         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6413         in case it gets applied to an address that is already
6414         in the instruction space.
6415         * cli/cli-decode.c (help_list): Allow long lines to wrap.
6416         * symfile.c: Fix indentation, long lines.
6417         * source.c: White space fix-up.
6418
6419 2002-04-12  Andrew Cagney  <cagney@redhat.com>
6420
6421         * defs.h (read_relative_register_raw_bytes): Delete declaration.
6422         * frame.c (frame_register_read): New function.  Return non-zero on
6423         success.
6424         (read_relative_register_raw_bytes_for_frame): Delete.
6425         (read_relative_register_raw_bytes): Delete.
6426         * frame.h (frame_register_read): Declare.
6427         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
6428         * sh-tdep.c: Ditto.
6429         * infcmd.c (do_registers_info): Ditto.
6430         * hppa-tdep.c: Ditto.
6431         * rs6000-tdep.c: Ditto.
6432         * h8500-tdep.c: Ditto.
6433         * mips-tdep.c: Ditto.
6434         * h8300-tdep.c: Ditto.
6435         * z8k-tdep.c: Ditto.
6436
6437 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6438
6439         From Jimi X <jimix@watson.ibm.com>:
6440         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6441         64-bit SysV ABI.
6442
6443 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6444
6445         From Jimi X <jimix@watson.ibm.com>:
6446         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6447         bfd info.
6448
6449 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6450
6451         From Jimi X <jimix@watson.ibm.com>:
6452         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6453         register sets for these processor variants.
6454
6455 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
6456
6457         * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6458         registers which are allowed to fail to store.
6459         * gdbserver/linux-low.h (linux_target_ops): Likewise.
6460         * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6461         (ppc_cannot_store_register): FPSCR may not be storable.
6462         * regformats/reg-ppc.dat: Support FPSCR.
6463
6464 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
6465
6466         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6467         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6468         Add fpscr as an invalid/unfetchable register.
6469         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6470         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6471         (fill_fpregset): Add support for register fpscr.
6472         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6473         (fill_gregset): Account for the fact that register ``mq'' might
6474         not exist.
6475         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6476         (registers_power): Add fpscr to register set at slot 71.
6477         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6478         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
6479
6480 2002-04-11  Michael Snyder  <msnyder@redhat.com>
6481
6482         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6483         * configure: Regenerate.
6484         * config.in: Regenerate.
6485         * acconfig.h: Add define for _SYSCALL32.
6486         * core-sol2.c: Remove #define _SYSCALL32.
6487         * solib-legacy.c: Remove #define _SYSCALL32.
6488
6489 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6490
6491         * stack.c (select_frame): Cleanup internal error message, do not
6492         use %p.
6493
6494 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6495
6496         * stack.c (select_frame): Check that selected_frame and the
6497         specified level are as expected.
6498         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6499         Update copyright.
6500         * frame.h (struct frame_info): Add field `level'.  Update
6501         copyright.
6502         Work-in-progress PR gdb/464.
6503
6504 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6505
6506         * maint.c (maint_print_section_info): Rename print_section_info.
6507         (print_bfd_section_info, print_objfile_section_info): Update.
6508         * inferior.h (struct gdbarch): Add opaque declaration.
6509         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6510         * gdbarch.h: Regenerate.
6511
6512 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
6513
6514         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6515         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6516         (kernel_u_size): Added.
6517         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6518         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6519
6520 2002-04-04  Jim Ingham  <jingham@apple.com>
6521
6522        * valarith.c (find_size_for_pointer_math): New function, either returns
6523        the size for a pointer's target, returns 1 for void *, or errors for
6524        incomplete types.
6525        (value_add, value_sub): use find_size_for_pointer_math.
6526
6527 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6528
6529         * linux-low.c (linux_look_up_symbols): New hook.
6530         (linux_target_ops): Add linux_look_up_symbols.
6531         * remote-utils.c (decode_address): New function.
6532         (look_up_one_symbol): New function.
6533         * server.c (handle_query): Call target look_up_symbols hook.
6534         * server.h (look_up_one_symbol): Add prototype.
6535         * target.h (struct target_ops): Add look_up_symbols hook.
6536
6537 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6538
6539         * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6540         * ChangeLog: Correct paths in last ChangeLog entry.
6541
6542 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6543
6544         * gdbserver/linux-low.h: Remove obsolete prototypes.
6545         (struct linux_target_ops): New.
6546         (extern the_low_target): New.
6547         * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6548         (register_addr): Use the_low_target explicitly.
6549         (fetch_register): Likewise.
6550         (usr_fetch_inferior_registers): Likewise.
6551         (usr_store_inferior_registers): Likewise.
6552         * gdbserver/linux-arm-low.c (num_regs): Remove.
6553         (arm_num_regs): Define.
6554         (arm_regmap): Renamed from regmap, made static.
6555         (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6556         made static.
6557         (arm_cannot_store_register): Renamed from cannot_store_register,
6558         made static.
6559         (the_low_target): New.
6560         * gdbserver/linux-i386-low.c (num_regs): Remove.
6561         (i386_num_regs): Define.
6562         (i386_regmap): Renamed from regmap, made static.
6563         (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6564         made static.
6565         (i386_cannot_store_register): Renamed from cannot_store_register,
6566         made static.
6567         (the_low_target): New.
6568         * gdbserver/linux-ia64-low.c (num_regs): Remove.
6569         (ia64_num_regs): Define.
6570         (ia64_regmap): Renamed from regmap, made static.
6571         (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6572         made static.
6573         (ia64_cannot_store_register): Renamed from cannot_store_register,
6574         made static.
6575         (the_low_target): New.
6576         * gdbserver/linux-m68k-low.c (num_regs): Remove.
6577         (m68k_num_regs): Define.
6578         (m68k_regmap): Renamed from regmap, made static.
6579         (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6580         made static.
6581         (m68k_cannot_store_register): Renamed from cannot_store_register,
6582         made static.
6583         (the_low_target): New.
6584         * gdbserver/linux-mips-low.c (num_regs): Remove.
6585         (mips_num_regs): Define.
6586         (mips_regmap): Renamed from regmap, made static.
6587         (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6588         made static.
6589         (mips_cannot_store_register): Renamed from cannot_store_register,
6590         made static.
6591         (the_low_target): New.
6592         * gdbserver/linux-ppc-low.c (num_regs): Remove.
6593         (ppc_num_regs): Define.
6594         (ppc_regmap): Renamed from regmap, made static.
6595         (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6596         made static.
6597         (ppc_cannot_store_register): Renamed from cannot_store_register,
6598         made static.
6599         (the_low_target): New.
6600         * gdbserver/linux-s390-low.c (num_regs): Remove.
6601         (s390_num_regs): Define.
6602         (s390_regmap): Renamed from regmap, made static.
6603         (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6604         made static.
6605         (s390_cannot_store_register): Renamed from cannot_store_register,
6606         made static.
6607         (the_low_target): New.
6608         * gdbserver/linux-sh-low.c (num_regs): Remove.
6609         (sh_num_regs): Define.
6610         (sh_regmap): Renamed from regmap, made static.
6611         (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6612         made static.
6613         (sh_cannot_store_register): Renamed from cannot_store_register,
6614         made static.
6615         (the_low_target): New.
6616         * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6617         (the_low_target): New.
6618
6619 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
6620
6621         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6622         override FP_REGNUM with frame->fp.  Update copyright.
6623         * parse.c (num_std_regs, std_regs): Delete.
6624         (target_map_name_to_register): Do not search std_regs.  Update
6625         function description.
6626         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6627         declarations.  Update copyright.
6628         Fix PR gdb/251.
6629
6630 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6631
6632         * gdbserver/Makefile.in: Add stamp-h target.
6633         * gdbserver/configure.in: Create stamp-h.
6634         * gdbserver/configure: Regenerated.
6635
6636 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6637
6638         * gdbserver/inferiors.c: New file.
6639         * gdbserver/target.c: New file.
6640         * gdbserver/target.h: New file.
6641         * gdbserver/Makefile.in:  Add target.o and inferiors.o.  Update
6642         dependencies.
6643         * gdbserver/linux-low.c (inferior_pid): New static variable,
6644         moved from server.c.
6645         (linux_create_inferior): Renamed from create_inferior.
6646         Call add_inferior.  Return 0 on success instead of a PID.
6647         (linux_attach): Renamed from myattach.
6648         (linux_kill): Renamed from kill_inferior.  Call clear_inferiors ().
6649         (linux_thread_alive): Renamed from mythread_alive.
6650         (linux_wait): Renamed from mywait.  Call clear_inferiors () if the
6651         child dies.
6652         (linux_resume): Renamed from myresume.  Add missing ``return 0''.
6653         (regsets_store_inferior_registers): Correct error message.
6654         Add missing ``return 0''.
6655         (linux_fetch_registers): Renamed from fetch_inferior_registers.
6656         (linux_store_registers): Renamed from store_inferior_registers.
6657         (linux_read_memory): Renamed from read_inferior_memory.
6658         (linux_write_memory): Renamed from write_inferior_memory.
6659         (linux_target_ops): New structure.
6660         (initialize_low): Call set_target_ops ().
6661         * gdbserver/remote-utils.c (unhexify): New function.
6662         (hexify): New function.
6663         (input_interrupt): Send signals to ``signal_pid''.
6664         * gdbserver/server.c (inferior_pid): Remove.
6665         (start_inferior): Update create_inferior call.
6666         (attach_inferior): Call add_inferior.
6667         (handle_query): New function.
6668         (main): Call handle_query for `q' packets.
6669         * gdbserver/server.h: Include "target.h".  Remove obsolete prototypes.
6670         Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6671
6672 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6673
6674         * gdbserver/Makefile.in: Add WARN_CFLAGS.  Update configury
6675         dependencies.
6676         * gdbserver/configure.in: Check for <string.h>
6677         * gdbserver/configure: Regenerate.
6678         * gdbserver/config.in: Regenerate.
6679         * gdbserver/gdbreplay.c: Include needed system headers.
6680         (remote_open): Remove strchr prototype.
6681         * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6682         * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6683         (supply_register_by_name): Likewise.
6684         (collect_register): Change buf argument to void *.
6685         (collect_register_by_name): Likewise.
6686         * gdbserver/regcache.h: Add missing prototypes.
6687         * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6688         * gdbserver/server.c (handle_query): New function.
6689         (attached): New static variable, moved out of main.
6690         (main): Quiet longjmp clobber warnings.
6691         * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT.  Update prototypes.
6692         * gdbserver/utils.c (error): Remove NORETURN.
6693         (fatal): Likewise.
6694
6695 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6696
6697         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6698         after the last symbol in a block.
6699
6700 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
6701
6702         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6703         is non zero as a found symbol.
6704
6705 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
6706
6707         * findvar.c: Include "builtin-regs.h".
6708         (value_of_register): Call value_of_builtin_reg when applicable.
6709         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6710         (target_map_name_to_register): Call
6711         builtin_reg_map_name_to_regnum.
6712         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6713         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6714         (builtin_regs_h): Define.
6715         (builtin-regs.o): New target.
6716         (findvar.o): Add $(builtin_regs_h).
6717         * builtin-regs.c, builtin-regs.h: New files.
6718         * std-regs.c: New file.
6719         Partial fix for PR gdb/251.
6720
6721 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6722
6723         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6724         it's no longer required.
6725
6726 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
6727
6728         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6729
6730 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6731
6732         From Jimi X <jimix@watson.ibm.com>:
6733         * rs6000-tdep.c (rs6000_software_single_step): Use
6734         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6735         and size.  Use target_insert_breakpoint() and
6736         target_remove_breakpoint() to insert and remove breakpoints
6737         instead of explicit memory reads and writes.
6738
6739 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6740
6741         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6742         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6743         ELF_OBJECT_FORMAT ifdef.
6744
6745 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6746
6747         From Jimi X <jimix@watson.ibm.com>:
6748         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6749
6750 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6751
6752         From Jimi X <jimix@watson.ibm.com>:
6753         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6754         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6755
6756 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
6757
6758         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6759         s/asprintf/xasprintf/.
6760         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6761
6762 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
6763
6764         I believe Jeff Law denies responsability for this one:
6765         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6766         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6767         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6768         Work-around for PR gdb/366.
6769
6770 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
6771
6772         * remote-e7000.c (write_small, e7000_read_inferior_memory,
6773         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6774         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6775
6776 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
6777
6778         * sh-tdep.c (sh_fp_frame_init_saved_regs,
6779         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6780         information.
6781
6782 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
6783
6784         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6785         maintainer.
6786
6787 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
6788
6789         * README (Reporting Bugs in GDB): Document the bug web page as the
6790         prefered way of submitting bugs.
6791         Fix PR gdb/402.
6792
6793 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
6794
6795         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6796         -1.  Update comment.
6797         * gdbarch.h, gdbarch.c: Re-generate.
6798
6799 2002-04-07  Andreas Schwab  <schwab@suse.de>
6800
6801         * m68klinux-nat.c (fill_fpregset): Properly pass address of
6802         buffer to regcache_collect.
6803
6804 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
6805
6806         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
6807         * gdbarch.c, gdbarch.h: Re-generate.
6808
6809 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
6810
6811         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6812         declaration.  Fix -Werror.
6813
6814 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
6815
6816         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6817         * gdbarch.c: Regenerate.
6818
6819 2002-04-05  Michael Snyder  <msnyder@redhat.com>
6820
6821         * breakpoint.c (clear_command): Rewrite middle section to
6822         combine two loops with identical control conditions.
6823         Add a cleanup to eliminate a memory leak.
6824         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6825
6826 2002-04-05  H.J. Lu  (hjl@gnu.org)
6827
6828         * solib-svr4.c (bkpt_names): Add "__start".
6829
6830 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
6831
6832         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6833         as test for 64 bit target.
6834
6835 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
6836
6837         * h8500-tdep.c (h8500_write_fp): Delete function.
6838         * dwarf2cfi.c (cfi_write_fp): Document as not used.
6839         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6840         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6841         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6842         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6843         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6844         (s390_write_fp):
6845         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6846         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6847         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6848         (d10v_write_fp): Delete function.
6849         * inferior.h (write_fp, generic_target_write_fp): Delete
6850         declarations.
6851         * regcache.c (generic_target_write_fp): Delete function.
6852         (write_fp): Delete function.
6853         * gdbarch.sh (TARGET_WRITE_FP): Delete.
6854         * gdbarch.h, gdbarch.c: Regenerate.
6855         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6856         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6857         (sparc64_write_fp): Delete declaration.
6858         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6859         (h8500_write_fp): Delete declaration.
6860
6861 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
6862
6863         * sparc-tdep.c (sparc64_write_fp): Delete.
6864         (sparc_push_dummy_frame): Replace write_fp call with code to store
6865         the FP directly.
6866         (sparc_gdbarch_init): Do not initialize write_fp.
6867
6868 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
6869
6870         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6871         clause.
6872
6873 2002-03-29  Jim Blandy  <jimb@redhat.com>
6874
6875         * stack.c (get_selected_block): Add new argument `addr_in_block',
6876         used to return the exact code address we used to select the block,
6877         not just the block.
6878         * blockframe.c (get_frame_block, get_current_block): Same.
6879         * frame.h (get_frame_block, get_current_block,
6880         get_selected_block): Update declarations.
6881         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6882         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6883
6884 2002-04-05  Michael Snyder  <msnyder@redhat.com>
6885
6886         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6887         warning message.
6888
6889 2002-04-05  J. Brobecker  <brobecker@gnat.com>
6890
6891         * utils.c (xfullpath): New function.
6892         * defs.h (xfullpath): Add declaration.
6893         * source.c (openp): Use xfullpath in place of gdb_realpath to
6894         avoid resolving the basename part of filenames when the
6895         associated file is a symbolic link. This fixes a potential
6896         inconsistency between the filenames known to GDB and the
6897         filenames it prints in the annotations.
6898         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6899         to be able to match a filename with either the real filename, or
6900         the name of any symbolic link to this file.
6901         (lookup_partial_symtab): Ditto.
6902
6903 2002-04-04  Michael Snyder  <msnyder@redhat.com>
6904
6905         * breakpoint.c: Add support for hardware breakpoints in overlays.
6906         (overlay_events_enabled): New state variable.
6907         (insert_breakpoints): Use overlay_events_enabled to decide
6908         whether to attempt to set a breakpoint at the overlay load addr.
6909         Handle bp_hardware_breakpoint as well as bp_breakpoint.
6910         (remove_breakpoint): Use overlay_events_enabled to decide
6911         whether breakpoints need to be removed from overlay load addr.
6912         Handle bp_hardware_breakpoint as well as bp_breakpoint.
6913         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
6914         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
6915         disable_overlay_breakpoints): Update overlay_events_enabled.
6916
6917 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
6918
6919         * dwarf2read.c (struct function_range): New.
6920         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6921         (check_cu_functions): New.
6922         (read_file_scope): Initialize global function lists.
6923         Call dwarf_decode_line after processing children.
6924         (read_func_scope): Add to global function list.
6925         (dwarf_decode_lines): Call check_cu_functions everywhere
6926         record_line is called.  Call record_line with a linenumber
6927         of 0 to mark sequence ends.
6928
6929 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
6930
6931         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
6932         change sync with glibc.
6933
6934 2002-04-03  Jim Blandy  <jimb@redhat.com>
6935
6936         * configure.in: Call AC_C_INLINE.
6937         * configure: Regenerated.
6938
6939 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
6940
6941         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6942         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6943
6944 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
6945
6946         * NEWS: Mention gcore support on FreeBSD/i386.
6947
6948         * fbsd-proc.c: New file.
6949         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6950         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6951
6952         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6953         while statement.
6954
6955 2002-03-29  Jim Blandy  <jimb@redhat.com>
6956
6957         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6958         unescaped newlines in string literals, but newer ones don't.  So
6959         escape them.
6960
6961 2002-03-26  Michael Snyder  <msnyder@redhat.com>
6962             Andrew Cagney <cagney@redhat.com>
6963
6964         * cli/cli-dump.c: New file.  Dump memory to file,
6965         restore file to memory.
6966         * cli/cli-dump.h: New file.
6967         * Makefile.in: Add rules, dependencies for cli-dump.o.
6968         * NEWS: Mention new commands.
6969
6970 2002-03-28  Michael Snyder  <msnyder@redhat.com>
6971
6972         * symfile.c (symbol_file_add): Move test for null symbols to later.
6973
6974 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
6975
6976         From veksler at il.ibm.com:
6977         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6978         the xstrduped original path.
6979         Fix PR gdb/417.
6980
6981 2002-03-27  Michael Snyder  <msnyder@redhat.com>
6982
6983         * breakpoint.c (_initialize_breakpoint): Clean up help string.
6984         * infcmd.c (_initialize_infcmd): Ditto.
6985         * language.c (_initialize_language): Ditto.
6986         * symfile.c (_initialize_symfile): Ditto.
6987         * top.c (_init_main): Ditto.
6988         * cli/cli-cmds.c (init_cli_cmds): Ditto.
6989
6990 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
6991
6992         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6993         vector registers handling.
6994         (skip_prologue): Handle new AltiVec instructions.  Fill in new
6995         fields of frame data.
6996         (frame_get_saved_regs): Fill in information for AltiVec registers.
6997
6998 2002-03-27  Jim Blandy  <jimb@redhat.com>
6999
7000         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7001         a function; leave this macro here to invoke that function.
7002         (symbol_init_mangled_name): Declaration for that function.
7003         * symtab.c (symbol_init_mangled_name): New function.
7004
7005 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7006
7007         * valarith.c: Replace strerror with safe_strerror.
7008         * tracepoint.c: Ditto.
7009         * lin-lwp.c: Ditto.
7010         * go32-nat.c: Ditto.
7011         * inflow.c: Ditto.
7012         * gnu-nat.c: Ditto.
7013
7014 2002-03-27  Andreas Schwab  <schwab@suse.de>
7015
7016         * event-top.c (command_line_handler): Remove useless if.
7017
7018 2002-03-27  Andreas Jaeger  <aj@suse.de>
7019
7020         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7021         comment.
7022
7023 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
7024
7025         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7026         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7027         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7028         (x86_64_linux_dr_get_status, supply_gregset),
7029         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7030         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7031         (x86_64_register_info_table): Add.
7032         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7033         (x86_64_register_raw_size, x86_64_register_virtual_type),
7034         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7035         general x86_64_register_info_table.
7036         (i386_gdbarch_init): gdbarch_register_bytes is now set
7037         dynamicaly during initialization.
7038         * regformats/reg-x86-64.dat: Synced with changes to registers above.
7039         * gdbserver/linux-x86-64-low.c: Ditto.
7040
7041 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7042
7043         * gdbserver/server.c (main): Call target_signal_to_host_p
7044         and target_signal_to_host on signals received from the remote.
7045         * gdbserver/remote-utils.c (prepare_resume_reply): Call
7046         target_signal_from_host on signals sent to the remote.
7047         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
7048         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
7049
7050 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7051
7052         * signals/signals.c: Include "server.h" in gdbserver build.
7053         (target_signal_from_name): Don't use STREQ.
7054         (_initialize_signals): Likewise.  Don't include function in
7055         gdbserver build.
7056
7057 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7058
7059         * signals.c: Moved to...
7060         * signals/signals.c: Here.
7061         * Makefile (signals.o): Update.
7062
7063 2002-03-26  Jeff Law (law@redhat.com)
7064
7065         * somread.c (som_symtab_read): Remove some commented out code and
7066         updated related comments.  Do not set the minimal symbol table to
7067         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7068         in a dynamic executable.
7069         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7070         where we are unable to find the minimal symbol for the given
7071         PC value.
7072
7073 2002-03-25  Jeff Law (law@redhat.com)
7074
7075         * linux-proc.c (read_mapping): Scan up to end of line for filename.
7076
7077 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
7078
7079         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7080
7081 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7082
7083         * command.h: Update copyright.
7084         (struct cmd_list_element): Replace definition with opaque
7085         declaration.
7086         (enum cmd_types): Document that it will eventually be moved to
7087         cli/cli-decode.h
7088         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7089         (MALLOCED_REPLACEMENT): Delete macro.
7090         * Makefile.in (cli_decode_h): Add $(command_h).
7091         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7092         * top.c: Include "cli/cli-decode.h".
7093         * completer.c: Include "cli/cli-decode.h".
7094         * maint.c: Include "cli/cli-decode.h".
7095         * cli/cli-decode.h: Include "command.h".
7096         (enum command_class): Delete.
7097         (enum cmd_types): Comment out.
7098         (enum cmd_auto_boolean): Delete.
7099         (enum var_types): Delete.
7100
7101 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7102
7103         * cli/cli-decode.c: Include "gdb_assert.h".
7104         (add_set_or_show_cmd): New static function.
7105         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
7106         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
7107         all fields, such as func, from the set command.
7108
7109 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7110
7111         * MAINTAINERS (sh-elf): Change warning flag to -w.
7112
7113 2002-03-23  Andrew Cagney  <cagney@redhat.com>
7114
7115         * defs.h (error): Add printf format attribute.
7116         * thread-db.c (thread_from_lwp): Fix error format string.
7117         * stack.c (parse_frame_specification): Ditto.
7118         * cli/cli-decode.c (undef_cmd_error): Ditto.
7119         * scm-lang.c (scm_lookup_name): Ditto.
7120         * tracepoint.c (trace_error): Ditto.
7121         * remote-utils.c (usage): Ditto.
7122         * remote.c (compare_sections_command): Ditto.
7123         Fix PR gdb/328.
7124
7125 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
7126
7127         * gdbtypes.c (append_composite_type_field): New function.
7128         (init_composite_type): New function.
7129         * gdbtypes.h (append_composite_type_field): Declare.
7130         (init_composite_type): Ditto.
7131
7132 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
7133
7134         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7135         function.
7136         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7137         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7138         structure returning convention for SYSV ABI case, but not
7139         for GNU/Linux, FreeBSD, or NetBSD.
7140
7141 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
7142
7143         * symtab.h (lookup_block_symbol): Add mangled_name argument
7144         to prototype.
7145
7146         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7147         with new mangled_name argument.
7148         * linespec.c (decode_line_1): Likewise.
7149         * valops (value_of_this): Likewise.
7150         * symtab.c (lookup_transparent_type): Likewise.
7151         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
7152         (lookup_symbol): If we are given a mangled name, pass it down
7153         to lookup_symbol_aux.
7154         (lookup_block_symbol): If we are given a mangled name to check
7155         against, only return symbols which match it.
7156
7157 2002-03-22  Christopher Faylor  <cgf@redhat.com>
7158
7159         * win32-nat.c (child_create_inferior): Check for proper shell to use
7160         here, in case the user changes it on the fly.
7161         (_initialize_inftarg): Remove shell path considerations.
7162
7163 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
7164
7165         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7166         for gdbarch_max_register_raw_size and max_register_virtual_size.
7167         Adjust copyright year.
7168
7169 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
7170
7171          * dbxread.c (process_one_symbol): Extend the first N_SLINE
7172          in a function to cover the entire beginning of the function
7173          as well if it does not already.
7174
7175 2002-03-21  Tom Rix  <trix@redhat.com>
7176
7177         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7178         (rs6000_ptrace64): Renamed from ptrace64.
7179
7180 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7181
7182         * gdbserver/remote-utils.c (remote_open): Don't call
7183         getprotobyname, we're all using TCP here so just use
7184         IPPROTO_TCP.
7185         * gdbserver/gdbreplay.c (remote_open): Ditto.
7186
7187 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7188
7189         * regcache.c (_initialize_regcache): No need to call
7190         build_regcache() at this time; it gets called whenever
7191         the gdbarch changes.
7192
7193 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
7194
7195         * sparc-nat.c:  Include sys/param.h where possible.
7196
7197 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
7198
7199         Fix PR gdb/422.
7200         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7201         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7202         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7203         complex types.
7204         * stabsread.c (rs6000_builtin_type): Likewise.
7205         (read_sun_floating_type): Likewise.
7206
7207 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7208
7209         * stabsread.c (read_member_functions): Remove skip code for duplicate
7210         constructor/destructor methods.  Use standard parsing for these
7211         methods and just do not chain them to the list of methods after
7212         parsing.
7213
7214 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
7215
7216         * coffread.c: Remove redundant static declarations.  Replace
7217         occurrences of `PTR' with `void *'.
7218         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7219         * top.h (quit_cover): Likewise.
7220         * defs.h (catch_errors): Likewise.
7221
7222 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7223
7224         * defs.h (XMALLOC): Define.
7225         * gdb-events.sh (XMALLOC): Delete macro.
7226         * gdb-events.c, gdb-events.h: Regenerate.
7227         * gdbarch.sh (XMALLOC): Delete macro.
7228         * gdbarch.c: Regenerate.
7229         * serial.c (XMALLOC): Delete macro.
7230         * ui-file.c (XMALLOC): Ditto.
7231         * ser-unix.h (XMALLOC): Ditto.
7232         * sh-tdep.c (XMALLOC): Ditto.
7233         * ui-out.c (XMALLOC): Ditto.
7234         * utils.c (XMALLOC): Ditto.
7235         * i386-tdep.c (XMALLOC): Ditto.
7236         * gdb-events.c (XMALLOC): Ditto.
7237         * d10v-tdep.c (XMALLOC): Ditto.
7238         * cli-out.c (XMALLOC): Ditto.
7239
7240         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7241         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7242         * ui-file.c, ui-out.c: Ditto.
7243
7244 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7245
7246         * command.h (struct cmd_list_element): Add field context.
7247         (set_cmd_context, get_cmd_context): Declare.
7248         * cli/cli-decode.h: Ditto.
7249         * cli/cli-decode.c (get_cmd_context): New function.
7250         (set_cmd_context): New function.
7251         (add_cmd): Initialize context.
7252         Part of fixing PR gdb/145 and PR gdb/146.
7253
7254 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7255
7256         * cli/cli-decode.c (cmd_type): New function.
7257         * command.h (cmd_type): Declare.
7258         * infrun.c (set_schedlock_func): Call function cmd_type.
7259         * kod.c (kod_set_os): Call cmd_type.
7260         * cris-tdep.c (cris_version_update): Use function cmd_type.
7261         (cris_mode_update, cris_abi_update): Ditto.
7262
7263         * command.h: (execute_cmd_post_hook): Declare.
7264         (execute_cmd_pre_hook): Declare.
7265         * cli/cli-script.c (clear_hook_in_cleanup): New function.
7266         (execute_cmd_post_hook, execute_cmd_pre_hook): New
7267         functions. Execute pre/post hook while ensuring that afterwords
7268         hook_in is cleared.
7269         * top.c (execute_command): Use execute_cmd_post_hook, and
7270         execute_cmd_pre_hook to execute pre/post commands.
7271         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7272         hook_stop_stub.
7273         (hook_stop_stub): Call execute_cmd_pre_hook.
7274
7275 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7276
7277         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
7278         set'' and this leads to a core dump.  Move xstrdup of
7279         operating_system to after check that it is not NULL.
7280
7281 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7282
7283         * kod.c (kod_set_os): Remove unnecessary check that
7284         ``command->type'' is set_cmd.
7285
7286         * valprint.c (set_input_radix): Use input_radix.
7287         (set_output_radix): Use output_radix.
7288         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7289         isn't reverted.
7290
7291 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
7292
7293         * value.h (struct value): Delete field ``substring_addr''.  Change
7294         aligner fields to force_doublest_align, force_longest_align,
7295         force_core_addr_align and force_pointer_aligh.
7296
7297         * value.h (struct value): Fix typo in above change.
7298
7299 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7300
7301         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7302         to fix internal_error from ``maintenance print architecture''.
7303
7304 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7305
7306         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7307         for gcc versions after gcc-2.8.1.
7308
7309 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7310
7311         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7312         for method resolution.  Restore adjustment of ``this'' pointer after
7313         calling value_struct_elt, which was accidentally removed during the
7314         HP merge.
7315
7316 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
7317
7318         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7319         value_of_register.
7320         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
7321         get_saved_register.
7322         * value.h (value_of_register): Update.
7323
7324 2002-03-14  Richard Henderson  <rth@redhat.com>
7325
7326         * configure.in: Detect declaration for canonicalize_file_name.
7327         * utils.c (canonicalize_file_name): Declare, if needed.
7328         (gdb_realpath): Prefer realpath if available and usable.
7329         * config.in, configure: Rebuild.
7330
7331 2002-03-14  Richard Henderson  <rth@redhat.com>
7332
7333         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7334         a constant array bound.
7335
7336         * MAINTAINERS: Add myself to write-after-approval.
7337
7338 2002-03-14  Michael Snyder  <msnyder@redhat.com>
7339
7340         * symfile.c (syms_from_objfile): Return immediately if no syms.
7341         (symbol_file_add): Return immediately if no syms.
7342         (find_sym_fns): Return immediately if no syms.
7343
7344 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
7345
7346         * gdbserver/remote-util.c (remote_open): Print remote-side's
7347         IP address when remote debugging over the network.
7348
7349 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
7350
7351         * config/sparc/fbsd.mh: Fix copyright.
7352         * config/sparc/fbsd.mt: Likewise.
7353
7354 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
7355
7356         * MAINTAINERS: Fix typo in name of gdb warnings option.
7357         (x86-64): Fix formating so that this can be parsed by awk.
7358
7359 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7360
7361         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7362         * defs.h: Include "gdb/signals.h".
7363         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7364
7365 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
7366
7367         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7368         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7369         from x86-64-tdep.h
7370
7371 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7372             Don Howard <dhoward@redhat.com>
7373
7374         * mips-tdep.c (ST0_FR): Define.
7375         (mips2_fp_compat): New function, temporarily disabled.
7376         (mips_read_fp_register_single): New function.
7377         (mips_read_fp_register_double): New function.
7378         (mips_print_register): Use them.
7379         (do_fp_register_row): Likewise.
7380
7381 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
7382
7383         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7384         approval''.
7385
7386 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7387
7388         * stabsread.c (read_member_functions): Fix is_stub test for
7389         static member functions, improve comment.
7390
7391 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
7392
7393         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7394         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7395         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7396         commands that set boolean values.
7397         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7398         (arm_rdi_resume): Always initialize PC.
7399         (arm_rdi_open): Don't use rslt as a boolean.
7400         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7401         (arm_rdi_fetch_registers, arm_rdi_store_registers)
7402         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7403         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7404
7405 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
7406
7407         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7408         * configure: Rebuilt.
7409
7410 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7411
7412         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7413         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7414
7415 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
7416
7417         * cli/cli-decode.c (set_cmd_completer): New function.
7418         * command.h (set_cmd_completer): Declare.
7419         * cli/cli-decode.h (set_cmd_completer): Ditto.
7420
7421         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7422         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7423         * win32-nat.c (_initialize_inftarg): Ditto.
7424         * remote-rdi.c (_initialize_remote_rdi): Ditto.
7425         * proc-api.c (_initialize_proc_api): Ditto.
7426         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7427         * source.c (_initialize_source): Ditto.
7428         * exec.c (_initialize_exec): Ditto.
7429         * solib.c (_initialize_solib): Ditto.
7430         * top.c (init_main): Ditto.
7431         * tracepoint.c (_initialize_tracepoint): Ditto.
7432         * symfile.c (_initialize_symfile): Ditto.
7433         * printcmd.c (_initialize_printcmd): Ditto.
7434         * infcmd.c (_initialize_infcmd): Ditto.
7435         * corefile.c (_initialize_core): Ditto.
7436
7437 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7438
7439         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7440
7441 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7442
7443         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7444
7445 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7446
7447         * NEWS: Update headings, 5.2 has branched.
7448
7449 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
7450
7451         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7452         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7453         (register_addr, REGISTER_RAW_SIZE): Likewise.
7454         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7455         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7456
7457 2002-03-03  Michal Ludvig <mludvig@suse.cz>
7458
7459         * MAINTAINERS (x86-64): Add myself.
7460         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7461         changed value_ptr -> struct value *
7462
7463 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
7464
7465         * configure.host (sparc64-*-freebsd): Add.
7466         * configure.tgt: Likewise.
7467         * config/sparc/fbsd.mh: New file.
7468         * config/sparc/fbsd.mt: Likewise.
7469         * config/sparc/nm-fbsd.h: Likewise.
7470         * config/sparc/tm-fbsd.h: Likewise.
7471
7472 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
7473
7474         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7475         regformats/reg-s390x.dat.
7476
7477 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
7478
7479         * utils.c: Add FIXME explaining true/false problem.
7480
7481 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
7482
7483         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7484
7485 2002-02-28  Michael Chastain  <mec@shout.net>
7486
7487         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7488
7489 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
7490
7491         * gdbserver/linux-s390-low.c: New file.
7492         * regformats/reg-s390.dat: New file.
7493         * regformats/reg-s390x.dat: New file.
7494         * gdbserver/configure.srv: Add S/390.
7495         * gdbserver/Makefile.in: Add S/390.
7496         * configure.tgt: Enable gdbserver for S/390.
7497
7498 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
7499
7500         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7501         first line of the doc string for "info dos", except at the end of
7502         the sentence, since the short help stops at the first period.
7503
7504 2002-02-28  Jason Merrill  <jason@redhat.com>
7505
7506         * dwarf2read.c (dwarf_cfi_name): Add new codes.
7507
7508 2002-02-27  Fred Fish  <fnf@redhat.com>
7509
7510         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7511         comment (dumy -> dummy).
7512
7513 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7514
7515         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7516
7517 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
7518
7519       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7520
7521 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7522
7523         * gdbserver/acconfig.h: New file.
7524         * gdbserver/i387-fp.c: New file.
7525         * gdbserver/i387-fp.h: New file.
7526         * gdbserver/linux-x86-64.c: New file.
7527         * regformats/reg-x86-64.dat: New file.
7528         * configure.tgt: Add x86_64-*-linux* gdbserver support.
7529         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7530         * gdbserver/configure.in: Add support for regsets.
7531         * gdbserver/config.in: Regenerate.
7532         * gdbserver/configure: Regenerate.
7533         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
7534         * gdbserver/linux-low.h: New file.
7535         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
7536         for regsets.
7537         * gdbserver/linux-arm-low.c: Include "linux-low.h".
7538         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7539         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7540         * gdbserver/linux-mips-low.c: Include "linux-low.h".
7541         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7542         * gdbserver/linux-sh-low.c: Include "linux-low.h".
7543         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
7544         "i387-fp.h".  Add PTRACE_GETREGS and friends.
7545         * gdbserver/regcache.c (supply_register): New function.
7546         (supply_register_by_name): New function.
7547         (collect_register): New function.
7548         (collect_register_by_name): New function.
7549
7550 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7551
7552         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7553         (config.status): Add configure.srv dependency.
7554         (server_h): Add config.h dependency.
7555
7556 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7557
7558         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7559         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7560         * gdbserver/configure.srv: Change i386-*-linux* to use
7561         reg-i386-linux.o.
7562
7563 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7564
7565         * x86-64-tdep.c: Re-indent.  Update copyright date.
7566
7567 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7568
7569         From Michal Ludvig <mludvig@suse.cz>:
7570         * x86-64-tdep.c (value.h): Delete.
7571         (gdb_assert.h): Include.
7572         (x86_64_register_convert_to_virtual,
7573         x86_64_register_convert_to_raw ): Add check which lets only
7574         floating-point values to be converted.
7575         (value_push): Delete.
7576         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7577         (i386_gdbarch_init): Number of register_bytes fixed.
7578
7579 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7580
7581         * MAINTAINERS: Add x86-64 target.
7582
7583 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7584
7585         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7586         * osfsolib.c (solib_map_sections): Ditto.
7587         * irix5-nat.c (solib_map_sections): Ditto.
7588         * corelow.c (gdb_check_format): Ditto.
7589         * symfile.c (symfile_bfd_open): Ditto.
7590         * solib.c (solib_map_sections): Ditto.
7591         Fix PR gdb/354.
7592
7593 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7594
7595         * remote.c (_initialize_remote): By default, disable ``e'' and
7596         ``E'' step out-of-range packets.
7597
7598 2002-02-26  Andreas Schwab  <schwab@suse.de>
7599
7600         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7601         m68k_linux_frame_saved_pc.
7602         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7603         in_sigtramp.
7604         (SIGCONTEXT_PC_OFFSET): Remove.
7605         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7606         m68k_linux_sigtramp_saved_pc): New functions.
7607         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7608         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7609         (UCONTEXT_PC_OFFSET): Define.
7610         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7611         non-RT and RT signal trampolines.
7612
7613 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
7614
7615         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7616         (TARGET_NBPG, STACK_END_ADDR): Delete
7617         (VARIABLES_INSIDE_BLOCK): Delete.
7618
7619 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
7620
7621         * utils.c (perror_with_name): Make string parameter constant.
7622         (print_sys_errmsg): Ditto.
7623         (query): Ditto.
7624         * defs.h (perror_with_name): Update.
7625         (print_sys_errmsg): Update.
7626         (query): Update.
7627
7628 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
7629
7630         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7631         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7632
7633 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7634
7635         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7636         if it already matches the current architecture from the exec file.
7637         Include arch-utils.h for gdbarch_info_init prototype.
7638         * Makefile.in (rs6000-nat.o): Update dependencies.
7639
7640 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
7641
7642         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7643          list of exported variables.
7644
7645 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
7646
7647         * gdbserver/configure.srv: New file.
7648         * gdbserver/configure.in: Use configure.srv instead
7649         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
7650         from it.
7651         * gdbserver/configure: Regenerated.
7652         * gdbserver/terminal.h: New file.
7653         * gdbserver/Makefile.in: Update for configure changes.  Remove
7654         more unneeded include paths.
7655
7656 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
7657
7658         From wiz at danbala:
7659         * config/sparc/tm-sp64.h: Fix grammar and typos.
7660         Fix PR gdb/287.
7661
7662 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
7663
7664         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7665         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
7666         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7667         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7668         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7669         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7670         * s390-tdep.c: Ditto.
7671         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7672         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7673         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7674         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7675         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7676         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7677         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7678         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7679         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7680         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7681         Fix PR gdb/378.
7682
7683 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7684
7685         * lin-thread.c: Delete file.
7686         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7687         to gdb_proc_service.h.
7688         * configure: Re-generate.
7689
7690         * ocd.c (ocd_open): Do not try to open the "ocd" device.
7691         * serial.c (serial_open): Delete check for "ocd".
7692         Fix PR gdb/349.
7693
7694         * Makefile.in (linux-thread.o): Delete target.
7695         * linux-thread.c: Delete file.
7696
7697         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
7698         renamed SH files to be consistent.
7699
7700         * symtab.c (sort_search_symbols): Use xfree.
7701
7702 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
7703
7704         * arm-linux-tdep.c (arm_linux_init_abi): Register
7705         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7706         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7707         definition with undef, since we don't want the sysvr4 definition.
7708         (SKIP_TRAMPOLINE_CODE): Likewise.
7709
7710 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7711
7712         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7713
7714         * configure.in: (AC_CHECK_FUNCS) Added test for
7715         canonicalize_file_name Regenerated.
7716         * config.in, configure: Regenerated.
7717         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7718         defined use canonicalize_file_name.
7719
7720 2002-02-23  Michael Chastain  <mec@shout.net>
7721
7722         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7723
7724 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7725
7726         * README: Remove references to cygnus.com.
7727         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7728         dot com'' form.  Remove references to cygnus.com and sourceware.
7729
7730 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7731
7732         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7733         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7734         1003.1-2001 no longer allows "head -1".
7735         * gdb/Makefile.in (version.c): Likewise.
7736         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7737         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7738         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
7739
7740 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7741
7742         * cli/cli-decode.c (cmd_cfunc_eq): New function.
7743         * command.h (cmd_cfunc_eq): Declare.
7744         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7745
7746         * cli/cli-cmds.h (is_complete_command): Change parameter to a
7747         ``struct cmd_list_element *''.
7748         * cli/cli-cmds.c (is_complete_command): Update.  Use
7749         cmd_cfunc_eq.
7750         * top.c (execute_command): Pass the command to
7751         is_complete_command.
7752         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7753
7754 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7755
7756         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7757         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7758         architecture defines.
7759         * s390-tdep.c (s390_gdbarch_init): Likewise.
7760
7761 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
7762
7763         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7764         (arm_linux_push_arguments): Likewise.
7765         (arm_linux_init_abi): Register them.  Also register linux-specific
7766         call_dummy_words.
7767         (find_minsym_and_objfile): Use strcmp, not STREQ.
7768         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7769         (arm_linux_call_dummy_words): Delete declaration.
7770         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7771         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7772         declarations.
7773         (LOWEST_PC): Delete.
7774
7775 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7776
7777         * maint.c (print_section_info): Do not prepend `0x' to filepos
7778         output, it will be handled by local_hex_string_custom.
7779
7780 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
7781
7782         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7783         (store_newfpe_double, store_newfpe_extended, store_fpregister)
7784         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7785
7786 2002-02-22  Jim Blandy  <jimb@redhat.com>
7787
7788         Indicate that the bcache functions don't change the strings
7789         they're passed.
7790         * bcache.h (bcache, hash): Add `const' keywords to declarations.
7791         * bcache.c (bcache, hash): Add `const' keywords to definitions.
7792
7793 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
7794
7795         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7796
7797 2002-02-21  Christopher Faylor  <cgf@redhat.com>
7798
7799         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7800         find the complete path to a loaded DLL.
7801
7802 2002-02-21  Fred Fish  <fnf@redhat.com>
7803
7804         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7805         that marks the end of the range of a function, enter a line number
7806         entry that has a line number of zero and a PC offset that matches
7807         the end of the function.  This starts a range of PC's for which no
7808         line number information is known.
7809         * symtab.c (find_pc_sect_line): If our best fit is in a range of
7810         PC's for which no line number info is found (line number is zero)
7811         then we didn't find any valid line information.
7812         * symtab.h: Document use of zero line number entry.
7813
7814 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
7815
7816         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7817         (have_ptrace_getvrregs): Define for run time checks.
7818         (gdb_vrregset_t): New type for Altivec register handling.
7819         (fetch_register, store_register): Fetch/store altivec register
7820         when needed.
7821         (fetch_altivec_register, store_altivec_register): New functions.
7822         (supply_vrregset, fill_vrregset): New functions.
7823         (fetch_altivec_registers, store_altivec_registers): New functions.
7824         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7825         registers as well.
7826
7827 2002-02-21  Jiri Smid  <smid@suse.cz>
7828
7829         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7830
7831 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
7832
7833         * Makefile.in (armnbsd-nat.o): Update dependencies.
7834         * armnbsd-nat.c (supply_gregset): New function.  Common code to
7835         supply the integer register set.
7836         (supply_fparegset): New function.  Similar for FPA registers.
7837         (fetch_regs, fetch_fp_regs): Use them.
7838         (fetch_core_registers): Likewise.
7839         (fetch_elfcore_registers): New function.
7840         (arm_netbsd_elfcore_fns): New core-file type specification.
7841         (_initialize_arm_netbsd_nat): Register it.
7842
7843 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
7844
7845         * armnbsd-nat.c: Include gdbcore.h.
7846         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7847         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7848         'void' to declaration, to shut up ARI.
7849         (fetch_core_registers): Make static.  Rewrite using supply_register.
7850         (arm_netbsd_core_fns): New core-file type specification.
7851         (_initialize_arm_netbsd_nat): New function.
7852
7853 2002-02-21  Christopher Faylor  <cgf@redhat.com>
7854
7855         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7856         value.
7857
7858 2002-02-20  Christopher Faylor  <cgf@redhat.com>
7859
7860         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7861         fails.
7862
7863 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7864
7865         * jv-exp.y (parse_number): Change type of implicit longs
7866         to builtin_type_uint64.
7867
7868 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7869
7870         * gdbserver/linux-low.c (mywait): Change argument to waitpid
7871         to be an integer instead of a `union wait'.
7872
7873 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7874
7875         * mips-linux-nat.c: Call the operating system GNU/Linux.
7876         * mips-linux-tdep.c: Likewise.
7877         * mips-tdep.c: Likewise.
7878
7879 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7880
7881         Fix PR gdb/265.
7882         * jv-exp.y (parse_number): Handle 64-bit integers.
7883
7884 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7885
7886         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
7887         AC_STDC_HEADERS to AC_HEADER_STDC.
7888         * gdbserver/configure: Regenerated.
7889
7890 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
7891
7892         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7893         is defined.
7894         * sparc-tdep.c (get_longjmp_target): Likewise.
7895
7896 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
7897
7898         * News: Add news about ARM and Multi-arch.  Mention the new target
7899         arm*-*-netbsd*.
7900
7901 2002-02-19  Jim Blandy  <jimb@redhat.com>
7902
7903         * stabsread.c (error_type_complaint): Improve error message.
7904
7905 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
7906
7907         * gdbserver/README: Update documentation.
7908         * gdbserver/configure.in: Update configury to match documentation.
7909         * gdbserver/Makefile.in: Likewise.
7910         * gdbserver/configure: Regenerated.
7911         * gdbserver/aclocal.m4: New file, generated by aclocal.
7912         * gdbserver/config.in: New file, generated by autoheader.
7913
7914 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
7915
7916         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7917         armnbsd-nat.c.
7918
7919 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
7920
7921         * arm-tdep.h (enum arm_float_model): New enum.
7922         (struct gdbarch_tdep): Add fp_model.
7923         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
7924         up floating-point conversions until we know the floating-point model
7925         in use by the inferior.  Don't complain about being unable to
7926         determine the ABI of the inferior when we don't have one.
7927         (arm_extract_return_value): Support different floating-point models.
7928         (arm_store_return_value): Likewise.
7929         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
7930         ARM_FLOAT_SOFT.
7931         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7932
7933 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7934
7935         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7936         of ``current_gdbarch''.
7937
7938 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
7939
7940         * armnbsd-nat.c : ANSIfy all function declarations.
7941         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7942         (fetch_inferior_registers): Re-implement in terms of above.
7943         (store_register, store_regs, store_fp_register, store_fp_regs): New.
7944         (store_inferior_registers): Re-implement in terms of above.
7945
7946 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
7947
7948         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
7949         kernel.
7950         * arm-linux-tdep.c: Likewise.
7951         * config/arm/tm-linux.h: Likewise.
7952
7953 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
7954
7955         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7956         * config/arm/nbsd.mt (TM_FILE): Delete.
7957         * config/arm/tm-nbsd.h: Delete.
7958
7959 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
7960
7961         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7962         Initialize CALL_DUMMY_LENGTH.
7963
7964 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
7965
7966         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7967         function.
7968         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
7969         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
7970         defines one thing and that is incorrect for this port.
7971         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7972
7973 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7974
7975         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7976
7977 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7978
7979         * win32-nat.c (display_selector): New function. Displays information
7980         about the information returned by GetThreadSelectorEntry API function.
7981         (display_selectors): New function. Displays the infomation of
7982         the selector given as argument, or of CS, DS ans FS selectors
7983         if no argument is given.
7984         ( _initialize_inftarg): Add "w32" as info prefix command.
7985         Add "info w32 selector" as command calling display_selectors.
7986
7987 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7988
7989         * i386-tdep.c (get_longjmp_target): Fix compilation failure
7990         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7991         if not defined.
7992
7993 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
7994
7995         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7996
7997 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
7998
7999         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8000         (arm_fix_call_dummy): Call it.
8001         (arm_call_dummy_breakpoint_offset): Delete.
8002         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8003         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8004
8005 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
8006
8007         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8008         Default to func_frame_chain_valid.
8009         * gdbarch.h, gdbarch.c: Re-generate.
8010         * frame.h (FRAME_CHAIN_VALID): Delete definition.
8011
8012 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
8013
8014         * ppc-linux-nat.c: Update copyright.
8015         (fetch_register, store_register): Add tid parameter, don't compute
8016         tid here.
8017         (fetch_ppc_registers, store_ppc_registers): Add tid
8018         parameter. Pass it along to callees.
8019         (fetch_inferior_registers, store_inferior_registers): Compute tid
8020         here, and pass it to calleed functions.
8021         (fill_gregset, supply_fpregset): Clean up formatting.
8022
8023 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8024
8025         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8026         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8027
8028 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8029
8030         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8031         * gdbarch.c gdbarch.h: Regenerate.
8032         * breakpoint.c (create_longjmp_breakpoint): Always compile this
8033         function.
8034         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8035         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8036         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8037
8038         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8039         * arm-tdep.c (arm_get_longjmp_target): New function.
8040         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
8041         this to a positive value register arm_get_longjmp_target as the
8042         longjmp handler.
8043         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8044         (arm_linux_init_abi): Set up longjmp description in tdep.
8045         * armnbsd-nat.c (get_longjmp_target): Delete.
8046         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8047         description in tdep.
8048         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8049         (get_longjmp_target): Delete declaration.
8050         (GET_LONGJMP_TARGET): Delete.
8051         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8052         (GET_LONGJMP_TARGET): Delete.
8053
8054 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
8055
8056         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
8057         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8058         of ``current_gdbarch''.
8059
8060 2002-02-17  Tom Tromey  <tromey@redhat.com>
8061
8062         * cli/cli-cmds.c (compare_strings): New function.
8063         (complete_command): Only print each unique item once.
8064         * completer.h (complete_line): Declare.
8065         * completer.c (complete_line): New function.
8066         (line_completion_function): Use it.
8067
8068 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
8069
8070         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8071         * gdbarch.h, gdbarch.c: Re-generate.
8072
8073 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8074
8075         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8076
8077 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8078
8079         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8080         * valops.c (value_arg_coerce): Don't take the address of a reference
8081         to convert an argument to a reference.
8082
8083 2002-02-15  Christopher Faylor  <cgf@redhat.com>
8084
8085         * win32-nat.c (get_image_name): New function.
8086         (handle_load_dll): Use get_image_name function.
8087         (get_child_debug_event): Avoid registering debug events until possibly
8088         execed process is started.
8089         (child_create_inferior): Allow invocation via shell so that command
8090         line redirection, etc.  works ok.
8091         (_initialize_inftarg): Add new command: "set shell" to control whether
8092         a shell is used to start a process.
8093
8094 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8095
8096         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8097         instead of find_register_by_number.
8098         (cannot_store_register): Likewise.
8099
8100 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8101
8102         * dwarf2read.c: Replace fprintf (stderr, ...) by
8103         fprintf_unfiltered (gdb_stderr, ...).
8104
8105 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8106
8107         * gdbserver/gdbserver.1: Document --attach.
8108
8109 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8110
8111         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8112         descriptions.
8113         * arm-tdep.c (arm_default_arm_le_breakpoint)
8114         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8115         (arm_default_thumb_be_breakpoint): New.  Initialize them from
8116         traditional breakpoint defines.
8117         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8118         (arm_gdbarch_init): Initialize new breakpoint variables.
8119         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8120         (arm_linux_init_abi): Initialize linux-specific breakpoint.
8121         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8122         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8123         code out to ...
8124         (arm_netbsd_init_abi_common): ... here; new function.
8125         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8126         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8127         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8128         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8129
8130 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8131
8132         * arm-tdep.h (enum arm_abi): New enum.
8133         (struct gdbarch_tdep): New structure.
8134         (LOWEST_PC): Provide a default.
8135         (arm_gdbarch_register_os_abi): Declare new function.
8136         * arm-tdep.c (arm_abi_names): New array.
8137         (process_note_abi_tag_sections): New function.
8138         (get_elfosabi): New function.
8139         (arm_gdbarch_register_os_abi): New function.
8140         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
8141         support for that ABI has been built in, then call the appropriate
8142         configuration routine.  Use gdbarch_num_regs() to get the number
8143         of registers.
8144         (arm_dump_tdep): New function.
8145         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8146         place-holder functions.
8147         (_initialize_arm_tdep): Register them.
8148         * config/arm/tm-arm.h (LOWEST_PC): Delete.
8149
8150         * armnbsd-tdep.c: New file.
8151         * Makefile.in (armnbsd-tdep.o): Add dependencies.
8152         * config/arm/nbsd.mt (TDEPFILES): Add it.
8153         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8154
8155         * armnbsd-nat.c: Include regcache.h.
8156         * Makefile.in (armnbsd-nat.o): Update dependency list.
8157
8158         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8159
8160 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8161
8162         * gdbserver/Makefile.in: Fix typos in target rules.
8163
8164 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8165
8166         Fix part of PR gdb/267.
8167         * linespec.c (find_methods): Handle constructors specially for now.
8168
8169 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
8170
8171         * arm-tdep.c (arm_push_arguments): Eliminate special float type
8172         handling.
8173         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8174         standard_coerce_float_to_double().
8175
8176 2002-02-14  Christopher Faylor  <cgf@redhat.com>
8177
8178         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8179         GDBINIT_FILENAME.
8180
8181 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
8182
8183         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8184         find_variant_by_name, because it confuses the multiarch
8185         framework. Return NULL if there isn't an architecture with the
8186         user supplied name, instead of forcing a different one without
8187         recording the change with the multiarch machinery.
8188         (find_variant_by_name): Delete.
8189
8190 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8191
8192         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8193         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8194
8195 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
8196
8197         * stack.c (print_frame_info_base): When calling
8198         print_frame_info_listing_hook, set current_source_symtab.
8199
8200 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8201
8202         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8203         and remove unused $(INCLUDE_DIR).
8204         Add regcache.c to OBS.
8205         Add generated register protocol files to clean target.
8206         Update dependencies for new objects, obsolete old target code.
8207
8208         * gdbserver/linux-low.c: Remove all platform-specific code to
8209         new files.  Remove various dead code.  Update to use regcache
8210         functionality.
8211         * gdbserver/remote-utils.c (fromhex): Add return statement
8212         to quiet warning.
8213         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8214         constant.
8215         (input_interrupt): Add integer parameter to match prototype
8216         of a signal handler.
8217         (outreg): Use register_data ().
8218         (prepare_resume_reply): Use gdbserver_expedite_regs.
8219         * gdbserver/server.c (main): Dynamically allocate own_buf because
8220         PBUFSIZ is no longer constant.  Use registers_to_string () and
8221         registers_from_string ().
8222         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
8223         for error (), fatal (), and warning ().  Update definition of
8224         PBUFSIZ to use regcache functionality.  Add include guard.
8225         * gdbserver/utils.c (fatal): Add missing ``const''.
8226         (warning): New function.
8227
8228         * regformats/regdat.sh: Include "regcache.h" in generated files.
8229         Provide init_registers () function.
8230         * regformats/regdef.h: Add prototype for set_register_cache ().
8231         Add include guard.
8232
8233         * gdbserver/linux-arm-low.c: New file.
8234         * gdbserver/linux-i386-low.c: New file.
8235         * gdbserver/linux-ia64-low.c: New file.
8236         * gdbserver/linux-m68k-low.c: New file.
8237         * gdbserver/linux-mips-low.c: New file.
8238         * gdbserver/linux-ppc-low.c: New file.
8239         * gdbserver/linux-sh-low.c: New file.
8240
8241         * gdbserver/regcache.c: New file.
8242         * gdbserver/regcache.h: New file.
8243
8244         * gdbserver/low-linux.c: Removed obsolete file.
8245
8246 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8247
8248         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8249         * config/i386/linux.mt: Likewise.
8250         * config/ia64/linux.mt: Likewise.
8251         * config/m68k/linux.mh: Likewise.
8252         * config/powerpc/linux.mh: Likewise.
8253         * config/mips/linux.mt: Likewise.
8254
8255         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8256
8257         * config/i386/i386lynx.mh: Mark gdbserver variables
8258         as (currently) obsolete for this target.
8259         * config/i386/nbsd.mt: Likewise.
8260         * config/i386/nbsdelf.mt: Likewise.
8261         * config/m32r/m32r.mt: Likewise.
8262         * config/m68k/m68klynx.mh: Likewise.
8263         * config/m68k/nbsd.mt: Likewise.
8264         * config/m68k/sun3os4.mh: Likewise.
8265         * config/mips/vr5000.mt: Likewise.
8266         * config/ns32k/nbsd.mt: Likewise.
8267         * config/pa/hppabsd.mh: Likewise.
8268         * config/pa/hppaosf.mh: Likewise.
8269         * config/powerpc/nbsd.mt: Likewise.
8270         * config/rs6000/rs6000lynx.mh: Likewise.
8271         * config/s390/s390.mt: Likewise.
8272         * config/s390/s390x.mt: Likewise.
8273         * config/sparc/sparclynx.mh: Likewise.
8274         * config/sparc/sun4os4.mh: Likewise.
8275         * config/i386/x86-64linux.mt: Likewise.
8276         * config/sparc/linux.mh: Likewise.
8277
8278 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8279
8280         * configure.tgt: Configure gdbserver only for known working
8281         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
8282         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
8283         SUBDIRS if it is configured.  Update comment for ${nativefile}.
8284         * configure: Regenerated.
8285
8286 2002-02-13  Michael Snyder  <msnyder@redhat.com>
8287
8288         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8289
8290         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8291         (default_gcore_mach): Just return 0, work around a problem in bfd.
8292         (default_gcore_target): OK to return NULL if exec_bfd is null.
8293         (make_mem_sec): Use a cast, avoid a warning.
8294
8295         * procfs.c (find_memory_regions_callback): Use a cast instead of
8296         calling host_pointer_to_address (which complains if
8297         sizeof (host pointer) != sizeof (target pointer)).
8298         (procfs_make_note_section): Avoid overflow in psargs string.
8299
8300         * procfs.c (procfs_make_note_section): Make the default
8301         implementation return an error.
8302
8303 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
8304
8305         * procfs.c (procfs_make_note_section): Provide a default definition
8306         (for alpha-dec-osf4.0f). Fix typos.
8307
8308 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
8309
8310         * linux-proc.c: Add include of regcache.h.
8311         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8312
8313 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
8314
8315         From 2002-01-18 Greg McGary <greg@mcgary.org>:
8316         * memattr.c (create_mem_region): Disallow useless empty region.
8317         Regions are half-open intervals, so allow [A..B) [B..C) as
8318         non-overlapping.
8319
8320 2002-02-13  Michael Chastain <mec@shout.net>
8321
8322         * defs.h: Kill CONST_PTR.
8323         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8324         * c-lang.c (c_builtin_types): Likewise.
8325         * ch-lang.c (ch_builtin_types): Likewise.
8326         * f-lang.c (f_builtin_types): Likewise.
8327         * language.c (unknown_builtin_types): Likewise.
8328         * m2-lang.c (m2_builtin_types): Likewise.
8329         * p-lang.c (pascal_builtin_types): Likewise.
8330         * scm-lang.c (c_builtin_types): Likewise.
8331
8332 2002-02-13  Keith Seitz  <keiths@redhat.com>
8333
8334         * arm-tdep.h (arm_get_next_pc): Add declaration.
8335
8336 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
8337
8338         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
8339         with other related struct-returning functions.
8340         (arm_extract_struct_value_address): New function.
8341         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
8342         initialize float_format, double_format and long_double_format as
8343         appropriate to the endianness of the target.
8344         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8345         (arm_use_struct_convention): Delete declaration.
8346         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8347
8348 2002-02-13  Keith Seitz  <keiths@redhat.com>
8349
8350         * defs.h (core_addr_to_string_nz): New function.
8351
8352 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
8353
8354         Apply missing bits of 2002-01-15 patch.
8355         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8356         (fill_fpregset): Use i387_fill_fsave.
8357
8358 2002-02-12  Keith Seitz  <keiths@redhat.com>
8359
8360         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8361         (core_addr_to_string_nz): New function.
8362
8363 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8364
8365         * arm-linux-nat.c: Really include arm-tdep.h.
8366         * config/arm/tm-linux.h (struct type, struct value): Declare.
8367
8368 2002-02-11  Michael Snyder  <msnyder@redhat.com>
8369
8370         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8371         (gcore section): Ifdef for Solaris and Unixware only.
8372         (procfs_do_thread_registers): Unixware needs one lwpstatus
8373         per thread (not one prstatus or pstatus).
8374         (procfs_make_note_section): Iterate only over kernel threads (lwps),
8375         not over all gdb threads.  For unixware, call elfcore_write_pstatus
8376         once before iterating over threads.
8377
8378 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8379
8380         * arm-tdep.h: New file.
8381         * arm-tdep.c: Include arm-tdep.h.
8382         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8383         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8384         (arm_print_float_info, arm_register_type, convert_to_extended)
8385         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8386         (arm_extract_return_value, arm_register_name): Make static.
8387         (arm_software_single_step): Similarly.  Fix types in declaration.
8388         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8389         (arm_store_return_value, arm_store_struct_return): New functions.
8390         (arm_gdbarch_init): Register the above functions.  Also register
8391         call_dummy_start_offset, sizeof_call_dummy_words,
8392         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8393         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8394         max_register_virtual_size, register_size.  Set up
8395         prologue_cache.saved_regs here, rather than ...
8396         (_initialize_arm_tdep): ... here.
8397         * config/arm/tm-arm.h (struct type, struct value): Delete forward
8398         declarations.
8399         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8400         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8401         (arm_print_float_info, arm_register_type, convert_to_extended)
8402         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8403         (arm_extract_return_value, arm_register_name): Delete declarations.
8404         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8405         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8406         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8407         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8408         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8409         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8410         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8411         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8412         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8413         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8414         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8415         (arm_get_next_pc): No-longer static -- these are needed by the RDI
8416         interface.
8417         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8418         * remote-rdi.c remote-rdp.c: Likewise.
8419         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8420         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8421         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8422         definition.
8423
8424         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8425         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8426         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8427         from non-ARM_ prefixed definitions.
8428         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8429         all uses of above.
8430         * remote-rdi.c remote-rdp.c: Likewise.
8431         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8432
8433 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8434
8435         * arm-tdep.c (arm_frameless_function_invocation)
8436         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8437         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8438         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8439         (arm_pop_frame, arm_get_next_pc): Make static.
8440         (arm_gdbarch_init): Register above in gdbarch structure.
8441         (arm_read_fp): Renamed from arm_target_read_fp.
8442         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8443         * config/arm/tm-arm.h (arm_frameless_function_invocation)
8444         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8445         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8446         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8447         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8448         (arm_pc_is_thumb_dummy): Delete declarations.
8449         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8450         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8451         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8452         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8453
8454 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
8455
8456         * symtab.c (compare_search_syms): New function.
8457         (sort_search_symbols): New function.
8458         (search_symbols): Sort symbols after searching rather than
8459         before.
8460
8461 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8462
8463         * NEWS: Linux -> GNU/Linux.
8464
8465 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8466
8467         * gdbarch.sh: For for level one methods, disallow a definition
8468         when partially multi-arched.  Add comments explaining rationale.
8469         * gdbarch.h: Re-generate.
8470
8471 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8472
8473         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8474         multi-arch partial.
8475
8476 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8477
8478         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
8479         field.  Use diff -u.
8480         * gdbarch.c: Re-generate.
8481
8482 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8483
8484         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8485         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8486         partial.
8487
8488 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8489
8490         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8491         multi-arch partial.
8492         (PUSH_ARGUMENTS): Switch to using predefault.
8493         * gdbarch.c: Regenerate.
8494
8495 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8496
8497         * valops.c (PUSH_ARGUMENTS): Delete definition.
8498         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8499         partial.  Default to default_push_arguments.
8500         * gdbarch.h, gdbarch.c: Regenerate.
8501
8502 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8503
8504         * defs.h (throw_exception): Rename return_to_top_level.  Update
8505         comments.
8506         * utils.c (error_stream, internal_verror, quit): Ditto.
8507         * top.c (throw_exception, catcher): Ditto.
8508         * sparclet-rom.c (sparclet_load): Ditto.
8509         * remote.c (interrupt_query, minitelnet): Ditto.
8510         * remote-sds.c (interrupt_query): Ditto.
8511         * remote-mips.c (mips_error, mips_kill): Ditto.
8512         * ocd.c (interrupt_query): Ditto.
8513         * monitor.c (monitor_interrupt_query): Ditto.
8514         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8515         * target.h: Update comment.
8516
8517         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8518
8519 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8520
8521         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8522         default_double_format.
8523         * gdbarch.h, gdbarch.c: Re-generate.
8524         * findvar.c (floatformat_unknown): Delete variable definition.
8525         * doublest.h (floatformat_unknown): Delete variable declaration.
8526
8527 2002-02-09  Jim Blandy  <jimb@redhat.com>
8528
8529         * stabsread.c (read_type): Add code to parse Sun's syntax for
8530         prototyped function types.
8531
8532 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8533
8534         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8535         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8536
8537 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8538
8539         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8540         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
8541         now _initialize_xcoffsolib gets called again and overrides the
8542         commands from solib.c in a native configuration.
8543
8544 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
8545
8546         * doublest.c (store_typed_floating): Don't try to return a value.
8547         Fixes PR gdb/290.
8548
8549 2002-02-08  Jim Blandy  <jimb@redhat.com>
8550
8551         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8552         is prototyped and has no arguments, print its argument list as
8553         `(void)'.
8554
8555 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8556
8557         * MAINTAINERS (write-after-approval): Add myself.
8558         (paper-trail): I've escaped!
8559
8560 2002-02-08  Christopher Faylor  <cgf@redhat.com>
8561
8562         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8563         changes.
8564         (_initialize_check_for_gdb_ini): Ditto.
8565
8566 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
8567
8568         * win32-nat.c (cygwin_pid_to_str): Fix typo.
8569         xaprintf -> xasprintf.
8570
8571 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
8572
8573         * win32-nat.c: Remove use of printf and sprintf functions.
8574
8575 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
8576
8577         * arm-tdep.c (arm_frame_chain_valid): Make static.
8578         (arm_push_arguments): Likewise.
8579         (arm_gdbarch_init): New function.
8580         (_initialize_arm_tdep): Call it.
8581         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8582         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8583         (FRAME_CHAIN_VALID): Delete.
8584         (arm_frame_chain_valid): Delete declaration.
8585         (PUSH_ARGUMENTS): Delete.
8586         (arm_push_arguments): Delete declaration.
8587         (CALL_DUMMY_P): Delete.
8588
8589 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
8590             Corinna Vinschen  <vinschen@redhat.com>
8591
8592         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8593         on builtin float types.
8594
8595 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8596
8597         * utils.c: Include <curses.h> before "bfd.h".
8598         * tui/tui-hooks.c: Likewise.
8599         * tui/tui.c: Likewise.
8600         * tui/tuiCommand.c: Likewise.
8601         * tui/tuiData.c: Likewise.
8602         * tui/tuiDataWin.c: Likewise.
8603         * tui/tuiDisassem.c: Likewise.
8604         * tui/tuiGeneralWin.c: Likewise.
8605         * tui/tuiIO.c: Likewise.
8606         * tui/tuiLayout.c: Likewise.
8607         * tui/tuiRegs.c: Likewise.
8608         * tui/tuiSource.c: Likewise.
8609         * tui/tuiSourceWin.c: Likewise.
8610         * tui/tuiStack.c: Likewise.
8611         * tui/tuiWin.c: Likewise.
8612
8613 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
8614
8615         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8616         to include space for pseudoregs as well. Update loops accordingly.
8617         (sh_fp_frame_init_saved_regs): Ditto.
8618         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8619
8620 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
8621
8622         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8623         Add Richard Earnshaw to Arm maintainers.
8624
8625 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
8626
8627         * defs.h (warning_begin): Delete declaration.
8628
8629         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8630         Delete macro.
8631
8632 2002-02-07  Michael Snyder  <msnyder@redhat.com>
8633
8634         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8635         Logic bug, remove misplaced else.
8636
8637 2002-02-07  Klee Dienes  <klee@apple.com>
8638
8639         * fork-inferior.c (fork_inferior): Add '!' to the list of
8640         characters that need to be quoted when building a string for the
8641         shell.  Quote '!' specifically with a backslash, since CSH chokes
8642         when trying to evaluate "str!str".
8643
8644 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
8645
8646         * rdi-share/host.h: Only provide a typedef for bool if it is not
8647         defined.
8648
8649 2002-02-04  Michael Snyder  <msnyder@redhat.com>
8650
8651         * breakpoint.h (enum bptype): Add new overlay event bp type.
8652         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8653
8654         * breakpoint.c (create_internal_breakpoint): New function.
8655         (internal_breakpoint_number): Moved into create_internal_breakpoint.
8656         (create_longjmp_breakpoint): Use create_internal_breakpoint.
8657         (create_thread_event_breakpoint): Ditto.
8658         (create_solib_event_breakpoint): Ditto.
8659         (create_overlay_event_breakpoint): New function.
8660         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8661         (update_breakpoints_after_exec): Delete and re-initialize
8662         overlay event breakpoints after an exec.  Add FIXME comment
8663         about longjmp breakpoint.
8664         (print_it_typical): Ignore overlay event breakpoints.
8665         (print_one_breakpoint): Ditto.
8666         (mention): Ditto.
8667         (bpstat_what): Do not stop for overlay event breakpoints.
8668         (delete_breakpoint): Don't delete overlay event breakpoints.
8669         (breakpoint_re_set_one): Delete the overlay event breakpoint.
8670         (breakpoint_re_set): Re-create overlay event breakpoint.
8671
8672         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8673         (overlay_manual_command): Disable overlay breakpoints.
8674         (overlay_off_command): Disable overlay breakpoints.
8675
8676 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8677
8678         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8679         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8680         to here from config/tm-arm.h.
8681         (coff_sym_is_thumb): Make static.
8682         (arm_elf_make_msymbol_special): New function.
8683         (arm_coff_make_msymbol_special): New function.
8684         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8685         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8686         (coff_sym_is_thumb): Delete declaration.
8687         (arm_elf_make_msymbol_special): Declare.
8688         (arm_coff_make_msymbol_special): Declare.
8689         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8690         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8691
8692 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8693
8694         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8695
8696 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8697
8698         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8699         * gdbarch.c gdbarch.h: Regenerate.
8700         * arch-utils.c (default_print_float_info): New function.
8701         * arch-utils.h (default_print_float_info): Prototype it.
8702         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8703         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8704         (PRINT_FLOAT_INFO): Document it.
8705
8706         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8707         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8708         (PRINT_FLOAT_INFO): Define.
8709
8710 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
8711
8712         * win32-nat.c (_initialize_check_for_gdb_ini):
8713         Add typecast to sprintf argument to suppress a warning.
8714
8715 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
8716
8717         * win32-nat.c (last_sig): Changed type of variable to target_signal,
8718         to allow easier handling of pass state.
8719         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8720         that gives exception name and address.
8721         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8722         and set last_sig value to ourstatus->value.sig. Some missing
8723         exceptions added.
8724         (child_continue): Correctly report continue_status.
8725         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8726         TARGET_SIGNAL_0 (new default value).
8727         (child_resume): consider sig argument passed to decide if
8728         the exception should be passed to debuggee or not.
8729
8730 2002-02-05  Michael Snyder  <msnyder@redhat.com>
8731
8732         * regcache.c (fetch_register): Call target_fetch_register
8733         only if we don't call FETCH_PSEUDO_REGISTER.
8734         (store_register): Call target_store_register only if we
8735         don't call STORE_PSEUDO_REGISTER.
8736
8737 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
8738
8739         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8740         ELF_MAKE_MSYMBOL_SPECIAL.
8741         * gdbarch.c, gdbarch.h: Regenerate.
8742         * arch-utils.c (default_make_msymbol_special): New function.
8743         * arch-utils.h (default_make_msymbol_special): Export.
8744         * elfread.c (elf_symtab_read): Compile use of
8745         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8746         multiarched.
8747         * coffread.c (coff_symtab_read): Ditto, for
8748         COFF_MAKE_MSYMBOL_SPECIAL.
8749
8750 2002-02-05  Jim Blandy  <jimb@redhat.com>
8751
8752         * solib-svr4.c (svr4_truncate_ptr): New function.
8753         (svr4_relocate_section_addresses): Do the address arithmetic with
8754         the appropriate truncation for target addresses, even when
8755         CORE_ADDR is larger than a target address.
8756
8757 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8758
8759         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8760         to (int *).
8761
8762 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8763
8764         * gdbserver/linux-low.c (kill_inferior): Remove commented out
8765         code.
8766
8767 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8768
8769         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8770
8771 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8772
8773         * gdbserver/linux-low.c: Remove unused include files.
8774
8775 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8776
8777         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8778         (read_inferior_memory): Use it.
8779         (write_inferior_memory): Likewise.
8780
8781 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8782
8783         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8784         grubbing through sys_errlist.
8785
8786 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8787
8788         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8789
8790 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
8791         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8792
8793 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
8794
8795         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8796         (do_sfunc, set_cmd_sfunc): New functions.
8797
8798         * command.h (struct cmd_list_element): Add field func.
8799         * cli/cli-decode.h (struct cmd_list_element): Ditto.
8800         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8801         * cli/cli-decode.h: Ditto.
8802
8803         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8804         (help_all, help_cmd_list): Ditto.
8805         (find_cmd, complete_on_cmdlist): Ditto.
8806         * top.c (execute_command): Ditto.
8807
8808         * cli/cli-setshow.c (do_setshow_command): Call func instead of
8809         function.sfunc.
8810
8811         * infcmd.c (notice_args_read): Fix function signature.
8812
8813         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8814         * cli/cli-decode.c (add_set_cmd): Ditto.
8815         * utils.c (initialize_utils): Ditto.
8816         * maint.c (_initialize_maint_cmds): Ditto.
8817         * infrun.c (_initialize_infrun): Ditto.
8818         * demangle.c (_initialize_demangler): Ditto.
8819         * remote.c (add_packet_config_cmd): Ditto.
8820         * mips-tdep.c (_initialize_mips_tdep): Ditto.
8821         * cris-tdep.c (_initialize_cris_tdep): Ditto.
8822         * proc-api.c (_initialize_proc_api): Ditto.
8823         * kod.c (_initialize_kod): Ditto.
8824         * valprint.c (_initialize_valprint): Ditto.
8825         * top.c (init_main): Ditto.
8826         * infcmd.c (_initialize_infcmd): Ditto.
8827         * corefile.c (_initialize_core): Ditto.
8828         * arm-tdep.c (_initialize_arm_tdep): Ditto.
8829         * arch-utils.c (initialize_current_architecture): Ditto.
8830         (_initialize_gdbarch_utils): Ditto.
8831         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8832
8833         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8834         * wince.c (_initialize_inftarg): Ditto.
8835         * symfile.c (_initialize_symfile): Ditto.
8836         * mips-tdep.c (_initialize_mips_tdep): Ditto.
8837         * language.c (_initialize_language): Ditto.
8838         * arc-tdep.c (_initialize_arc_tdep): Ditto.
8839
8840 2002-02-04  Michael Snyder  <msnyder@redhat.com>
8841
8842         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8843
8844 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
8845
8846         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8847         Add rules for building the register data files.
8848
8849 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
8850
8851         * regformats/regdat.sh: Add braces to the definition of
8852         expedite_regs_${arch}.
8853
8854 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
8855
8856         * regformats/regdef.h (struct reg): Add comment describing the
8857         requirements for offset and size fields.
8858
8859 2002-02-04  Andreas Schwab  <schwab@suse.de>
8860
8861         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8862         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8863
8864 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
8865
8866         * gdbarch.sh (copyright): Update years in generated header.
8867         (SMASH_TEXT_ADDRESS): Add rule.
8868         * gdbarch.h, gdbarch.c: Re-generate.
8869         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8870         * dbxread.c: Likewise.
8871         * dwarfread.c: Likewise.
8872         * elfread.c: Likewise.
8873         * somread.c: Likewise.
8874
8875         * arm-tdep.c (arm_smash_text_address): New function.
8876         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8877
8878 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
8879
8880         Add support for hardware watchpoints on win32 native.
8881         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
8882         CONTEXT_DEBUG_REGISTERS.
8883         (dr variable): New variable. Static array containing a local copy
8884         of debug registers.
8885         (debug_registers_changed): New variable.  Reflects when debug registers
8886         are changed and need to be written to inferior.
8887         (debug_registers_used): New variable. Reflects when any debug register
8888         was set, used when new threads are created.
8889         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8890         i386-nat code.
8891         (thread_rec): Set dr array if id is the thread of current_event .
8892         (child_continue, child_resume): Change the debug registers for all
8893         threads if debug_registers_changed.
8894         (child_add_thread): Change the debug registers if debug_registers_used.
8895         * config/i386/cygwin.mh: Add use of i386-nat.o file.
8896         Link nm.h to new nm-cygwin.h file.
8897         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8898         of hardware registers.
8899
8900 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
8901
8902         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8903         Restore behavour broken by 2002-01-20 Andrew Cagney
8904         <ac131313@redhat.com> IEEE_FLOAT removal.
8905
8906 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
8907
8908         * c-valprint.c (c_val_print): Pass a proper valaddr to
8909         cp_print_class_method.
8910         * valops.c (search_struct_method): If there is only one method
8911         and args is NULL, return that method.
8912
8913 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
8914
8915         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8916         accessing tag_name directly.
8917
8918 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
8919
8920         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8921         of accessing tag_name directly.
8922
8923 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
8924
8925         PR gdb/280
8926         * gdbtypes.c (replace_type): New function.
8927         * gdbtypes.h (replace_type): Add prototype.
8928         * stabsread.c (read_type): Use replace_type.
8929
8930 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
8931
8932         * Makefile.in (memattr.o): Add missing dependencies rule.
8933
8934 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8935
8936         * breakpoint.c (break_at_finish_command): Really export.
8937         (break_at_finish_at_depth_command): Ditto.
8938         (tbreak_at_finish_command): Ditto.
8939         * hppa-tdep.c: Include completer.h.
8940         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8941         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8942
8943 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
8944
8945         * utils.c (do_write): New function.
8946         (error_stream): Rewrite combining the code from error_begin and
8947         verror.
8948         (verror): Rewrite using error_stream.
8949         (error_begin): Delete function.
8950
8951 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
8952
8953         * utils.c (error_begin): Make static.
8954         * defs.h (error_begin): Delete declaration.
8955
8956         * linespec.c (cplusplus_error): Replace cplusplus_hint.
8957         (decode_line_1): Use cplusplus_error instead of error_begin,
8958         cplusplus_hint and return_to_top_level.
8959         * coffread.c (coff_symfile_read): Use error instead of error_begin
8960         and return_to_top_level.
8961         * infrun.c (default_skip_permanent_breakpoint): Ditto.
8962
8963 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
8964
8965         * language.h (type_error, range_error): Make string parameter
8966         constant.
8967         * language.c (warning_pre_print): Delete extern declaration.
8968         * dwarfread.c (warning_pre_print): Ditto.
8969         * language.c (type_error, range_error): Rewrite to use verror and
8970         vwarning instead of warning_begin.
8971
8972 2002-02-01  Michael Snyder  <msnyder@redhat.com>
8973
8974         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8975         (set_ignore_count): Move misplaced comment back where it belongs.
8976
8977 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
8978
8979         * command.h (NO_FUNCTION): Delete macro.
8980         * cli/cli-decode.h (NO_FUNCTION): Ditto.
8981         * top.c (execute_command): Replace NO_FUNCTION with NULL.
8982         * tracepoint.c (_initialize_tracepoint): Ditto.
8983         * cli/cli-decode.c (add_set_cmd): Ditto.
8984         * cli/cli-cmds.c (init_cli_cmds): Ditto.
8985
8986 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
8987
8988         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8989         Update ``this'' pointer when calling virtual functions.
8990
8991 2002-02-01  Michael Snyder  <msnyder@redhat.com>
8992
8993         * breakpoint.c (create_temp_exception_breakpoint): Delete.
8994         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8995
8996 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
8997
8998         * regformats/reg-arm.dat: New file.
8999         * regformats/reg-i386.dat: New file.
9000         * regformats/reg-ia64.dat: New file.
9001         * regformats/reg-m68k.dat: New file.
9002         * regformats/reg-mips.dat: New file.
9003         * regformats/reg-ppc.dat: New file.
9004         * regformats/reg-sh.dat: New file.
9005         * regformats/regdef.h: New file.
9006         * regformats/regdat.sh: New file.
9007
9008 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
9009
9010         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9011         (arm_frame_args_address, arm_frame_locals_address): New functions.
9012         (arm_frame_num_args): New function.
9013         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9014         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9015         (FRMA_NUM_ARGS): Call arm_frame_num_args.
9016
9017 2002-01-31  Michael Snyder  <msnyder@redhat.com>
9018
9019         * breakpoint.c (break_at_finish_command): Export.
9020         (break_at_finish_at_depth_command): Export.
9021         (tbreak_at_finish_command): Export.
9022         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9023         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9024         "tbreak" commands, which are HPPA specific.
9025
9026         * printcmd.c (disassemble_command): Remove an ancient
9027         artifact of an old merge.
9028
9029         * symfile.h (enum overlay_debugging_state):
9030         Define enum constant values for overlay mode.
9031         * symfile.c (overlay_debugging): Use enums instead of literals.
9032         (overlay_is_mapped, overlay_auto_command,
9033         overlay_manual_command): Ditto.
9034
9035         * breakpoint.c (insert_breakpoints, remove_breakpoint,
9036         breakpoint_here_p, breakpoint_inserted_here_p,
9037         breakpoint_thread_match, bpstat_stop_status,
9038         describe_other_breakpoints, check_duplicates, clear_command):
9039         Coding standard fixes.
9040
9041         * target.c (target_xfer_memory): Add spaces, coding standard.
9042         (do_xfer_memory): Add missing line to trust-readonly
9043         code: check bfd SEC_READONLY flag for section.
9044
9045 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
9046
9047         * PROBLEMS: Fix typo, 5.1->5.1.1.
9048
9049 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
9050
9051         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9052         data symbols, since we search based on textlow and texthigh.
9053         (find_pc_sect_symtab): Likewise.
9054
9055 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9056
9057         * defs.h (vwarning): Declare.
9058         * utils.c (vwarning): New function.
9059         (warning): Call vwarning.
9060         (warning_begin): Delete function.
9061
9062         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9063         the warning message.
9064         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9065         warning_begin.
9066
9067 2002-01-30  Michael Snyder  <msnyder@redhat.com>
9068
9069         * NEWS: Mention "set trust-readonly-sections" command.
9070         Mention generate-core-file command.
9071
9072 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9073
9074         * target.c: New command, "set trust-readonly-sections on".
9075         (do_xfer_memory): Honor the suggestion to trust readonly sections
9076         by reading them from the object file instead of from the target.
9077         (initialize_targets): Register command "set trust-readonly-sections".
9078
9079 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9080
9081         * parse.c (target_map_name_to_register): Simplify, search regs and
9082         pseudo-regs using a single loop.
9083
9084 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9085
9086         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9087
9088 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
9089
9090         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9091         * config/i386/i386v42mp.mh: Add i387-nat.o .
9092         * i386v4-nat.c: Include i387-nat.h.
9093         (supply_fpregset): Use i387_supply_fsave.
9094         (fill_fpregset): Use i387_fill_fsave.
9095
9096 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
9097
9098         * arm-tdep.c (arm_call_dummy_words): Define.
9099         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9100         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9101         (CALL_DUMMY_WORDS): Define.
9102         (arm_call_dummy_words): Declare.
9103         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9104         (arm_linux_call_dummy_words): Declare.
9105
9106 2002-01-30  Andreas Schwab  <schwab@suse.de>
9107
9108         * m68klinux-nat.c: Fix last change to use regcache_collect
9109         instead of referencing registers[] directly.
9110
9111 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9112
9113         * parse.c (target_map_name_to_register): Delete code wrapped in
9114         #ifdef REGISTER_NAME_ALIAS_HOOK.
9115
9116 2002-01-28  Michael Snyder  <msnyder@redhat.com>
9117
9118         * regcache.c (legacy_read_register_gen): Need to be able to
9119         read pseudo-register as well as real register.
9120         (legacy_write_register_gen): Ditto.
9121
9122 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9123
9124         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9125         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9126         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9127         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9128         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9129         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9130         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9131         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9132         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9133         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9134         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9135         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9136         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9137         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9138         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9139         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9140         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9141         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9142         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9143         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9144
9145 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9146
9147         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9148         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9149         (initialize_current_architecture): Update target_byte_order using
9150         information from BFD.
9151         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9152         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9153
9154 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9155
9156         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9157         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
9158
9159         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9160         #ifdef INVALID_FLOAT.
9161         * infcmd.c (do_registers_info): Ditto.
9162         * values.c (unpack_double): Ditto.  Add comment.
9163
9164         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9165         already commented out.
9166
9167 2002-01-26  Andreas Schwab  <schwab@suse.de>
9168
9169         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9170         * m68klinux-nat.c: Update ptrace interface for fetching/storing
9171         registers and add support for PTRACE_GETREGS.
9172
9173 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
9174
9175         GDB 5.1.1 released from 5.1 branch.
9176         * NEWS: Add 5.1.1 news.
9177         * README: Sync with 5.1 branch.
9178
9179 2002-01-23  Fred Fish  <fnf@redhat.com>
9180
9181         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9182         stabstring on initial malloc.  Reallocing will copy it for us,
9183         if necessary.
9184
9185 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9186
9187         * Makefile.in (hpread_h): Delete.
9188         (HFILES_NO_SRCDIR): Remove hpread.h.
9189         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9190         (hpread.o): Update dependencies.
9191         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9192
9193         * hp-psymtab-read.c: Remove file.
9194         * hp-symtab-read.c: Remove file.
9195         * hpread.h: Remove file.
9196
9197         * hpread.c: Merge all contents of hp-psymtab-read.c,
9198         hp-symtab-read.c and hpread.h into this file, as it was prior to
9199         January 1999.
9200
9201         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9202         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9203         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9204         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9205
9206 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9207
9208         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9209         fill_gregset): Call gdbarch_tdep() just once, assign result to
9210         variable and use that, instead of calling the function several
9211         times.
9212
9213 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9214
9215         * configure.host: Accept sparcv9 as alias for sparc64.
9216         * configure.tgt: Likewise.
9217
9218 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
9219
9220         * solib-aix5.c (build_so_list_from_mapfile)
9221         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9222         arguments is not reversed.
9223         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9224         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9225
9226 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
9227
9228         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9229         modified version of obsolete sh_fetch_pseudo_register.
9230         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9231         (sh4_register_read): New function.
9232         (sh_pseudo_register_write): New function. Renamed and modified
9233         version of obsolete sh_store_pseudo_register.
9234         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9235         (sh4_register_write): New function.
9236         (sh_gdbarch_init): Remove setting of gdbarch function
9237         fetch_pseudo_register and store_pseudo_register. Remove setting of
9238         register_convert_to_raw, register_convert_to_virtual,
9239         register_convertible.
9240         (sh_sh4_register_convertible): Delete. No longer needed. All is
9241         taken care by architecture specific functions
9242         register_read/register_write.
9243         (sh_sh4_register_convert_to_virtual): Make static.
9244         (sh_sh4_register_convert_to_raw): Ditto.
9245
9246 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
9247
9248         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9249         (floatformat_is_nan, floatformat_mantissa): Ditto.
9250
9251         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9252         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9253         builtin_type_ieee_double_little,
9254         builtin_type_ieee_double_littlebyte_bigword,
9255         builtin_type_m68881_ext, builtin_type_i960_ext,
9256         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9257         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9258         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9259         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9260
9261 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
9262
9263         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9264         parameter.  Set frameless flag if it exists and depended of
9265         whether the scanned function is frameless or not.
9266         (xstormy16_skip_prologue): If function is frameless, return
9267         result of xstormy16_scan_prologue().
9268         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9269         call.
9270
9271 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
9272
9273         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9274         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9275         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9276         sh_sh4_register_byte, sh_sh4_register_raw_size,
9277         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9278         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9279         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9280         sh_store_pseudo_register, sh_do_pseudo_register): Call
9281         gdbarch_tdep() just once, assign result to variable and use that,
9282         instead of calling the function several times.
9283
9284 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
9285
9286         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9287         macros instead of LAST_FPU_CTRL_REGNUM.
9288         (store_register): Likewise.
9289
9290 2002-01-21  Jim Blandy  <jimb@redhat.com>
9291
9292         * infcmd.c (run_command): Check that the `exec' target layer's BFD
9293         is up-to-date before running the program, not just when a program
9294         exits.
9295
9296 2002-01-21  Fred Fish  <fnf@redhat.com>
9297
9298         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9299         when we have found all instructions we are looking for.
9300
9301 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9302
9303         * arm-tdep.c (arm_register_name): New function.
9304         (arm_registers_names): Make static.
9305         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9306         (arm_register_name): Declare.
9307         (REGISTER_NAME): Use it.
9308
9309 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9310             Kevin Buettner  <kevinb@redhat.com>
9311
9312         Convert arm targets to new FRAME interface.
9313         * arm-tdep.c (struct frame_extra_info): Remove fsr.
9314         (arm_frame_find_save_regs): Delete.
9315         (arm_frame_init_saved_regs): New.
9316         (arm_init_extra_frame_info): Alloacte saved_regs as required.
9317         Allocate extra_info as required.  Convert all uses of fsr.regs
9318         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9319         to use extra_info.
9320         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9321         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9322         (check_prologue_cache, save_prologue_cache): Likewise.
9323         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9324         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9325         (FRAME_FIND_SAVED_REGS): Delete.
9326         (arm_frame_find_saved_regs): Delete prototype.
9327         (arm_frame_init_saved_regs): New prototype.
9328         (FRAME_INIT_SAVED_REGS): Define.
9329
9330 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9331
9332         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9333
9334 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9335
9336         From Jeff Law <law@redhat.com>:
9337         * infttrace.c: Include <sys/pstat.h>.
9338         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
9339         exec file if the ttrace equivalent fails.
9340
9341 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9342
9343         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9344         (closeLogFile): Ditto.
9345
9346 2002-01-20  Michael Chastain  <mec@shout.net>
9347
9348         * top.c (print_gdb_version): Bump copyright year to 2002.
9349
9350 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9351
9352         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9353         Zannoni and Eli Zaretskii.
9354
9355 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9356
9357         * buildsym.c: Update copyright years.
9358         * c-typeprint.c: Likewise.
9359         * dwarf2read.c: Likewise.
9360         * f-typeprint.c: Likewise.
9361         * gdbtypes.c: Likewise.
9362         * gdbtypes.h: Likewise.
9363         * hp-symtab-read.c: Likewise.
9364         * hpread.c: Likewise.
9365         * mdebugread.c: Likewise.
9366         * p-typeprint.c: Likewise.
9367
9368 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9369
9370         * remote-sim.c (gdbsim_open): Simplify code testing the macro
9371         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
9372         byte-order selectable.
9373         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9374         * arch-utils.c: Ditto.
9375         (set_endian): Ditto.
9376         (set_endian_from_file): Ditto.
9377         * gdbserver/low-sim.c (create_inferior): Ditto.
9378         * gdbarch.sh: Ditto.
9379         * gdbarch.h: Re-generate.
9380         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9381         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9382         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9383         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9384         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9385         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9386         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9387         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9388         macro definition.
9389         * config/mips/tm-wince.h: Remove #undef of macro
9390         TARGET_BYTE_ORDER_SELECTABLE.
9391         * config/sh/tm-wince.h: Ditto.
9392
9393 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9394
9395         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9396         member function fields.  Add accessor macro
9397         TYPE_FN_FIELD_ARTIFICIAL.
9398         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9399         * c-typeprint.c (c_type_print_base): Skip artificial member
9400         functions.
9401
9402 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9403
9404         * f-typeprint.c: Delete unused function f_type_print_args.
9405         * p-typeprint.c: Delete unused function pascal_type_print_args.
9406
9407 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9408
9409         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
9410         comment.  Add ``artificial'' to ``union field_location''.
9411
9412         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9413
9414         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9415         * mdebugread.c (parse_symbol): Likewise.
9416         * stabsread.c (define_symbol): Likewise.
9417         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9418         initializing TYPE_FIELD_BITPOS to n (obsolete).
9419         (hpread_doc_function_type): Likewise.
9420         * hpread.c (hpread_function_type): Likewise.
9421
9422 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9423
9424         * configure.in (host_makefile_frag): Only require a host makefile
9425         fragment when a native build.
9426         * configure: Re-generate.
9427
9428 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9429
9430         * doublest.h (floatformat_from_type): Declare.
9431         * doublest.c (floatformat_from_type): New function.
9432         (convert_typed_floating): Use.
9433
9434         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9435         call to function floatformat_from_type.
9436
9437         * gdbarch.sh (IEEE_FLOAT): Delete.
9438         * gdbarch.h, gdbarch.c: Re-generate.
9439         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9440         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9441         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9442         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9443         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9444         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9445         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9446         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9447         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9448         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9449         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9450         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9451
9452         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9453         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9454         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9455         * sh-tdep.c (sh_gdbarch_init): Ditto.
9456         * mips-tdep.c (mips_gdbarch_init): Ditto.
9457         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9458         * cris-tdep.c (cris_gdbarch_init): Ditto.
9459
9460 2002-01-20  Jiri Smid  <smid@suse.cz>
9461
9462         * configure.host, configure.tgt: Support x86-64.
9463         * NEWS: Note new target x86-64.
9464
9465         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9466         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9467         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9468         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9469         x86-64-linux-nat.o): Fix dependencies.
9470
9471 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9472
9473         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9474         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9475         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9476         * config/sparc/xm-sun4os4.h: Delete file.
9477         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9478
9479 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9480
9481         * config/sparc/sparclynx.mh (XM_FILE): Delete.
9482         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9483         * config/m68k/m68klynx.mh (XM_FILE): Delete.
9484         * config/i386/i386lynx.mh (XM_FILE): Delete.
9485         * config/rs6000/xm-rs6000ly.h: Delete file.
9486         * config/sparc/xm-sparclynx.h: Delete file.
9487         * config/m68k/xm-m68klynx.h: Delete file.
9488         * config/i386/xm-i386lynx.h: Delete file.
9489         * config/xm-lynx.h: Delete file.
9490         * config/djgpp/fnchange.lst: Update.
9491
9492 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9493
9494         * alpha-tdep.c (alpha_register_byte): New function.
9495         (alpha_register_raw_size): Ditto.
9496         (alpha_register_virtual_size): Ditto.
9497         (alpha_skip_prologue_internal): Renamed from
9498         alpha_skip_prologue.
9499         (alpha_skip_prologue): New version that calls
9500         alpha_skip_prologue_internal.
9501         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9502         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9503         second argument from alpha_skip_prologue.
9504         (REGISTER_BYTE): Use alpha_register_byte.
9505         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9506         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9507         (FRAMELESS_FUNCTION_INVOCATION): Use
9508         generic_frameless_function_invocation_not.
9509         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9510         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9511
9512 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9513
9514         * config/mips/xm-news-mips.h: Delete file.
9515         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9516
9517         * config/m88k/xm-m88k.h: Delete file.
9518         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9519         * config/m88k/xm-delta88v4.h: Ditto.
9520         * config/m88k/xm-delta88.h: Ditto.
9521
9522         * config/alpha/xm-fbsd.h: Delete file.
9523         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9524
9525         * config/sparc/xm-sparc.h: Delete file.
9526         * Makefile.in (xm-sun4os4.h): Delete dependency.
9527         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9528         * config/sparc/xm-sun4os4.h: Ditto.
9529         * config/sparc/xm-linux.h: Ditto.
9530
9531         * config/i386/xm-windows.h: Delete file.
9532
9533 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9534
9535         * utils.c: Include <sys/param.h> for MAXPATHLEN.
9536         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9537
9538 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9539
9540         * alpha-tdep.c (alpha_call_dummy_words): New.
9541         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9542         (CALL_DUMMY_P): Define.
9543         (CALL_DUMMY_WORDS): Define.
9544         (SIZEOF_CALL_DUMMY_WORDS): Define.
9545
9546 2002-01-19  Per Bothner  <per@bothner.com>
9547
9548         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
9549         isn't NULL, which can happen with some gcj-3.x-produced code.
9550
9551 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9552
9553         * alpha-tdep.c (alpha_register_virtual_type): New function.
9554         (alpha_init_frame_pc_first): Ditto.
9555         (alpha_fix_call_dummy): Ditto.
9556         (alpha_store_struct_return): Ditto.
9557         (alpha_extract_struct_value_address): Ditto.
9558         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9559         alpha_register_virtual_type.
9560         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9561         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9562         alpha_extract_struct_value_address.
9563         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9564         (INIT_FRAME_PC): Use init_frame_pc_noop.
9565         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9566
9567 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
9568
9569         * i386gnu-nat.c: Include "i386-tdep.h".
9570         (fetch_fpregs): Simplify code dealing with uninitialized floating
9571         point states such that it doesn't require FP7_REGNUM.
9572
9573 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9574
9575         * alpha-tdep.c (frame_extra_info): New.
9576         (alpha_find_saved_regs): Make static.  Use
9577         frame->extra_info.
9578         (alpha_frame_init_saved_regs): New function.
9579         (alpha_frame_saved_pc): Use frame->extra_info.
9580         (temp_saved_regs): Don't declare as struct frame_saved_regs.
9581         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9582         (init_extra_frame_info): Rename to...
9583         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
9584         (alpha_print_extra_frame_info): New function.
9585         (alpha_frame_locals_address): Ditto.
9586         (alpha_frame_args_address): Ditto.
9587         (alpha_pop_frame): Use frame->extra_info.
9588         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9589         alpha_frame_args_address.
9590         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9591         (alpha_find_saved_regs): Remove prototype.
9592         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9593         (EXTRA_FRAME_INFO): Remove.
9594         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9595         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9596
9597 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9598
9599         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9600         (alpha_cannot_fetch_register): Ditto.
9601         (alpha_cannot_store_register): Ditto.
9602         (alpha_register_convertible): Ditto.
9603         (alpha_use_struct_convention): Ditto.
9604         * config/alpha/tm-alpha.h: Update copyright years.
9605         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9606         (INNER_THAN): Use core_addr_lessthan.
9607         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9608         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9609         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9610         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9611         (FRAME_CHAIN): Remove unnecessary cast.
9612
9613 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
9614
9615         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9616         obsolete.
9617
9618 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
9619
9620         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
9621         * monitor.c, remote-array.c, remote-bug.c: Ditto.
9622         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9623         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9624         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9625         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9626         * x86-64-linux-nat.c: Ditto.
9627
9628 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9629
9630         * alpha-tdep.c (alpha_register_name): New function.
9631         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9632         (REGISTER_NAME): Define.
9633
9634 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9635
9636         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9637
9638 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9639
9640         * alpha-tdep.c: Update copyright years.
9641         (alpha_next_pc): New function.
9642         (alpha_software_single_step): Ditto.
9643         * config/alpha/tm-alpha.h: Add prototype for
9644         alpha_software_single_step.
9645
9646 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9647
9648         * alphabsd-nat.c: Update copyright years.
9649         (fill_gregset): Use regcache_collect.
9650         (fill_fpregset): Likewise.
9651         (fetch_inferior_registers): Only fetch integer registers
9652         if requested to do so.
9653         (store_inferior_registers): Only store integer registers
9654         if requested to do so.
9655
9656 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9657
9658         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9659         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9660         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9661         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9662         * config/alpha/fbsd.mh (XDEPFILES): Delete.
9663         * config/arm/linux.mh (XDEPFILES): Delete.
9664         * config/arm/nbsd.mh (XDEPFILES): Delete.
9665         * config/i386/i386dgux.mh (XDEPFILES): Delete.
9666         * config/i386/i386sol2.mh (XDEPFILES): Delete.
9667         * config/i386/i386m3.mh (XDEPFILES): Delete.
9668         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9669         * config/i386/i386gnu.mh (XDEPFILES): Delete.
9670         * config/i386/fbsd.mh (XDEPFILES): Delete.
9671         * config/i386/i386bsd.mh (XDEPFILES): Delete.
9672         * config/i386/i386sco5.mh (XDEPFILES): Delete.
9673         * config/i386/i386v4.mh (XDEPFILES): Delete.
9674         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9675         * config/i386/i386sco4.mh (XDEPFILES): Delete.
9676         * config/i386/i386aix.mh (XDEPFILES): Delete.
9677         * config/i386/go32.mh (XDEPFILES): Delete.
9678         * config/i386/cygwin.mh (XDEPFILES): Delete.
9679         * config/i386/i386lynx.mh (XDEPFILES): Delete.
9680         * config/i386/i386mach.mh (XDEPFILES): Delete.
9681         * config/i386/i386v32.mh (XDEPFILES): Delete.
9682         * config/i386/linux.mh (XDEPFILES): Delete.
9683         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9684         * config/i386/ncr3000.mh (XDEPFILES): Delete.
9685         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9686         * config/i386/i386sco.mh (XDEPFILES): Delete.
9687         * config/i386/i386v.mh (XDEPFILES): Delete.
9688         * config/i386/nbsd.mh (XDEPFILES): Delete.
9689         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9690         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9691         * config/i386/symmetry.mh (XDEPFILES): Delete.
9692         * config/i386/obsd.mh (XDEPFILES): Delete.
9693         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9694         * config/ia64/linux.mh (XDEPFILES): Delete.
9695         * config/ia64/aix.mh (XDEPFILES): Delete.
9696         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9697         * config/m68k/dpx2.mh (XDEPFILES): Delete.
9698         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9699         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9700         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9701         * config/m68k/linux.mh (XDEPFILES): Delete.
9702         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9703         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9704         * config/m68k/nbsd.mh (XDEPFILES): Delete.
9705         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9706         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9707         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9708         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9709         * config/m88k/delta88.mh (XDEPFILES): Delete.
9710         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9711         * config/m88k/m88k.mh (XDEPFILES): Delete.
9712         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9713         * config/mips/linux.mh (XDEPFILES): Delete.
9714         * config/mips/irix6.mh (XDEPFILES): Delete.
9715         * config/mips/irix5.mh (XDEPFILES): Delete.
9716         * config/mips/irix4.mh (XDEPFILES): Delete.
9717         * config/mips/irix3.mh (XDEPFILES): Delete.
9718         * config/mips/decstation.mh (XDEPFILES): Delete.
9719         * config/mips/mipsm3.mh (XDEPFILES): Delete.
9720         (NATDEPFILES): Move core-aout.o to here.
9721         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9722         * config/pa/hpux1020.mh (XDEPFILES): Delete.
9723         * config/pa/hppabsd.mh (XDEPFILES): Delete.
9724         * config/pa/hppahpux.mh (XDEPFILES): Delete.
9725         * config/pa/hpux11w.mh (XDEPFILES): Delete.
9726         * config/pa/hppaosf.mh (XDEPFILES): Delete.
9727         * config/pa/hpux11.mh (XDEPFILES): Delete.
9728         * config/powerpc/aix.mh (XDEPFILES): Delete.
9729         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9730         * config/powerpc/linux.mh (XDEPFILES): Delete.
9731         * config/romp/rtbsd.mh: Rename XDEPFILES.
9732         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9733         * config/rs6000/aix4.mh (XDEPFILES): Delete.
9734         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9735         * config/s390/s390.mh (XDEPFILES): Delete.
9736         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9737         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9738         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9739         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9740         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9741         * config/sparc/nbsd.mh (XDEPFILES): Delete.
9742         * config/sparc/linux.mh (XDEPFILES): Delete.
9743         * config/vax/vaxult.mh (XDEPFILES): Delete.
9744         * config/vax/vaxult2.mh (XDEPFILES): Delete.
9745         * Makefile.in (DEPFILES): Remove XDEPFILES.
9746
9747 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9748
9749         * utils.c (internal_verror): Fix comments, default is yes not no.
9750         Update queries to match.  Default to quit and dump core.
9751
9752 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9753
9754         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
9755         copyright.
9756         * defs.h, event-top.c, gdbcmd.h: Ditto.
9757         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9758         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9759         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9760         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9761         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9762         * mi/mi-main.c:Ditto.
9763
9764         * stack.c, symfile.c: Update copyright.
9765
9766 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
9767
9768         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9769         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9770         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9771         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9772
9773 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
9774
9775         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9776         * gdbserver/low-lynx.c (myattach): Likewise.
9777         * gdbserver/low-nbsd.c (myattach): Likewise.
9778         * gdbserver/low-sim.c (myattach): Likewise.
9779         * gdbserver/low-sparc.c (myattach): Likewise.
9780         * gdbserver/low-sun3.c (myattach): Likewise.
9781
9782         * gdbserver/low-linux.c (myattach): New function.
9783
9784         * gdbserver/server.c (attach_inferior): New function.
9785         (main): Handle "--attach".
9786
9787 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
9788
9789         * MAINTAINERS (language support): Daniel Jacobwitz is C++
9790         maintainer.
9791
9792 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
9793
9794         * c-typeprint.c (is_type_conversion_operator): Add additional
9795         check for non-conversion operators.
9796
9797 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9798
9799         * linux-proc.c: Add "info proc" command, a la procfs.c.
9800         (read_mapping): New function, abstract and re-use code.
9801         (linux_find_memory_regions): Use new func read_mapping.
9802         (linux_info_proc_cmd): New function, implement "info proc".
9803         (_initialize_linux_proc): Add new command "info proc".
9804
9805 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9806
9807         * symfile.c (generic_load): Use bfd_map_over_sections method
9808         instead of manipulating bfd structure members directly.
9809         (add_section_size_callback): New function, bfd sections callback
9810         used by generic_load.
9811         (load_sections_callback): New function, bfd sections callback
9812         used by generic_load.
9813
9814 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
9815
9816         [Based on work by Jim Blandy]
9817         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9818         (builtin_type_vec128): Export.
9819         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9820         types.
9821         (builtin_type_vec128): New builtin type for 128 bit vector
9822         registers.
9823         (build_gdbtypes): Initialize builtin_type_v16qi and
9824         builtin_type_v8hi. Create the vec128 register builtin type
9825         structure.
9826         (build_builtin_type_vec128): New function.
9827         (_initialize_gdbtypes): Register builtin_type_v16qi and
9828         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9829         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9830         AltiVec register to new builtin type.
9831
9832 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
9833
9834         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9835         to make_cv_type.
9836
9837 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
9838
9839         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9840         CLEAN_UP_REGISTER_VALUE.
9841         * regcache.c (supply_register): Update only call.
9842
9843 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
9844
9845         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9846         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9847         a29k-*-vxworks* targets as obsolete.
9848
9849 2002-01-14  Michael Snyder  <msnyder@redhat.com>
9850
9851         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9852         until we can resolve portability issues.
9853         * gregset.h: Remove references to fpxregs.
9854         * gcore.c (gcore_command): Initialize note_sec to NULL.
9855
9856 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9857
9858         * signals.c (target_signal_to_name): Rewrite.  Only use
9859         signals[].name when in bounds and non-NULL.
9860
9861 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9862
9863         From Petr Ledvina <ledvinap@kae.zcu.cz>:
9864         * signals.c (target_signal_to_name): Verify that SIG is within the
9865         bounds of the signals array.
9866
9867 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9868
9869         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9870
9871 2002-01-13  Keith Seitz  <keiths@redhat.com>
9872
9873         * stack.c (print_frame_info_base): Print the frame's pc
9874         only if when print_frame_info_listing_hook is not defined.
9875
9876 2002-01-13  Keith Seitz  <keiths@redhat.com>
9877
9878         * varobj.c (varobj_set_value): Make sure that there were no
9879         errors evaluating the object before attempting to set its
9880         value.
9881         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9882         so this offset adjustment is no longer necessary.
9883         (create_child): Don't set the error flag if the child is
9884         a CPLUS_FAKE_CHILD.
9885         (value_of_child): If value_fetch_lazy fails, return NULL
9886         so that callers will be notified that an error occurred.
9887         (c_value_of_variable): Delay check of variable's validity
9888         until later. We actually want all structs and unions to have
9889         the value "{...}".
9890         Do not return "???" for variables which could not be evaluated.
9891         This error condition must be returned to the caller so that it
9892         can get the error condition from gdb.
9893         (cplus_name_of_child): Adjust index for vptr before figuring
9894         out the name of the child.
9895         (cplus_value_of_child): If a child's (real) parent is not valid,
9896         don't even bother trying to give a value for it. Just return
9897         an error. Change all instances in this function.
9898         (cplus_type_of_child): If our parent is one of the "fake"
9899         parents, we need to get at the type of the real parent, and
9900         derive the child's true type using this information.
9901
9902 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9903
9904         From 2002-01-09 John Marshall <johnm@falch.net>:
9905         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9906         sources.redhat.com, and tweak some related URLs which had
9907         suffered from linkrot.
9908
9909 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9910
9911         From Jeff law:
9912         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9913         structures passed in registers.
9914
9915 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
9916
9917         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9918         white space which prevented compilation.  Reported by DSK
9919         <dsk@student.unsw.edu.au>.
9920
9921 2002-01-11  Michael Snyder  <msnyder@redhat.com>
9922
9923         * symfile.c (build_section_addr_info_from_section_tab):
9924         Use bfd access method instead of manipulating bfd directly.
9925         (syms_from_objfile): Ditto.
9926         (simple_overlay_update_1): Ditto.
9927         (simple_overlay_update): Ditto.
9928         (generic_load): Ditto.
9929         (overlay_unmapped_address): FIXME comment, bfd access methods.
9930         (sections_overlap): FIXME comment, bfd access methods.
9931         (pc_in_mapped_range): FIXME comment, bfd access methods.
9932         (pc_in_unmapped_range): FIXME comment, bfd access methods.
9933         (section_is_mapped): FIXME comment, bfd access methods.
9934         (section_is_overlay): FIXME comment, bfd access methods.
9935
9936         * symfile.c (generic_load): Whitespace and long line cleanups.
9937         Remove duplicate variable, change several local variables to
9938         more appropriate data types.
9939         (print_transfer_performance): Use %lu instead of %ld for ulongs.
9940
9941 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
9942
9943         From Peter Schauer:
9944         * language.c (longest_local_hex_string_custom): Use phex_nz to
9945         convert NUM to a hex string.
9946
9947 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
9948
9949         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9950         the function.
9951         Update Copyright year.
9952
9953 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
9954
9955         * language.c (longest_raw_hex_string): Delete unused function.
9956
9957 2002-01-11  Petr Sorfa  <petrs@caldera.com>
9958
9959         * MAINTAINERS (write-after-approval): Add myself.
9960         * dwarf2read.c (read_tag_string_type): Handling of
9961         DW_AT_byte_size.
9962         (read_tag_string_type): FORTRAN fix to prevent propagation of
9963         first string size.
9964         (set_cu_language): Handling of DW_LANG_Fortran95
9965
9966 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
9967
9968         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9969         GETPID(inferior_ptid).
9970         (store_inferior_registers): Likewise.
9971
9972 2002-01-10  Jason Merrill  <jason@redhat.com>
9973
9974         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9975         Fix DW_OP_minus.
9976
9977 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
9978
9979         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9980         and bfd/elf32-sh-nbsd.c.
9981
9982 2002-01-10  Michael Snyder  <msnyder@redhat.com>
9983
9984         * NEWS: Mention --pid and corefile/proc-id behavior change.
9985
9986         * Makefile.in: Add rules for gcore.o and linux-proc.o.
9987         * gcore.c: Include cli/cli-decode.h instead of command.h.
9988
9989         * main.c (captured_main): Add new command line option "--pid".
9990         If the second command line argument (following the symbol-file)
9991         begins with a digit, try to attach to it before trying to open
9992         it as a corefile.
9993         (print_gdb_help): Document the "--pid" argument.
9994
9995 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
9996
9997         * completer.c (command_completer): New function.
9998
9999         * completer.h <command_completer>: Add prototype.
10000
10001         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10002         completer for the "help" command.
10003
10004 2002-01-09  Jason Merrill  <jason@redhat.com>
10005
10006         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10007
10008 2002-01-09  Michael Snyder  <msnyder@redhat.com>
10009
10010         * i386-linux-nat.c (fill_fpxregset): Make global.
10011         (store_fpxregset): Ditto.
10012
10013         * gregset.h (gdb_fpxregset_t): Define.
10014         (supply_fpxregset): Prototype.
10015         (fill_fpxregset): Prototype.
10016
10017         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10018
10019 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10020
10021         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10022         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10023         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10024
10025 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
10026
10027         * MAINTAINERS: Update target maintainer rules so that any
10028         Maintainer can approve a tested patch for a maintenance-only
10029         target.
10030
10031 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10032
10033         * MAINTAINERS (write-after-approval): Add myself.
10034
10035         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10036         IN_SIGTRAMP.
10037
10038 2002-01-08  Michael Snyder  <msnyder@redhat.com>
10039
10040         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10041         real name of the executable, rather than the /proc name.
10042
10043 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10044
10045         Implement a "generate-core-file" command in gdb, save target state.
10046         * gcore.c: New file.  Implement new command 'generate-core-file'.
10047         Save a corefile image of the current state of the inferior.
10048         * linux-proc.c: Add linux-specific code for saving corefiles.
10049         * target.h (struct target_ops): Add new target vectors for saving
10050         corefiles; to_find_memory_regions and to_make_corefile_notes.
10051         (target_find_memory_regions): New macro.
10052         (target_make_corefile_notes): New macro.
10053         * target.c (update_current_target): Inherit new target methods.
10054         (dummy_find_memory_regions): New place-holder method.
10055         (dummy_make_corefile_notes): New place-holder method.
10056         (init_dummy_target): Initialize new dummy target vectors.
10057         * exec.c (exec_set_find_memory_regions): New function.
10058         Allow the exec_ops vector for memory regions to be taken over.
10059         (exec_make_note_section): New function, target vector method.
10060         * defs.h (exec_set_find_memory_regions): Export prototype.
10061         * procfs.c (proc_find_memory_regions): New function, corefile method.
10062         (procfs_make_note_section): New function, corefile method.
10063         (init_procfs_ops): Set new target vector pointers.
10064         (find_memory_regions_callback): New function.
10065         (procfs_do_thread_registers): New function.
10066         (procfs_corefile_thread_callback): New function.
10067         * sol-thread.c (sol_find_memory_regions): New function.
10068         (sol_make_note_section): New function.
10069         (init_sol_thread_ops): Initialize new target vectors.
10070         * inftarg.c (inftarg_set_find_memory_regions): New function.
10071         Allow to_find_memory_regions vector to be taken over.
10072         (inftarg_set_make_corefile_notes): New function.
10073         Allow to_make_corefile_notes vector to be taken over.
10074         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10075         interface layer if not target_has_execution (may be a corefile).
10076         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10077         * config/sparc/sun4sol2.mh: Ditto.
10078         * config/alpha/alpha-linux.mh: Ditto.
10079         * config/arm/linux.mh: Ditto.
10080         * config/i386/x86-64linux.mh: Ditto.
10081         * config/ia64/linux.mh: Ditto.
10082         * config/m68k/linux.mh: Ditto.
10083         * config/mips/linux.mh: Ditto.
10084         * config/powerpc/linux.mh: Ditto.
10085         * config/sparc/linux.mh: Ditto.
10086
10087 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10088
10089         * arm-linux-nat.c: Remove references to regcache.c internal data
10090         (registers[] and register_valid[]).
10091
10092 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10093
10094         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
10095         so that attaching to a pid will automatically read the process's
10096         symbol file and shlibs.
10097         * Makefile.in: Add rule for linux-proc.o.
10098         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10099         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10100         * config/arm/linux.mh: Ditto.
10101         * config/i386/linux.mh: Ditto.
10102         * config/i386/x86-64linux.mh: Ditto.
10103         * config/ia64/linux.mh: Ditto.
10104         * config/m68k/linux.mh: Ditto.
10105         * config/mips/linux.mh: Ditto.
10106         * config/powerpc/linux.mh: Ditto.
10107         * config/sparc/linux.mh: Ditto.
10108
10109 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
10110
10111         * win32-nat.c: Add i386-tdep.h dependency.
10112
10113 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10114
10115         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10116         instead of bfd_get_arch_size.  Don't bail out just because
10117         there's no exec_bfd.
10118
10119         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10120         * p-valprint.c (pascal_object_print_value): Ditto.
10121         * somread.c (som_symtab_read): Ditto.
10122         * symfile.c (simple_free_overlay_region_table): Ditto.
10123         * valops.c (value_assign): Ditto.
10124
10125         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10126         use tilde_expand and strerror for opening save-tracepoints file.
10127
10128         * thread-db.c (thread_db_new_objfile): Indendation fix.
10129
10130         * infptrace.c (GDB_MAX_ALLOCA): New define.
10131         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10132         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10133         can be overridden with whatever value is appropriate to the host).
10134         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10135         alloca to allocate potentially large buffer.
10136         * rs6000-nat.c (child_xfer_memory): Ditto.
10137         * symm-nat.c (child_xfer_memory): Ditto.
10138         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10139
10140 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
10141
10142         From Nick Clifton  <nickc@redhat.com>
10143         * d10v-tdep.c: Set STACK_START to 0x200bffe.
10144
10145 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10146
10147         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10148         Don't use exec_bfd if it's NULL.
10149
10150 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
10151
10152         * valops.c (value_arg_coerce): Fix formatting.
10153
10154 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10155
10156         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10157         * gnu-nat.c: Ditto.
10158
10159 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10160
10161         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10162         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10163         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10164         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10165         z8k-coff have not been multi-arched.  Update z8k-coff build
10166         status.
10167
10168 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10169
10170         * MAINTAINERS: Mark a29k target as obsolete.
10171         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10172         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
10173         comments.
10174         * NEWS: Note that a29k targets are obsolete.
10175         * a29k-tdep.c: Mark as obsolete.
10176         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10177         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10178         a29k-*-vxworks* targets as obsolete.
10179         * remote-adapt.c: Obsolete.
10180         * remote-eb.c: Obsolete.
10181         * remote-mm.c: Obsolete.
10182         * remote-udi.c: Obsolete.
10183         * config/a29k/a29k-udi.mt: Obsolete.
10184         * config/a29k/a29k.mt: Obsolete.
10185         * config/a29k/tm-a29k.h: Obsolete.
10186         * config/a29k/tm-vx29k.h: Obsolete.
10187         * config/a29k/vx29k.mt: Obsolete.
10188
10189 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10190
10191         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10192         with BFD_ENDIAN_BIG.
10193
10194 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10195
10196         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10197         * configure, config.in: Re-generate.
10198         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10199         * defs.h: Do not include <endian.h>.
10200
10201 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
10202
10203         * acconfig.h (HAVE_PT_GETXMMREGS): New.
10204         * config.in: Regenerate.
10205         * configure.in: Update copyright years.
10206         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10207         * configure: Regenerate.
10208         * i386bsd-nat.c: Update copyright years.
10209         (fill_gregset): Use regcache_collect.
10210         (fetch_inferior_registers): Only fetch integer registers
10211         if requested to do so.  Add support for XMM registers
10212         using PT_GETXMMREGS.
10213         (store_inferior_registers): Only store integer registers
10214         if requested to do so.  Add support for XMM registers
10215         using PT_SETXMMREGS.
10216         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10217         (store_inferior_registers): Remove.
10218         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10219         (fetch_elfcore_registers): New function.
10220         (i386nbsd_elfcore_fns): New.
10221         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10222         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10223         i386bsd-nat.o.
10224         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10225         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10226         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10227         * config/i386/tm-nbsd.h: Update copyright years.
10228         (HAVE_SSE_REGS): Define.
10229         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10230         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10231         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10232         (SIGCONTEXT_PC_OFFSET): Remove.
10233         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10234
10235 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10236
10237         * configure.tgt: Remove powerpc-*-macos* target.
10238         * config/m68k/xm-mpw.h: Delete file.
10239         * config/xm-mpw.h: Delete file.
10240         * ser-mac.c: Delete file.
10241         * mpw-make.sed: Delete file.
10242         * mpw-config.in: Delete file.
10243         * mac-xdep.c: Delete file.
10244         * mac-gdb.r: Delete file.
10245         * mac-defs.h: Delete file.
10246         * mac-nat.c: Delete file.
10247         * config/powerpc/macos.mh: Delete file.
10248         * config/powerpc/macos.mt: Delete file.
10249         * config/powerpc/nm-macos.h: Delete file.
10250         * config/powerpc/tm-macos.h: Delete file.
10251         * source.c (openp, open_source_file): Remove obsolete code.
10252         * top.c (gdb_readline): Ditto.
10253         * utils.c (query): Ditto.
10254         * event-top.c (display_gdb_prompt): Ditto.
10255         * Makefile.in (ser-mac.o): Delete obsolete target.
10256         * NEWS: Update.
10257
10258 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10259
10260         * defs.h (BIG_ENDIAN): Delete macro definition.
10261         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10262         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10263         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10264         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10265         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10266         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10267         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10268         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10269         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10270         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10271         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10272         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10273         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10274         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10275         * gdbarch.c: Re-generate.
10276
10277 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10278
10279         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10280         for core files.
10281
10282 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10283
10284         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10285
10286 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10287
10288         * value.h (value_ptr): Delete typedef.
10289
10290 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10291
10292         * i386nbsd-nat.c: Update copyright years.
10293         Include i386-tdep.h.
10294
10295 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
10296
10297         * stabsread.c: Update copyright years.
10298
10299         From Debashis Mahata <debashis.mahata@wipro.com>:
10300         (read_struct_fields): Deal with Sun C compiler erroneous stab
10301         output for structs and unions.
10302         Fix PR gdb/269.
10303
10304 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10305
10306         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10307         prototype.
10308
10309 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10310
10311         * cp-abi.c: Fix whitespace.
10312         (baseclass_offset): New wrapper function.
10313         * cp-abi.h (baseclass_offset): Add prototype.
10314         (struct cp_abi_ops): Add baseclass_offset pointer.
10315
10316         * valops.c (vb_match): Move to...
10317         * gnu-v2-abi.c (vb_match): here.
10318         * valops.c (baseclass_offset): Move to...
10319         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10320
10321         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10322
10323         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10324         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10325         * hpacc-abi.c (init_hpacc_ops): Likewise.
10326
10327 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10328
10329         * valops.c (find_overload_match): Accept obj as a
10330         reference parameter.  Update it before returning.
10331         * value.h (find_overload_match): Update prototype.
10332         * eval.c (evaluate_subexp_standard): Pass object to
10333         find_overload_match by reference.
10334
10335 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
10336
10337         * valarith.c: Replace value_ptr with struct value pointer.  Remove
10338         register attribute from value declarations.
10339         * valops.c: Ditto.
10340         * value.h: Ditto.
10341         * scm-lang.c (scm_lookup_name): Ditto.
10342
10343 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10344
10345         Abstract the functionality of iterating over mapped memory
10346         regions into a general purpose iterator function.
10347         * procfs.c (iterate_over_mappings): New function, general purpose
10348         iterator for memory sections.
10349         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10350         (solib_mappings_callback): New function, callback for above.
10351         (info_proc_mappings): Reimpliment using iterate_over_mappings.
10352         (info_mappings_callback): New function, callback for above.
10353
10354         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10355
10356 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
10357
10358         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10359         * i386-tdep.c: Include "elf-bfd.h".
10360         (process_note_abi_tag_sections): New function.
10361         (i386_gdbarch_init): Add code to recognize various OS/ABI
10362         combinations.
10363
10364         * maint.c (_initialize_maint_cmds): Add missing \ in
10365         string-literal.
10366
10367 For older changes see ChangeLog-2001
10368 \f
10369 Local Variables:
10370 mode: change-log
10371 left-margin: 8
10372 fill-column: 74
10373 version-control: never
10374 End: