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