* config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
[external/binutils.git] / gdb / ChangeLog
1 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
2
3         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4         (i386lynx_saved_pc_after_call): Remove prototype.
5         * i386ly-tdep.c: Include "i386-tdep.h".
6         (i386lynx_saved_pc_after_call): Make static.  Use
7         read_memory_nobpt instead of read_memory.  Use
8         read_memory_unsigned_integer instead of read_memory_integer.
9         (i386lynx_init_abi): New function.
10         (i386lynx_coff_osabi_sniffer): New function.
11         (_initialize_i386bsd_tdep): New function.
12
13         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
14         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
15         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
16         (i386_fix_call_dummy): Remove prototype.
17         * i386-tdep.c (i386_call_dummy_words): New variable.
18         (i386_gdbarch_init): Adjust for removal of the
19         macros mentioned above.
20
21 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
22
23         * command.h (add_setshow_auto_boolean_cmd): Replace
24         add_set_auto_boolean_cmd.
25         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
26         add_set_auto_boolean_cmd.
27         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
28         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
29         mask-address'' command.
30         (show_mask_address): Add cmd parameter.
31         * remote.c (add_packet_config_cmd): Update.  Change type of
32         set_func and show_func to cmd_sfunc_ftype.
33         (_initialize_remote): Update `set remote Z-packet'
34         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
35         (show_remote_protocol_e_packet_cmd): Ditto.
36         (show_remote_protocol_E_packet_cmd): Ditto.
37         (show_remote_protocol_P_packet_cmd): Ditto.
38         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
39         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
40         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
41         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
42         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
43         (show_remote_protocol_Z_packet_cmd): Ditto.
44         (show_remote_protocol_binary_download_cmd): Ditto.
45         (show_remote_cmd): Pass NULL to all of above.
46
47 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
48
49         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
50         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
51         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
52         POP_FRAME): Remove defines.
53         (i386_push_arguments, i386_store_struct_return,
54         i386_extract_return_value, i386_store_return_value,
55         i386_extract_struct_value_address, i386_push_dummy_frame,
56         i386_pop_frame): Renove prototypes.
57         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
58         macros mentioned above.
59
60 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
61
62         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
63         add_set_boolean_cmd.
64         (add_setshow_cmd): New function.
65         * command.h (add_setshow_boolean_cmd): Replace
66         add_set_boolean_cmd.
67         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
68         and ``set rdiromatzero''.
69         * maint.c (_initialize_maint_cmds): Update commented out code.
70         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
71         * target.c (initialize_targets): Update `set
72         trust-readonly-sections'.
73         * remote.c (_initialize_remote): Update `set remotebreak'.
74
75 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
76
77         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
78         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
79         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
80         fit into multi-arch framework.
81         (i386_breakpoint_from_pc): New function.
82         (i386_gdbarch_init): Adjust for removal of the macros mentioned
83         above.
84
85         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
86         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
87         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
88         (i386_frameless_function_invocation, i386_frame_num_args,
89         i386_frame_init_saved_regs): Remove prototypes.
90         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
91         macros mentioned above.
92
93 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
94
95         * cli/cli-decode.c (set_cmd_cfunc): Update.
96         (set_cmd_sfunc): Update.
97         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
98         (set_cmd_sfunc, set_cmd_cfunc): Update.
99         * cli/cli-decode.h: Update.
100
101 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
102
103         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
104         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
105
106 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
107
108         * defs.h (auto_boolean): Declare enum.
109         * command.h (cmd_auto_boolean): Delete enum.
110         * mips-tdep.c (mask_address_var): Update.
111         (mips_mask_address_p): Update.
112         (show_mask_address): Update.
113         * remote.c (struct packet_config): Update.
114         (update_packet_config): Update.
115         (show_packet_config_cmd): Update.
116         (packet_ok): Update.
117         (add_packet_config_cmd): Update.
118         (_initialize_remote): 
119         * command.h: Update.
120         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
121         (do_setshow_command): Update.
122         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
123         * cli/cli-decode.h: Update.
124
125 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
126
127         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
128         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
129         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
130         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
131         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
132         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
133
134         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
135         list of DJGPP COFF targets.
136
137         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
138         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
139         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
140         (FP0_REGNUM): Remove define.
141         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
142         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
143         (i386_register_virtual_size): Remove protoype.
144         * i386-tdep.c (i386_register_virtual_size): Removed.
145         (i386_extract_return_value, i386_store_return_value): Use
146         FP0_REGNUM instead of NUM_FREGS to determine whether the
147         floating-point registers are available.
148         (i386_gdbarch_init): Tweak FIXME about FPU registers.
149         Adjust for removal of macros mentioned above.
150
151 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
152
153         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
154         comments.
155         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
156         Remove prototypes.
157         (supply_gregset, fill_gregset): Remove use of register keyword and
158         remove declaration for regmap.  Use I386_NUM_GREGS instead of
159         NUM_REGS and NUM_FREGS.
160         (FPREGSET_FSAVE_OFFSET): Remove.
161         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
162         NUM_FREGS to determine whether the floating-point registers are
163         available.
164
165         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
166         gnu_store_registers): Replace usage of NUM_GREGS with
167         I386_NUM_GREGS.
168
169         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
170         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
171         usage of NUM_GREGS with I386_NUM_GREGS.
172
173         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
174
175         * i386bsd-nat.c: Include "i386-tdep.h".
176         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
177         I386_NUM_GREGS.
178
179         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
180         and associated comment.  They no longer make any sense, since we
181         don't use this file anymore on Linux.
182
183         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
184         * i386-tdep.c (i386_register_offset, i386_register_size): Use
185         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
186         elements in these arrays.
187         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
188         MAX_NUM_REGS.
189
190 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
191
192         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
193         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
194
195 2002-06-14  Andrew Cagney  <cagney@redhat.com>
196
197         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
198         EXTRACT_RETURN_VALUE.
199         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
200         EXTRACT_STRUCT_VALUE_ADDRESS.
201         * gdbarch.h, gdbarch.c: Regenerate.
202         
203         * values.c (value_being_returned): Handle
204         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
205         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
206
207         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
208         * arm-tdep.c (arm_gdbarch_init): Update.
209         * avr-tdep.c (avr_gdbarch_init): Update.
210         * cris-tdep.c (cris_gdbarch_init): Update.
211         * d10v-tdep.c (d10v_gdbarch_init): Update.
212         * ia64-tdep.c (ia64_gdbarch_init): Update.
213         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
214         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
215         * s390-tdep.c (s390_gdbarch_init): Update.
216         * sh-tdep.c (sh_gdbarch_init): Update.
217         * s390-tdep.c (s390_gdbarch_init): Update.
218         * sparc-tdep.c (sparc_gdbarch_init): Update.
219         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
220         * v850-tdep.c (v850_gdbarch_init): Update.
221         * vax-tdep.c (vax_gdbarch_init): Update.
222         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
223         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
224
225         * config/arc/tm-arc.h: Update.
226         * config/d30v/tm-d30v.h: Update.
227         * config/fr30/tm-fr30.h: Update.
228         * config/h8300/tm-h8300.h: Update.
229         * config/h8500/tm-h8500.h: Update.
230         * config/i386/tm-i386.h: Update.
231         * config/i386/tm-ptx.h: Update.
232         * config/i386/tm-symmetry.h: Update.
233         * config/i960/tm-i960.h: Update.
234         * config/m32r/tm-m32r.h: Update.
235         * config/m68k/tm-delta68.h: Update.
236         * config/m68k/tm-linux.h: Update.
237         * config/m68k/tm-m68k.h: Update.
238         * config/m88k/tm-m88k.h: Update.
239         * config/mcore/tm-mcore.h: Update.
240         * config/mips/tm-mips.h: Update.
241         * config/mn10200/tm-mn10200.h: Update.
242         * config/pa/tm-hppa.h: Update.
243         * config/pa/tm-hppa64.h: Update.
244         * config/sparc/tm-sp64.h: Update.
245         * config/sparc/tm-sparc.h: Update.
246         * config/sparc/tm-sparclet.h: Update.
247         * config/z8k/tm-z8k.h: Update.
248
249 2002-06-14  Andrew Cagney  <cagney@redhat.com>
250
251         * Makefile.in (i386_linux_tdep_h): Define.
252         (i386_tdep_h, i387_tdep_h): Define.
253         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
254         $(i386_tdep_h) and $(i387_tdep_h).
255         * i386-linux-nat.c: Include "i386-linux-tdep.h".
256
257 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
258
259         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
260         Already covered by the default.
261
262         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
263         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
264         (i386_gdbarch_init): Initialize long_double_format and long_double
265         bit.
266
267         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
268         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
269         Move these to ...
270         * config/i386/i386sol2.mh: ... here.
271         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
272         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
273         (SIGCONTEXT_PC_OFFSET): Remove define.
274         (IN_SIGTRAMP): Remove define.
275         * i386-sol2-tdep.c: New file.
276         
277         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
278         * config/i386/tm-i386nw.h: Removed.
279
280         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
281         USE_STRUCT_CONVENTION): Remove defines.
282         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
283         (get_longjmp_target): Remove prototype.
284         (IN_SIGTRAMP): Remove define.
285         (i386bsd_in_sigtramp): Remove prototype.
286         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
287         function.  Update comment accordingly
288         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
289         (FRAME_SAVED_PC): Remove define.
290         (i386bsd_frame_saved_pc): Remove prototype.
291         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
292         GET_LONGJMP_TARGET): Remove defines.
293         (get_longjmp_target): Remove prototype.
294         (IN_SIGTRAMP): Remove define.
295         (i386bsd_in_sigtramp): Remove prototype.
296         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
297         function.  Update comment accordingly
298         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
299         (FRAME_SAVED_PC): Remove define.
300         (i386bsd_frame_saved_pc): Remove prototype.
301         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
302         Remove prototype.
303         (USE_STRUCT_CONVENTION): Remove prototype.
304         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
305         declaration.
306         (_initialize_i386bsd_nat): Revise logic to determine some
307         constants at compile time when compiling a native GDB.  Warn if
308         things don't match up with what we expect.
309         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
310         Remove variables.
311         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
312         to use date stored in `struct gdbarch_tdep'.
313         (i386bsd_sigcontext_offset): Remove varaible.
314         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
315         stored in `struct gdbarch_tdep'.
316         (i386bsd_frame_saved_pc): Make static.
317         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
318         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
319         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
320         i386fbsd4_sc_pc_offset): New variables.
321         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
322         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
323         functions.
324         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
325         functions.
326         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
327         Modify the value of i386fbsd_sigtramp_start and
328         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
329         i386fbsd_sigtramp_end.
330         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
331         function.
332
333         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
334         define to i386-linux-tdep.h.
335         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
336         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
337         defines.
338         (i386_linux_register_name, i386_linux_register_byte,
339         i386_linux_register_raw_size): Remove prototypes.
340         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
341         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
342         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
343         TARGET_WRITE_PC): Remove defines.
344         (i386_linux_in_sigtramp, i386_linux_frame_chain,
345         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
346         i386_linux_write_pc): Remove prototypes.
347         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
348         (get_longjmp_target): Remove prototype.
349         * i386-linux-tdep.h: New file.
350         * i386-linux-nat.c: Include "i386-linux-tdep.h".
351         * i386-linux-tdep.c: Include "i386-tdep.h" and
352         "i386-linux-tdep.h".
353         (i386_linux_register_name, i386_linux_register_byte,
354         i386_linux_register_raw_size, i386_linux_in_sigtramp,
355         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
356         Make static.
357         (i386_linux_init_abi): New function.
358         (_initialize_i386_linux_tdep): New function.
359
360         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
361         (i386_saved_pc_after_call): Remove prototype.
362         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
363         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
364         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
365         (i386_register_name, i386_stab_reg_to_regnum,
366         i386_dwarf_reg_to_regnum): Remove prototypes.
367         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
368         SIZEOF_SSE_REGS): Remove defines.
369         (REGISTER_BYTES): Remove define.
370         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
371         (i386_register_byte, i386_register_raw_size): Remove prototypes.
372         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
373         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
374         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
375         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
376         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
377         (get_longjmp_target): Remove prototype.
378         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
379         (sigtramp_saved_pc): Remove define.
380         (i386v4_sigtramp_saved_pc): Remove prototype.
381         * config/i386/tm-go32.h (FRAME_CHAIN,
382         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
383         (i386go32_frame_saved_pc): Remove prototype.
384         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
385         (get_longjmp_target): Remove prototype.
386         * i386-tdep.h: Include "osabi.h".
387         (enum i386_abi): Removed.
388         (enum struct_return): New enum.
389         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
390         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
391         sc_pc_offset members.
392         (i386_gdbarch_register_os_abi): Remove prototype.
393         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
394         I386_SSE_NUM_REGS): New defines.
395         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
396         I386_SSE_SIZEOF_REGS): New defines.
397         (i386_register_name, i386_register_byte, i386_register_raw_size):
398         New prototypes.
399         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
400         (i386bsd_sigtramp_saved_pc): New prototype.
401         * i386-tdep.c: Don't include "elf-bfd.h".
402         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
403         i386_frame_chain, i386_saved_pc_after_call): Make static.
404         (i386_frame_saved_pc): Rewrite to call architecture dependent
405         function to deal with signal handlers.  Make static.
406         (i386go32_frame_saved_pc): Removed.
407         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
408         Removed.
409         (i386_get_longjmp_target): New function.
410         (default_struct_convention, pcc_struct_convention,
411         reg_struct_convention, valid_conventions, struct_convention): New
412         variables.
413         (i386_use_struct_convention): New function.
414         (i386v4_sigtramp_saved_pc): Renamed to
415         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
416         (i386_pc_in_sigtramp): New function.
417         (i386_abi_names): Removed.
418         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
419         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
420         Removed.
421         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
422         i386_gdbarch_register_os_abi): Removed.
423         (struct i386_abi_handler): Removed.
424         (i386_abi_handler_list): Removed.
425         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
426         functions.
427         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
428         i386_nw_init_abi): New functions.
429         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
430         Use set_gdbarch_xxx() calls instead of relying on macros for a
431         number of calls.
432         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
433         (_initialize_i386_tdep): Add new 'struct-convcention' command.
434         Register the various architecture variants defined in this file.
435
436 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
437
438         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
439         (struct main_type): Remove arg_types member.  Update comments for
440         struct field.
441         (TYPE_ARG_TYPES): Remove.
442         (TYPE_FN_FIELD_ARGS): Update.
443         (smash_to_method_type): Update prototype.
444
445         * c-typeprint.c (cp_type_print_method_args): Take method type
446         instead of argument list.  Use new argument layout.  Simplify.
447         (c_type_print_args): Use new argument layout.  Simplify.
448         (c_type_print_base): Update call to cp_type_print_method_args.
449         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
450         argument; use die->type instead.  Update call to
451         smash_to_method_type.
452         (read_structure_scope): Update call to dwarf2_add_member_fn.
453         * gdbtypes.c (allocate_stub_method): Update comment.
454         (smash_to_method_type): Take new NARGS and VARARGS arguments.
455         Use new argument layout.
456         (check_stub_method): Use new argument layout.  Don't count
457         void as an argument.
458         (print_arg_types): Update comments.  Use new argument layout.
459         (recursive_dump_type): Don't print arg_types member.
460         * hpread.c (hpread_read_struct_type): Use new argument layout.
461         (fixup_class_method_type): Likewise.
462         (hpread_type_lookup): Likewise.
463         * stabsread.c (read_type): Update calls to read_args and
464         smash_to_method_type.
465         (read_args): Use new argument layout.  Simplify.
466         * valops.c (typecmp): Use new argument layout.  Update parameters
467         and comments.  Simplify.
468         (hand_function_call): Use new argument layout.
469         (search_struct_method): Update call to typecmp.
470         (find_overload_match): Use new argument layout.
471
472 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
473
474         * NEWS: Mention multithreaded debug support for gdbserver.
475
476 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
477
478         * MAINTAINERS: Mention NEWS.
479
480 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
481
482         * gdbserver/regcache.c: Add comment.
483
484 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
485
486         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
487         (struct mips_objfile_private, compare_pdr_entries): New.
488         (non_heuristic_proc_desc): Read the ".pdr" section if it
489         is present.
490
491 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
492
493         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
494         (arm_debug): New static variable.
495         (_initialize_arm_tdep): Add ``set debug arm'' command.
496
497 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
498
499         * Makefile.in (sim_arm_h): Define.
500         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
501         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
502         (arm_register_sim_regno): New function, map an internal REGNUM
503         onto a simulator register number.
504         (arm_gdbarch_init): Set register_sim_regno.
505
506 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
507
508         * MAINTAINERS: Add self.
509
510 2002-06-11  Jim Blandy  <jimb@redhat.com>
511
512         * source.c (source_info): Mention whether the symtab has
513         information about preprocessor macros.
514
515         Call the command `info macro', not `show macro'.
516         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
517         Fix error message.
518         (_initialize_macrocmd): Register `info_macro_command' in
519         `infolist', not `showlist'.
520
521 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
522
523         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
524         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
525         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
526         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
527         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
528         unconditionally.
529         (set_mipsfpu_single_command, set_mipsfpu_double_command)
530         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
531         (_initialize_mips_tdep): Remove dead code.
532         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
533         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
534         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
535         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
536         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
537         MIPS_LAST_FP_ARG_REGNUM): Remove.
538
539 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
540
541         * gdbserver/thread-db.c: New file.
542         * gdbserver/proc-service.c: New file.
543         * gdbserver/acinclude.m4: New file.
544         * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
545         proc-service.o, and thread-db.o.
546         (linux-low.o): Add USE_THREAD_DB.
547         * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
548         HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
549         * gdbserver/aclocal.m4: Regenerated.
550         * gdbserver/config.in: Regenerated.
551         * gdbserver/configure: Regenerated.
552         * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
553         thread_db.h, and linux/elf.h headrs.
554         Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
555         PRFPREGSET_T_BROKEN.  Introduce srv_thread_depfiles and USE_THREAD_DB.
556         Check for -lthread_db and thread support.
557         * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
558         PowerPC, and SuperH.
559         * gdbserver/i387-fp.c: Constify arguments.
560         * gdbserver/i387-fp.h: Likewise.
561         * gdbserver/inferiors.c: (struct thread_info): Renamed from
562         `struct inferior_info'.  Remove PID member.  Use generic inferior
563         list header.  All uses updated.
564         (inferiors, signal_pid): Removed.
565         (all_threads): New variable.
566         (get_thread): Define.
567         (add_inferior_to_list): New function.
568         (for_each_inferior): New function.
569         (change_inferior_id): New function.
570         (add_inferior): Removed.
571         (remove_inferior): New function.
572         (add_thread): New function.
573         (free_one_thread): New function.
574         (remove_thread): New function.
575         (clear_inferiors): Use for_each_inferior and free_one_thread.
576         (find_inferior): New function.
577         (find_inferior_id): New function.
578         (inferior_target_data): Update argument type.
579         (set_inferior_target_data): Likewise.
580         (inferior_regcache_data): Likewise.
581         (set_inferior_regcache_data): Likewise.
582         * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
583         (all_processes, stopping_threads, using_thrads)
584         (struct pending_signals, debug_threads, pid_of): New.
585         (inferior_pid): Replace with macro.
586         (struct inferior_linux_data): Remove.
587         (get_stop_pc, add_process): New functions.
588         (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
589         Use add_process and add_thread.
590         (linux_attach_lwp): New function, based on old linux_attach.  Use
591         add_process and add_thread.  Set stop_expected for new threads.
592         (linux_attach): New function.
593         (linux_kill_one_process): New function.
594         (linux_kill): Kill all LWPs.
595         (linux_thread_alive): Use find_inferior_id.
596         (check_removed_breakpoints, status_pending_p): New functions.
597         (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
598         Update.  Use WNOHANG.  Wait for cloned processes also.  Update process
599         struct for the found process.
600         (linux_wait_for_event): New function.
601         (linux_wait): Use it.  Support LWPs.
602         (send_sigstop, wait_for_sigstop, stop_all_processes)
603         (linux_resume_one_process, linux_continue_one_process): New functions.
604         (linux_resume): Support LWPs.
605         (REGISTER_RAW_SIZE): Remove.
606         (fetch_register): Use register_size instead.  Call supply_register.
607         (usr_store_inferior_registers): Likewise.  Call collect_register.
608         Fix recursive case.
609         (regsets_fetch_inferior_registers): Improve error message.
610         (regsets_store_inferior_registers): Add debugging.
611         (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
612         (unstopped_p, linux_signal_pid): New functions.
613         (linux_target_ops): Add linux_signal_pid.
614         (linux_init_signals): New function.
615         (initialize_low): Call it.  Initialize using_threads.
616         * gdbserver/regcache.c (inferior_regcache_data): Add valid
617         flag.
618         (get_regcache): Fetch registers lazily.  Add fetch argument
619         and update all callers.
620         (regcache_invalidate_one, regcache_invalidate): New
621         functions.
622         (new_register_cache): Renamed from create_register_cache.
623         Return the new regcache.
624         (free_register_cache): Change argument to a void *.
625         (registers_to_string, registers_from_string): Call get_regcache
626         with fetch flag set.
627         (register_data): Make static.  Pass fetch flag to get_regcache.
628         (supply_register): Call get_regcache with fetch flag clear.
629         (collect_register): Call get_regcache with fetch flag set.
630         (collect_register_as_string): New function.
631         * gdbserver/regcache.h: Update.
632         * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
633         stderr.
634         Handle input interrupts while waiting for an ACK.
635         (input_interrupt): Use signal_pid method.
636         (getpkt): Flush after debug output and use stderr.
637         (outreg): Use collect_register_as_string.
638         (new_thread_notify, dead_thread_notify): New functions.
639         (prepare_resume_reply): Check using_threads.  Set thread_from_wait
640         and general_thread.
641         (look_up_one_symbol): Flush after debug output.
642         * gdbserver/server.c (step_thread, server_waiting): New variables.
643         (start_inferior): Don't use signal_pid.  Update call to mywait.
644         (attach_inferior): Update call to mywait.
645         (handle_query): Handle qfThreadInfo and qsThreadInfo.
646         (main): Don't fetch/store registers explicitly.  Use
647         set_desired_inferior.  Support proposed ``Hs'' packet.  Update
648         calls to mywait.
649         * gdbserver/server.h: Update.
650         (struct inferior_list, struct_inferior_list_entry): New.
651         * gdbserver/target.c (set_desired_inferior): New.
652         (write_inferior_memory): Constify.
653         (mywait): New function.
654         * gdbserver/target.h: Update.
655         (struct target_ops): New signal_pid method.
656         (mywait): Removed macro, added prototype.
657
658         * gdbserver/linux-low.h (regset_func): Removed.
659         (regset_fill_func, regset_store_func): New.
660         (enum regset_type): New.
661         (struct regset_info): Add type field.  Use new operation types.
662         (struct linux_target_ops): stop_pc renamed to get_pc.
663         Add decr_pc_after_break and breakpoint_at.
664         (get_process, get_thread_proess, get_process_thread)
665         (strut process_info, all_processes, linux_attach_lwp)
666         (thread_db_init): New.
667
668         * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
669         arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
670         (the_low_target): Add new members.
671         * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
672         (i386_store_fpxregset): Constify.
673         (target_regsets): Add new kind identifier.
674         (i386_get_pc): Renamed from i386_stop_pc.  Simplify.
675         (i386_set_pc): Add debugging.
676         (i386_breakpoint_at): New function.
677         (the_low_target): Add new members.
678         * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
679         (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
680         (mips_breakpoint_at): New.
681         (the_low_target): Add new members.
682         * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
683         (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
684         (the_low_target): Add new members.
685         * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
686         (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
687         (the_low_target): Add new members.
688         * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
689         identifier.
690
691 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
692
693         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
694         (unwind_tmp_obstack_free, parse_frame_info)
695         (update_context, cfi_read_fp, cfi_write_fp)
696         (cfi_frame_chain, cfi_init_extra_frame_info)
697         (cfi_virtual_frame_pointer): Use the above function.
698         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
699
700 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
701
702         * v850-tdep.c (v850_type_is_scalar): New function.
703         (v850_use_struct_convention): Match current gcc implementation
704         as close as possible.
705         (v850_push_arguments): Fix stack_offset handling.  Don't write
706         struct_addr into register.  This is done by v850_store_struct_return.
707         (v850_extract_return_value): Care for structs.
708         (v850_store_return_value): Ditto.
709         (v850_store_struct_return): Actually write address.
710
711 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
712
713         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
714         without debug information too.
715
716 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
717
718         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
719         Make multi-arch pure.
720         * gdbarch.h, gdbarch.c: Re-generate.
721         * arm-tdep.c (arm_print_float_info): Update.
722         * arch-utils.h (default_print_float_info): Update.
723         * arch-utils.c (default_print_float_info): Update.
724         * infcmd.c (float_info): Update call.
725
726 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
727
728         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
729         the front of the initialize list.
730
731 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
732
733         * infrun.c (struct inferior_status): Replace fields
734         selected_frame_address and selected_level with field
735         selected_frame_id.
736         (save_inferior_status): Update.  Use get_frame_id.
737         (struct restore_selected_frame_args): Delete.
738         (restore_selected_frame): Update.  Use frame_find_by_id.
739         (restore_inferior_status): Update.
740
741         * breakpoint.h (struct breakpoint): Change type of
742         watchpoint_frame to frame_id.
743         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
744         call to get_current_frame.
745         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
746         get_current_frame.
747         (watchpoint_check): Use frame_find_by_id.
748
749         * frame.h (record_selected_frame): Delete declaration.
750         * stack.c (record_selected_frame): Delete function.
751         
752         * frame.h (struct frame_id): Define.
753         (get_frame_id): Declare.
754         (frame_find_by_id): Declare.
755         * frame.c (frame_find_by_id): New function.
756         (get_frame_id): New function.
757
758 2002-06-10  Andrey Volkov <avolkov@transas.com>
759
760         * ser-e7kpc.c: Fix duplicated define and call of 
761         _initialize_ser_e7000pc
762             
763 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
764
765         * signals/signals.c (target_signal_from_host): Fix #ifdef
766         SIGRTMIN case.
767         (do_target_signal_to_host): Likewise.
768
769 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
770
771         * mips-tdep.c (mips_find_abi_section): New function.
772         (mips_gdbarch_init): Call it.
773
774 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
775
776         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
777         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
778         after Andrew's 2002-06-08 gdbarch change.
779
780 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
781
782         * i386-linux-nat.c (suppy_gregset): Don't supply
783         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
784         register cache.
785         (fill_gregset): Don't fetch it under the same circumstances.
786
787 2002-06-09  Andrew Cagney  <cagney@redhat.com>
788
789         * Makefile.in (callback_h): Define.
790         (remote_sim_h): Update path to remote-sim.h.
791         (remote-rdp.o): Add $(callback_h).
792         (remote-sim.o): Use $(callback_h).
793         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
794         * remote-rdp.c: Include "gdb/callback.h".
795
796 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
797
798         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
799         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
800
801 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
802
803         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
804         * rdi-share/serpardr.c: Ditto.
805         * rdi-share/unixcomm.c: Ditto.
806         * rdi-share/serdrv.c: Ditto.
807         * rdi-share/hostchan.h: Ditto.
808         * rdi-share/hostchan.c: Ditto.
809         * rdi-share/host.h: Ditto.
810         * rdi-share/devsw.c: Ditto.
811
812         * objfiles.h: Change type of obj_private to void pointer.
813         * pa64solib.c: Update copyright.  Don't include "assert.h", use
814         strcmp instead of STREQ, use LONGEST, do not use PTR
815         * somsolib.c: Ditto.
816
817         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
818         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
819         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
820
821 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
822
823         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
824         (default_get_saved_register): Delete function.
825         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
826         generic_unwind_get_saved_register.
827         * gdbarch.h, gdbarch.c: Re-generate.
828         
829 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
830
831         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
832         generic_func_frame_chain_valid.
833         * gdbarch.h, gdbarch.c: Re-generate.
834         * blockframe.c (generic_func_frame_chain_valid): Only check
835         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
836         passing FP to PC_IN_CALL_DUMMY.
837         Fix PR gdb/360.
838
839 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
840
841         * gdbarch.sh (struct gdbarch_data): Add field init_p.
842         (register_gdbarch_data): Initialize init_p.
843         (gdbarch_data): Initialize data pointer using the init function.
844         (init_gdbarch_data): Delete function.
845         (gdbarch_update_p): Update.
846         (initialize_non_multiarch): Update.
847         (struct gdbarch): Add field initialized_p.
848         * gdbarch.h, gdbarch.c: Re-generate.
849
850 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
851
852         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
853         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
854         better do the things actually here.
855         * x86-64-tdep.c (x86_64_register_name2nr): New.
856         (x86_64_register_name): Renamed to x86_64_register_nr2name.
857         (x86_64_gdbarch_init): Respect the above change.
858         * x86-64-tdep.h (x86_64_register_name2nr)
859         (x86_64_register_nr2name): Add prototypes.
860         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
861
862 2002-06-06  Michael Snyder  <msnyder@redhat.com>
863
864         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
865         Delete extra braces and re-indent.
866         (d10v_store_return_value): Char return values
867         must be shifted over by one byte in R0.
868         (d10v_extract_return_value): Delete extra braces, re-indent.
869
870 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
871
872         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
873         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
874         (d10v_integer_to_address): Rewrite.
875         (d10v_frame_init_saved_regs): When reading fp and sp registers use
876         the d10v specific functions which take care of converting to the
877         correct space.
878
879 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
880
881         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
882         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
883
884 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
885
886         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
887         includes.
888         * config/tm-linux.h: Ditto.
889         * config/alpha/tm-alphalinux.h: Ditto.
890         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
891         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
892         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
893         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
894         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
895         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
896         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
897         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
898         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
899         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
900         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
901         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
902         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
903         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
904         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
905         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
906         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
907         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
908         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
909         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
910         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
911         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
912         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
913         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
914         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
915         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
916         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
917         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
918         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
919         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
920         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
921         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
922         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
923         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
924         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
925         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
926         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
927
928 2002-05-04  Aidan Skinner <aidan@velvet.net>
929
930         * ada-exp.tab.c: New file
931         * ada-exp.y: New file
932         * ada-lang.c: New file
933         * ada-lang.h: New file
934         * ada-lex.c: New file
935         * ada-lex.l: New file
936         * ada-tasks.c: New file
937         * ada-typeprint.c: New file
938         * ada-valprint.c: New file
939         
940 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
941
942         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
943         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
944
945 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
946
947         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
948         insetead of ppc-linux-tdep.o.
949         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
950         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
951
952 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
953
954         2002-05-07 Christian Groessler <chris@groessler.org>
955         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
956         bit register contents for little endian hosts.
957
958 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
959
960         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
961         any maintainer.
962
963 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
964
965         * gdbarch.h: Regenerate.
966
967 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
968
969         * MAINTAINERS: Add everyone to write-after-approval list.
970
971 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
972
973         * stack.c (frame_info): Use frame_register_unwind instead of
974         saved_regs.  Mention when the SP is on the stack or in a register.
975
976         * frame.h (frame_register_unwind_ftype): Define.  Document.
977         (struct frame_info): Add field register_unwind and
978         register_unwind_cache.
979         (frame_register_unwind): Declare.
980         (generic_unwind_get_saved_register): Declare.
981
982         * frame.c (frame_register_unwind): New function.
983         (generic_unwind_get_saved_register): New function.
984
985         * blockframe.c (generic_call_dummy_register_unwind): New function.
986         (frame_saved_regs_register_unwind): New function.
987         (set_unwind_by_pc): New function.
988         (create_new_frame): New function.
989         (get_prev_frame): New function.
990
991 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
992
993         * a29k-share/: Delete directory.
994         * remote-vx29k.c: Delete file.
995
996 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
997
998         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
999         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1000
1001 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
1002
1003         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
1004         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1005         (sparc64nbsd-nat.o)
1006         (sparcnbsd-nat.o)
1007         (sparcnbsd-tdep.o): New dependency lists.
1008         * NEWS: Note new UltraSPARC NetBSD native configuration.
1009         * configure.host (sparc64-*-netbsd*): New host.
1010         * configure.tgt (sparc-*-netbsdelf*)
1011         (sparc-*-netbsd*): Set gdb_target to nbsd.
1012         (sparc64-*-netbsd*): New target.
1013         * sparc64nbsd-nat.c: New file.
1014         * sparcnbsd-nat.c: New file.
1015         * sparcnbsd-tdep.c: New file.
1016         * sparcnbsd-tdep.h: New file.
1017         * config/sparc/nbsd.mt: New file.
1018         * config/sparc/nbsd64.mh: New file.
1019         * config/sparc/nbsd64.mt: New file.
1020         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
1021         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
1022         (HOST_IPC): Remove.
1023         * config/sparc/nbsdaout.mt: Remove.
1024         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
1025         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
1026         (HOST_IPC): Remove.
1027         * config/sparc/nbsdelf.mt: Remove.
1028         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
1029         sparc-nat.c compatiblity defines.
1030         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
1031         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
1032         * config/sparc/tm-nbsd64.h: New file.
1033         * config/sparc/tm-nbsdaout.h: Remove.
1034         * config/sparc/xm-nbsd.h: Remove.
1035
1036 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
1037
1038         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
1039         * sparc-tdep.c: Include osabi.h.
1040         (gdbarch_tdep): Add osabi member.
1041         (_initialize_sparc_tdep): Use gdbarch_register.
1042         (sparc_gdbarch_init): Use generic OS ABI framework.
1043         (sparc_dump_tdep): New function.
1044
1045 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
1046
1047         * corefile.c (do_captured_read_memory_integer): Return non-zero
1048         result.
1049         (safe_read_memory_integer): Copy result of memory read when
1050         status is non-zero.  Also, add comments.
1051
1052 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
1053
1054         * Makefile.in (ppc_tdep_h): Define.
1055         (ppc-linux-nat.o)
1056         (ppc-linux-tdep.o)
1057         (rs6000-tdep.o): Use $(ppc_tdep_h).
1058         (ppc-sysv-tdep.o)
1059         (ppcnbsd-nat.o)
1060         (ppcnbsd-tdep.o): New dependency lists.
1061         * ppc-tdep.h: Use generic OS ABI framework.
1062         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
1063         (ppc_linux_init_abi): New functions.
1064         (ppc_sysv_abi_broken_use_struct_convention)
1065         (ppc_sysv_abi_use_struct_convention)
1066         (ppc_sysv_abi_push_arguments): Move to...
1067         * ppc-sysv-tdep.c: ...here.
1068         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
1069         * rs6000-tdep.c (process_note_abi_tag_sections)
1070         (get_elfosabi): Remove.
1071         (rs6000_gdbarch_init): Use generic OS ABI framework.
1072         (rs6000_dump_tdep): New function.
1073         (_initialize_rs6000_tdep): Use gdbarch_register.
1074         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
1075         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1076         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
1077         of ppc-linux-tdep.o.
1078         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
1079         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
1080         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
1081         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
1082         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
1083         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
1084
1085 2002-05-29  Jim Blandy  <jimb@redhat.com>
1086
1087         * macroscope.c (default_macro_scope): Put `void' in empty argument
1088         list.
1089
1090 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
1091
1092         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
1093         * arch-utils.c: Include "sim-regno.h".
1094         * gdbarch.sh: Don't include "sim-regno.h".
1095         * gdbarch.h, gdbarch.c: Regenerate.
1096         * sim-regno.h (legacy_register_sim_regno): Move declaration from
1097         here.
1098         * arch-utils.h (legacy_register_sim_regno): To here.
1099         * remote-sim.c (legacy_register_sim_regno): Move function from
1100         here.
1101         * arch-utils.c (legacy_register_sim_regno): To here.
1102
1103 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
1104
1105         * sim-regno.h: New file.
1106         * Makefile.in (sim_regno_h): Define.
1107         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
1108         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
1109         (legacy_register_sim_regno): New function.
1110         (one2one_register_sim_regno): New function.
1111         (gdbsim_fetch_register): Rewrite.
1112         (gdbsim_store_register): Only store a register when
1113         REGISTER_SIM_REGNO is valid.
1114         * d10v-tdep.c: Include "sim-regno.h".
1115         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
1116         (d10v_ts3_register_sim_regno): Ditto.
1117         * gdbarch.sh: Include "sim-regno.h".
1118         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
1119         * gdbarch.h, gdbarch.c: Regenerate.
1120         * arch-utils.h (default_register_sim_regno): Delete declaration.
1121         * arch-utils.c (default_register_sim_regno): Delete function.
1122
1123 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
1124
1125         * ppcnbsd-nat.c: Rewrite.
1126         * ppcnbsd-tdep.c: New file.
1127         * ppcnbsd-tdep.h: New file.
1128         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
1129         solib.o, and solib-svr4.o.
1130         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
1131         nbsd-tdep.o, and corelow.o.
1132
1133 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
1134
1135         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
1136         `tr' and `sed'.  Mention that `broken' targets are not expected to
1137         build.
1138
1139 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
1140
1141         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
1142         Let PC point right after the prologue before looking up symbols.
1143         
1144 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
1145
1146         * i386-tdep.c (i386_register_virtual_type): Return 
1147         builtin_type_vec128i for SSE registers.
1148
1149         * gdbtypes.h (builtin_type_vec128i): Declare.
1150
1151         * gdbtypes.c (build_builtin_type_vec128i): New function.
1152         (builtin_type_v2_double, builtin_type_v4_int64): New types.
1153         (builtin_type_vec128i): New type for SSE2 128-bit registers.
1154         (build_gdbtypes): Initialize new builtin vector types.
1155         (_initialize_gdbtypes): Register new vector types with gdbarch.
1156
1157 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1158
1159         * MAINTAINERS: ns32k is not longer an obsolete candidate,
1160         since it has been multi-arch'd.
1161         * NEWS: Note that ns32k-*-* is now partial multi-arch.
1162         Move Alpha and VAX multi-arch news entries to same section
1163         as other multi-arch news.
1164
1165 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1166
1167         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
1168         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
1169         static.  Rename some register numbers to put them in ns32k-tdep
1170         private namespace.
1171         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
1172         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
1173         functions.
1174         (_initialize_ns32k_tdep): Use gdbarch_register.
1175         * ns32k-tdep.h: New file.
1176         * ns32knbsd-tdep.c: New file.
1177         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
1178         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
1179         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
1180         REGISTER_BYTES, REGISTER_BYTE): Remove.
1181         * config/ns32k/tm-ns32k.h: New file.
1182         * config/ns32k/tm-umax.h: Remove.
1183
1184 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1185
1186         * ns32k-tdep.c (ns32k_saved_pc_after_call,
1187         ns32k_store_struct_return, ns32k_extract_return_value,
1188         ns32k_store_return_value, ns32k_extract_struct_value_address): New
1189         functions.
1190         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
1191         ns32k_saved_pc_after_call.
1192         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
1193         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
1194         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
1195         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1196         ns32k_extract_struct_value_address.
1197
1198 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1199
1200         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
1201         ns32k_fix_call_dummy): New.
1202         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
1203         ns32k_call_dummy_words.
1204         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
1205         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
1206         CALL_DUMMY_NARGS): Remove.
1207         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
1208
1209 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1210
1211         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
1212         ns32k_frame_saved_pc, ns32k_frame_args_address,
1213         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
1214         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
1215         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
1216         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
1217         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
1218         (BREAKPOINT): Remove..
1219         (FRAME_CHAIN): Define as ns32k_frame_chain.
1220         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
1221         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
1222         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
1223         (FRAME_FIND_SAVED_REGS): Remove.
1224         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
1225         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
1226         (POP_FRAME): Define as ns32k_pop_frame.
1227
1228 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1229
1230         * ns32k-tdep.c (ns32k_register_byte_32082,
1231         ns32k_register_byte_32382, ns32k_register_raw_size,
1232         ns32k_register_virtual_size, ns32k_register_virtual_type): New
1233         functions.
1234         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
1235         ns32k_register_byte_32382.
1236         * config/ns32k/tm-umax.h: Update copyright years.
1237         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
1238         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
1239         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
1240         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
1241         (ns32k_get_enter_addr): Fix prototype.
1242
1243 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1244
1245         * ns32k-tdep.c: Update copyright years.
1246         (ns32k_register_name_32082): New function.
1247         (ns32k_register_name_32382): Ditto.
1248         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
1249         (REGISTER_NAME): Define as ns32k_register_name_32382.
1250         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
1251         (REGISTER_NAME): Define as ns32k_register_name_32082.
1252
1253 2002-05-24  Jim Blandy  <jimb@redhat.com>
1254
1255         * dwarf2read.c (free_line_header): Use xfree, not free.
1256
1257 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
1258
1259         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1260         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1261
1262 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
1263
1264         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1265
1266 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
1267
1268         From Ross Alexander at NEC Europe:
1269         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1270
1271 2002-05-23  Michael Snyder  <msnyder@redhat.com>
1272
1273         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1274         for input, rather than parse_and_eval_address.  
1275
1276 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
1277
1278         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1279         * Makefile.in (sim_d10v_h): Update definition.
1280
1281 2002-05-24  Andrew Cagney  <cagney@redhat.com>
1282
1283         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
1284         change `2002-05-22 Michael Snyder' below.
1285         (d10v_push_arguments): Ditto.
1286         (d10v_extract_return_value): Ditto.
1287
1288 2002-05-23  Jim Blandy  <jimb@redhat.com>
1289
1290         * macrotab.c (check_for_redefinition): Don't complain if the new
1291         definition is the same as the previous one.  Take more arguments
1292         to allow the comparison.
1293         (macro_define_object, macro_define_function): Pass more arguments
1294         to check_for_redefinition.
1295
1296 2002-05-22  Michael Snyder  <msnyder@redhat.com>
1297
1298         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
1299         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
1300         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
1301         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
1302         Don't bail if return_pc is PC_IN_CALL_DUMMY.
1303         Add a temp variable to save a call (and a memory read).
1304         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
1305         if possible (so that PC_IN_CALL_DUMMY will work).
1306
1307 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
1308
1309         * MAINTAINERS: Remove status `OBSOLETE' from v850.
1310
1311 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
1312
1313         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
1314         fde->cie_ptr.
1315         (dwarf2_build_frame_info): Corrected handling of eh_frame.
1316         (dwarf2_build_frame_info): Add offset to fde->initial_location 
1317         so that frames of shared libraries are mapped correctly.
1318         (execute_stack_op): Change type of 'result' from ULONGEST to
1319         CORE_ADDR.
1320         
1321 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
1322
1323         * config/alpha/tm-nbsd.h: Include solib.h.
1324
1325 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
1326
1327         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
1328         assumptions about the host's byte order.
1329
1330 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
1331
1332         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
1333         to dependency list.
1334         * alphanbsd-tdep.c: Include solib-svr4.h.
1335         * shnbsd-tdep.c: Ditto.
1336
1337 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
1338
1339         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
1340         nbsd-tdep.h to dependency list.
1341         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
1342         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
1343         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
1344         nbsdaout.mh and nbsdelf.mh consistently.
1345         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
1346         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
1347         nbsdaout.mt and nbsdelf.mh consistently.
1348         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
1349         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
1350         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1351         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
1352         a.out shared library stuff from here...
1353         * config/nm-nbsdaout.h: ...to here.
1354         * config/tm-nbsd.h: Remove.
1355         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
1356         * config/arm/nbsd.mh: Remove.
1357         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
1358         nbsd-tdep.o.
1359         * config/arm/nbsdaout.mh: New file. 
1360         * config/arm/nbsdelf.mh: New file.
1361         * config/arm/nm-nbsdaout.h: New file.
1362         * config/i386/nbsd.mh: Remove.
1363         * config/i386/nbsd.mt: Remove.
1364         * config/i386/nbsdaout.mh: New file.
1365         * config/i386/nbsdaout.mt: New file.
1366         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1367         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
1368         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
1369         i386_register_u_addr): Remove.
1370         * config/i386/nm-nbsdaout.h: New file.
1371         * config/i386/nm-nbsdelf.h: Remove.
1372         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
1373         (USE_STRUCT_CONVENTION): Remove.
1374         * config/i386/tm-nbsdaout.h: New file.
1375         * config/i386/tm-nbsdelf.h: Remove.
1376         * config/m68k/nbsd.mh: Remove.
1377         * config/m68k/nbsd.mt: Remove.
1378         * config/m68k/nbsdaout.mh: New file.
1379         * config/m68k/nbsdaout.mt: New file. 
1380         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
1381         * config/m68k/nm-nbsdaout.h: New file.
1382         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1383         (IN_SOLIB_CALL_TRAMPOLINE): Define.
1384         * config/ns32k/nbsd.mh: Remove.
1385         * config/ns32k/nbsd.mt: Remove. 
1386         * config/ns32k/nbsdaout.mh: New file.
1387         * config/ns32k/nbsdaout.mt: New file.
1388         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
1389         * config/ns32k/nm-nbsdaout.h: New file.
1390         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
1391         (IN_SOLIB_CALL_TRAMPOLINE): Define.
1392         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
1393         (SVR4_SHARED_LIBS): Remove.
1394         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
1395         * config/sparc/nbsd.mh: Remove.
1396         * config/sparc/nbsd.mt: Remove.
1397         * config/sparc/nbsdaout.mh: New file.
1398         * config/sparc/nbsdaout.mt: New file.
1399         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1400         * config/sparc/nbsdelf.mt: New file.
1401         * config/sparc/nm-nbsdaout.h: New file.   
1402         * config/sparc/nm-nbsdelf.h: Remove.
1403         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
1404         * config/sparc/tm-nbsdaout.h: New file.
1405
1406 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1407
1408         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
1409         mipsnbsd-tdep.c
1410         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
1411
1412 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1413
1414         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
1415         shnbsd-nat.c.
1416         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
1417
1418 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1419
1420         * NEWS: Note new MIPS NetBSD native configuration. 
1421         * configure.host (mips*-*-netbsd*): New host. 
1422         * configure.tgt (mips*-*-netbsd*): New target. 
1423         * mipsnbsd-nat.c: New file.
1424         * mipsnbsd-tdep.c: New file.
1425         * mipsnbsd-tdep.h: New file.
1426         * config/mips/nbsd.mh: New file.
1427         * config/mips/nbsd.mt: New file.
1428         * config/mips/nm-nbsd.h: New file.
1429         * config/mips/tm-nbsd.h: New file.
1430
1431 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1432
1433         * Makefile.in (SFILES): Add osabi.c.
1434         (COMMON_OBS): Add osabi.o.
1435         (osabi.o): New dependency list.
1436         * osabi.c: New file.
1437         * osabi.h: New file.
1438         * doc/gdbint.texinfo: Document new generic OS ABI framework.
1439
1440         * Makefile.in (alpha_tdep_h): Define and use instead of
1441         alpha-tdep.h.
1442         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
1443         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
1444         Remove.
1445         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
1446         * alpha-tdep.h: Include osabi.h.
1447         (alpha_abi): Remove.
1448         (gdbarch_tdep): Use generic OS ABI framework.
1449         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
1450         gdbarch_register_osabi.
1451         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
1452         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
1453         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
1454
1455         * Makefile.in (sh_tdep_h): Add osabi.h.
1456         * sh-tdep.h (sh_osabi): Remove.
1457         (gdbarch_tdep): Use generic OS ABI framework.
1458         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
1459         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
1460         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
1461         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
1462
1463         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
1464         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
1465         gdbarch_register_osabi.
1466         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
1467         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
1468         (get_elfosabi): Rename to...
1469         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
1470         ABI framework support routines.
1471         (arm_gdbarch_init): Use generic OS ABI framework.
1472         (arm_dump_tdep): Likewise.
1473         (_initialize_arm_tdep): Likewise.
1474         * arm-tdep.h: Include osabi.h.
1475         (arm_abi): Remove.
1476         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
1477         osabi member.
1478         (arm_gdbarch_register_os_abi): Remove prototype.
1479         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
1480         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
1481
1482         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
1483         * mips-tdep.c: Include osabi.h.
1484         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
1485         OS ABI framework.
1486
1487 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
1488
1489         * h8300-tdep.c: Fix formatting.
1490
1491 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
1492
1493         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
1494         printing vector registers.
1495
1496 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
1497
1498         From Fernando Nasser:
1499         * remote.c (remote_async_open_1): Re-throw the exception when the
1500         connection fails.
1501         (remote_cisco_open): Ditto.
1502         (remote_open_1): Ditto.
1503
1504 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
1505
1506         * remote.c (remote_start_remote_dummy): Add uiout parameter.
1507         (remote_start_remote): Add uiout parameter.  Pass through to
1508         remote_start_remote_dummy.
1509         (remote_open_1): Use catch_exception instead of catch_errors.
1510         (remote_async_open_1): Ditto.
1511         (remote_cisco_open): Ditto.
1512
1513 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
1514
1515         * remote.c (remote_start_remote): Replace PTR with void pointer.
1516         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
1517         static.
1518
1519 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
1520
1521         * gdb_indent.sh: Allow the script to be run in the sim directory.
1522
1523 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
1524
1525         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
1526         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
1527
1528         * corelow.c (core_open): Only call set_gdbarch_from_file if
1529         exec_bfd is NULL.
1530
1531 2002-05-17  Andrey Volkov <avolkov@transas.com>
1532
1533         * h8300-tdep.c: Add support of EXR register
1534         * config/h8300/tm-h8300.h: Ditto. 
1535         
1536 2002-05-17  Andrey Volkov <avolkov@transas.com>
1537
1538         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
1539         
1540 2002-05-17  Andrey Volkov <avolkov@transas.com>
1541
1542         * h8300-tdep.c: Change literal regnums to REGNO.
1543         
1544 2002-05-17  Jim Blandy  <jimb@redhat.com>
1545
1546         * NEWS: Note addition of macro support.
1547
1548         Expand preprocessor macros in C expressions.
1549         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
1550         (scan_macro_expansion, scanning_macro_expansion,
1551         finished_macro_expansion): New function declarations.
1552         (expression_macro_lookup_func, expression_macro_lookup_baton): New
1553         variable declarations.
1554         * parser-defs.h (expression_context_pc): New declaration.
1555         * parse.c (expression_context_pc): New variable.
1556         (parse_exp_1): Set expression_context_pc, as well as
1557         expression_context_block.
1558         * c-exp.y (yylex): If we're not already reading the result of a
1559         macro expansion, try to macro-expand the next token.  When we're
1560         done scanning a macro expansion, switch back to the mainline text.
1561         Commas and `if's in a macro's expansion don't terminate the input.
1562         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
1563         (macro_original_text, macro_expanded_text,
1564         expression_macro_lookup_func, expression_macro_lookup_baton): New
1565         variables.
1566         (scan_macro_expansion, scanning_macro_expansion,
1567         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
1568         c_preprocess_and_parse): New functions.
1569         (c_language_defn, cplus_language_defn, asm_language_defn): Call
1570         c_preprocess_and_parse, instead of c_parse.
1571         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
1572         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
1573
1574 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
1575
1576         * sh-tdep.c (gdb_print_insn_sh64): Delete.
1577         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
1578         (sh_gdbarch_init): Always use gdb_print_insn_sh.
1579
1580 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
1581
1582         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
1583
1584 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
1585
1586         * Makefile.in (sh_tdep_h): Define and use.
1587         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
1588         register enum): Move to...
1589         * * sh-tdep.h: ...here.
1590         * sh-tdep.c: Include sh-tdep.h.
1591         * sh3-rom.c: Likewise.
1592         * shnbsd-tdep.c: Likewise.
1593
1594 2002-05-16  Michael Snyder  <msnyder@redhat.com>
1595
1596         * arm-tdep.c: Spelling fix in comment.
1597
1598 2002-05-16  Jim Blandy  <jimb@redhat.com>
1599
1600         Add commands for manually expanding macros and showing their
1601         definitions.
1602         * macrocmd.c, macroscope.c, macroscope.h: New files.
1603         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
1604         (macroscope_h): New variable.
1605         (HFILES_NO_SRCDIR): Add macroscope.h.
1606         (COMMON_OBS): Add macrocmd.o, macroscope.o.
1607         (macroscope.o, macrocmd.o): New rules.
1608
1609         Teach the Dwarf 2 reader to read macro information.
1610         * dwarf2read.c: #include "macrotab.h".
1611         (dwarf_macinfo_buffer): New variable.
1612         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
1613         dwarf_macinfo_size.
1614         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
1615         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
1616         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
1617         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
1618         dwarf2_macro_spaces_in_definition): New complaints.
1619         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
1620         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
1621         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
1622         the partial symbol table.
1623         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
1624         from what's recorded in the partial symbol table.
1625         (read_file_scope): If the compilation unit has a
1626         `DW_AT_macro_info' attribute, read its macro information.
1627         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
1628
1629 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
1630
1631         Fix PR gdb/546
1632         * ser-tcp.c: Don't include <netinet/udp.h>.
1633
1634 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
1635
1636         * MAINTAINERS: Update my email address.
1637
1638 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
1639
1640         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
1641         include file of the same name.
1642
1643 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
1644
1645         * configure.tgt: Mark v850 as multi-arched.
1646         * config/v850/tm-v850.h: Remove file.
1647         * config/v850/v850.mt: Eliminate TM_FILE.
1648
1649 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
1650
1651         * v850-tdep.c: Full multi-arch.
1652         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
1653         Define GDB_MULTI_ARCH to 2.
1654
1655 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
1656
1657         * p-exp.y (current_type): New static variable.
1658         Carries the type of the expression at the position that is parsed.
1659         (push_current_type, pop_current_type): Two new functions. Used
1660         to store/restore current_type in expression on specific tokens.
1661         (search_field): New static variable. Set to one after parsing a point
1662         as at that point only a FIELDNAME token should be searched.
1663         (FIELDNAME): New token. After a point only a token belonging to 
1664         current_type type definition is allowed.
1665         (all over token rules): reset and change current_type according
1666         to rules.
1667         (exp '[' rule): insert implicit array index field if
1668         exp is a pascal string type.
1669
1670 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
1671
1672         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
1673         frame info.  Use frame_info's saved_regs instead of matching member
1674         in extra_frame_info throughout.
1675         (v850_frame_init_saved_regs): New function.
1676         (v850_init_extra_frame_info): Move most functionality into
1677         v850_frame_init_saved_regs().
1678         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
1679         (v850_frame_find_saved_regs): Remove declaration.
1680         (FRAME_FIND_SAVED_REGS): Remove definition.
1681         (v850_frame_init_saved_regs): Add declaration.
1682         (FRAME_INIT_SAVED_REGS): Add definition.
1683
1684 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
1685
1686         * v850-tdep.c: Begin multi-arch'ing v850.
1687         (v850_target_architecture_hook): Remove function.
1688         (v850_gdbarch_init): New function.  Add code previously in
1689         v850_target_architecture_hook().
1690         (_initialize_v850_tdep): Don't  set target_architecture_hook.
1691         Call register_gdbarch_init() instead.
1692
1693 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
1694
1695         * gdbtypes.h (struct cplus_struct_type): Remove args field.
1696         * hpread.c (hpread_read_struct_type): Remove assignments to args.
1697         (fixup_class_method_type): Likewise.
1698
1699 2002-05-15  Daniel Jacobowitz  <drow@mvista.com>
1700
1701         From Martin Pool <mbp@samba.org>:
1702         * gdbserver/server.c (gdbserver_usage): New function.
1703         (main): Call it.
1704
1705 2002-05-15  Jim Blandy  <jimb@redhat.com>
1706
1707         Add macro structures to GDB's symbol tables.  Nobody puts anything
1708         in them yet.
1709         * symtab.h (struct symtab): New member: `macro_table'.
1710         * buildsym.h (pending_macros): New global variable.
1711         * buildsym.c: #include "macrotab.h".
1712         (buildsym_init): Initialize `pending_macros'.
1713         (end_symtab): If we found macro information while reading a CU's
1714         debugging info, do build a symtab structure for it.  Make the
1715         symtab point to the macro information, and clear the
1716         `pending_macros' pointer which held it while we were reading the
1717         debug info.
1718         (really_free_pendings): Free any pending macro table.
1719         * objfiles.h (struct objfile): New member: `macro_cache'.
1720         * objfiles.c (allocate_objfile): Set allocate and free functions
1721         for the macro cache's objstack.
1722         (free_objfile): Empty the macro cache's obstack.
1723         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
1724         set new allocate and free functions for it.
1725         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
1726         free functions for the macro cache's objstack.  (Why is this
1727         function building its own objfile?)
1728         * symmisc.c (print_objfile_statistics): Print statistics on the
1729         macro bcache.
1730         * Makefile.in: Note that buildsym.o depends on macrotab.h.
1731
1732 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
1733
1734         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
1735         (REGISTER_U_ADDR): Delete definition.
1736         (arm_register_u_addr): Delete declaration.
1737
1738 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
1739
1740         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
1741         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
1742
1743 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
1744
1745         * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1746         stop_at -> stop_pc.
1747
1748 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
1749
1750         * regcache.c (register_valid): Revise comments refering to "Not
1751         available" and "unavailable".
1752         * frame.c (frame_register_read): Ditto.
1753         * findvar.c (value_of_register): Ditto.
1754
1755 2002-05-15  Andrew Cagney  <cagney@redhat.com>
1756
1757         * Makefile.in (remote_sim_h): Replace remote-sim_h.
1758         (remote-sim.o): Update dependencies.
1759         (d10v-tdep.o): Specify dependencies.
1760         (sim_d10v_h): Define.
1761
1762 2002-05-14  Jim Blandy  <jimb@redhat.com>
1763
1764         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
1765         * macrotab.c (macro_lookup_inclusion, find_definition,
1766         new_macro_table): Same.
1767         
1768         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
1769         not `! strcmp ()'.  This is a dubious improvement.
1770         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
1771
1772         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
1773         although it's not necessary, to avoid a warning.
1774
1775 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
1776
1777         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
1778         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
1779         TYPE_INSTANCE_FLAGS.
1780         (struct main_type): New.
1781         (struct type): Move most members to struct main_type.  Change
1782         cv_type and as_type to new type_chain member.  Add instance_flags.
1783         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
1784         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
1785         (finish_cv_type): Remove prototype.
1786         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
1787         Set TYPE_CHAIN.
1788         (alloc_type_instance): New function.
1789         (smash_type): New function.
1790         (make_pointer_type, make_reference_type, make_function_type)
1791         (smash_to_member_type, smash_to_method_type): Call smash_type.
1792         (make_qualified_type): New function.
1793         (make_type_with_address_space): Call make_qualified_type.
1794         (make_cv_type): Likewise.
1795         (finish_cv_type): Remove unnecessary function.
1796         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
1797         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
1798         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
1799         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
1800         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
1801         * hpread.c (hpread_read_struct_type): Likewise.
1802         * stabsread.c (read_struct_type): Likewise.
1803
1804 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
1805
1806         * configure.tgt: Add a catch all sh* target, for cases like
1807         sh[2,3,4]-elf and sh-hms.
1808
1809 2002-05-14  Keith Seitz  <keiths@redhat.com>
1810
1811         * event-loop.c (create_file_handler): Don't do anything but
1812         update data when we are given a fd which we are already
1813         monitoring.
1814
1815 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
1816
1817         * dwarf2cfi.c (context_cpy): Copy registers correctly.
1818         (update_context): Use __func__ in warnings.
1819         
1820 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
1821
1822         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
1823         and tcp_close to net_open and net_close.
1824         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
1825         using UDP if requested.  Don't try to disable Nagle on UDP
1826         sockets.
1827         * remote.c (remote_serial_open): New function.  Warn about UDP.
1828         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
1829
1830 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
1831
1832         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
1833
1834 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
1835
1836         * configure.tgt: Remove sh-hms target.
1837         * MAINTAINERS: Don't list sh-hms as a separate target.
1838
1839 2002-05-13  Jim Blandy  <jimb@redhat.com>
1840
1841         Add first preprocessor macro-expansion files.
1842         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1843         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1844         (splay_tree_h, macroexp_h, macrotab_h): New variable.
1845         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1846         (COMMON_OBS): Add macrotab.o, macroexp.o.
1847         (macroexp.o, macrotab.o): New rules.
1848
1849 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
1850
1851         * config/m88k/tm-m88k.h: Update copyright.
1852         (m88k_target_write_pc): Declare
1853         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
1854         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
1855         (SHIFT_INST_REGS): Update definition.
1856         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
1857         using old definition of TARGET_WRITE_PC.
1858         * regcache.c (generic_target_write_pc): Delete code handling
1859         NNPC_REGNUM.
1860         * gdbarch.sh (NNPC_REGNUM): Delete.
1861         * gdbarch.h, gdbarch.c: Regenerate.
1862
1863 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
1864
1865         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
1866         builtin reg number.
1867
1868 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
1869
1870         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
1871         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
1872         (gen_address_of, gen_struct_ref, gen_repeat): Use type
1873         access macros.
1874         * c-typeprint.c (cp_type_print_method_args): Likewise.
1875         (c_type_print_args): Likewise.
1876         * d10v-tdep.c (d10v_push_arguments): Likewise.
1877         (d10v_extract_return_value): Likewise.
1878         * expprint.c (print_subexp): Likewise.
1879         * gdbtypes.c (lookup_primitive_typename): Likewise.
1880         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
1881         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
1882         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
1883         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
1884         (TYPE_VECTOR): Likewise.
1885         * hpread.c (hpread_read_struct_type)
1886         (fix_static_member_physnames, fixup_class_method_type)
1887         (hpread_type_lookup): Likewise.
1888         * mdebugread.c (parse_symbol, parse_type): Likewise.
1889         * p-lang.c (is_pascal_string_type): Likewise.
1890         * valops.c (hand_function_call): Likewise.
1891         * x86-64-tdep.c (classify_argument): Likewise.
1892
1893         * hpread.c (hpread_read_function_type)
1894         (hpread_read_doc_function_type): Call replace_type.
1895         * dstread.c (create_new_type): Delete.
1896         (decode_dst_structure, process_dst_function): Call alloc_type.
1897         Use type access macros.
1898
1899 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
1900
1901         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
1902         the're not supported by the current architecture.
1903         (i387_fill_fxsave): Likewise.
1904
1905 2002-05-12  Fred Fish  <fnf@redhat.com>
1906
1907         * symfile.c (default_symfile_offsets): Arrange for uninitialized
1908         sect_index_xxx members to index the first slot in section_offsets
1909         if all of the section_offsets are zero.
1910
1911 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
1912
1913         * configure.tgt (sparc-*openbsd): Remove entry accidentially
1914         checked in with last change.
1915
1916 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
1917
1918         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
1919         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
1920         config.sub.
1921
1922 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
1923
1924         * Makefile.in: Update dependencies.
1925
1926 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
1927
1928         * language.c (local_hex_string_custom): Simplify.  Do not depend
1929         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
1930
1931         * memattr.c (mem_info_command): Replace calls to
1932         longest_local_hex_string and longest_local_hex_string_custom.
1933         * buildsym.c (make_blockvector): Ditto.
1934         * solib.c (info_sharedlibrary_command): Ditto.
1935         * tracepoint.c (tracepoints_info): Ditto.
1936         * symtab.c (print_msymbol_info): Ditto.
1937
1938         * language.c (local_hex_string): Delete.
1939         (local_hex_string_custom): Delete.
1940         (longest_local_hex_string): Rename to local_hex_string.
1941         (longest_local_hex_string_custom): Rename to
1942         local_hex_string_custom.
1943         * language.h (local_hex_string): Change parameter type to LONGEST.
1944         (local_hex_string_custom): Ditto.
1945         (longest_local_hex_string): Delete declaration.
1946         (longest_local_hex_string_custom): Ditto.
1947
1948         * solib.c: Update copyright.
1949         * memattr.c: Update copyright.
1950         
1951 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
1952
1953         * arch-utils.h (legacy_register_to_value): Declare.
1954         (legacy_value_to_register): Declare.
1955         (legacy_convert_register_p): Declare.
1956         * arch-utils.c (legacy_register_to_value): New function.
1957         (legacy_value_to_register): New function.
1958         (legacy_convert_register_p): New function.
1959
1960         * gdbarch.sh (REGISTER_TO_VALUE): Define.
1961         (VALUE_TO_REGISTER): Define.
1962         (CONVERT_REGISTER_P): Define.
1963         * gdbarch.h, gdbarch.c: Regenerate.
1964
1965         * valops.c (value_assign): Use CONVERT_REGISTER_P and
1966         VALUE_TO_REGISTER.
1967         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
1968         CONVERT_REGISTER_P.
1969
1970 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
1971             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1972
1973         * Makefile.in: Update dependencies for valops.c.
1974         * valops.c: Include "gdb_assert.h".
1975         (typecmp): Skip THIS parameter to methods.
1976         (find_method_list): Remove static_memfuncp argument,
1977         update callers.  Check for stub methods.
1978         (find_value_oload_method_list): Don't set *static_memfuncp.
1979         (find_overload_match): Don't check for stub methods.  Assert
1980         that methods are not stubbed.  Handle static methods.
1981         (value_find_oload_method_list): Remove static_memfuncp argument.
1982         * gdbtypes.c (check_stub_method): Do not add THIS pointer
1983         to the argument list for static stub methods.
1984         * value.h (value_find_oload_method_list): Update prototype.
1985
1986 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
1987
1988         * arch-utils.h (generic_register_size): Declare.
1989         (generic_register_raw_size, generic_register_virtual_size): Delete
1990         declarations.
1991         * arch-utils.c (generic_register_raw_size): Delete.
1992         (generic_register_size): New function.
1993         (generic_register_virtual_size): Delete.
1994
1995         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
1996         default generic_register_size.
1997         * gdbarch.h, gdbarch.c: Re-generate.
1998         
1999         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
2000         register_virtual_size.
2001         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2002         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2003
2004 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
2005
2006         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
2007         * gdbarch.h, gdbarch.c: Regenerate.
2008         * gnu-v3-abi.c: Update copyright.
2009         (vtable_address_point_offset): Update.
2010         (gnuv3_rtti_type): Update.
2011         (gnuv3_baseclass_offset): Update.
2012         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
2013         (init_fetch_link_map_offsets): Update.
2014         * remote.c (get_remote_state): Update.
2015         
2016 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
2017
2018         * TODO: Remove value_headof/value_from_vtable_info comment.
2019         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
2020         * values.c (value_headof, value_from_vtable_info): Delete.
2021         * value.h (value_from_vtable_info): Delete prototype.
2022
2023 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
2024
2025         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
2026         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
2027         $(gdb_regex_h).
2028         (gdb_assert_h): Define.
2029         (gdb_wait_h): Define.
2030         (gdb_regex_h): Define.
2031
2032 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
2033
2034         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2035         * linespec.c (find_methods): Handle GCC 3.x template constructors.
2036
2037 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2038
2039         * nbsd-tdep.c: Fix comment.
2040
2041 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2042
2043         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
2044         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
2045         (nbsd-tdep.o): New dependency list.
2046         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
2047         nbsd-tdep.h.
2048         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
2049         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2050         * nbsd-tdep.c: New file.
2051         * nbsd-tdep.h: New file.
2052         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
2053         nbsd-tdep.h.
2054         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
2055         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2056         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2057         * config/sh/nbsd.mt (TDEPFILES): Ditto.
2058
2059 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2060
2061         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
2062         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
2063         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
2064         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
2065         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
2066         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
2067
2068 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2069
2070         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
2071         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2072         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2073         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2074         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
2075         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2076         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
2077
2078 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2079
2080         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
2081         fetch_elfcore_registers to...
2082         * i386nbsd-tdep.c: ...here.
2083         (i386nbsd_use_struct_convention): Rename to...
2084         (i386nbsd_aout_use_struct_convention): ...this.
2085         (i386nbsd_supply_reg): New function.
2086         (i386nbsd_fill_reg): New function.
2087         (fetch_core_registers): Use i386nbsd_supply_reg.
2088         (fetch_elfcore_registers): Likewise.
2089         (_initialize_i386nbsd_tdep): New function.
2090         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
2091         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2092         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
2093         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
2094         (i386nbsd_aout_use_struct_convention): ...this.
2095
2096 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2097
2098         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
2099         (store_inferior_registers): Use shnbsd_fill_reg.
2100         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
2101         sh_nbsd_supply_register): Collapse into...
2102         (shnbsd_supply_reg): ...this.
2103         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
2104         (shnbsd_fill_reg): ...this.
2105         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
2106         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
2107         (fetch_core_registers): Use shnbsd_supply_reg.
2108         (fetch_elfcore_registers): Use shnbsd_supply_reg.
2109         (sh_nbsd_core_fns): Rename to...
2110         (shnbsd_core_fns): ...this.
2111         (sh_nbsd_elfcore_fns): Rename to...
2112         (shnbsd_elfcore_fns): ...this.
2113         (sh_nbsd_init_abi): Rename to...
2114         (shnbsd_init_abi): ...this.
2115         (_initialize_sh_nbsd_tdep): Rename to...
2116         (_initialize_shnbsd_tdep): ...this.
2117         * shnbsd-tdep.h (sh_nbsd_supply_registers,
2118         sh_nbsd_supply_register, sh_nbsd_fill_registers,
2119         sh_nbsd_fill_register): Remove prototypes.
2120         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
2121
2122 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2123
2124         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
2125         (i387-nat.o): Delete dependency list.
2126         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
2127         (x86-64-linux-nat.o): Likewise.
2128         * i387-nat.c: Delete file, moving contents to...
2129         * i387-tdep.c: ...here.
2130         * i387-nat.h: Rename...
2131         * i387-tdep.h: ...to this.
2132         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
2133         * i386-linux-nat.c: Likewise.
2134         * i386bsd-nat.c: Likewise.
2135         * i386gnu-nat.c: Likewise.
2136         * i386nbsd-nat.c: Likewise.
2137         * i386v4-nat.c: Likewise.
2138         * x86-64-linux-nat.c: Likewise.
2139         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
2140         * config/i386/go32.mh (NATDEPFILES): Likewise.
2141         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
2142         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
2143         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
2144         * config/i386/linux.mh (NATDEPFILES): Likewise.
2145         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
2146         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2147         * config/i386/obsd.mh (NATDEPFILES): Likewise.
2148         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2149
2150 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2151
2152         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
2153         (alphanbsd-nat.o): Remove dependency list.
2154         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
2155         * alphanbsd-nat.c: Delete.  Contents moved to...
2156         * alphanbsd-tdep.c: ...here.
2157         (_initialize_alphanbsd_tdep): Register core functions.
2158         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
2159
2160 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2161
2162         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
2163         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
2164         (alphanbsd-nat.o): Likewise.
2165         (alphabsd-tdep.o): New dependency list.
2166         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
2167         (fill_gregset): Use alphabsd_fill_reg.
2168         (supply_fpregset): Use alphabsd_supply_fpreg.
2169         (fill_fpregset): Use alphabsd_fill_fpreg.
2170         (fetch_inferior_registers): Use struct reg and struct fpreg
2171         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
2172         and alphabsd_supply_fpreg.
2173         (store_inferior_registers): Use struct reg and struct fpreg
2174         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
2175         and alphabsd_fill_fpreg.
2176         * alphabsd-tdep.c: New file.
2177         * alphabsd-tdep.h: New file.
2178         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
2179         (fetch_elfcore_registers): Use alphabsd_supply_reg and
2180         alphabsd_supply_fpreg.
2181         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
2182         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2183
2184 2002-05-11  Eric Christopher  <echristo@redhat.com>
2185
2186         * mips-tdep.c (mips_double_register_type): Fix thinko.
2187         (mips_single_register_type): Ditto.
2188         * MAINTAINERS: Add self.
2189
2190 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
2191
2192         * i387-nat.c (i387_supply_register, i387_fill_fsave,
2193         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
2194         right thing on architectures with different endianness and/or
2195         integer sizes.
2196
2197 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
2198
2199         From Christian Limpach <chris@Pin.LU>
2200         * configure.in: Change sed expression which comments out
2201         NATDEPFILES to also comment out continuation lines.
2202         * configure: Regenerate.
2203
2204 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
2205
2206         * sh-tdep.c: Clean up code erroneously reintroduced by previous
2207         big patch.
2208
2209 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
2210
2211         * sh-tdep.c: Include correct file.
2212
2213 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
2214
2215         New support for sh64-elf (sh5) target.
2216
2217         * configure.tgt: For sh64-elf target, default to sh-elf.
2218
2219         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
2220         (struct gdbarch_tdep): Add new fields for new registers and ABI
2221         info.
2222
2223         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
2224         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
2225         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
2226         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
2227         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
2228         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
2229         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
2230         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
2231         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
2232         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
2233         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
2234         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
2235         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
2236         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
2237         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
2238         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
2239         sh64_get_gdb_regnum, sh64_media_reg_base_num,
2240         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
2241         sign_extend, sh64_nofp_frame_init_saved_regs,
2242         sh64_init_extra_frame_info, sh64_get_saved_register,
2243         sh64_extract_struct_value_address, sh64_pop_frame,
2244         sh64_push_arguments, sh64_extract_return_value,
2245         sh64_store_return_value, sh64_show_media_regs,
2246         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
2247         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
2248         sh_sh64_register_virtual_type,
2249         sh_sh64_register_convert_to_virtual,
2250         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
2251         sh64_register_read, sh64_pseudo_register_write,
2252         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
2253         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
2254         sh64_do_pseudo_register, sh_compact_do_registers_info,
2255         sh64_do_registers_info, sh_gdbarch_init): New functions.
2256
2257 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
2258
2259         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2260
2261 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
2262
2263         * linespec.c (decode_line_1): Check for a double quote after
2264         a filename correctly.
2265
2266 2002-05-10  Jim Blandy  <jimb@redhat.com>
2267
2268         Properly track the size of the current objfile's .debug_line section.
2269         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2270         (DWARF_LINE_SIZE): New macro.
2271         (dwarf2_build_psymtabs_hard): Record the line section's size in
2272         the partial symbol table.
2273         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2274         symbol table.
2275
2276 2002-05-10  Petr Sorfa  <petrs@caldera.com>
2277
2278         * ia64-tdep.c: Handle breakpoints on L instruction type
2279         in MLX instruction bundle by moving the breakpoint to
2280         the third slot (X instruction type) as L holds only data.
2281
2282 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
2283
2284         * dbxread.c (discarding_local_symbols_complaint): New complaint.
2285         (process_one_symbol): Complain about discarding local symbols
2286         due to a misplaced N_LBRAC entry.
2287
2288 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
2289
2290         From Daniel Berlin <dan@cgsoftware.com>
2291         * linespec.c (find_toplevel_char): '<' and '>' also increase and
2292         decrease the depth we are at, in the case of templates.
2293
2294 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
2295
2296         * mips-tdep.c (mips_float_register_type): New function.
2297         (mips_double_register_type): New function.
2298         (mips_print_register): Use them.
2299         (do_fp_register_row): Likewise.
2300
2301 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
2302
2303         * signals/signals.c (signals): Remove conditional compilation around
2304         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
2305         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
2306
2307 2002-05-09  Michael Snyder  <msnyder@redhat.com>
2308
2309         * remote-rdp.c (remote_rdp_can_run): Remove.
2310
2311 2002-05-09  Tom Tromey  <tromey@redhat.com>
2312
2313         * jv-valprint.c (java_val_print): Handle `char' as a special case
2314         of TYPE_CODE_INT.
2315
2316 2002-05-09  Michael Snyder  <msnyder@redhat.com>
2317
2318         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
2319         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
2320         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
2321         str r(0123),[sp,#nn].
2322         (arm_skip_prologue): Ditto.  Also make disassembly
2323         order-independent by placing it in a loop.
2324
2325 2002-05-06  Michael Snyder  <msnyder@redhat.com>
2326
2327         * stabsread.c (read_type): Add recognition for new attribute:
2328         "@V;" means that an array type is actually a vector.
2329         This is analogous to the vector flag that's been added to dwarf2.
2330
2331 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
2332
2333         * i386-tdep.h (i386_abi): New enum.
2334         (struct gdbarch_tdep): Replace os_ident member with abi.
2335         (i386_gdbarch_register_os_abi): New prototype.
2336         * i386-tdep.c (i386_abi_names): New array.
2337         (process_note_abi_tag_sections): Removed.
2338         (process_note_sections): New function.
2339         (i386_elf_abi_from_note, i386_elf_abi): New functions.
2340         (struct i386_abi_handler): New struct.
2341         (i386_abi_handler_list): New variable.
2342         (i386_gdbarch_register_os_abi): New function.
2343         (i386_gdbarch_init): Adapt for the changes given above.
2344
2345 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
2346
2347         * gregset.h: Say "GNU/Linux".
2348
2349 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
2350
2351         * gdbtypes.c : Add new builtin type for 64 bit vectors.
2352         (build_gdbtypes): Build builtin_type_v2_float.
2353         (_initialize_gdbtypes): Register new builtin type.
2354
2355 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
2356
2357         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
2358         (clear_gdbarch_swap): New function.
2359         (initialize_non_multiarch): Call.
2360         (gdbarch_update_p): Before calling init(), swap out and clear the
2361         existing architecture.
2362         * gdbarch.c: Regenerate.
2363
2364 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
2365
2366         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
2367         alphanbsd-tdep.c.
2368
2369 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
2370
2371         * sh-nbsd-nat.c: Rename to...
2372         * shnbsd-nat.c: ...this.
2373         * sh-nbsd-tdep.c: Rename to...
2374         * shnbsd-tdep.c: ...this.
2375         * sh-nbsd-tdep.h: Rename to...
2376         * shnbsd-tdep.h: ...this.
2377         * config/sh/nbsd.mh: Use shnbsd-nat.o.
2378         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
2379
2380 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
2381
2382         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
2383         concatenation for command help messages.
2384
2385 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
2386
2387         * NEWS: Note new sh*-*-netbsdelf* configuration.
2388         * configure.host: Set gdb_host_cpu to sh for all sh*.
2389         (sh*-*-netbsdelf*): New host.
2390         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
2391         (sh*-*-netbsdelf*): New target.
2392         * sh-nbsd-nat.c: New file.
2393         * sh-nbsd-tdep.c: New file.
2394         * sh-nbsd-tdep.h: New file.
2395         * config/sh/nbsd.mh: New file.
2396         * config/sh/nbsd.mt: New file.
2397         * config/sh/nm-nbsd.h: New file.
2398         * config/sh/tm-nbsd.h: New file.
2399
2400 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
2401
2402         * sh-tdep.c (sh_osabi_names): Declare.
2403         (process_note_abi_tag_sections): New function.
2404         (get_elfosabi): Ditto.
2405         (sh_gdbarch_register_os_abi): Ditto.
2406         (sh_dump_tdep): Ditto.
2407         _initialize_sh_tdep): Use gdbarch_register to register
2408         sh_gdbarch_init and sh_dump_tdep.
2409         * config/sh/tm-sh.h (sh_osabi): Declare.
2410         (gdbarch_tdep): Add sh_osabi and osabi_name members.
2411
2412 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
2413
2414         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
2415         (thumb_scan_prologue): Ditto.
2416         (arm_find_callers_reg): Ditto.
2417         (arm_frame_chain): Ditto.
2418         (arm_init_extra_frame_info): Ditto.
2419         (arm_frame_saved_pc): Ditto.
2420         (arm_pop_frame): Ditto.
2421         (arm_push_return_address): New function.
2422         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
2423         call_dummy_location, call_dummy_breakpoint_offset_p,
2424         call_dummy_breakpoint_offset, call_dummy_p,
2425         call_dummy_stack_adjust_p, call_dummy_words,
2426         sizeof_call_dummy_words, call_dummy_start_offset,
2427         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
2428         call_dummy_address, push_return_address and push_dummy_frame for
2429         generic dummy frames.
2430
2431 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
2432
2433         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
2434         size computation for alloca.
2435         (sh_fp_frame_init_saved_regs): Likewise.
2436
2437 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
2438
2439         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
2440         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
2441         * arm-tdep.c (arm_store_return_value): Use them.
2442         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
2443         * remote-rdp.c (remote_rdp_fetch_register): Use
2444         ARM_MAX_REGISTER_RAW_SIZE.
2445         (remote_rdp_store_register): Likewise.
2446
2447 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
2448
2449         * dwarf2cfi.c: Code cleanup, removed unused variables,
2450         added default labels to switch {} statements.
2451         * x86-64-tdep.c: Ditto.
2452         * x86-64-linux-nat.c: Ditto.
2453
2454 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
2455
2456         * solib.h: Protect against multiple inclusion.
2457
2458 2002-05-06  Jim Blandy  <jimb@redhat.com>
2459
2460         Add first preprocessor macro-expansion files.
2461         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2462         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2463         (splay_tree_h, macroexp_h, macrotab_h): New variable.
2464         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2465         (COMMON_OBS): Add macrotab.o, macroexp.o.
2466         (macroexp.o, macrotab.o): New rules.
2467
2468         Separate the job of reading the line number info statement program
2469         header (...expialidocious) out into its own function.
2470         * dwarf2read.c (struct line_head, struct filenames, struct
2471         directories): Replace with...
2472         (struct line_header): New structure, containing the full
2473         contents of the statement program header, including the
2474         include directory and file name tables.
2475         (read_file_scope): If we have line number info, instead of just
2476         calling dwarf_decode_lines to do all the work, call
2477         dwarf_decode_line_header first to get a `struct line_header'
2478         containing the data in the statement program header, and then
2479         pass that to dwarf_decode_lines, which will pick up where that
2480         left off.  Be sure to clean up the `struct line_header' object.
2481         (dwarf_decode_line_header, free_line_header, add_include_dir,
2482         add_file_name): New functions.
2483         (dwarf_decode_lines): Move all the code to read the statement
2484         program header into dwarf_decode_line_header.  Take the line
2485         header it built as the first argument, instead of the offset to
2486         the compilation unit's line number info.  Use the new `struct
2487         line_header' type instead of the old structures.  No need to do
2488         cleanups here now, since we don't allocate anything.
2489         (dwarf2_statement_list_fits_in_line_number_section,
2490         dwarf2_line_header_too_long): New complaints.
2491
2492 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
2493
2494         * gdbtypes.c (init_vector_type): New function.
2495         (build_builtin_type_vec128): Simplify the representation of SIMD
2496         registers.
2497         (build_gdbtypes): Initialize new builtin vector types.
2498         (_initialize_gdbtypes): Register new vector types with gdbarch.
2499         (builtin_type_v4_float, builtin_type_v4_int32,
2500         builtin_type_v8_int16, builtin_type_v16_int8,
2501         builtin_type_v2_int32, builtin_type_v4_int16,
2502         builtin_type_v8_int8): New (renamed) SIMD types.
2503
2504 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
2505
2506         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
2507         (i387_fill_fxsave): Likewise.
2508
2509 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
2510
2511         * alpha-tdep.c (alpha_extract_return_value): Don't use
2512         non-constant array size in prototype.
2513
2514 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
2515
2516         From Brian Taylor <briant at model dot com>:
2517         * ui-out.c (ui_out_field_core_addr): Use the function
2518         longest_local_hex_string_custom'to format addresses > 32 bits
2519         wide.
2520
2521         * ui-out.c (ui_out_field_core_addr): Update comment.
2522
2523 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
2524
2525         * stack.c (select_and_print_frame): Make static.  Delete the
2526         parameter `level'.
2527         (func_command): Update call.
2528         (select_frame_command): Delete code computing the frame level.
2529         * frame.h (select_and_print_frame): Delete declaration.
2530
2531 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
2532
2533         * sparc-tdep.c (sparc_get_saved_register): Comment why
2534         get_prev_frame call is safe.
2535
2536 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
2537
2538         * frame.h (select_frame): Delete level parameter.
2539         * stack.c (select_frame): Update.  Use frame_relative_level to
2540         obtain the frame's level.
2541         (select_and_print_frame): Update call.
2542         (select_frame_command): Ditto.
2543         (up_silently_base): Ditto.
2544         (down_silently_base): Ditto.
2545         * ocd.c (ocd_start_remote): Ditto.
2546         * remote-rdp.c (remote_rdp_open): Ditto.
2547         * remote-mips.c (mips_initialize): Ditto.
2548         (common_open): Ditto.
2549         * remote-e7000.c (e7000_start_remote): Ditto.
2550         * m3-nat.c (select_thread): Ditto.
2551         * hppa-tdep.c (child_get_current_exception_event): Ditto.
2552         (child_get_current_exception_event): Ditto.
2553         * varobj.c (varobj_create): Ditto.
2554         (varobj_update): Ditto.
2555         (c_value_of_root): Ditto.
2556         * tracepoint.c (finish_tfind_command): Ditto.
2557         * corelow.c (core_open): Ditto.
2558         * arch-utils.c (generic_prepare_to_proceed): Ditto.
2559         * thread.c (info_threads_command): Ditto.
2560         (switch_to_thread): Ditto.
2561         * infrun.c (normal_stop): Ditto.
2562         (restore_selected_frame): Ditto.
2563         (restore_inferior_status): Ditto.
2564         * breakpoint.c (insert_breakpoints): Ditto.
2565         (watchpoint_check): Ditto.
2566         (bpstat_stop_status): Ditto.
2567         (do_enable_breakpoint): Ditto.
2568         * blockframe.c (flush_cached_frames): Ditto.
2569         (reinit_frame_cache): Ditto.
2570
2571 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
2572
2573         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
2574         maintainer.
2575
2576 2002-05-04  Jim Blandy  <jimb@redhat.com>
2577
2578         * gdbtypes.c (replace_type): Doc fix.
2579
2580 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
2581
2582         * valprint.c (strcat_longest): Delete commented out function.
2583         Update copyright.
2584
2585 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
2586
2587         * MAINTAINERS: Mark a29k as deleted.
2588         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
2589         Move new configurations to the top.
2590         * configure.tgt: Remove a29k.
2591         * config/a29k/tm-vx29k.h: Delete.
2592         * config/a29k/vx29k.mt: Delete.
2593         * config/a29k/tm-a29k.h: Delete.
2594         * config/a29k/a29k-udi.mt: Delete.
2595         * config/a29k/a29k.mt: Delete.
2596         * a29k-tdep.c: Delete.
2597         * remote-udi.c: Delete.
2598         * remote-mm.c: Delete.
2599         * remote-eb.c: Delete.
2600         * remote-adapt.c: Delete.
2601         * Makefile.in: Remove obsolete code.
2602         * gdbserver/Makefile.in: Ditto.
2603         * config/s390/s390x.mt: Ditto.
2604         * config/s390/s390.mt: Ditto.
2605         * config/sparc/sparclynx.mh: Ditto.
2606         * config/sparc/linux.mh: Ditto.
2607         * config/pa/hppaosf.mh: Ditto.
2608         * config/pa/hppabsd.mh: Ditto.
2609         * config/ns32k/nbsd.mt: Ditto.
2610         * config/mips/vr5000.mt: Ditto.
2611         * config/m68k/sun3os4.mh: Ditto.
2612         * config/m68k/nbsd.mt: Ditto.
2613         * config/m68k/m68klynx.mh: Ditto.
2614         * config/m32r/m32r.mt: Ditto.
2615         * config/i386/x86-64linux.mt: Ditto.
2616         * config/i386/nbsdelf.mt: Ditto.
2617         * config/i386/nbsd.mt: Ditto.
2618         * config/i386/i386lynx.mh: Ditto.
2619
2620 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
2621
2622         * target.c (debug_print_register): New function.  Handle oversize
2623         registers.
2624         (debug_to_fetch_registers): Call.
2625         (debug_to_store_registers): Call.
2626
2627 2002-05-03  Jim Blandy  <jimb@redhat.com>
2628
2629         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
2630         (read_type): Doc fix.
2631         * gdbtypes.c (replace_type): Doc fix.
2632
2633         * stabsread.c (multiply_defined_struct): New complaint.
2634         (read_struct_type): If the type we were passed isn't empty, or
2635         incomplete, don't read the new struct type into it; complain,
2636         and return the original type unchanged.  Take a new `type_code'
2637         argument, which is the type code for the new type.
2638         (read_type): Rather than storing the type's type code here, pass
2639         it as an argument to read_struct_type, and let that take care of
2640         storing it.  That way, we don't overwrite the original type code,
2641         so read_struct_type can use it to decide whether we're overwriting
2642         something we shouldn't.
2643         (complain_about_struct_wipeout): New function.
2644
2645 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
2646
2647         * gdbarch.sh: Assert that gdbarch is non-NULL.
2648         * gdbarch.c: Regenerate.
2649
2650 2002-05-03  Jason Merrill  <jason@redhat.com>
2651
2652         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
2653         and return NULL.
2654
2655 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
2656
2657         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
2658         (x86_64_dwarf2gdb_regno_map_length),
2659         (x86_64_dwarf2_reg_to_regnum): Added.
2660         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
2661         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
2662         (_initialize_x86_64_tdep): Synced with the change above.
2663         (x86_64_skip_prologue): Reformulated message.
2664
2665 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
2666
2667         * f-exp.y: Also use new prev_lexptr variable
2668         to improve error reporting. Based on Michael Snyder
2669         2002-04-24 dated patch to c-exp.y.
2670         * jv-exp.y: Likewise.
2671         * m2-exp.y: Likewise.
2672
2673 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
2674
2675         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
2676         we are dealing with vectors.
2677
2678 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
2679
2680         * config/m68k/tm-nbsd.h: Obvious fix,
2681         correct machine name.
2682
2683 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
2684
2685         * p-typeprint.c (pascal_type_print_base): Add support
2686         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
2687
2688 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
2689
2690         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
2691         for fondamental pascal 'char' type.
2692
2693 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
2694
2695         * p-lang.h (is_pascal_string_type): Declaration changed,
2696         new sixth argument of type char ** added.
2697         * p-lang.c (is_pascal_string_type): Implementation
2698         changed. Args length_pos, length_size, string_pos, char_size
2699         can now be NULL. New argument arrayname set to the field
2700         name of the char array. Return value set to char array
2701         field index plus one.
2702         * p-valprint.c (pascal_val_print): Adapt to new declaration of
2703         is_pascal_string_type function.
2704
2705 2002-05-02  Andrew Cagney  <cagney@redhat.com>
2706
2707         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
2708         <cagney@redhat.com> change.
2709         * gdbarch.c: Regenerate.
2710
2711 2002-05-02  Andrew Cagney  <cagney@redhat.com>
2712
2713         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
2714         before probing for a new one.  Detect errorenous gdbarch_init
2715         functions.
2716         * gdbarch.c: Regenerate.
2717
2718 2002-05-01  Andrew Cagney  <cagney@redhat.com>
2719
2720         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
2721         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
2722         * config/v850/tm-v850.h: Ditto.  Update copyright.
2723
2724 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
2725
2726         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
2727         current_gdbarch.
2728
2729 2002-04-30  Michael Snyder  <msnyder@redhat.com>
2730
2731         * arm-tdep.c: Whitespace clean-ups.
2732         (arm_skip_prologue): Fix thinko; two lines
2733         should have been removed as part of 4/24 change.
2734
2735 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
2736
2737         * rs6000-tdep.c: Added comment describing how fpscr register
2738         numbers were chosen.
2739
2740 2002-04-30  Michael Snyder  <msnyder@redhat.com>
2741
2742         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2743
2744 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
2745
2746         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
2747         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
2748         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
2749
2750 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
2751
2752         From Louis Hamilton <hamilton@redhat.com>:
2753         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
2754         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
2755         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
2756         not bfd-private xcoff data, to determine wordsize.
2757         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
2758
2759 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
2760
2761         GDB 5.2 released from 5.2 branch.
2762
2763 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
2764
2765         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
2766         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2767         (x86_64_register_info_table): Added comments with register numbers.
2768
2769 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
2770
2771         * rs6000-tdep.c (rs6000_extract_return_value,
2772         rs6000_store_return_value): Handle returning vectors.
2773         (rs6000_gdbarch_init): Use
2774         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
2775         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2776         New function.
2777         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
2778         vectors.
2779         (ppc_sysv_abi_push_arguments): Handle vector parameters.
2780         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
2781
2782 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
2783
2784         * hpread.c (hpread_psymtab_to_symtab_1,
2785         hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
2786         with fprintf_unfiltered (gdb_stderr,...).
2787
2788 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
2789
2790         * remote-array.c (printf_monitor, write_monitor,
2791         array_insert_breakpoint, array_remove_breakpoint ):
2792         Replace fprintf (stderr,...
2793         with fprintf_unfiltered (gdb_stderr,....
2794         * remote-es.c: Likewise.
2795         * remote-os9k.c: Likewise.
2796         * remote-st.c: Likewise.
2797
2798 2002-04-28  Andreas Schwab  <schwab@suse.de>
2799
2800         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
2801         linux-proc.o and gcore.o.
2802
2803 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
2804
2805         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
2806         code without frame pointers.
2807
2808 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
2809
2810         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
2811         ON_STACK is needed.
2812
2813 2002-04-26  Ben Elliston  <bje@redhat.com>
2814
2815         * target.c (do_xfer_memory): Correct reference to the new option
2816         "trust-readonly-sections".
2817
2818 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
2819
2820         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
2821         * gdbtypes.c (recursive_dump_type): Output the vector flag.
2822         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
2823         vectors.
2824         (read_array_type): Record the fact that this array type is really a
2825         vector (i.e. are passed in by value).
2826
2827 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
2828
2829         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
2830         * alpha-tdep.c (alpha_sigcontext_addr): New function.
2831         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
2832         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
2833         * alpha-linux-tdep.c: Include frame.h.
2834         (alpha_linux_sigcontext_addr): New function.
2835         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
2836         alpha_linux_sigcontext_addr.
2837         * alpha-osf1-tdep.c: Include gdbcore.h.
2838         (alpha_osf1_sigcontext_addr): New function.
2839         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
2840         alpha_osf1_sigcontext_addr.
2841         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
2842         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
2843
2844 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
2845
2846         * stack.c (selected_frame_level):
2847         (select_frame): Do not set selected_frame_level.
2848         * frame.h (selected_frame_level): Delete declaration.
2849
2850 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
2851
2852         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
2853         convert_from_func_ptr-addr when AIX / PowerOpen.
2854
2855 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
2856
2857         * valops.c (hand_function_call): Call
2858         generic_save_call_dummy_addr.
2859         * frame.h (generic_save_call_dummy_addr): Declare.
2860         * blockframe.c (struct dummy_frame): Add fields call_lo and
2861         call_hi.
2862         (generic_find_dummy_frame): Check for PC in range call_lo to
2863         call_hi instead of entry_point_address.
2864         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
2865         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
2866         (generic_save_call_dummy_addr): New function.
2867
2868 2002-04-24  David S. Miller  <davem@redhat.com>
2869
2870         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
2871         sparc_skip_prologue.
2872         (sparc_skip_prologue): Kill frameless_p arg, and use line number
2873         information to find prologue when possible.
2874         (sparc_prologue_frameless_p): Call examine_prologue directly.
2875         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
2876         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
2877         second argument.
2878         (SKIP_PROLOGUE): Likewise.
2879
2880 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
2881
2882         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
2883         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
2884         indicate that the condition it was testing is always true.
2885         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
2886         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2887         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2888
2889 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
2890
2891         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
2892         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
2893         tdep->jb_pc and tdep->jb_elt_size.
2894         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
2895         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
2896         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2897         * alpha-nat.c (get_longjmp_target): Remove.
2898         (JB_ELEMENT_SIZE): Ditto.
2899         (JB_PC): Ditto.
2900         * alpha-tdep.c (alpha_get_longjmp_target): New function.
2901         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
2902         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
2903         to alpha_get_longjmp_target.
2904         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
2905         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
2906         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
2907
2908 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
2909
2910         * README: Update to GDB 5.2.
2911
2912 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
2913
2914         * gdbarch.sh (LC_ALL): Set to `c'.
2915
2916 2002-04-25  Theodore A. Roth  <troth@verinet.com>
2917
2918         * avr-tdep.c: Ran through gdb_indent.sh.
2919
2920 2002-04-25  Theodore A. Roth  <troth@verinet.com>
2921
2922         * MAINTAINERS: Add myself as AVR maintainer.
2923         * NEWS: Note new target avr.
2924
2925 2002-04-25  Theodore A. Roth  <troth@verinet.com>
2926
2927         * Makefile.in: Add support for AVR target.
2928         * configure.tgt: Add support for AVR target.
2929         * avr-tdep.c: New file
2930         * config/avr/avr.mt: New file.
2931
2932 2002-04-25  Theodore A. Roth  <troth@verinet.com>
2933
2934         * MAINTAINERS: Add myself to write-after-approval.
2935
2936 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
2937
2938         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
2939         with fprintf_unfiltered (gdb_stderr,....
2940
2941 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
2942
2943         Fix PR gdb/508.
2944         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
2945
2946 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
2947
2948         * p-exp.y: Also use new prev_lexptr variable
2949         to improve error reporting. Based on Michael Snyder
2950         2002-04-24 dated patch to c-exp.y.
2951
2952 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
2953
2954         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
2955         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
2956         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
2957         to 0.
2958         * config/alpha/tm-alpha.h: Remove forward decls of struct type
2959         and struct value.
2960         (FUNCTION_START_OFFSET): Remove.
2961         (BREAKPOINT): Ditto.
2962
2963 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
2964
2965         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
2966         * NEWS: Ditto.
2967
2968 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
2969
2970         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
2971         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
2972         alpha_linux_pc_in_sigtramp.
2973         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
2974         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
2975         alpha_osf1_pc_in_sigtramp.
2976         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
2977         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
2978         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2979         alphafbsd_pc_in_sigtramp.
2980         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
2981         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2982         alphanbsd_pc_in_sigtramp.
2983         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
2984         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
2985
2986 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
2987
2988         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2989
2990 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
2991
2992         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
2993         alphanbsd-tdep.c.
2994         (alphanbsd-nat.o): New dependency list.
2995         (alphanbsd-tdep.o): Ditto.
2996         * NEWS: Note new native NetBSD/alpha configuration.
2997         * alphanbsd-nat.c: New file.
2998         * alphanbsd-tdep.c: Ditto.
2999         * configure.host (alpha*-*-netbsd*): New host.
3000         * configure.tgt (alpha*-*-netbsd*): New target.
3001         * config/alpha/nbsd.mh: New file.
3002         * config/alpha/nbsd.mt: Ditto.
3003         * config/alpha/nm-nbsd.h: Ditto.
3004         * config/alpha/tm-nbsd.h: Ditto.
3005
3006 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
3007
3008         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
3009         (alpha-osf1-tdep.o): New dependency list.
3010         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
3011         and skip_sigtramp_frame members.
3012         * alpha-linux-tdep.c: Include gdbcore.h.
3013         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
3014         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
3015         * alpha-osf1-tdep.c: New file.
3016         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
3017         alpha-osf1-dep.c.
3018         (alpha_frame_past_sigtramp_frame): New function.
3019         (alpha_dynamic_sigtramp_offset): Ditto.
3020         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
3021         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
3022         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
3023         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
3024         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
3025         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
3026         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
3027         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
3028         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
3029         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
3030         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
3031         to find_solib_trampoline_target.
3032         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
3033         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
3034         (SKIP_TRAMPOLINE_CODE): Remove.
3035         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3036         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3037         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3038         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3039         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
3040         (PROC_SIGTRAMP_MAGIC): Ditto.
3041         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3042         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3043         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3044         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3045         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3046
3047 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
3048
3049         * NEWS: Note that Alpha targets are now multi-arch.
3050
3051 2002-04-24  Michael Snyder  <msnyder@redhat.com>
3052
3053         * parser-defs.h (prev_lexptr): New external variable.
3054         * parse.c (parse_exp_1): Set prev_lexptr to null before
3055         calling the language-specific parser.
3056         * c-exp.y (yylex): Set prev_lexptr to start of current token.
3057         (yyerror): Use prev_lexptr in error reporting.
3058
3059 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
3060
3061         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
3062         * gregset.h: If FILL_FPXREGSET is defined, provide
3063         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
3064         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
3065         is defined, call fill_fpxregset.
3066
3067 2002-04-24  Roland McGrath  <roland@frob.com>
3068
3069         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
3070         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
3071         (supply_gregset, supply_fpregset): New functions.
3072
3073         * gnu-nat.c (gnu_find_memory_regions): New function.
3074         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
3075         (gnu_xfer_memory): Add a cast.
3076
3077 2002-04-24  Michael Snyder  <msnyder@redhat.com>
3078
3079         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
3080         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
3081         of argument regs ("str r(0123), [r11, #-nn"]).
3082         (arm_skip_prologue): Better handling for frameless functions.
3083         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
3084         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
3085
3086 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
3087
3088         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
3089         NUM_PSEUDO_REGS can be used.
3090
3091 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
3092
3093         * arch-utils.h: Update copyright.
3094
3095         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
3096         * gdbarch.h, gdbarch.c: Re-generate.
3097
3098         * inferior.h (IN_SIGTRAMP): Delete definition.
3099         * arch-utils.c (legacy_pc_in_sigtramp): New function.
3100         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
3101
3102         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
3103         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
3104         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
3105         (find_proc_framesize): Ditto.
3106         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
3107         (alpha_init_extra_frame_info): Ditto.
3108         * infrun.c (handle_inferior_event): Ditto.
3109         (handle_inferior_event): Ditto.
3110         (check_sigtramp2): Ditto.
3111         * blockframe.c (create_new_frame): Ditto.
3112         (get_prev_frame): Ditto.
3113         * ppc-linux-tdep.c: Update comments.
3114         * i386-linux-tdep.c: Update comments.
3115         * breakpoint.c (bpstat_what): Update comment.
3116
3117 2002-04-24  Michal Ludvig  <mludvig@suse.cz>
3118
3119         * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
3120         (regsets_store_inferior_registers): Removed cast to int from
3121         ptrace() calls.
3122         * gdbserver/regcache.h: Added declaration of struct inferior_info.
3123
3124 2002-04-24  David S. Miller  <davem@redhat.com>
3125
3126         * i960-tdep.c (register_in_window_p): New function.
3127         (i960_find_saved_register): Use it instead of
3128         REGISTER_IN_WINDOW_P.
3129         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
3130
3131         * symtab.h (find_stab_function_addr): Kill extern.
3132         * minsyms.c (find_stab_function_addr): Remove from here...
3133         * dbxread.c: ... to here, and mark it static.
3134
3135 2002-04-20  David S. Miller  <davem@redhat.com>
3136
3137         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
3138         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
3139
3140 2002-04-21  David S. Miller  <davem@redhat.com>
3141
3142         * remote-vxsparc.c (vx_read_register): Fix typo, we want
3143         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
3144         (vx_write_register): Likewise.
3145
3146 2002-04-23  J. Brobecker  <brobecker@gnat.com>
3147
3148         * source.c (is_regular_file): New function.
3149         (openp): Check wether file to open is a regular file
3150         to avoid opening directories.
3151
3152 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3153
3154         * findvar.c (extract_signed_integer): Cast printf argument
3155         to suppress format warning.
3156         (extract_unsigned_integer): Likewise.
3157         * infcmd.c (registers_info): Likewise.
3158         * top.c (get_prompt_1): Likewise.
3159         * valops.c (value_assign): Likewise.
3160         * valprint.c (print_decimal): Likewise.
3161
3162 2002-04-22  H.J. Lu  (hjl@gnu.org)
3163
3164         * c-exp.y (typebase): Support
3165
3166         [long|long long|short] [signed|unsigned] [int|]
3167
3168         and
3169
3170         signed [long|long long|short] int
3171
3172 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3173
3174         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
3175         and vax-tdep.h.
3176         * vax-tdep.h: New file.
3177         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
3178         Make several routines static.
3179         (vax_get_saved_register): New function.
3180         (vax_gdbarch_init): New function.
3181         (_initialize_vax_tdep): Register vax_gdbarch_init.
3182         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
3183         Remove macros now under the control of gdbarch.
3184
3185 2002-04-22  Michael Snyder  <msnyder@redhat.com>
3186
3187         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
3188         Some whitespace and coding standards tweaks.
3189
3190 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3191
3192         * vax-tdep.c: Include regcache.h.
3193         (vax_call_dummy_words): New.
3194         (sizeof_vax_call_dummy_words): New.
3195         (vax_fix_call_dummy): New function.
3196         (vax_saved_pc_after_call): Ditto.
3197         * config/vax/tm-vax.h: Don't include regcache.h.
3198         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
3199         (CALL_DUMMY): Remove.
3200         (CALL_DUMMY_WORDS): Define.
3201         (SIZEOF_CALL_DUMMY_WORDS): Define.
3202         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
3203
3204 2002-04-18  Michael Snyder  <msnyder@redhat.com>
3205
3206         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
3207
3208 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3209
3210         * vax-tdep.c (vax_frame_chain): New function.
3211         (vax_push_dummy_frame): Ditto.
3212         (vax_pop_frame): Ditto.
3213         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
3214         (FRAMELESS_FUNCTION_INVOCATION): Use
3215         generic_frameless_function_invocation_not.
3216         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
3217         (POP_FRAME): Use vax_pop_frame.
3218
3219 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3220
3221         * vax-tdep.c (vax_store_struct_return): New function.
3222         (vax_extract_return_value): Ditto.
3223         (vax_store_return_value): Ditto.
3224         (vax_extract_struct_value_address): Ditto.
3225         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
3226         vax_store_struct_return.
3227         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
3228         (STORE_RETURN_VALUE): Use vax_store_return_value.
3229         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
3230
3231 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3232
3233         * vax-tdep.c (vax_frame_saved_pc): New function.
3234         (vax_frame_args_address_correct): Ditto.
3235         (vax_frame_args_address): Ditto.
3236         (vax_frame_locals_address): Ditto.
3237         (vax_frame_num_args): Move code to be in proximity to
3238         other frame-related functions.
3239         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
3240         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
3241         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
3242         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
3243         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
3244
3245 2002-04-22  H.J. Lu  (hjl@gnu.org)
3246
3247         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
3248         includedir.
3249
3250 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3251
3252         * vax-tdep.c (vax_frame_init_saved_regs): New function.
3253         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
3254         (FRAME_INIT_SAVED_REGS): New macro.
3255
3256 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3257
3258         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3259
3260 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3261
3262         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3263         where needed.
3264         (fetch_osf_core_registers): Likewise.
3265         (supply_gregset): Likewise.
3266
3267 2002-04-22  J. Brobecker  <brobecker@gnat.com>
3268
3269         * symfile.h (get_section_index): Define.
3270         * symfile.c (get_section_index): New function.
3271         * mdebugread.c (SC_IS_SBSS): New macro.
3272         (SC_IS_BSS): Return true for the scBss storage class only, as
3273         the scSBss storage class refers to the .sbss section.
3274         (parse_partial_symbols): Discard the symbols which associated
3275         section does not exist.
3276         Make sure to use the .sbss section index for symbols which
3277         storage class is scBss, rather than using the .bss section index.
3278
3279 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3280
3281         * vax-tdep.c: Update copyright years.
3282         (vax_register_name): New function.
3283         (vax_register_byte): Ditto.
3284         (vax_register_raw_size): Ditto.
3285         (vax_register_virtual_size): Ditto.
3286         (vax_register_virtual_type): Ditto.
3287         * config/vax/tm-vax.h: Update copyright years.
3288         (REGISTER_NAMES): Remove.
3289         (REGISTER_NAME): Define.
3290         (REGISTER_BYTE): Use vax_register_byte.
3291         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
3292         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
3293         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
3294
3295 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
3296
3297         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
3298         declaration
3299         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
3300
3301 2002-04-21  David S. Miller  <davem@redhat.com>
3302
3303         * arch-utils.c (generic_prologue_frameless_p): Kill
3304         SKIP_PROLOGUE_FRAMELESS_P code.
3305         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3306         references.
3307         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
3308         * arc-tdep.c (arc_prologue_frameless_p): Implement.
3309         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3310         references.
3311         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
3312         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
3313         (sparc_gdbarch_init): Pass it to
3314         set_gdbarch_prologue_frameless_p.
3315
3316 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3317
3318         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
3319         (alphabsd-nat.o): New dependency list.
3320
3321 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3322
3323         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
3324         alphafbsd-tdep.c.
3325         (alpha-linux-tdep.o): New dependency list.
3326         (alphafbsd-tdep.o): Likewise.
3327
3328 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3329
3330         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
3331         to here...
3332         * alpha-tdep.c: ...from here.
3333         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
3334
3335 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3336
3337         * config/alpha/tm-alpha.h: Move alpha_software_single_step
3338         prototype from here...
3339         * alpha-tdep.h: ...to here.
3340
3341 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
3342
3343         * frame.h (selected_frame_level): Document as deprecated.
3344         (frame_relative_level): Declare.
3345         * stack.c (frame_relative_level): New function.
3346         (selected_frame_level): Document as deprecated.
3347         (select_frame): Do not set the selected_frame_level.
3348
3349         * stack.c (frame_info, record_selected_frame): Update.
3350         (frame_command, current_frame_command): Update.
3351         (up_silently_base, up_command, down_silently_base): Update.
3352         (down_command): Update.
3353         * inflow.c (kill_command): Update.
3354         * tracepoint.c (finish_tfind_command): Update.
3355         * corelow.c (core_open): Update.
3356         * thread.c (info_threads_command): Update.
3357         (do_captured_thread_select): Update.
3358         * infcmd.c (finish_command): Update.
3359         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
3360
3361 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3362
3363         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
3364
3365 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
3366
3367         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
3368         type const.
3369
3370 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3371
3372         * alphafbsd-tdep.c: Update copyright years.  Include
3373         alpha-tdep.h.
3374         (alphafbsd_use_struct_convention): Make static.
3375         (alphafbsd_init_abi): New function.
3376         (_initialize_alphafbsd_tdep): New function.
3377         * config/alpha/tm-fbsd.h: Update copyright years.
3378         (USE_STRUCT_CONVENTION): Remove.
3379
3380 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3381
3382         * alpha-tdep.c (alpha_abi_handler): New structure to describe
3383         an Alpha ABI variant.
3384         (alpha_abi_handler_list): Declare.
3385         (alpha_gdbarch_register_os_abi): New function.
3386         (alpha_gdbarch_init): Give registered ABI variant handlers a
3387         chance to tweak the gdbarch once we have set up defaults.
3388         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
3389
3390 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3391
3392         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
3393         to standard_coerce_float_to_double.
3394         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3395
3396 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3397
3398         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
3399         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
3400         from gdbarch_tdep rather than a constant.
3401         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
3402         the default text address for all Alpha Unix ABIs.
3403         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
3404         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
3405
3406 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3407
3408         * alpha-tdep.h: New file.  Includes several Alpha target constants
3409         taken from...
3410         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
3411         let gdbarch deal with.
3412         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
3413         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
3414         to dependency list.
3415         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
3416         Alpha target register names.
3417         * alphabsd-nat.c: Likewise.
3418         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
3419         Alpha target register names.  Make serveral routines static.
3420         (alpha_get_saved_register): New function.
3421         (alpha_abi_names): New.
3422         (process_note_abi_tag_sections): New function.
3423         (get_elfosabi): New function.
3424         (alpha_gdbarch_init): New function.
3425         (alpha_dump_tdep): New function.
3426         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
3427
3428 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
3429
3430         * frame.c (find_saved_register): Delete #ifdef
3431         HAVE_REGISTER_WINDOWS code.
3432         * config/sparc/tm-sparc.h: Update comments.
3433         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
3434
3435 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
3436
3437         * i960-tdep.c (i960_find_saved_register): New function.
3438         (i960_get_saved_register): New function.
3439         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
3440         (i960_get_saved_register): Declare.
3441         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
3442
3443 2002-04-20  David S. Miller  <davem@redhat.com>
3444
3445         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
3446
3447 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
3448
3449         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
3450         instead of NUM_PSEUDO_REGS.
3451
3452 2002-04-20  David S. Miller  <davem@redhat.com>
3453
3454         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
3455         GDB_MULTI_ARCH_PARTIAL
3456         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
3457         define, let tm-sp64.h do it.
3458
3459 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
3460
3461         * frame.c (find_saved_register): Avoid a NULL pointer
3462         dereference and actually walk the frame list.
3463
3464 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
3465
3466         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
3467         sorted in most most-recent-used order.  Document.
3468         * gdbarch.h, gdbarch.c: Regenerate.
3469
3470 2002-04-20  Daniel Jacobowitz  <drow@mvista.com>
3471
3472         * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
3473         (add_inferior): Call create_register_cache.
3474         (clear_inferiors): Call free_register_cache.
3475         (inferior_regcache_data, set_inferior_regcache_data): New functions.
3476         * gdbserver/regcache.c (struct inferior_regcache_data): New.
3477         (registers): Remove.
3478         (get_regcache): New function.
3479         (create_register_cache, free_register_cache): New functions.
3480         (set_register_cache): Don't initialize the register cache here.
3481         (registers_to_string, registers_from_string, register_data): Call
3482         get_regcache.
3483         * gdbserver/regcache.h: Add prototypes.
3484         * gdbserver/server.h: Likewise.
3485
3486 2002-04-20  Daniel Jacobowitz  <drow@mvista.com>
3487
3488         * gdbserver/mem-break.c: New file.
3489         * gdbserver/mem-break.h: New file.
3490         * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
3491         dependencies.
3492         * gdbserver/inferiors.c (struct inferior_info): Add target_data
3493         member.
3494         (clear_inferiors): Free target_data member if set.
3495         (inferior_target_data, set_inferior_target_data): New functions.
3496         * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
3497         (i386_stop_pc, i386_set_pc): New.  Add to the_low_target.
3498         * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
3499         (struct inferior_linux_data): New.
3500         (linux_create_inferior): Use set_inferior_target_data.
3501         (linux_attach): Likewise.  Call add_inferior.
3502         (linux_wait_for_one_inferior): New function.
3503         (linux_wait): Call it.
3504         (linux_write_memory): Add const.
3505         (initialize_low): Call set_breakpoint_data.
3506         * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
3507         handling members.
3508         * gdbserver/server.c (attach_inferior): Remove extra add_inferior
3509         call.
3510         * gdbserver/server.h: Include mem-break.h.  Update inferior.c
3511         prototypes.
3512         * gdbserver/target.c (read_inferior_memory)
3513         (write_inferior_memory): New functions.
3514         * gdbserver/target.h (read_inferior_memory)
3515         (write_inferior_memory): Change macros to prototypes.
3516         (struct target_ops): Update comments.  Add const to write_memory
3517         definition.
3518
3519 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
3520
3521         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
3522         instead of ->prev.
3523         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
3524         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
3525         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
3526         instead of ->prev.
3527
3528 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
3529
3530         Fix PR gdb/471.
3531         * gdbtypes.c (init_simd_type): Rewrite using new functions.
3532         (build_builtin_type_vec128): Ditto.
3533         (append_composite_type_field): Fix calculation of type length in
3534         union case.
3535
3536 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
3537
3538         * config/djgpp/README: Update.
3539
3540         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
3541         compiler warnings.
3542
3543 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
3544
3545         * alpha-tdep.c (setup_arbitrary_frame): Rename...
3546         (alpha_setup_arbitrary_frame): ...to this.
3547         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
3548         for alpha_setup_arbitrary_frame.
3549
3550 2002-04-18  Andrew Cagney  <cagney@redhat.com>
3551
3552         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
3553         * gdbarch.h, gdbarch.c: Regenerate.
3554
3555         * defs.h (breakpoint_from_pc_fn): Delete type definition.
3556         * target.h (memory_breakpoint_from_pc): Update declaration.
3557         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
3558
3559         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
3560         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
3561         * mem-break.c (memory_breakpoint_from_pc): Ditto.
3562         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
3563         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
3564         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
3565         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
3566         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
3567         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
3568         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
3569         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
3570         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
3571
3572         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
3573         const pointer.
3574         * monitor.c (monitor_insert_breakpoint): Ditto.
3575         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
3576
3577         * config/mcore/tm-mcore.h: Update copyright.
3578         * mem-break.c: Ditto.
3579         * xstormy16-tdep.c: Ditto.
3580
3581 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
3582
3583         * p-exp.y: Add precedence rule for '^' token.
3584         This removes the shift/reduce conflicts.
3585         Remove the comment concerning these shift/reduce conflicts.
3586
3587 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
3588
3589         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
3590         (registers_powerpc_nofp): New register set for processors
3591         without floating point unit.
3592
3593 2002-04-18  David S. Miller  <davem@redhat.com>
3594
3595         * MAINTAINERS: Add myself to write-after-approval.
3596
3597 2002-04-17  Michael Snyder  <msnyder@redhat.com>
3598
3599         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
3600
3601 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
3602
3603         * rs6000-tdep.c (frame_initial_stack_address): Use
3604         frame_register_read to read the alloca_reg.
3605
3606 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
3607
3608         * frame.c (find_saved_register): Find saved registers in the next
3609         not prev frame.
3610         Fix PR gdb/365.
3611
3612 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
3613
3614         * gdbarch.sh (LANG): Set to ``c''.
3615
3616 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
3617
3618         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
3619
3620 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
3621
3622         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
3623         Update copyright.
3624
3625         * hpread.c (hpread_get_lntt): Add declaration.
3626         Also fix PR gdb/391.
3627
3628 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
3629
3630         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
3631         * aclocal.m4, configure: Re-generate.
3632         Fix PR gdb/391.
3633
3634 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
3635
3636         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
3637         instead of tm_print_insn.
3638
3639 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
3640
3641         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
3642
3643 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
3644
3645         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
3646         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
3647         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
3648
3649 2002-04-12  Don Howard  <dhoward@redhat.com>
3650
3651         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
3652         max_user_call_depth.
3653         (init_cmd_lists): Initialize the new value;
3654         * cli/cli-script.c (execute_user_command): Limit the call depth of
3655         user defined commands.  This avoids a core-dump when user commands
3656         are infinitly recursive.
3657
3658 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
3659
3660         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
3661         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
3662         from tdep struct instead of DEFAULT_LR_SAVE.
3663         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
3664         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
3665         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
3666
3667 2002-04-12  Michael Snyder  <msnyder@redhat.com>
3668
3669         * Remote.c: Spelling fix.
3670         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
3671         If no symbol found for "sbrk", try "_sbrk".
3672         (make_output_phdrs): Use bfd_section_name.
3673         (gcore_copy_callback): Use bfd_section_name.
3674         * eval.c: Indentation fix-ups.
3675         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
3676         in case it gets applied to an address that is already
3677         in the instruction space.
3678         * cli/cli-decode.c (help_list): Allow long lines to wrap.
3679         * symfile.c: Fix indentation, long lines.
3680         * source.c: White space fix-up.
3681
3682 2002-04-12  Andrew Cagney  <cagney@redhat.com>
3683
3684         * defs.h (read_relative_register_raw_bytes): Delete declaration.
3685         * frame.c (frame_register_read): New function.  Return non-zero on
3686         success.
3687         (read_relative_register_raw_bytes_for_frame): Delete.
3688         (read_relative_register_raw_bytes): Delete.
3689         * frame.h (frame_register_read): Declare.
3690         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
3691         * sh-tdep.c: Ditto.
3692         * infcmd.c (do_registers_info): Ditto.
3693         * hppa-tdep.c: Ditto.
3694         * rs6000-tdep.c: Ditto.
3695         * h8500-tdep.c: Ditto.
3696         * mips-tdep.c: Ditto.
3697         * h8300-tdep.c: Ditto.
3698         * z8k-tdep.c: Ditto.
3699
3700 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
3701
3702         From Jimi X <jimix@watson.ibm.com>:
3703         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
3704         64-bit SysV ABI.
3705
3706 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
3707
3708         From Jimi X <jimix@watson.ibm.com>:
3709         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
3710         bfd info.
3711
3712 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
3713
3714         From Jimi X <jimix@watson.ibm.com>:
3715         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
3716         register sets for these processor variants.
3717
3718 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
3719
3720         * gdbserver/linux-low.c (usr_store_inferior_registers): Support
3721         registers which are allowed to fail to store.
3722         * gdbserver/linux-low.h (linux_target_ops): Likewise.
3723         * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
3724         (ppc_cannot_store_register): FPSCR may not be storable.
3725         * regformats/reg-ppc.dat: Support FPSCR.
3726
3727 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
3728
3729         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
3730         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3731         Add fpscr as an invalid/unfetchable register.
3732         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
3733         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
3734         (fill_fpregset): Add support for register fpscr.
3735         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
3736         (fill_gregset): Account for the fact that register ``mq'' might
3737         not exist.
3738         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
3739         (registers_power): Add fpscr to register set at slot 71.
3740         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
3741         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
3742
3743 2002-04-11  Michael Snyder  <msnyder@redhat.com>
3744
3745         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
3746         * configure: Regenerate.
3747         * config.in: Regenerate.
3748         * acconfig.h: Add define for _SYSCALL32.
3749         * core-sol2.c: Remove #define _SYSCALL32.
3750         * solib-legacy.c: Remove #define _SYSCALL32.
3751
3752 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
3753
3754         * stack.c (select_frame): Cleanup internal error message, do not
3755         use %p.
3756
3757 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
3758
3759         * stack.c (select_frame): Check that selected_frame and the
3760         specified level are as expected.
3761         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
3762         Update copyright.
3763         * frame.h (struct frame_info): Add field `level'.  Update
3764         copyright.
3765         Work-in-progress PR gdb/464.
3766
3767 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
3768
3769         * maint.c (maint_print_section_info): Rename print_section_info.
3770         (print_bfd_section_info, print_objfile_section_info): Update.
3771         * inferior.h (struct gdbarch): Add opaque declaration.
3772         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
3773         * gdbarch.h: Regenerate.
3774
3775 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
3776
3777         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
3778         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
3779         (kernel_u_size): Added.
3780         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
3781         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
3782
3783 2002-04-04  Jim Ingham  <jingham@apple.com>
3784
3785        * valarith.c (find_size_for_pointer_math): New function, either returns
3786        the size for a pointer's target, returns 1 for void *, or errors for
3787        incomplete types.
3788        (value_add, value_sub): use find_size_for_pointer_math.
3789
3790 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
3791
3792         * linux-low.c (linux_look_up_symbols): New hook.
3793         (linux_target_ops): Add linux_look_up_symbols.
3794         * remote-utils.c (decode_address): New function.
3795         (look_up_one_symbol): New function.
3796         * server.c (handle_query): Call target look_up_symbols hook.
3797         * server.h (look_up_one_symbol): Add prototype.
3798         * target.h (struct target_ops): Add look_up_symbols hook.
3799
3800 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
3801
3802         * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
3803         * ChangeLog: Correct paths in last ChangeLog entry.
3804
3805 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
3806
3807         * gdbserver/linux-low.h: Remove obsolete prototypes.
3808         (struct linux_target_ops): New.
3809         (extern the_low_target): New.
3810         * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
3811         (register_addr): Use the_low_target explicitly.
3812         (fetch_register): Likewise.
3813         (usr_fetch_inferior_registers): Likewise.
3814         (usr_store_inferior_registers): Likewise.
3815         * gdbserver/linux-arm-low.c (num_regs): Remove.
3816         (arm_num_regs): Define.
3817         (arm_regmap): Renamed from regmap, made static.
3818         (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
3819         made static.
3820         (arm_cannot_store_register): Renamed from cannot_store_register,
3821         made static.
3822         (the_low_target): New.
3823         * gdbserver/linux-i386-low.c (num_regs): Remove.
3824         (i386_num_regs): Define.
3825         (i386_regmap): Renamed from regmap, made static.
3826         (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
3827         made static.
3828         (i386_cannot_store_register): Renamed from cannot_store_register,
3829         made static.
3830         (the_low_target): New.
3831         * gdbserver/linux-ia64-low.c (num_regs): Remove.
3832         (ia64_num_regs): Define.
3833         (ia64_regmap): Renamed from regmap, made static.
3834         (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
3835         made static.
3836         (ia64_cannot_store_register): Renamed from cannot_store_register,
3837         made static.
3838         (the_low_target): New.
3839         * gdbserver/linux-m68k-low.c (num_regs): Remove.
3840         (m68k_num_regs): Define.
3841         (m68k_regmap): Renamed from regmap, made static.
3842         (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
3843         made static.
3844         (m68k_cannot_store_register): Renamed from cannot_store_register,
3845         made static.
3846         (the_low_target): New.
3847         * gdbserver/linux-mips-low.c (num_regs): Remove.
3848         (mips_num_regs): Define.
3849         (mips_regmap): Renamed from regmap, made static.
3850         (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
3851         made static.
3852         (mips_cannot_store_register): Renamed from cannot_store_register,
3853         made static.
3854         (the_low_target): New.
3855         * gdbserver/linux-ppc-low.c (num_regs): Remove.
3856         (ppc_num_regs): Define.
3857         (ppc_regmap): Renamed from regmap, made static.
3858         (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
3859         made static.
3860         (ppc_cannot_store_register): Renamed from cannot_store_register,
3861         made static.
3862         (the_low_target): New.
3863         * gdbserver/linux-s390-low.c (num_regs): Remove.
3864         (s390_num_regs): Define.
3865         (s390_regmap): Renamed from regmap, made static.
3866         (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
3867         made static.
3868         (s390_cannot_store_register): Renamed from cannot_store_register,
3869         made static.
3870         (the_low_target): New.
3871         * gdbserver/linux-sh-low.c (num_regs): Remove.
3872         (sh_num_regs): Define.
3873         (sh_regmap): Renamed from regmap, made static.
3874         (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3875         made static.
3876         (sh_cannot_store_register): Renamed from cannot_store_register,
3877         made static.
3878         (the_low_target): New.
3879         * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
3880         (the_low_target): New.
3881
3882 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
3883
3884         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
3885         override FP_REGNUM with frame->fp.  Update copyright.
3886         * parse.c (num_std_regs, std_regs): Delete.
3887         (target_map_name_to_register): Do not search std_regs.  Update
3888         function description.
3889         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
3890         declarations.  Update copyright.
3891         Fix PR gdb/251.
3892
3893 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
3894
3895         * gdbserver/Makefile.in: Add stamp-h target.
3896         * gdbserver/configure.in: Create stamp-h.
3897         * gdbserver/configure: Regenerated.
3898
3899 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
3900
3901         * gdbserver/inferiors.c: New file.
3902         * gdbserver/target.c: New file.
3903         * gdbserver/target.h: New file.
3904         * gdbserver/Makefile.in:  Add target.o and inferiors.o.  Update
3905         dependencies.
3906         * gdbserver/linux-low.c (inferior_pid): New static variable,
3907         moved from server.c.
3908         (linux_create_inferior): Renamed from create_inferior.
3909         Call add_inferior.  Return 0 on success instead of a PID.
3910         (linux_attach): Renamed from myattach.
3911         (linux_kill): Renamed from kill_inferior.  Call clear_inferiors ().
3912         (linux_thread_alive): Renamed from mythread_alive.
3913         (linux_wait): Renamed from mywait.  Call clear_inferiors () if the
3914         child dies.
3915         (linux_resume): Renamed from myresume.  Add missing ``return 0''.
3916         (regsets_store_inferior_registers): Correct error message.
3917         Add missing ``return 0''.
3918         (linux_fetch_registers): Renamed from fetch_inferior_registers.
3919         (linux_store_registers): Renamed from store_inferior_registers.
3920         (linux_read_memory): Renamed from read_inferior_memory.
3921         (linux_write_memory): Renamed from write_inferior_memory.
3922         (linux_target_ops): New structure.
3923         (initialize_low): Call set_target_ops ().
3924         * gdbserver/remote-utils.c (unhexify): New function.
3925         (hexify): New function.
3926         (input_interrupt): Send signals to ``signal_pid''.
3927         * gdbserver/server.c (inferior_pid): Remove.
3928         (start_inferior): Update create_inferior call.
3929         (attach_inferior): Call add_inferior.
3930         (handle_query): New function.
3931         (main): Call handle_query for `q' packets.
3932         * gdbserver/server.h: Include "target.h".  Remove obsolete prototypes.
3933         Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
3934
3935 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
3936
3937         * gdbserver/Makefile.in: Add WARN_CFLAGS.  Update configury
3938         dependencies.
3939         * gdbserver/configure.in: Check for <string.h>
3940         * gdbserver/configure: Regenerate.
3941         * gdbserver/config.in: Regenerate.
3942         * gdbserver/gdbreplay.c: Include needed system headers.
3943         (remote_open): Remove strchr prototype.
3944         * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
3945         * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
3946         (supply_register_by_name): Likewise.
3947         (collect_register): Change buf argument to void *.
3948         (collect_register_by_name): Likewise.
3949         * gdbserver/regcache.h: Add missing prototypes.
3950         * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
3951         * gdbserver/server.c (handle_query): New function.
3952         (attached): New static variable, moved out of main.
3953         (main): Quiet longjmp clobber warnings.
3954         * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT.  Update prototypes.
3955         * gdbserver/utils.c (error): Remove NORETURN.
3956         (fatal): Likewise.
3957
3958 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
3959
3960         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
3961         after the last symbol in a block.
3962
3963 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
3964
3965         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
3966         is non zero as a found symbol.
3967
3968 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
3969
3970         * findvar.c: Include "builtin-regs.h".
3971         (value_of_register): Call value_of_builtin_reg when applicable.
3972         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
3973         (target_map_name_to_register): Call
3974         builtin_reg_map_name_to_regnum.
3975         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
3976         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
3977         (builtin_regs_h): Define.
3978         (builtin-regs.o): New target.
3979         (findvar.o): Add $(builtin_regs_h).
3980         * builtin-regs.c, builtin-regs.h: New files.
3981         * std-regs.c: New file.
3982         Partial fix for PR gdb/251.
3983
3984 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
3985
3986         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
3987         it's no longer required.
3988
3989 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
3990
3991         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
3992
3993 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
3994
3995         From Jimi X <jimix@watson.ibm.com>:
3996         * rs6000-tdep.c (rs6000_software_single_step): Use
3997         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
3998         and size.  Use target_insert_breakpoint() and
3999         target_remove_breakpoint() to insert and remove breakpoints
4000         instead of explicit memory reads and writes.
4001
4002 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
4003
4004         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
4005         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
4006         ELF_OBJECT_FORMAT ifdef.
4007
4008 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
4009
4010         From Jimi X <jimix@watson.ibm.com>:
4011         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
4012
4013 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
4014
4015         From Jimi X <jimix@watson.ibm.com>:
4016         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
4017         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
4018
4019 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
4020
4021         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
4022         s/asprintf/xasprintf/.
4023         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
4024
4025 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
4026
4027         I believe Jeff Law denies responsability for this one:
4028         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
4029         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
4030         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
4031         Work-around for PR gdb/366.
4032
4033 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
4034
4035         * remote-e7000.c (write_small, e7000_read_inferior_memory,
4036         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
4037         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
4038
4039 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
4040
4041         * sh-tdep.c (sh_fp_frame_init_saved_regs,
4042         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
4043         information.
4044
4045 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
4046
4047         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
4048         maintainer.
4049
4050 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
4051
4052         * README (Reporting Bugs in GDB): Document the bug web page as the
4053         prefered way of submitting bugs.
4054         Fix PR gdb/402.
4055
4056 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
4057
4058         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
4059         -1.  Update comment.
4060         * gdbarch.h, gdbarch.c: Re-generate.
4061
4062 2002-04-07  Andreas Schwab  <schwab@suse.de>
4063
4064         * m68klinux-nat.c (fill_fpregset): Properly pass address of
4065         buffer to regcache_collect.
4066
4067 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
4068
4069         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
4070         * gdbarch.c, gdbarch.h: Re-generate.
4071
4072 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
4073
4074         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
4075         declaration.  Fix -Werror.
4076
4077 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
4078
4079         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
4080         * gdbarch.c: Regenerate.
4081
4082 2002-04-05  Michael Snyder  <msnyder@redhat.com>
4083
4084         * breakpoint.c (clear_command): Rewrite middle section to
4085         combine two loops with identical control conditions.
4086         Add a cleanup to eliminate a memory leak.
4087         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
4088
4089 2002-04-05  H.J. Lu  (hjl@gnu.org)
4090
4091         * solib-svr4.c (bkpt_names): Add "__start".
4092
4093 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
4094
4095         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
4096         as test for 64 bit target.
4097
4098 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
4099
4100         * h8500-tdep.c (h8500_write_fp): Delete function.
4101         * dwarf2cfi.c (cfi_write_fp): Document as not used.
4102         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
4103         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
4104         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
4105         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
4106         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
4107         (s390_write_fp):
4108         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
4109         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
4110         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
4111         (d10v_write_fp): Delete function.
4112         * inferior.h (write_fp, generic_target_write_fp): Delete
4113         declarations.
4114         * regcache.c (generic_target_write_fp): Delete function.
4115         (write_fp): Delete function.
4116         * gdbarch.sh (TARGET_WRITE_FP): Delete.
4117         * gdbarch.h, gdbarch.c: Regenerate.
4118         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
4119         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
4120         (sparc64_write_fp): Delete declaration.
4121         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
4122         (h8500_write_fp): Delete declaration.
4123
4124 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
4125
4126         * sparc-tdep.c (sparc64_write_fp): Delete.
4127         (sparc_push_dummy_frame): Replace write_fp call with code to store
4128         the FP directly.
4129         (sparc_gdbarch_init): Do not initialize write_fp.
4130
4131 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
4132
4133         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
4134         clause.
4135
4136 2002-03-29  Jim Blandy  <jimb@redhat.com>
4137
4138         * stack.c (get_selected_block): Add new argument `addr_in_block',
4139         used to return the exact code address we used to select the block,
4140         not just the block.
4141         * blockframe.c (get_frame_block, get_current_block): Same.
4142         * frame.h (get_frame_block, get_current_block,
4143         get_selected_block): Update declarations.
4144         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
4145         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
4146
4147 2002-04-05  Michael Snyder  <msnyder@redhat.com>
4148
4149         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
4150         warning message.
4151
4152 2002-04-05  J. Brobecker  <brobecker@gnat.com>
4153
4154         * utils.c (xfullpath): New function.
4155         * defs.h (xfullpath): Add declaration.
4156         * source.c (openp): Use xfullpath in place of gdb_realpath to
4157         avoid resolving the basename part of filenames when the
4158         associated file is a symbolic link. This fixes a potential
4159         inconsistency between the filenames known to GDB and the
4160         filenames it prints in the annotations.
4161         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
4162         to be able to match a filename with either the real filename, or
4163         the name of any symbolic link to this file.
4164         (lookup_partial_symtab): Ditto.
4165
4166 2002-04-04  Michael Snyder  <msnyder@redhat.com>
4167
4168         * breakpoint.c: Add support for hardware breakpoints in overlays.
4169         (overlay_events_enabled): New state variable.
4170         (insert_breakpoints): Use overlay_events_enabled to decide
4171         whether to attempt to set a breakpoint at the overlay load addr.
4172         Handle bp_hardware_breakpoint as well as bp_breakpoint.
4173         (remove_breakpoint): Use overlay_events_enabled to decide
4174         whether breakpoints need to be removed from overlay load addr.
4175         Handle bp_hardware_breakpoint as well as bp_breakpoint.
4176         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
4177         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
4178         disable_overlay_breakpoints): Update overlay_events_enabled.
4179
4180 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
4181
4182         * dwarf2read.c (struct function_range): New.
4183         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
4184         (check_cu_functions): New.
4185         (read_file_scope): Initialize global function lists.
4186         Call dwarf_decode_line after processing children.
4187         (read_func_scope): Add to global function list.
4188         (dwarf_decode_lines): Call check_cu_functions everywhere
4189         record_line is called.  Call record_line with a linenumber
4190         of 0 to mark sequence ends.
4191
4192 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
4193
4194         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
4195         change sync with glibc.
4196
4197 2002-04-03  Jim Blandy  <jimb@redhat.com>
4198
4199         * configure.in: Call AC_C_INLINE.
4200         * configure: Regenerated.
4201
4202 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
4203
4204         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
4205         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
4206
4207 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
4208
4209         * NEWS: Mention gcore support on FreeBSD/i386.
4210
4211         * fbsd-proc.c: New file.
4212         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
4213         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
4214
4215         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
4216         while statement.
4217
4218 2002-03-29  Jim Blandy  <jimb@redhat.com>
4219
4220         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
4221         unescaped newlines in string literals, but newer ones don't.  So
4222         escape them.
4223
4224 2002-03-26  Michael Snyder  <msnyder@redhat.com>
4225             Andrew Cagney <cagney@redhat.com>
4226
4227         * cli/cli-dump.c: New file.  Dump memory to file,
4228         restore file to memory.
4229         * cli/cli-dump.h: New file.
4230         * Makefile.in: Add rules, dependencies for cli-dump.o.
4231         * NEWS: Mention new commands.
4232
4233 2002-03-28  Michael Snyder  <msnyder@redhat.com>
4234
4235         * symfile.c (symbol_file_add): Move test for null symbols to later.
4236
4237 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
4238
4239         From veksler at il.ibm.com:
4240         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
4241         the xstrduped original path.
4242         Fix PR gdb/417.
4243
4244 2002-03-27  Michael Snyder  <msnyder@redhat.com>
4245
4246         * breakpoint.c (_initialize_breakpoint): Clean up help string.
4247         * infcmd.c (_initialize_infcmd): Ditto.
4248         * language.c (_initialize_language): Ditto.
4249         * symfile.c (_initialize_symfile): Ditto.
4250         * top.c (_init_main): Ditto.
4251         * cli/cli-cmds.c (init_cli_cmds): Ditto.
4252
4253 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
4254
4255         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4256         vector registers handling.
4257         (skip_prologue): Handle new AltiVec instructions.  Fill in new
4258         fields of frame data.
4259         (frame_get_saved_regs): Fill in information for AltiVec registers.
4260
4261 2002-03-27  Jim Blandy  <jimb@redhat.com>
4262
4263         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4264         a function; leave this macro here to invoke that function.
4265         (symbol_init_mangled_name): Declaration for that function.
4266         * symtab.c (symbol_init_mangled_name): New function.
4267
4268 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
4269
4270         * valarith.c: Replace strerror with safe_strerror.
4271         * tracepoint.c: Ditto.
4272         * lin-lwp.c: Ditto.
4273         * go32-nat.c: Ditto.
4274         * inflow.c: Ditto.
4275         * gnu-nat.c: Ditto.
4276
4277 2002-03-27  Andreas Schwab  <schwab@suse.de>
4278
4279         * event-top.c (command_line_handler): Remove useless if.
4280
4281 2002-03-27  Andreas Jaeger  <aj@suse.de>
4282
4283         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
4284         comment.
4285
4286 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
4287
4288         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4289         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
4290         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
4291         (x86_64_linux_dr_get_status, supply_gregset),
4292         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
4293         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
4294         (x86_64_register_info_table): Add.
4295         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
4296         (x86_64_register_raw_size, x86_64_register_virtual_type),
4297         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
4298         general x86_64_register_info_table.
4299         (i386_gdbarch_init): gdbarch_register_bytes is now set
4300         dynamicaly during initialization.
4301         * regformats/reg-x86-64.dat: Synced with changes to registers above.
4302         * gdbserver/linux-x86-64-low.c: Ditto.
4303
4304 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
4305
4306         * gdbserver/server.c (main): Call target_signal_to_host_p
4307         and target_signal_to_host on signals received from the remote.
4308         * gdbserver/remote-utils.c (prepare_resume_reply): Call
4309         target_signal_from_host on signals sent to the remote.
4310         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
4311         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
4312
4313 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
4314
4315         * signals/signals.c: Include "server.h" in gdbserver build.
4316         (target_signal_from_name): Don't use STREQ.
4317         (_initialize_signals): Likewise.  Don't include function in
4318         gdbserver build.
4319
4320 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
4321
4322         * signals.c: Moved to...
4323         * signals/signals.c: Here.
4324         * Makefile (signals.o): Update.
4325
4326 2002-03-26  Jeff Law (law@redhat.com)
4327
4328         * somread.c (som_symtab_read): Remove some commented out code and
4329         updated related comments.  Do not set the minimal symbol table to
4330         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
4331         in a dynamic executable.
4332         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
4333         where we are unable to find the minimal symbol for the given
4334         PC value.
4335
4336 2002-03-25  Jeff Law (law@redhat.com)
4337
4338         * linux-proc.c (read_mapping): Scan up to end of line for filename.
4339
4340 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
4341
4342         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
4343
4344 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4345
4346         * command.h: Update copyright.
4347         (struct cmd_list_element): Replace definition with opaque
4348         declaration.
4349         (enum cmd_types): Document that it will eventually be moved to
4350         cli/cli-decode.h
4351         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
4352         (MALLOCED_REPLACEMENT): Delete macro.
4353         * Makefile.in (cli_decode_h): Add $(command_h).
4354         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
4355         * top.c: Include "cli/cli-decode.h".
4356         * completer.c: Include "cli/cli-decode.h".
4357         * maint.c: Include "cli/cli-decode.h".
4358         * cli/cli-decode.h: Include "command.h".
4359         (enum command_class): Delete.
4360         (enum cmd_types): Comment out.
4361         (enum cmd_auto_boolean): Delete.
4362         (enum var_types): Delete.
4363
4364 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4365
4366         * cli/cli-decode.c: Include "gdb_assert.h".
4367         (add_set_or_show_cmd): New static function.
4368         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
4369         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
4370         all fields, such as func, from the set command.
4371
4372 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4373
4374         * MAINTAINERS (sh-elf): Change warning flag to -w.
4375
4376 2002-03-23  Andrew Cagney  <cagney@redhat.com>
4377
4378         * defs.h (error): Add printf format attribute.
4379         * thread-db.c (thread_from_lwp): Fix error format string.
4380         * stack.c (parse_frame_specification): Ditto.
4381         * cli/cli-decode.c (undef_cmd_error): Ditto.
4382         * scm-lang.c (scm_lookup_name): Ditto.
4383         * tracepoint.c (trace_error): Ditto.
4384         * remote-utils.c (usage): Ditto.
4385         * remote.c (compare_sections_command): Ditto.
4386         Fix PR gdb/328.
4387
4388 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
4389
4390         * gdbtypes.c (append_composite_type_field): New function.
4391         (init_composite_type): New function.
4392         * gdbtypes.h (append_composite_type_field): Declare.
4393         (init_composite_type): Ditto.
4394
4395 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
4396
4397         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
4398         function.
4399         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
4400         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
4401         structure returning convention for SYSV ABI case, but not
4402         for GNU/Linux, FreeBSD, or NetBSD.
4403
4404 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
4405
4406         * symtab.h (lookup_block_symbol): Add mangled_name argument
4407         to prototype.
4408
4409         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
4410         with new mangled_name argument.
4411         * linespec.c (decode_line_1): Likewise.
4412         * valops (value_of_this): Likewise.
4413         * symtab.c (lookup_transparent_type): Likewise.
4414         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
4415         (lookup_symbol): If we are given a mangled name, pass it down
4416         to lookup_symbol_aux.
4417         (lookup_block_symbol): If we are given a mangled name to check
4418         against, only return symbols which match it.
4419
4420 2002-03-22  Christopher Faylor  <cgf@redhat.com>
4421
4422         * win32-nat.c (child_create_inferior): Check for proper shell to use
4423         here, in case the user changes it on the fly.
4424         (_initialize_inftarg): Remove shell path considerations.
4425
4426 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
4427
4428         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
4429         for gdbarch_max_register_raw_size and max_register_virtual_size.
4430         Adjust copyright year.
4431
4432 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
4433
4434          * dbxread.c (process_one_symbol): Extend the first N_SLINE
4435          in a function to cover the entire beginning of the function
4436          as well if it does not already.
4437
4438 2002-03-21  Tom Rix  <trix@redhat.com>
4439
4440         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
4441         (rs6000_ptrace64): Renamed from ptrace64.
4442
4443 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
4444
4445         * gdbserver/remote-utils.c (remote_open): Don't call
4446         getprotobyname, we're all using TCP here so just use
4447         IPPROTO_TCP.
4448         * gdbserver/gdbreplay.c (remote_open): Ditto.
4449
4450 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
4451
4452         * regcache.c (_initialize_regcache): No need to call
4453         build_regcache() at this time; it gets called whenever
4454         the gdbarch changes.
4455
4456 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
4457
4458         * sparc-nat.c:  Include sys/param.h where possible.
4459
4460 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
4461
4462         Fix PR gdb/422.
4463         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
4464         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
4465         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
4466         complex types.
4467         * stabsread.c (rs6000_builtin_type): Likewise.
4468         (read_sun_floating_type): Likewise.
4469
4470 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4471
4472         * stabsread.c (read_member_functions): Remove skip code for duplicate
4473         constructor/destructor methods.  Use standard parsing for these
4474         methods and just do not chain them to the list of methods after
4475         parsing.
4476
4477 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
4478
4479         * coffread.c: Remove redundant static declarations.  Replace
4480         occurrences of `PTR' with `void *'.
4481         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
4482         * top.h (quit_cover): Likewise.
4483         * defs.h (catch_errors): Likewise.
4484
4485 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
4486
4487         * defs.h (XMALLOC): Define.
4488         * gdb-events.sh (XMALLOC): Delete macro.
4489         * gdb-events.c, gdb-events.h: Regenerate.
4490         * gdbarch.sh (XMALLOC): Delete macro.
4491         * gdbarch.c: Regenerate.
4492         * serial.c (XMALLOC): Delete macro.
4493         * ui-file.c (XMALLOC): Ditto.
4494         * ser-unix.h (XMALLOC): Ditto.
4495         * sh-tdep.c (XMALLOC): Ditto.
4496         * ui-out.c (XMALLOC): Ditto.
4497         * utils.c (XMALLOC): Ditto.
4498         * i386-tdep.c (XMALLOC): Ditto.
4499         * gdb-events.c (XMALLOC): Ditto.
4500         * d10v-tdep.c (XMALLOC): Ditto.
4501         * cli-out.c (XMALLOC): Ditto.
4502
4503         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
4504         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
4505         * ui-file.c, ui-out.c: Ditto.
4506
4507 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
4508
4509         * command.h (struct cmd_list_element): Add field context.
4510         (set_cmd_context, get_cmd_context): Declare.
4511         * cli/cli-decode.h: Ditto.
4512         * cli/cli-decode.c (get_cmd_context): New function.
4513         (set_cmd_context): New function.
4514         (add_cmd): Initialize context.
4515         Part of fixing PR gdb/145 and PR gdb/146.
4516
4517 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
4518
4519         * cli/cli-decode.c (cmd_type): New function.
4520         * command.h (cmd_type): Declare.
4521         * infrun.c (set_schedlock_func): Call function cmd_type.
4522         * kod.c (kod_set_os): Call cmd_type.
4523         * cris-tdep.c (cris_version_update): Use function cmd_type.
4524         (cris_mode_update, cris_abi_update): Ditto.
4525
4526         * command.h: (execute_cmd_post_hook): Declare.
4527         (execute_cmd_pre_hook): Declare.
4528         * cli/cli-script.c (clear_hook_in_cleanup): New function.
4529         (execute_cmd_post_hook, execute_cmd_pre_hook): New
4530         functions. Execute pre/post hook while ensuring that afterwords
4531         hook_in is cleared.
4532         * top.c (execute_command): Use execute_cmd_post_hook, and
4533         execute_cmd_pre_hook to execute pre/post commands.
4534         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
4535         hook_stop_stub.
4536         (hook_stop_stub): Call execute_cmd_pre_hook.
4537
4538 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
4539
4540         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
4541         set'' and this leads to a core dump.  Move xstrdup of
4542         operating_system to after check that it is not NULL.
4543
4544 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
4545
4546         * kod.c (kod_set_os): Remove unnecessary check that
4547         ``command->type'' is set_cmd.
4548
4549         * valprint.c (set_input_radix): Use input_radix.
4550         (set_output_radix): Use output_radix.
4551         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
4552         isn't reverted.
4553
4554 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
4555
4556         * value.h (struct value): Delete field ``substring_addr''.  Change
4557         aligner fields to force_doublest_align, force_longest_align,
4558         force_core_addr_align and force_pointer_aligh.
4559
4560         * value.h (struct value): Fix typo in above change.
4561
4562 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4563
4564         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
4565         to fix internal_error from ``maintenance print architecture''.
4566
4567 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4568
4569         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
4570         for gcc versions after gcc-2.8.1.
4571
4572 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4573
4574         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
4575         for method resolution.  Restore adjustment of ``this'' pointer after
4576         calling value_struct_elt, which was accidentally removed during the
4577         HP merge.
4578
4579 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
4580
4581         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
4582         value_of_register.
4583         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
4584         get_saved_register.
4585         * value.h (value_of_register): Update.
4586
4587 2002-03-14  Richard Henderson  <rth@redhat.com>
4588
4589         * configure.in: Detect declaration for canonicalize_file_name.
4590         * utils.c (canonicalize_file_name): Declare, if needed.
4591         (gdb_realpath): Prefer realpath if available and usable.
4592         * config.in, configure: Rebuild.
4593
4594 2002-03-14  Richard Henderson  <rth@redhat.com>
4595
4596         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
4597         a constant array bound.
4598
4599         * MAINTAINERS: Add myself to write-after-approval.
4600
4601 2002-03-14  Michael Snyder  <msnyder@redhat.com>
4602
4603         * symfile.c (syms_from_objfile): Return immediately if no syms.
4604         (symbol_file_add): Return immediately if no syms.
4605         (find_sym_fns): Return immediately if no syms.
4606
4607 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
4608
4609         * gdbserver/remote-util.c (remote_open): Print remote-side's
4610         IP address when remote debugging over the network.
4611
4612 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
4613
4614         * config/sparc/fbsd.mh: Fix copyright.
4615         * config/sparc/fbsd.mt: Likewise.
4616
4617 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
4618
4619         * MAINTAINERS: Fix typo in name of gdb warnings option.
4620         (x86-64): Fix formating so that this can be parsed by awk.
4621
4622 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
4623
4624         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
4625         * defs.h: Include "gdb/signals.h".
4626         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
4627
4628 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
4629
4630         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
4631         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
4632         from x86-64-tdep.h
4633
4634 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
4635             Don Howard <dhoward@redhat.com>
4636
4637         * mips-tdep.c (ST0_FR): Define.
4638         (mips2_fp_compat): New function, temporarily disabled.
4639         (mips_read_fp_register_single): New function.
4640         (mips_read_fp_register_double): New function.
4641         (mips_print_register): Use them.
4642         (do_fp_register_row): Likewise.
4643
4644 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
4645
4646         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
4647         approval''.
4648
4649 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4650
4651         * stabsread.c (read_member_functions): Fix is_stub test for
4652         static member functions, improve comment.
4653
4654 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
4655
4656         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
4657         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
4658         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
4659         commands that set boolean values.
4660         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
4661         (arm_rdi_resume): Always initialize PC.
4662         (arm_rdi_open): Don't use rslt as a boolean.
4663         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
4664         (arm_rdi_fetch_registers, arm_rdi_store_registers)
4665         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
4666         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
4667
4668 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
4669
4670         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
4671         * configure: Rebuilt.
4672
4673 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4674
4675         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
4676         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
4677
4678 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
4679
4680         * cli/cli-decode.c (set_cmd_completer): New function.
4681         * command.h (set_cmd_completer): Declare.
4682         * cli/cli-decode.h (set_cmd_completer): Ditto.
4683
4684         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
4685         * cli/cli-cmds.c (init_cli_cmds): Ditto.
4686         * win32-nat.c (_initialize_inftarg): Ditto.
4687         * remote-rdi.c (_initialize_remote_rdi): Ditto.
4688         * proc-api.c (_initialize_proc_api): Ditto.
4689         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
4690         * source.c (_initialize_source): Ditto.
4691         * exec.c (_initialize_exec): Ditto.
4692         * solib.c (_initialize_solib): Ditto.
4693         * top.c (init_main): Ditto.
4694         * tracepoint.c (_initialize_tracepoint): Ditto.
4695         * symfile.c (_initialize_symfile): Ditto.
4696         * printcmd.c (_initialize_printcmd): Ditto.
4697         * infcmd.c (_initialize_infcmd): Ditto.
4698         * corefile.c (_initialize_core): Ditto.
4699
4700 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
4701
4702         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
4703
4704 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
4705
4706         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
4707
4708 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
4709
4710         * NEWS: Update headings, 5.2 has branched.
4711
4712 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
4713
4714         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
4715         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
4716         (register_addr, REGISTER_RAW_SIZE): Likewise.
4717         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
4718         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
4719
4720 2002-03-03  Michal Ludvig <mludvig@suse.cz>
4721
4722         * MAINTAINERS (x86-64): Add myself.
4723         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
4724         changed value_ptr -> struct value *
4725
4726 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
4727
4728         * configure.host (sparc64-*-freebsd): Add.
4729         * configure.tgt: Likewise.
4730         * config/sparc/fbsd.mh: New file.
4731         * config/sparc/fbsd.mt: Likewise.
4732         * config/sparc/nm-fbsd.h: Likewise.
4733         * config/sparc/tm-fbsd.h: Likewise.
4734
4735 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
4736
4737         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
4738         regformats/reg-s390x.dat.
4739
4740 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
4741
4742         * utils.c: Add FIXME explaining true/false problem.
4743
4744 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
4745
4746         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
4747
4748 2002-02-28  Michael Chastain  <mec@shout.net>
4749
4750         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
4751
4752 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
4753
4754         * gdbserver/linux-s390-low.c: New file.
4755         * regformats/reg-s390.dat: New file.
4756         * regformats/reg-s390x.dat: New file.
4757         * gdbserver/configure.srv: Add S/390.
4758         * gdbserver/Makefile.in: Add S/390.
4759         * configure.tgt: Enable gdbserver for S/390.
4760
4761 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
4762
4763         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
4764         first line of the doc string for "info dos", except at the end of
4765         the sentence, since the short help stops at the first period.
4766
4767 2002-02-28  Jason Merrill  <jason@redhat.com>
4768
4769         * dwarf2read.c (dwarf_cfi_name): Add new codes.
4770
4771 2002-02-27  Fred Fish  <fnf@redhat.com>
4772
4773         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
4774         comment (dumy -> dummy).
4775
4776 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4777
4778         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
4779
4780 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
4781
4782       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
4783
4784 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
4785
4786         * gdbserver/acconfig.h: New file.
4787         * gdbserver/i387-fp.c: New file.
4788         * gdbserver/i387-fp.h: New file.
4789         * gdbserver/linux-x86-64.c: New file.
4790         * regformats/reg-x86-64.dat: New file.
4791         * configure.tgt: Add x86_64-*-linux* gdbserver support.
4792         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
4793         * gdbserver/configure.in: Add support for regsets.
4794         * gdbserver/config.in: Regenerate.
4795         * gdbserver/configure: Regenerate.
4796         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
4797         * gdbserver/linux-low.h: New file.
4798         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
4799         for regsets.
4800         * gdbserver/linux-arm-low.c: Include "linux-low.h".
4801         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
4802         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
4803         * gdbserver/linux-mips-low.c: Include "linux-low.h".
4804         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
4805         * gdbserver/linux-sh-low.c: Include "linux-low.h".
4806         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
4807         "i387-fp.h".  Add PTRACE_GETREGS and friends.
4808         * gdbserver/regcache.c (supply_register): New function.
4809         (supply_register_by_name): New function.
4810         (collect_register): New function.
4811         (collect_register_by_name): New function.
4812
4813 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
4814
4815         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
4816         (config.status): Add configure.srv dependency.
4817         (server_h): Add config.h dependency.
4818
4819 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
4820
4821         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
4822         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
4823         * gdbserver/configure.srv: Change i386-*-linux* to use
4824         reg-i386-linux.o.
4825
4826 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
4827
4828         * x86-64-tdep.c: Re-indent.  Update copyright date.
4829
4830 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
4831
4832         From Michal Ludvig <mludvig@suse.cz>:
4833         * x86-64-tdep.c (value.h): Delete.
4834         (gdb_assert.h): Include.
4835         (x86_64_register_convert_to_virtual,
4836         x86_64_register_convert_to_raw ): Add check which lets only
4837         floating-point values to be converted.
4838         (value_push): Delete.
4839         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
4840         (i386_gdbarch_init): Number of register_bytes fixed.
4841
4842 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
4843
4844         * MAINTAINERS: Add x86-64 target.
4845
4846 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
4847
4848         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
4849         * osfsolib.c (solib_map_sections): Ditto.
4850         * irix5-nat.c (solib_map_sections): Ditto.
4851         * corelow.c (gdb_check_format): Ditto.
4852         * symfile.c (symfile_bfd_open): Ditto.
4853         * solib.c (solib_map_sections): Ditto.
4854         Fix PR gdb/354.
4855
4856 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
4857
4858         * remote.c (_initialize_remote): By default, disable ``e'' and
4859         ``E'' step out-of-range packets.
4860
4861 2002-02-26  Andreas Schwab  <schwab@suse.de>
4862
4863         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
4864         m68k_linux_frame_saved_pc.
4865         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
4866         in_sigtramp.
4867         (SIGCONTEXT_PC_OFFSET): Remove.
4868         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
4869         m68k_linux_sigtramp_saved_pc): New functions.
4870         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
4871         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
4872         (UCONTEXT_PC_OFFSET): Define.
4873         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
4874         non-RT and RT signal trampolines.
4875
4876 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
4877
4878         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
4879         (TARGET_NBPG, STACK_END_ADDR): Delete
4880         (VARIABLES_INSIDE_BLOCK): Delete.
4881
4882 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
4883
4884         * utils.c (perror_with_name): Make string parameter constant.
4885         (print_sys_errmsg): Ditto.
4886         (query): Ditto.
4887         * defs.h (perror_with_name): Update.
4888         (print_sys_errmsg): Update.
4889         (query): Update.
4890
4891 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
4892
4893         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
4894         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
4895
4896 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4897
4898         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
4899         if it already matches the current architecture from the exec file.
4900         Include arch-utils.h for gdbarch_info_init prototype.
4901         * Makefile.in (rs6000-nat.o): Update dependencies.
4902
4903 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
4904
4905         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
4906          list of exported variables.
4907
4908 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
4909
4910         * gdbserver/configure.srv: New file.
4911         * gdbserver/configure.in: Use configure.srv instead
4912         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
4913         from it.
4914         * gdbserver/configure: Regenerated.
4915         * gdbserver/terminal.h: New file.
4916         * gdbserver/Makefile.in: Update for configure changes.  Remove
4917         more unneeded include paths.
4918
4919 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
4920
4921         From wiz at danbala:
4922         * config/sparc/tm-sp64.h: Fix grammar and typos.
4923         Fix PR gdb/287.
4924
4925 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
4926
4927         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
4928         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
4929         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
4930         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
4931         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
4932         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
4933         * s390-tdep.c: Ditto.
4934         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
4935         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
4936         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
4937         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
4938         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
4939         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
4940         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
4941         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
4942         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
4943         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
4944         Fix PR gdb/378.
4945
4946 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
4947
4948         * lin-thread.c: Delete file.
4949         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
4950         to gdb_proc_service.h.
4951         * configure: Re-generate.
4952
4953         * ocd.c (ocd_open): Do not try to open the "ocd" device.
4954         * serial.c (serial_open): Delete check for "ocd".
4955         Fix PR gdb/349.
4956
4957         * Makefile.in (linux-thread.o): Delete target.
4958         * linux-thread.c: Delete file.
4959
4960         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
4961         renamed SH files to be consistent.
4962
4963         * symtab.c (sort_search_symbols): Use xfree.
4964
4965 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
4966
4967         * arm-linux-tdep.c (arm_linux_init_abi): Register
4968         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
4969         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
4970         definition with undef, since we don't want the sysvr4 definition.
4971         (SKIP_TRAMPOLINE_CODE): Likewise.
4972
4973 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
4974
4975         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
4976
4977         * configure.in: (AC_CHECK_FUNCS) Added test for
4978         canonicalize_file_name Regenerated.
4979         * config.in, configure: Regenerated.
4980         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
4981         defined use canonicalize_file_name.
4982
4983 2002-02-23  Michael Chastain  <mec@shout.net>
4984
4985         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
4986
4987 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
4988
4989         * README: Remove references to cygnus.com.
4990         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
4991         dot com'' form.  Remove references to cygnus.com and sourceware.
4992
4993 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
4994
4995         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
4996         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
4997         1003.1-2001 no longer allows "head -1".
4998         * gdb/Makefile.in (version.c): Likewise.
4999         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
5000         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
5001         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
5002
5003 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
5004
5005         * cli/cli-decode.c (cmd_cfunc_eq): New function.
5006         * command.h (cmd_cfunc_eq): Declare.
5007         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
5008
5009         * cli/cli-cmds.h (is_complete_command): Change parameter to a
5010         ``struct cmd_list_element *''.
5011         * cli/cli-cmds.c (is_complete_command): Update.  Use
5012         cmd_cfunc_eq.
5013         * top.c (execute_command): Pass the command to
5014         is_complete_command.
5015         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
5016
5017 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
5018
5019         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
5020         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
5021         architecture defines.
5022         * s390-tdep.c (s390_gdbarch_init): Likewise.
5023
5024 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
5025
5026         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
5027         (arm_linux_push_arguments): Likewise.
5028         (arm_linux_init_abi): Register them.  Also register linux-specific
5029         call_dummy_words.
5030         (find_minsym_and_objfile): Use strcmp, not STREQ.
5031         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
5032         (arm_linux_call_dummy_words): Delete declaration.
5033         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
5034         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
5035         declarations.
5036         (LOWEST_PC): Delete.
5037
5038 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5039
5040         * maint.c (print_section_info): Do not prepend `0x' to filepos
5041         output, it will be handled by local_hex_string_custom.
5042
5043 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
5044
5045         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
5046         (store_newfpe_double, store_newfpe_extended, store_fpregister)
5047         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
5048
5049 2002-02-22  Jim Blandy  <jimb@redhat.com>
5050
5051         Indicate that the bcache functions don't change the strings
5052         they're passed.
5053         * bcache.h (bcache, hash): Add `const' keywords to declarations.
5054         * bcache.c (bcache, hash): Add `const' keywords to definitions.
5055
5056 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5057
5058         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
5059
5060 2002-02-21  Christopher Faylor  <cgf@redhat.com>
5061
5062         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
5063         find the complete path to a loaded DLL.
5064
5065 2002-02-21  Fred Fish  <fnf@redhat.com>
5066
5067         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
5068         that marks the end of the range of a function, enter a line number
5069         entry that has a line number of zero and a PC offset that matches
5070         the end of the function.  This starts a range of PC's for which no
5071         line number information is known.
5072         * symtab.c (find_pc_sect_line): If our best fit is in a range of
5073         PC's for which no line number info is found (line number is zero)
5074         then we didn't find any valid line information.
5075         * symtab.h: Document use of zero line number entry.
5076
5077 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
5078
5079         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
5080         (have_ptrace_getvrregs): Define for run time checks.
5081         (gdb_vrregset_t): New type for Altivec register handling.
5082         (fetch_register, store_register): Fetch/store altivec register
5083         when needed.
5084         (fetch_altivec_register, store_altivec_register): New functions.
5085         (supply_vrregset, fill_vrregset): New functions.
5086         (fetch_altivec_registers, store_altivec_registers): New functions.
5087         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
5088         registers as well.
5089
5090 2002-02-21  Jiri Smid  <smid@suse.cz>
5091
5092         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
5093
5094 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
5095
5096         * Makefile.in (armnbsd-nat.o): Update dependencies.
5097         * armnbsd-nat.c (supply_gregset): New function.  Common code to
5098         supply the integer register set.
5099         (supply_fparegset): New function.  Similar for FPA registers.
5100         (fetch_regs, fetch_fp_regs): Use them.
5101         (fetch_core_registers): Likewise.
5102         (fetch_elfcore_registers): New function.
5103         (arm_netbsd_elfcore_fns): New core-file type specification.
5104         (_initialize_arm_netbsd_nat): Register it.
5105
5106 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
5107
5108         * armnbsd-nat.c: Include gdbcore.h.
5109         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
5110         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
5111         'void' to declaration, to shut up ARI.
5112         (fetch_core_registers): Make static.  Rewrite using supply_register.
5113         (arm_netbsd_core_fns): New core-file type specification.
5114         (_initialize_arm_netbsd_nat): New function.
5115
5116 2002-02-21  Christopher Faylor  <cgf@redhat.com>
5117
5118         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
5119         value.
5120
5121 2002-02-20  Christopher Faylor  <cgf@redhat.com>
5122
5123         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
5124         fails.
5125
5126 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
5127
5128         * jv-exp.y (parse_number): Change type of implicit longs
5129         to builtin_type_uint64.
5130
5131 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
5132
5133         * gdbserver/linux-low.c (mywait): Change argument to waitpid
5134         to be an integer instead of a `union wait'.
5135
5136 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
5137
5138         * mips-linux-nat.c: Call the operating system GNU/Linux.
5139         * mips-linux-tdep.c: Likewise.
5140         * mips-tdep.c: Likewise.
5141
5142 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
5143
5144         Fix PR gdb/265.
5145         * jv-exp.y (parse_number): Handle 64-bit integers.
5146
5147 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
5148
5149         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
5150         AC_STDC_HEADERS to AC_HEADER_STDC.
5151         * gdbserver/configure: Regenerated.
5152
5153 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
5154
5155         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
5156         is defined.
5157         * sparc-tdep.c (get_longjmp_target): Likewise.
5158
5159 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
5160
5161         * News: Add news about ARM and Multi-arch.  Mention the new target
5162         arm*-*-netbsd*.
5163
5164 2002-02-19  Jim Blandy  <jimb@redhat.com>
5165
5166         * stabsread.c (error_type_complaint): Improve error message.
5167
5168 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
5169
5170         * gdbserver/README: Update documentation.
5171         * gdbserver/configure.in: Update configury to match documentation.
5172         * gdbserver/Makefile.in: Likewise.
5173         * gdbserver/configure: Regenerated.
5174         * gdbserver/aclocal.m4: New file, generated by aclocal.
5175         * gdbserver/config.in: New file, generated by autoheader.
5176
5177 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5178
5179         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
5180         armnbsd-nat.c.
5181
5182 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5183
5184         * arm-tdep.h (enum arm_float_model): New enum.
5185         (struct gdbarch_tdep): Add fp_model.
5186         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
5187         up floating-point conversions until we know the floating-point model
5188         in use by the inferior.  Don't complain about being unable to
5189         determine the ABI of the inferior when we don't have one.
5190         (arm_extract_return_value): Support different floating-point models.
5191         (arm_store_return_value): Likewise.
5192         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
5193         ARM_FLOAT_SOFT.
5194         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
5195
5196 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5197
5198         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
5199         of ``current_gdbarch''.
5200
5201 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5202
5203         * armnbsd-nat.c : ANSIfy all function declarations.
5204         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
5205         (fetch_inferior_registers): Re-implement in terms of above.
5206         (store_register, store_regs, store_fp_register, store_fp_regs): New.
5207         (store_inferior_registers): Re-implement in terms of above.
5208
5209 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5210
5211         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
5212         kernel.
5213         * arm-linux-tdep.c: Likewise.
5214         * config/arm/tm-linux.h: Likewise.
5215
5216 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5217
5218         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
5219         * config/arm/nbsd.mt (TM_FILE): Delete.
5220         * config/arm/tm-nbsd.h: Delete.
5221
5222 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5223
5224         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
5225         Initialize CALL_DUMMY_LENGTH.
5226
5227 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5228
5229         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
5230         function.
5231         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
5232         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
5233         defines one thing and that is incorrect for this port.
5234         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
5235
5236 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5237
5238         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
5239
5240 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5241
5242         * win32-nat.c (display_selector): New function. Displays information
5243         about the information returned by GetThreadSelectorEntry API function.
5244         (display_selectors): New function. Displays the infomation of
5245         the selector given as argument, or of CS, DS ans FS selectors
5246         if no argument is given.
5247         ( _initialize_inftarg): Add "w32" as info prefix command.
5248         Add "info w32 selector" as command calling display_selectors.
5249
5250 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5251
5252         * i386-tdep.c (get_longjmp_target): Fix compilation failure
5253         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5254         if not defined.
5255
5256 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
5257
5258         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5259
5260 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
5261
5262         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5263         (arm_fix_call_dummy): Call it.
5264         (arm_call_dummy_breakpoint_offset): Delete.
5265         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5266         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5267
5268 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
5269
5270         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5271         Default to func_frame_chain_valid.
5272         * gdbarch.h, gdbarch.c: Re-generate.
5273         * frame.h (FRAME_CHAIN_VALID): Delete definition.
5274
5275 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
5276
5277         * ppc-linux-nat.c: Update copyright.
5278         (fetch_register, store_register): Add tid parameter, don't compute
5279         tid here.
5280         (fetch_ppc_registers, store_ppc_registers): Add tid
5281         parameter. Pass it along to callees.
5282         (fetch_inferior_registers, store_inferior_registers): Compute tid
5283         here, and pass it to calleed functions.
5284         (fill_gregset, supply_fpregset): Clean up formatting.
5285
5286 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
5287
5288         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
5289         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
5290
5291 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
5292
5293         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
5294         * gdbarch.c gdbarch.h: Regenerate.
5295         * breakpoint.c (create_longjmp_breakpoint): Always compile this
5296         function.
5297         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
5298         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
5299         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
5300
5301         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
5302         * arm-tdep.c (arm_get_longjmp_target): New function.
5303         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
5304         this to a positive value register arm_get_longjmp_target as the
5305         longjmp handler.
5306         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
5307         (arm_linux_init_abi): Set up longjmp description in tdep.
5308         * armnbsd-nat.c (get_longjmp_target): Delete.
5309         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
5310         description in tdep.
5311         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
5312         (get_longjmp_target): Delete declaration.
5313         (GET_LONGJMP_TARGET): Delete.
5314         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
5315         (GET_LONGJMP_TARGET): Delete.
5316
5317 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
5318
5319         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
5320         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
5321         of ``current_gdbarch''.
5322
5323 2002-02-17  Tom Tromey  <tromey@redhat.com>
5324
5325         * cli/cli-cmds.c (compare_strings): New function.
5326         (complete_command): Only print each unique item once.
5327         * completer.h (complete_line): Declare.
5328         * completer.c (complete_line): New function.
5329         (line_completion_function): Use it.
5330
5331 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5332
5333         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
5334         * gdbarch.h, gdbarch.c: Re-generate.
5335
5336 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
5337
5338         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
5339
5340 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
5341
5342         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5343         * valops.c (value_arg_coerce): Don't take the address of a reference
5344         to convert an argument to a reference.
5345
5346 2002-02-15  Christopher Faylor  <cgf@redhat.com>
5347
5348         * win32-nat.c (get_image_name): New function.
5349         (handle_load_dll): Use get_image_name function.
5350         (get_child_debug_event): Avoid registering debug events until possibly
5351         execed process is started.
5352         (child_create_inferior): Allow invocation via shell so that command
5353         line redirection, etc.  works ok.
5354         (_initialize_inftarg): Add new command: "set shell" to control whether
5355         a shell is used to start a process.
5356
5357 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
5358
5359         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
5360         instead of find_register_by_number.
5361         (cannot_store_register): Likewise.
5362
5363 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
5364
5365         * dwarf2read.c: Replace fprintf (stderr, ...) by
5366         fprintf_unfiltered (gdb_stderr, ...).
5367
5368 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
5369
5370         * gdbserver/gdbserver.1: Document --attach.
5371
5372 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
5373
5374         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
5375         descriptions.
5376         * arm-tdep.c (arm_default_arm_le_breakpoint)
5377         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
5378         (arm_default_thumb_be_breakpoint): New.  Initialize them from
5379         traditional breakpoint defines.
5380         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
5381         (arm_gdbarch_init): Initialize new breakpoint variables.
5382         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
5383         (arm_linux_init_abi): Initialize linux-specific breakpoint.
5384         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
5385         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
5386         code out to ...
5387         (arm_netbsd_init_abi_common): ... here; new function.
5388         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
5389         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
5390         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
5391         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
5392
5393 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
5394
5395         * arm-tdep.h (enum arm_abi): New enum.
5396         (struct gdbarch_tdep): New structure.
5397         (LOWEST_PC): Provide a default.
5398         (arm_gdbarch_register_os_abi): Declare new function.
5399         * arm-tdep.c (arm_abi_names): New array.
5400         (process_note_abi_tag_sections): New function.
5401         (get_elfosabi): New function.
5402         (arm_gdbarch_register_os_abi): New function.
5403         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
5404         support for that ABI has been built in, then call the appropriate
5405         configuration routine.  Use gdbarch_num_regs() to get the number
5406         of registers.
5407         (arm_dump_tdep): New function.
5408         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
5409         place-holder functions.
5410         (_initialize_arm_tdep): Register them.
5411         * config/arm/tm-arm.h (LOWEST_PC): Delete.
5412
5413         * armnbsd-tdep.c: New file.
5414         * Makefile.in (armnbsd-tdep.o): Add dependencies.
5415         * config/arm/nbsd.mt (TDEPFILES): Add it.
5416         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
5417
5418         * armnbsd-nat.c: Include regcache.h.
5419         * Makefile.in (armnbsd-nat.o): Update dependency list.
5420
5421         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
5422
5423 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
5424
5425         * gdbserver/Makefile.in: Fix typos in target rules.
5426
5427 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
5428
5429         Fix part of PR gdb/267.
5430         * linespec.c (find_methods): Handle constructors specially for now.
5431
5432 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
5433
5434         * arm-tdep.c (arm_push_arguments): Eliminate special float type
5435         handling.
5436         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
5437         standard_coerce_float_to_double().
5438
5439 2002-02-14  Christopher Faylor  <cgf@redhat.com>
5440
5441         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
5442         GDBINIT_FILENAME.
5443
5444 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
5445
5446         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
5447         find_variant_by_name, because it confuses the multiarch
5448         framework. Return NULL if there isn't an architecture with the
5449         user supplied name, instead of forcing a different one without
5450         recording the change with the multiarch machinery.
5451         (find_variant_by_name): Delete.
5452
5453 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5454
5455         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
5456         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
5457
5458 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
5459
5460         * stack.c (print_frame_info_base): When calling
5461         print_frame_info_listing_hook, set current_source_symtab.
5462
5463 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
5464
5465         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
5466         and remove unused $(INCLUDE_DIR).
5467         Add regcache.c to OBS.
5468         Add generated register protocol files to clean target.
5469         Update dependencies for new objects, obsolete old target code.
5470
5471         * gdbserver/linux-low.c: Remove all platform-specific code to
5472         new files.  Remove various dead code.  Update to use regcache
5473         functionality.
5474         * gdbserver/remote-utils.c (fromhex): Add return statement
5475         to quiet warning.
5476         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
5477         constant.
5478         (input_interrupt): Add integer parameter to match prototype
5479         of a signal handler.
5480         (outreg): Use register_data ().
5481         (prepare_resume_reply): Use gdbserver_expedite_regs.
5482         * gdbserver/server.c (main): Dynamically allocate own_buf because
5483         PBUFSIZ is no longer constant.  Use registers_to_string () and
5484         registers_from_string ().
5485         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
5486         for error (), fatal (), and warning ().  Update definition of
5487         PBUFSIZ to use regcache functionality.  Add include guard.
5488         * gdbserver/utils.c (fatal): Add missing ``const''.
5489         (warning): New function.
5490
5491         * regformats/regdat.sh: Include "regcache.h" in generated files.
5492         Provide init_registers () function.
5493         * regformats/regdef.h: Add prototype for set_register_cache ().
5494         Add include guard.
5495
5496         * gdbserver/linux-arm-low.c: New file.
5497         * gdbserver/linux-i386-low.c: New file.
5498         * gdbserver/linux-ia64-low.c: New file.
5499         * gdbserver/linux-m68k-low.c: New file.
5500         * gdbserver/linux-mips-low.c: New file.
5501         * gdbserver/linux-ppc-low.c: New file.
5502         * gdbserver/linux-sh-low.c: New file.
5503
5504         * gdbserver/regcache.c: New file.
5505         * gdbserver/regcache.h: New file.
5506
5507         * gdbserver/low-linux.c: Removed obsolete file.
5508
5509 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
5510
5511         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
5512         * config/i386/linux.mt: Likewise.
5513         * config/ia64/linux.mt: Likewise.
5514         * config/m68k/linux.mh: Likewise.
5515         * config/powerpc/linux.mh: Likewise.
5516         * config/mips/linux.mt: Likewise.
5517
5518         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
5519
5520         * config/i386/i386lynx.mh: Mark gdbserver variables
5521         as (currently) obsolete for this target.
5522         * config/i386/nbsd.mt: Likewise.
5523         * config/i386/nbsdelf.mt: Likewise.
5524         * config/m32r/m32r.mt: Likewise.
5525         * config/m68k/m68klynx.mh: Likewise.
5526         * config/m68k/nbsd.mt: Likewise.
5527         * config/m68k/sun3os4.mh: Likewise.
5528         * config/mips/vr5000.mt: Likewise.
5529         * config/ns32k/nbsd.mt: Likewise.
5530         * config/pa/hppabsd.mh: Likewise.
5531         * config/pa/hppaosf.mh: Likewise.
5532         * config/powerpc/nbsd.mt: Likewise.
5533         * config/rs6000/rs6000lynx.mh: Likewise.
5534         * config/s390/s390.mt: Likewise.
5535         * config/s390/s390x.mt: Likewise.
5536         * config/sparc/sparclynx.mh: Likewise.
5537         * config/sparc/sun4os4.mh: Likewise.
5538         * config/i386/x86-64linux.mt: Likewise.
5539         * config/sparc/linux.mh: Likewise.
5540
5541 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
5542
5543         * configure.tgt: Configure gdbserver only for known working
5544         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
5545         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
5546         SUBDIRS if it is configured.  Update comment for ${nativefile}.
5547         * configure: Regenerated.
5548
5549 2002-02-13  Michael Snyder  <msnyder@redhat.com>
5550
5551         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
5552
5553         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
5554         (default_gcore_mach): Just return 0, work around a problem in bfd.
5555         (default_gcore_target): OK to return NULL if exec_bfd is null.
5556         (make_mem_sec): Use a cast, avoid a warning.
5557
5558         * procfs.c (find_memory_regions_callback): Use a cast instead of
5559         calling host_pointer_to_address (which complains if
5560         sizeof (host pointer) != sizeof (target pointer)).
5561         (procfs_make_note_section): Avoid overflow in psargs string.
5562
5563         * procfs.c (procfs_make_note_section): Make the default
5564         implementation return an error.
5565
5566 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
5567
5568         * procfs.c (procfs_make_note_section): Provide a default definition
5569         (for alpha-dec-osf4.0f). Fix typos.
5570
5571 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
5572
5573         * linux-proc.c: Add include of regcache.h.
5574         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
5575
5576 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
5577
5578         From 2002-01-18 Greg McGary <greg@mcgary.org>:
5579         * memattr.c (create_mem_region): Disallow useless empty region.
5580         Regions are half-open intervals, so allow [A..B) [B..C) as
5581         non-overlapping.
5582
5583 2002-02-13  Michael Chastain <mec@shout.net>
5584
5585         * defs.h: Kill CONST_PTR.
5586         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
5587         * c-lang.c (c_builtin_types): Likewise.
5588         * ch-lang.c (ch_builtin_types): Likewise.
5589         * f-lang.c (f_builtin_types): Likewise.
5590         * language.c (unknown_builtin_types): Likewise.
5591         * m2-lang.c (m2_builtin_types): Likewise.
5592         * p-lang.c (pascal_builtin_types): Likewise.
5593         * scm-lang.c (c_builtin_types): Likewise.
5594
5595 2002-02-13  Keith Seitz  <keiths@redhat.com>
5596
5597         * arm-tdep.h (arm_get_next_pc): Add declaration.
5598
5599 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
5600
5601         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
5602         with other related struct-returning functions.
5603         (arm_extract_struct_value_address): New function.
5604         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
5605         initialize float_format, double_format and long_double_format as
5606         appropriate to the endianness of the target.
5607         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
5608         (arm_use_struct_convention): Delete declaration.
5609         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5610
5611 2002-02-13  Keith Seitz  <keiths@redhat.com>
5612
5613         * defs.h (core_addr_to_string_nz): New function.
5614
5615 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
5616
5617         Apply missing bits of 2002-01-15 patch.
5618         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
5619         (fill_fpregset): Use i387_fill_fsave.
5620
5621 2002-02-12  Keith Seitz  <keiths@redhat.com>
5622
5623         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
5624         (core_addr_to_string_nz): New function.
5625
5626 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
5627
5628         * arm-linux-nat.c: Really include arm-tdep.h.
5629         * config/arm/tm-linux.h (struct type, struct value): Declare.
5630
5631 2002-02-11  Michael Snyder  <msnyder@redhat.com>
5632
5633         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
5634         (gcore section): Ifdef for Solaris and Unixware only.
5635         (procfs_do_thread_registers): Unixware needs one lwpstatus
5636         per thread (not one prstatus or pstatus).
5637         (procfs_make_note_section): Iterate only over kernel threads (lwps),
5638         not over all gdb threads.  For unixware, call elfcore_write_pstatus
5639         once before iterating over threads.
5640
5641 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
5642
5643         * arm-tdep.h: New file.
5644         * arm-tdep.c: Include arm-tdep.h.
5645         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5646         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5647         (arm_print_float_info, arm_register_type, convert_to_extended)
5648         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5649         (arm_extract_return_value, arm_register_name): Make static.
5650         (arm_software_single_step): Similarly.  Fix types in declaration.
5651         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
5652         (arm_store_return_value, arm_store_struct_return): New functions.
5653         (arm_gdbarch_init): Register the above functions.  Also register
5654         call_dummy_start_offset, sizeof_call_dummy_words,
5655         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
5656         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
5657         max_register_virtual_size, register_size.  Set up
5658         prologue_cache.saved_regs here, rather than ...
5659         (_initialize_arm_tdep): ... here.
5660         * config/arm/tm-arm.h (struct type, struct value): Delete forward
5661         declarations.
5662         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5663         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5664         (arm_print_float_info, arm_register_type, convert_to_extended)
5665         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5666         (arm_extract_return_value, arm_register_name): Delete declarations.
5667         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
5668         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
5669         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
5670         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
5671         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5672         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
5673         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
5674         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
5675         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
5676         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
5677         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
5678         (arm_get_next_pc): No-longer static -- these are needed by the RDI
5679         interface.
5680         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
5681         * remote-rdi.c remote-rdp.c: Likewise.
5682         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
5683         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
5684         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
5685         definition.
5686
5687         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
5688         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
5689         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
5690         from non-ARM_ prefixed definitions.
5691         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
5692         all uses of above.
5693         * remote-rdi.c remote-rdp.c: Likewise.
5694         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
5695
5696 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
5697
5698         * arm-tdep.c (arm_frameless_function_invocation)
5699         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5700         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5701         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5702         (arm_pop_frame, arm_get_next_pc): Make static.
5703         (arm_gdbarch_init): Register above in gdbarch structure.
5704         (arm_read_fp): Renamed from arm_target_read_fp.
5705         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
5706         * config/arm/tm-arm.h (arm_frameless_function_invocation)
5707         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5708         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5709         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5710         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
5711         (arm_pc_is_thumb_dummy): Delete declarations.
5712         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
5713         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
5714         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
5715         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
5716
5717 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
5718
5719         * symtab.c (compare_search_syms): New function.
5720         (sort_search_symbols): New function.
5721         (search_symbols): Sort symbols after searching rather than
5722         before.
5723
5724 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
5725
5726         * NEWS: Linux -> GNU/Linux.
5727
5728 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
5729
5730         * gdbarch.sh: For for level one methods, disallow a definition
5731         when partially multi-arched.  Add comments explaining rationale.
5732         * gdbarch.h: Re-generate.
5733
5734 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
5735
5736         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
5737         multi-arch partial.
5738
5739 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
5740
5741         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
5742         field.  Use diff -u.
5743         * gdbarch.c: Re-generate.
5744
5745 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
5746
5747         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
5748         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
5749         partial.
5750
5751 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
5752
5753         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
5754         multi-arch partial.
5755         (PUSH_ARGUMENTS): Switch to using predefault.
5756         * gdbarch.c: Regenerate.
5757
5758 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
5759
5760         * valops.c (PUSH_ARGUMENTS): Delete definition.
5761         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
5762         partial.  Default to default_push_arguments.
5763         * gdbarch.h, gdbarch.c: Regenerate.
5764
5765 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
5766
5767         * defs.h (throw_exception): Rename return_to_top_level.  Update
5768         comments.
5769         * utils.c (error_stream, internal_verror, quit): Ditto.
5770         * top.c (throw_exception, catcher): Ditto.
5771         * sparclet-rom.c (sparclet_load): Ditto.
5772         * remote.c (interrupt_query, minitelnet): Ditto.
5773         * remote-sds.c (interrupt_query): Ditto.
5774         * remote-mips.c (mips_error, mips_kill): Ditto.
5775         * ocd.c (interrupt_query): Ditto.
5776         * monitor.c (monitor_interrupt_query): Ditto.
5777         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
5778         * target.h: Update comment.
5779
5780         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
5781
5782 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
5783
5784         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
5785         default_double_format.
5786         * gdbarch.h, gdbarch.c: Re-generate.
5787         * findvar.c (floatformat_unknown): Delete variable definition.
5788         * doublest.h (floatformat_unknown): Delete variable declaration.
5789
5790 2002-02-09  Jim Blandy  <jimb@redhat.com>
5791
5792         * stabsread.c (read_type): Add code to parse Sun's syntax for
5793         prototyped function types.
5794
5795 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
5796
5797         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
5798         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
5799
5800 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5801
5802         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
5803         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
5804         now _initialize_xcoffsolib gets called again and overrides the
5805         commands from solib.c in a native configuration.
5806
5807 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
5808
5809         * doublest.c (store_typed_floating): Don't try to return a value.
5810         Fixes PR gdb/290.
5811
5812 2002-02-08  Jim Blandy  <jimb@redhat.com>
5813
5814         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
5815         is prototyped and has no arguments, print its argument list as
5816         `(void)'.
5817
5818 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
5819
5820         * MAINTAINERS (write-after-approval): Add myself.
5821         (paper-trail): I've escaped!
5822
5823 2002-02-08  Christopher Faylor  <cgf@redhat.com>
5824
5825         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
5826         changes.
5827         (_initialize_check_for_gdb_ini): Ditto.
5828
5829 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
5830
5831         * win32-nat.c (cygwin_pid_to_str): Fix typo.
5832         xaprintf -> xasprintf.
5833
5834 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
5835
5836         * win32-nat.c: Remove use of printf and sprintf functions.
5837
5838 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
5839
5840         * arm-tdep.c (arm_frame_chain_valid): Make static.
5841         (arm_push_arguments): Likewise.
5842         (arm_gdbarch_init): New function.
5843         (_initialize_arm_tdep): Call it.
5844         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
5845         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
5846         (FRAME_CHAIN_VALID): Delete.
5847         (arm_frame_chain_valid): Delete declaration.
5848         (PUSH_ARGUMENTS): Delete.
5849         (arm_push_arguments): Delete declaration.
5850         (CALL_DUMMY_P): Delete.
5851
5852 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
5853             Corinna Vinschen  <vinschen@redhat.com>
5854
5855         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
5856         on builtin float types.
5857
5858 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
5859
5860         * utils.c: Include <curses.h> before "bfd.h".
5861         * tui/tui-hooks.c: Likewise.
5862         * tui/tui.c: Likewise.
5863         * tui/tuiCommand.c: Likewise.
5864         * tui/tuiData.c: Likewise.
5865         * tui/tuiDataWin.c: Likewise.
5866         * tui/tuiDisassem.c: Likewise.
5867         * tui/tuiGeneralWin.c: Likewise.
5868         * tui/tuiIO.c: Likewise.
5869         * tui/tuiLayout.c: Likewise.
5870         * tui/tuiRegs.c: Likewise.
5871         * tui/tuiSource.c: Likewise.
5872         * tui/tuiSourceWin.c: Likewise.
5873         * tui/tuiStack.c: Likewise.
5874         * tui/tuiWin.c: Likewise.
5875
5876 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
5877
5878         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
5879         to include space for pseudoregs as well. Update loops accordingly.
5880         (sh_fp_frame_init_saved_regs): Ditto.
5881         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
5882
5883 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
5884
5885         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
5886         Add Richard Earnshaw to Arm maintainers.
5887
5888 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
5889
5890         * defs.h (warning_begin): Delete declaration.
5891
5892         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
5893         Delete macro.
5894
5895 2002-02-07  Michael Snyder  <msnyder@redhat.com>
5896
5897         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5898         Logic bug, remove misplaced else.
5899
5900 2002-02-07  Klee Dienes  <klee@apple.com>
5901
5902         * fork-inferior.c (fork_inferior): Add '!' to the list of
5903         characters that need to be quoted when building a string for the
5904         shell.  Quote '!' specifically with a backslash, since CSH chokes
5905         when trying to evaluate "str!str".
5906
5907 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
5908
5909         * rdi-share/host.h: Only provide a typedef for bool if it is not
5910         defined.
5911
5912 2002-02-04  Michael Snyder  <msnyder@redhat.com>
5913
5914         * breakpoint.h (enum bptype): Add new overlay event bp type.
5915         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
5916
5917         * breakpoint.c (create_internal_breakpoint): New function.
5918         (internal_breakpoint_number): Moved into create_internal_breakpoint.
5919         (create_longjmp_breakpoint): Use create_internal_breakpoint.
5920         (create_thread_event_breakpoint): Ditto.
5921         (create_solib_event_breakpoint): Ditto.
5922         (create_overlay_event_breakpoint): New function.
5923         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
5924         (update_breakpoints_after_exec): Delete and re-initialize
5925         overlay event breakpoints after an exec.  Add FIXME comment
5926         about longjmp breakpoint.
5927         (print_it_typical): Ignore overlay event breakpoints.
5928         (print_one_breakpoint): Ditto.
5929         (mention): Ditto.
5930         (bpstat_what): Do not stop for overlay event breakpoints.
5931         (delete_breakpoint): Don't delete overlay event breakpoints.
5932         (breakpoint_re_set_one): Delete the overlay event breakpoint.
5933         (breakpoint_re_set): Re-create overlay event breakpoint.
5934
5935         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
5936         (overlay_manual_command): Disable overlay breakpoints.
5937         (overlay_off_command): Disable overlay breakpoints.
5938
5939 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
5940
5941         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
5942         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
5943         to here from config/tm-arm.h.
5944         (coff_sym_is_thumb): Make static.
5945         (arm_elf_make_msymbol_special): New function.
5946         (arm_coff_make_msymbol_special): New function.
5947         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
5948         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
5949         (coff_sym_is_thumb): Delete declaration.
5950         (arm_elf_make_msymbol_special): Declare.
5951         (arm_coff_make_msymbol_special): Declare.
5952         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
5953         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
5954
5955 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
5956
5957         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
5958
5959 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
5960
5961         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
5962         * gdbarch.c gdbarch.h: Regenerate.
5963         * arch-utils.c (default_print_float_info): New function.
5964         * arch-utils.h (default_print_float_info): Prototype it.
5965         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
5966         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
5967         (PRINT_FLOAT_INFO): Document it.
5968
5969         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
5970         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
5971         (PRINT_FLOAT_INFO): Define.
5972
5973 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
5974
5975         * win32-nat.c (_initialize_check_for_gdb_ini):
5976         Add typecast to sprintf argument to suppress a warning.
5977
5978 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
5979
5980         * win32-nat.c (last_sig): Changed type of variable to target_signal,
5981         to allow easier handling of pass state.
5982         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
5983         that gives exception name and address.
5984         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
5985         and set last_sig value to ourstatus->value.sig. Some missing
5986         exceptions added.
5987         (child_continue): Correctly report continue_status.
5988         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
5989         TARGET_SIGNAL_0 (new default value).
5990         (child_resume): consider sig argument passed to decide if
5991         the exception should be passed to debuggee or not.
5992
5993 2002-02-05  Michael Snyder  <msnyder@redhat.com>
5994
5995         * regcache.c (fetch_register): Call target_fetch_register
5996         only if we don't call FETCH_PSEUDO_REGISTER.
5997         (store_register): Call target_store_register only if we
5998         don't call STORE_PSEUDO_REGISTER.
5999
6000 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
6001
6002         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
6003         ELF_MAKE_MSYMBOL_SPECIAL.
6004         * gdbarch.c, gdbarch.h: Regenerate.
6005         * arch-utils.c (default_make_msymbol_special): New function.
6006         * arch-utils.h (default_make_msymbol_special): Export.
6007         * elfread.c (elf_symtab_read): Compile use of
6008         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
6009         multiarched.
6010         * coffread.c (coff_symtab_read): Ditto, for
6011         COFF_MAKE_MSYMBOL_SPECIAL.
6012
6013 2002-02-05  Jim Blandy  <jimb@redhat.com>
6014
6015         * solib-svr4.c (svr4_truncate_ptr): New function.
6016         (svr4_relocate_section_addresses): Do the address arithmetic with
6017         the appropriate truncation for target addresses, even when
6018         CORE_ADDR is larger than a target address.
6019
6020 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6021
6022         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
6023         to (int *).
6024
6025 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6026
6027         * gdbserver/linux-low.c (kill_inferior): Remove commented out
6028         code.
6029
6030 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6031
6032         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
6033
6034 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6035
6036         * gdbserver/linux-low.c: Remove unused include files.
6037
6038 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6039
6040         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
6041         (read_inferior_memory): Use it.
6042         (write_inferior_memory): Likewise.
6043
6044 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6045
6046         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
6047         grubbing through sys_errlist.
6048
6049 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6050
6051         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
6052
6053 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6054         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
6055
6056 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
6057
6058         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
6059         (do_sfunc, set_cmd_sfunc): New functions.
6060
6061         * command.h (struct cmd_list_element): Add field func.
6062         * cli/cli-decode.h (struct cmd_list_element): Ditto.
6063         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
6064         * cli/cli-decode.h: Ditto.
6065
6066         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
6067         (help_all, help_cmd_list): Ditto.
6068         (find_cmd, complete_on_cmdlist): Ditto.
6069         * top.c (execute_command): Ditto.
6070
6071         * cli/cli-setshow.c (do_setshow_command): Call func instead of
6072         function.sfunc.
6073
6074         * infcmd.c (notice_args_read): Fix function signature.
6075
6076         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
6077         * cli/cli-decode.c (add_set_cmd): Ditto.
6078         * utils.c (initialize_utils): Ditto.
6079         * maint.c (_initialize_maint_cmds): Ditto.
6080         * infrun.c (_initialize_infrun): Ditto.
6081         * demangle.c (_initialize_demangler): Ditto.
6082         * remote.c (add_packet_config_cmd): Ditto.
6083         * mips-tdep.c (_initialize_mips_tdep): Ditto.
6084         * cris-tdep.c (_initialize_cris_tdep): Ditto.
6085         * proc-api.c (_initialize_proc_api): Ditto.
6086         * kod.c (_initialize_kod): Ditto.
6087         * valprint.c (_initialize_valprint): Ditto.
6088         * top.c (init_main): Ditto.
6089         * infcmd.c (_initialize_infcmd): Ditto.
6090         * corefile.c (_initialize_core): Ditto.
6091         * arm-tdep.c (_initialize_arm_tdep): Ditto.
6092         * arch-utils.c (initialize_current_architecture): Ditto.
6093         (_initialize_gdbarch_utils): Ditto.
6094         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
6095
6096         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
6097         * wince.c (_initialize_inftarg): Ditto.
6098         * symfile.c (_initialize_symfile): Ditto.
6099         * mips-tdep.c (_initialize_mips_tdep): Ditto.
6100         * language.c (_initialize_language): Ditto.
6101         * arc-tdep.c (_initialize_arc_tdep): Ditto.
6102
6103 2002-02-04  Michael Snyder  <msnyder@redhat.com>
6104
6105         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
6106
6107 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
6108
6109         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
6110         Add rules for building the register data files.
6111
6112 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
6113
6114         * regformats/regdat.sh: Add braces to the definition of
6115         expedite_regs_${arch}.
6116
6117 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
6118
6119         * regformats/regdef.h (struct reg): Add comment describing the
6120         requirements for offset and size fields.
6121
6122 2002-02-04  Andreas Schwab  <schwab@suse.de>
6123
6124         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
6125         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
6126
6127 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
6128
6129         * gdbarch.sh (copyright): Update years in generated header.
6130         (SMASH_TEXT_ADDRESS): Add rule.
6131         * gdbarch.h, gdbarch.c: Re-generate.
6132         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
6133         * dbxread.c: Likewise.
6134         * dwarfread.c: Likewise.
6135         * elfread.c: Likewise.
6136         * somread.c: Likewise.
6137
6138         * arm-tdep.c (arm_smash_text_address): New function.
6139         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
6140
6141 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6142
6143         Add support for hardware watchpoints on win32 native.
6144         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
6145         CONTEXT_DEBUG_REGISTERS.
6146         (dr variable): New variable. Static array containing a local copy
6147         of debug registers.
6148         (debug_registers_changed): New variable.  Reflects when debug registers
6149         are changed and need to be written to inferior.
6150         (debug_registers_used): New variable. Reflects when any debug register
6151         was set, used when new threads are created.
6152         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
6153         i386-nat code.
6154         (thread_rec): Set dr array if id is the thread of current_event .
6155         (child_continue, child_resume): Change the debug registers for all
6156         threads if debug_registers_changed.
6157         (child_add_thread): Change the debug registers if debug_registers_used.
6158         * config/i386/cygwin.mh: Add use of i386-nat.o file.
6159         Link nm.h to new nm-cygwin.h file.
6160         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
6161         of hardware registers.
6162
6163 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
6164
6165         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
6166         Restore behavour broken by 2002-01-20 Andrew Cagney
6167         <ac131313@redhat.com> IEEE_FLOAT removal.
6168
6169 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
6170
6171         * c-valprint.c (c_val_print): Pass a proper valaddr to
6172         cp_print_class_method.
6173         * valops.c (search_struct_method): If there is only one method
6174         and args is NULL, return that method.
6175
6176 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
6177
6178         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
6179         accessing tag_name directly.
6180
6181 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
6182
6183         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
6184         of accessing tag_name directly.
6185
6186 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
6187
6188         PR gdb/280
6189         * gdbtypes.c (replace_type): New function.
6190         * gdbtypes.h (replace_type): Add prototype.
6191         * stabsread.c (read_type): Use replace_type.
6192
6193 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
6194
6195         * Makefile.in (memattr.o): Add missing dependencies rule.
6196
6197 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
6198
6199         * breakpoint.c (break_at_finish_command): Really export.
6200         (break_at_finish_at_depth_command): Ditto.
6201         (tbreak_at_finish_command): Ditto.
6202         * hppa-tdep.c: Include completer.h.
6203         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
6204         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
6205
6206 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
6207
6208         * utils.c (do_write): New function.
6209         (error_stream): Rewrite combining the code from error_begin and
6210         verror.
6211         (verror): Rewrite using error_stream.
6212         (error_begin): Delete function.
6213
6214 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
6215
6216         * utils.c (error_begin): Make static.
6217         * defs.h (error_begin): Delete declaration.
6218
6219         * linespec.c (cplusplus_error): Replace cplusplus_hint.
6220         (decode_line_1): Use cplusplus_error instead of error_begin,
6221         cplusplus_hint and return_to_top_level.
6222         * coffread.c (coff_symfile_read): Use error instead of error_begin
6223         and return_to_top_level.
6224         * infrun.c (default_skip_permanent_breakpoint): Ditto.
6225
6226 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
6227
6228         * language.h (type_error, range_error): Make string parameter
6229         constant.
6230         * language.c (warning_pre_print): Delete extern declaration.
6231         * dwarfread.c (warning_pre_print): Ditto.
6232         * language.c (type_error, range_error): Rewrite to use verror and
6233         vwarning instead of warning_begin.
6234
6235 2002-02-01  Michael Snyder  <msnyder@redhat.com>
6236
6237         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
6238         (set_ignore_count): Move misplaced comment back where it belongs.
6239
6240 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
6241
6242         * command.h (NO_FUNCTION): Delete macro.
6243         * cli/cli-decode.h (NO_FUNCTION): Ditto.
6244         * top.c (execute_command): Replace NO_FUNCTION with NULL.
6245         * tracepoint.c (_initialize_tracepoint): Ditto.
6246         * cli/cli-decode.c (add_set_cmd): Ditto.
6247         * cli/cli-cmds.c (init_cli_cmds): Ditto.
6248
6249 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
6250
6251         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
6252         Update ``this'' pointer when calling virtual functions.
6253
6254 2002-02-01  Michael Snyder  <msnyder@redhat.com>
6255
6256         * breakpoint.c (create_temp_exception_breakpoint): Delete.
6257         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6258
6259 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
6260
6261         * regformats/reg-arm.dat: New file.
6262         * regformats/reg-i386.dat: New file.
6263         * regformats/reg-ia64.dat: New file.
6264         * regformats/reg-m68k.dat: New file.
6265         * regformats/reg-mips.dat: New file.
6266         * regformats/reg-ppc.dat: New file.
6267         * regformats/reg-sh.dat: New file.
6268         * regformats/regdef.h: New file.
6269         * regformats/regdat.sh: New file.
6270
6271 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
6272
6273         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6274         (arm_frame_args_address, arm_frame_locals_address): New functions.
6275         (arm_frame_num_args): New function.
6276         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6277         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6278         (FRMA_NUM_ARGS): Call arm_frame_num_args.
6279
6280 2002-01-31  Michael Snyder  <msnyder@redhat.com>
6281
6282         * breakpoint.c (break_at_finish_command): Export.
6283         (break_at_finish_at_depth_command): Export.
6284         (tbreak_at_finish_command): Export.
6285         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
6286         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
6287         "tbreak" commands, which are HPPA specific.
6288
6289         * printcmd.c (disassemble_command): Remove an ancient
6290         artifact of an old merge.
6291
6292         * symfile.h (enum overlay_debugging_state):
6293         Define enum constant values for overlay mode.
6294         * symfile.c (overlay_debugging): Use enums instead of literals.
6295         (overlay_is_mapped, overlay_auto_command,
6296         overlay_manual_command): Ditto.
6297
6298         * breakpoint.c (insert_breakpoints, remove_breakpoint,
6299         breakpoint_here_p, breakpoint_inserted_here_p,
6300         breakpoint_thread_match, bpstat_stop_status,
6301         describe_other_breakpoints, check_duplicates, clear_command):
6302         Coding standard fixes.
6303
6304         * target.c (target_xfer_memory): Add spaces, coding standard.
6305         (do_xfer_memory): Add missing line to trust-readonly
6306         code: check bfd SEC_READONLY flag for section.
6307
6308 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
6309
6310         * PROBLEMS: Fix typo, 5.1->5.1.1.
6311
6312 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
6313
6314         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
6315         data symbols, since we search based on textlow and texthigh.
6316         (find_pc_sect_symtab): Likewise.
6317
6318 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
6319
6320         * defs.h (vwarning): Declare.
6321         * utils.c (vwarning): New function.
6322         (warning): Call vwarning.
6323         (warning_begin): Delete function.
6324
6325         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
6326         the warning message.
6327         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
6328         warning_begin.
6329
6330 2002-01-30  Michael Snyder  <msnyder@redhat.com>
6331
6332         * NEWS: Mention "set trust-readonly-sections" command.
6333         Mention generate-core-file command.
6334
6335 2002-01-15  Michael Snyder  <msnyder@redhat.com>
6336
6337         * target.c: New command, "set trust-readonly-sections on".
6338         (do_xfer_memory): Honor the suggestion to trust readonly sections
6339         by reading them from the object file instead of from the target.
6340         (initialize_targets): Register command "set trust-readonly-sections".
6341
6342 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
6343
6344         * parse.c (target_map_name_to_register): Simplify, search regs and
6345         pseudo-regs using a single loop.
6346
6347 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
6348
6349         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
6350
6351 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
6352
6353         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
6354         * config/i386/i386v42mp.mh: Add i387-nat.o .
6355         * i386v4-nat.c: Include i387-nat.h.
6356         (supply_fpregset): Use i387_supply_fsave.
6357         (fill_fpregset): Use i387_fill_fsave.
6358
6359 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
6360
6361         * arm-tdep.c (arm_call_dummy_words): Define.
6362         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
6363         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
6364         (CALL_DUMMY_WORDS): Define.
6365         (arm_call_dummy_words): Declare.
6366         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
6367         (arm_linux_call_dummy_words): Declare.
6368
6369 2002-01-30  Andreas Schwab  <schwab@suse.de>
6370
6371         * m68klinux-nat.c: Fix last change to use regcache_collect
6372         instead of referencing registers[] directly.
6373
6374 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
6375
6376         * parse.c (target_map_name_to_register): Delete code wrapped in
6377         #ifdef REGISTER_NAME_ALIAS_HOOK.
6378
6379 2002-01-28  Michael Snyder  <msnyder@redhat.com>
6380
6381         * regcache.c (legacy_read_register_gen): Need to be able to
6382         read pseudo-register as well as real register.
6383         (legacy_write_register_gen): Ditto.
6384
6385 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
6386
6387         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6388         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
6389         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
6390         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
6391         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
6392         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
6393         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
6394         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
6395         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
6396         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6397         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
6398         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
6399         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
6400         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
6401         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
6402         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
6403         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
6404         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
6405         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
6406         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
6407
6408 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
6409
6410         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
6411         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
6412         (initialize_current_architecture): Update target_byte_order using
6413         information from BFD.
6414         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
6415         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
6416
6417 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
6418
6419         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
6420         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
6421
6422         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
6423         #ifdef INVALID_FLOAT.
6424         * infcmd.c (do_registers_info): Ditto.
6425         * values.c (unpack_double): Ditto.  Add comment.
6426
6427         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
6428         already commented out.
6429
6430 2002-01-26  Andreas Schwab  <schwab@suse.de>
6431
6432         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6433         * m68klinux-nat.c: Update ptrace interface for fetching/storing
6434         registers and add support for PTRACE_GETREGS.
6435
6436 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
6437
6438         GDB 5.1.1 released from 5.1 branch.
6439         * NEWS: Add 5.1.1 news.
6440         * README: Sync with 5.1 branch.
6441
6442 2002-01-23  Fred Fish  <fnf@redhat.com>
6443
6444         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
6445         stabstring on initial malloc.  Reallocing will copy it for us,
6446         if necessary.
6447
6448 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
6449
6450         * Makefile.in (hpread_h): Delete.
6451         (HFILES_NO_SRCDIR): Remove hpread.h.
6452         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
6453         (hpread.o): Update dependencies.
6454         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
6455
6456         * hp-psymtab-read.c: Remove file.
6457         * hp-symtab-read.c: Remove file.
6458         * hpread.h: Remove file.
6459
6460         * hpread.c: Merge all contents of hp-psymtab-read.c,
6461         hp-symtab-read.c and hpread.h into this file, as it was prior to
6462         January 1999.
6463
6464         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
6465         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
6466         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
6467         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
6468
6469 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
6470
6471         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
6472         fill_gregset): Call gdbarch_tdep() just once, assign result to
6473         variable and use that, instead of calling the function several
6474         times.
6475
6476 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6477
6478         * configure.host: Accept sparcv9 as alias for sparc64.
6479         * configure.tgt: Likewise.
6480
6481 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
6482
6483         * solib-aix5.c (build_so_list_from_mapfile)
6484         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
6485         arguments is not reversed.
6486         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
6487         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
6488
6489 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
6490
6491         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
6492         modified version of obsolete sh_fetch_pseudo_register.
6493         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
6494         (sh4_register_read): New function.
6495         (sh_pseudo_register_write): New function. Renamed and modified
6496         version of obsolete sh_store_pseudo_register.
6497         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
6498         (sh4_register_write): New function.
6499         (sh_gdbarch_init): Remove setting of gdbarch function
6500         fetch_pseudo_register and store_pseudo_register. Remove setting of
6501         register_convert_to_raw, register_convert_to_virtual,
6502         register_convertible.
6503         (sh_sh4_register_convertible): Delete. No longer needed. All is
6504         taken care by architecture specific functions
6505         register_read/register_write.
6506         (sh_sh4_register_convert_to_virtual): Make static.
6507         (sh_sh4_register_convert_to_raw): Ditto.
6508
6509 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
6510
6511         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
6512         (floatformat_is_nan, floatformat_mantissa): Ditto.
6513
6514         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
6515         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
6516         builtin_type_ieee_double_little,
6517         builtin_type_ieee_double_littlebyte_bigword,
6518         builtin_type_m68881_ext, builtin_type_i960_ext,
6519         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
6520         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
6521         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
6522         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
6523
6524 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
6525
6526         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
6527         parameter.  Set frameless flag if it exists and depended of
6528         whether the scanned function is frameless or not.
6529         (xstormy16_skip_prologue): If function is frameless, return
6530         result of xstormy16_scan_prologue().
6531         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
6532         call.
6533
6534 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
6535
6536         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
6537         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
6538         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
6539         sh_sh4_register_byte, sh_sh4_register_raw_size,
6540         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
6541         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
6542         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
6543         sh_store_pseudo_register, sh_do_pseudo_register): Call
6544         gdbarch_tdep() just once, assign result to variable and use that,
6545         instead of calling the function several times.
6546
6547 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
6548
6549         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
6550         macros instead of LAST_FPU_CTRL_REGNUM.
6551         (store_register): Likewise.
6552
6553 2002-01-21  Jim Blandy  <jimb@redhat.com>
6554
6555         * infcmd.c (run_command): Check that the `exec' target layer's BFD
6556         is up-to-date before running the program, not just when a program
6557         exits.
6558
6559 2002-01-21  Fred Fish  <fnf@redhat.com>
6560
6561         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
6562         when we have found all instructions we are looking for.
6563
6564 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
6565
6566         * arm-tdep.c (arm_register_name): New function.
6567         (arm_registers_names): Make static.
6568         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
6569         (arm_register_name): Declare.
6570         (REGISTER_NAME): Use it.
6571
6572 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
6573             Kevin Buettner  <kevinb@redhat.com>
6574
6575         Convert arm targets to new FRAME interface.
6576         * arm-tdep.c (struct frame_extra_info): Remove fsr.
6577         (arm_frame_find_save_regs): Delete.
6578         (arm_frame_init_saved_regs): New.
6579         (arm_init_extra_frame_info): Alloacte saved_regs as required.
6580         Allocate extra_info as required.  Convert all uses of fsr.regs
6581         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
6582         to use extra_info.
6583         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
6584         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
6585         (check_prologue_cache, save_prologue_cache): Likewise.
6586         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
6587         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
6588         (FRAME_FIND_SAVED_REGS): Delete.
6589         (arm_frame_find_saved_regs): Delete prototype.
6590         (arm_frame_init_saved_regs): New prototype.
6591         (FRAME_INIT_SAVED_REGS): Define.
6592
6593 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
6594
6595         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
6596
6597 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
6598
6599         From Jeff Law <law@redhat.com>:
6600         * infttrace.c: Include <sys/pstat.h>.
6601         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
6602         exec file if the ttrace equivalent fails.
6603
6604 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
6605
6606         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
6607         (closeLogFile): Ditto.
6608
6609 2002-01-20  Michael Chastain  <mec@shout.net>
6610
6611         * top.c (print_gdb_version): Bump copyright year to 2002.
6612
6613 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
6614
6615         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
6616         Zannoni and Eli Zaretskii.
6617
6618 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
6619
6620         * buildsym.c: Update copyright years.
6621         * c-typeprint.c: Likewise.
6622         * dwarf2read.c: Likewise.
6623         * f-typeprint.c: Likewise.
6624         * gdbtypes.c: Likewise.
6625         * gdbtypes.h: Likewise.
6626         * hp-symtab-read.c: Likewise.
6627         * hpread.c: Likewise.
6628         * mdebugread.c: Likewise.
6629         * p-typeprint.c: Likewise.
6630
6631 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
6632
6633         * remote-sim.c (gdbsim_open): Simplify code testing the macro
6634         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
6635         byte-order selectable.
6636         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
6637         * arch-utils.c: Ditto.
6638         (set_endian): Ditto.
6639         (set_endian_from_file): Ditto.
6640         * gdbserver/low-sim.c (create_inferior): Ditto.
6641         * gdbarch.sh: Ditto.
6642         * gdbarch.h: Re-generate.
6643         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6644         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
6645         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
6646         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6647         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6648         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6649         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
6650         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
6651         macro definition.
6652         * config/mips/tm-wince.h: Remove #undef of macro
6653         TARGET_BYTE_ORDER_SELECTABLE.
6654         * config/sh/tm-wince.h: Ditto.
6655
6656 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
6657
6658         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
6659         member function fields.  Add accessor macro
6660         TYPE_FN_FIELD_ARTIFICIAL.
6661         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
6662         * c-typeprint.c (c_type_print_base): Skip artificial member
6663         functions.
6664
6665 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
6666
6667         * f-typeprint.c: Delete unused function f_type_print_args.
6668         * p-typeprint.c: Delete unused function pascal_type_print_args.
6669
6670 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
6671
6672         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
6673         comment.  Add ``artificial'' to ``union field_location''.
6674
6675         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
6676
6677         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
6678         * mdebugread.c (parse_symbol): Likewise.
6679         * stabsread.c (define_symbol): Likewise.
6680         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
6681         initializing TYPE_FIELD_BITPOS to n (obsolete).
6682         (hpread_doc_function_type): Likewise.
6683         * hpread.c (hpread_function_type): Likewise.
6684
6685 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
6686
6687         * configure.in (host_makefile_frag): Only require a host makefile
6688         fragment when a native build.
6689         * configure: Re-generate.
6690
6691 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
6692
6693         * doublest.h (floatformat_from_type): Declare.
6694         * doublest.c (floatformat_from_type): New function.
6695         (convert_typed_floating): Use.
6696
6697         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
6698         call to function floatformat_from_type.
6699
6700         * gdbarch.sh (IEEE_FLOAT): Delete.
6701         * gdbarch.h, gdbarch.c: Re-generate.
6702         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
6703         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
6704         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
6705         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
6706         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
6707         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
6708         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
6709         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
6710         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
6711         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
6712         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
6713         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
6714
6715         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
6716         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6717         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6718         * sh-tdep.c (sh_gdbarch_init): Ditto.
6719         * mips-tdep.c (mips_gdbarch_init): Ditto.
6720         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6721         * cris-tdep.c (cris_gdbarch_init): Ditto.
6722
6723 2002-01-20  Jiri Smid  <smid@suse.cz>
6724
6725         * configure.host, configure.tgt: Support x86-64.
6726         * NEWS: Note new target x86-64.
6727
6728         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
6729         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
6730         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
6731         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
6732         x86-64-linux-nat.o): Fix dependencies.
6733
6734 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
6735
6736         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
6737         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
6738         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
6739         * config/sparc/xm-sun4os4.h: Delete file.
6740         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
6741
6742 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
6743
6744         * config/sparc/sparclynx.mh (XM_FILE): Delete.
6745         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
6746         * config/m68k/m68klynx.mh (XM_FILE): Delete.
6747         * config/i386/i386lynx.mh (XM_FILE): Delete.
6748         * config/rs6000/xm-rs6000ly.h: Delete file.
6749         * config/sparc/xm-sparclynx.h: Delete file.
6750         * config/m68k/xm-m68klynx.h: Delete file.
6751         * config/i386/xm-i386lynx.h: Delete file.
6752         * config/xm-lynx.h: Delete file.
6753         * config/djgpp/fnchange.lst: Update.
6754
6755 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
6756
6757         * alpha-tdep.c (alpha_register_byte): New function.
6758         (alpha_register_raw_size): Ditto.
6759         (alpha_register_virtual_size): Ditto.
6760         (alpha_skip_prologue_internal): Renamed from
6761         alpha_skip_prologue.
6762         (alpha_skip_prologue): New version that calls
6763         alpha_skip_prologue_internal.
6764         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
6765         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
6766         second argument from alpha_skip_prologue.
6767         (REGISTER_BYTE): Use alpha_register_byte.
6768         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
6769         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
6770         (FRAMELESS_FUNCTION_INVOCATION): Use
6771         generic_frameless_function_invocation_not.
6772         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
6773         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
6774
6775 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
6776
6777         * config/mips/xm-news-mips.h: Delete file.
6778         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
6779
6780         * config/m88k/xm-m88k.h: Delete file.
6781         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
6782         * config/m88k/xm-delta88v4.h: Ditto.
6783         * config/m88k/xm-delta88.h: Ditto.
6784
6785         * config/alpha/xm-fbsd.h: Delete file.
6786         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
6787
6788         * config/sparc/xm-sparc.h: Delete file.
6789         * Makefile.in (xm-sun4os4.h): Delete dependency.
6790         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
6791         * config/sparc/xm-sun4os4.h: Ditto.
6792         * config/sparc/xm-linux.h: Ditto.
6793
6794         * config/i386/xm-windows.h: Delete file.
6795
6796 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
6797
6798         * utils.c: Include <sys/param.h> for MAXPATHLEN.
6799         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
6800
6801 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
6802
6803         * alpha-tdep.c (alpha_call_dummy_words): New.
6804         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
6805         (CALL_DUMMY_P): Define.
6806         (CALL_DUMMY_WORDS): Define.
6807         (SIZEOF_CALL_DUMMY_WORDS): Define.
6808
6809 2002-01-19  Per Bothner  <per@bothner.com>
6810
6811         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
6812         isn't NULL, which can happen with some gcj-3.x-produced code.
6813
6814 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
6815
6816         * alpha-tdep.c (alpha_register_virtual_type): New function.
6817         (alpha_init_frame_pc_first): Ditto.
6818         (alpha_fix_call_dummy): Ditto.
6819         (alpha_store_struct_return): Ditto.
6820         (alpha_extract_struct_value_address): Ditto.
6821         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
6822         alpha_register_virtual_type.
6823         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
6824         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
6825         alpha_extract_struct_value_address.
6826         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
6827         (INIT_FRAME_PC): Use init_frame_pc_noop.
6828         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
6829
6830 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
6831
6832         * i386gnu-nat.c: Include "i386-tdep.h".
6833         (fetch_fpregs): Simplify code dealing with uninitialized floating
6834         point states such that it doesn't require FP7_REGNUM.
6835
6836 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
6837
6838         * alpha-tdep.c (frame_extra_info): New.
6839         (alpha_find_saved_regs): Make static.  Use
6840         frame->extra_info.
6841         (alpha_frame_init_saved_regs): New function.
6842         (alpha_frame_saved_pc): Use frame->extra_info.
6843         (temp_saved_regs): Don't declare as struct frame_saved_regs.
6844         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
6845         (init_extra_frame_info): Rename to...
6846         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
6847         (alpha_print_extra_frame_info): New function.
6848         (alpha_frame_locals_address): Ditto.
6849         (alpha_frame_args_address): Ditto.
6850         (alpha_pop_frame): Use frame->extra_info.
6851         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
6852         alpha_frame_args_address.
6853         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
6854         (alpha_find_saved_regs): Remove prototype.
6855         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
6856         (EXTRA_FRAME_INFO): Remove.
6857         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
6858         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
6859
6860 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
6861
6862         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
6863         (alpha_cannot_fetch_register): Ditto.
6864         (alpha_cannot_store_register): Ditto.
6865         (alpha_register_convertible): Ditto.
6866         (alpha_use_struct_convention): Ditto.
6867         * config/alpha/tm-alpha.h: Update copyright years.
6868         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
6869         (INNER_THAN): Use core_addr_lessthan.
6870         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
6871         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
6872         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
6873         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
6874         (FRAME_CHAIN): Remove unnecessary cast.
6875
6876 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
6877
6878         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
6879         obsolete.
6880
6881 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
6882
6883         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
6884         * monitor.c, remote-array.c, remote-bug.c: Ditto.
6885         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
6886         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
6887         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
6888         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
6889         * x86-64-linux-nat.c: Ditto.
6890
6891 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
6892
6893         * alpha-tdep.c (alpha_register_name): New function.
6894         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
6895         (REGISTER_NAME): Define.
6896
6897 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
6898
6899         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
6900
6901 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
6902
6903         * alpha-tdep.c: Update copyright years.
6904         (alpha_next_pc): New function.
6905         (alpha_software_single_step): Ditto.
6906         * config/alpha/tm-alpha.h: Add prototype for
6907         alpha_software_single_step.
6908
6909 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
6910
6911         * alphabsd-nat.c: Update copyright years.
6912         (fill_gregset): Use regcache_collect.
6913         (fill_fpregset): Likewise.
6914         (fetch_inferior_registers): Only fetch integer registers
6915         if requested to do so.
6916         (store_inferior_registers): Only store integer registers
6917         if requested to do so.
6918
6919 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
6920
6921         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
6922         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
6923         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
6924         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
6925         * config/alpha/fbsd.mh (XDEPFILES): Delete.
6926         * config/arm/linux.mh (XDEPFILES): Delete.
6927         * config/arm/nbsd.mh (XDEPFILES): Delete.
6928         * config/i386/i386dgux.mh (XDEPFILES): Delete.
6929         * config/i386/i386sol2.mh (XDEPFILES): Delete.
6930         * config/i386/i386m3.mh (XDEPFILES): Delete.
6931         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
6932         * config/i386/i386gnu.mh (XDEPFILES): Delete.
6933         * config/i386/fbsd.mh (XDEPFILES): Delete.
6934         * config/i386/i386bsd.mh (XDEPFILES): Delete.
6935         * config/i386/i386sco5.mh (XDEPFILES): Delete.
6936         * config/i386/i386v4.mh (XDEPFILES): Delete.
6937         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
6938         * config/i386/i386sco4.mh (XDEPFILES): Delete.
6939         * config/i386/i386aix.mh (XDEPFILES): Delete.
6940         * config/i386/go32.mh (XDEPFILES): Delete.
6941         * config/i386/cygwin.mh (XDEPFILES): Delete.
6942         * config/i386/i386lynx.mh (XDEPFILES): Delete.
6943         * config/i386/i386mach.mh (XDEPFILES): Delete.
6944         * config/i386/i386v32.mh (XDEPFILES): Delete.
6945         * config/i386/linux.mh (XDEPFILES): Delete.
6946         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
6947         * config/i386/ncr3000.mh (XDEPFILES): Delete.
6948         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
6949         * config/i386/i386sco.mh (XDEPFILES): Delete.
6950         * config/i386/i386v.mh (XDEPFILES): Delete.
6951         * config/i386/nbsd.mh (XDEPFILES): Delete.
6952         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
6953         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
6954         * config/i386/symmetry.mh (XDEPFILES): Delete.
6955         * config/i386/obsd.mh (XDEPFILES): Delete.
6956         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
6957         * config/ia64/linux.mh (XDEPFILES): Delete.
6958         * config/ia64/aix.mh (XDEPFILES): Delete.
6959         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
6960         * config/m68k/dpx2.mh (XDEPFILES): Delete.
6961         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
6962         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
6963         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
6964         * config/m68k/linux.mh (XDEPFILES): Delete.
6965         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
6966         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
6967         * config/m68k/nbsd.mh (XDEPFILES): Delete.
6968         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
6969         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
6970         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
6971         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
6972         * config/m88k/delta88.mh (XDEPFILES): Delete.
6973         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
6974         * config/m88k/m88k.mh (XDEPFILES): Delete.
6975         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
6976         * config/mips/linux.mh (XDEPFILES): Delete.
6977         * config/mips/irix6.mh (XDEPFILES): Delete.
6978         * config/mips/irix5.mh (XDEPFILES): Delete.
6979         * config/mips/irix4.mh (XDEPFILES): Delete.
6980         * config/mips/irix3.mh (XDEPFILES): Delete.
6981         * config/mips/decstation.mh (XDEPFILES): Delete.
6982         * config/mips/mipsm3.mh (XDEPFILES): Delete.
6983         (NATDEPFILES): Move core-aout.o to here.
6984         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
6985         * config/pa/hpux1020.mh (XDEPFILES): Delete.
6986         * config/pa/hppabsd.mh (XDEPFILES): Delete.
6987         * config/pa/hppahpux.mh (XDEPFILES): Delete.
6988         * config/pa/hpux11w.mh (XDEPFILES): Delete.
6989         * config/pa/hppaosf.mh (XDEPFILES): Delete.
6990         * config/pa/hpux11.mh (XDEPFILES): Delete.
6991         * config/powerpc/aix.mh (XDEPFILES): Delete.
6992         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
6993         * config/powerpc/linux.mh (XDEPFILES): Delete.
6994         * config/romp/rtbsd.mh: Rename XDEPFILES.
6995         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
6996         * config/rs6000/aix4.mh (XDEPFILES): Delete.
6997         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
6998         * config/s390/s390.mh (XDEPFILES): Delete.
6999         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
7000         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
7001         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
7002         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
7003         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
7004         * config/sparc/nbsd.mh (XDEPFILES): Delete.
7005         * config/sparc/linux.mh (XDEPFILES): Delete.
7006         * config/vax/vaxult.mh (XDEPFILES): Delete.
7007         * config/vax/vaxult2.mh (XDEPFILES): Delete.
7008         * Makefile.in (DEPFILES): Remove XDEPFILES.
7009
7010 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
7011
7012         * utils.c (internal_verror): Fix comments, default is yes not no.
7013         Update queries to match.  Default to quit and dump core.
7014
7015 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
7016
7017         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
7018         copyright.
7019         * defs.h, event-top.c, gdbcmd.h: Ditto.
7020         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
7021         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
7022         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
7023         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
7024         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
7025         * mi/mi-main.c:Ditto.
7026
7027         * stack.c, symfile.c: Update copyright.
7028
7029 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
7030
7031         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
7032         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
7033         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
7034         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
7035
7036 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
7037
7038         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
7039         * gdbserver/low-lynx.c (myattach): Likewise.
7040         * gdbserver/low-nbsd.c (myattach): Likewise.
7041         * gdbserver/low-sim.c (myattach): Likewise.
7042         * gdbserver/low-sparc.c (myattach): Likewise.
7043         * gdbserver/low-sun3.c (myattach): Likewise.
7044
7045         * gdbserver/low-linux.c (myattach): New function.
7046
7047         * gdbserver/server.c (attach_inferior): New function.
7048         (main): Handle "--attach".
7049
7050 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
7051
7052         * MAINTAINERS (language support): Daniel Jacobwitz is C++
7053         maintainer.
7054
7055 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
7056
7057         * c-typeprint.c (is_type_conversion_operator): Add additional
7058         check for non-conversion operators.
7059
7060 2002-01-15  Michael Snyder  <msnyder@redhat.com>
7061
7062         * linux-proc.c: Add "info proc" command, a la procfs.c.
7063         (read_mapping): New function, abstract and re-use code.
7064         (linux_find_memory_regions): Use new func read_mapping.
7065         (linux_info_proc_cmd): New function, implement "info proc".
7066         (_initialize_linux_proc): Add new command "info proc".
7067
7068 2002-01-15  Michael Snyder  <msnyder@redhat.com>
7069
7070         * symfile.c (generic_load): Use bfd_map_over_sections method
7071         instead of manipulating bfd structure members directly.
7072         (add_section_size_callback): New function, bfd sections callback
7073         used by generic_load.
7074         (load_sections_callback): New function, bfd sections callback
7075         used by generic_load.
7076
7077 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
7078
7079         [Based on work by Jim Blandy]
7080         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
7081         (builtin_type_vec128): Export.
7082         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
7083         types.
7084         (builtin_type_vec128): New builtin type for 128 bit vector
7085         registers.
7086         (build_gdbtypes): Initialize builtin_type_v16qi and
7087         builtin_type_v8hi. Create the vec128 register builtin type
7088         structure.
7089         (build_builtin_type_vec128): New function.
7090         (_initialize_gdbtypes): Register builtin_type_v16qi and
7091         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
7092         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
7093         AltiVec register to new builtin type.
7094
7095 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
7096
7097         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
7098         to make_cv_type.
7099
7100 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
7101
7102         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
7103         CLEAN_UP_REGISTER_VALUE.
7104         * regcache.c (supply_register): Update only call.
7105
7106 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
7107
7108         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7109         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7110         a29k-*-vxworks* targets as obsolete.
7111
7112 2002-01-14  Michael Snyder  <msnyder@redhat.com>
7113
7114         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
7115         until we can resolve portability issues.
7116         * gregset.h: Remove references to fpxregs.
7117         * gcore.c (gcore_command): Initialize note_sec to NULL.
7118
7119 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
7120
7121         * signals.c (target_signal_to_name): Rewrite.  Only use
7122         signals[].name when in bounds and non-NULL.
7123
7124 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
7125
7126         From Petr Ledvina <ledvinap@kae.zcu.cz>:
7127         * signals.c (target_signal_to_name): Verify that SIG is within the
7128         bounds of the signals array.
7129
7130 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
7131
7132         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
7133
7134 2002-01-13  Keith Seitz  <keiths@redhat.com>
7135
7136         * stack.c (print_frame_info_base): Print the frame's pc
7137         only if when print_frame_info_listing_hook is not defined.
7138
7139 2002-01-13  Keith Seitz  <keiths@redhat.com>
7140
7141         * varobj.c (varobj_set_value): Make sure that there were no
7142         errors evaluating the object before attempting to set its
7143         value.
7144         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
7145         so this offset adjustment is no longer necessary.
7146         (create_child): Don't set the error flag if the child is
7147         a CPLUS_FAKE_CHILD.
7148         (value_of_child): If value_fetch_lazy fails, return NULL
7149         so that callers will be notified that an error occurred.
7150         (c_value_of_variable): Delay check of variable's validity
7151         until later. We actually want all structs and unions to have
7152         the value "{...}".
7153         Do not return "???" for variables which could not be evaluated.
7154         This error condition must be returned to the caller so that it
7155         can get the error condition from gdb.
7156         (cplus_name_of_child): Adjust index for vptr before figuring
7157         out the name of the child.
7158         (cplus_value_of_child): If a child's (real) parent is not valid,
7159         don't even bother trying to give a value for it. Just return
7160         an error. Change all instances in this function.
7161         (cplus_type_of_child): If our parent is one of the "fake"
7162         parents, we need to get at the type of the real parent, and
7163         derive the child's true type using this information.
7164
7165 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
7166
7167         From 2002-01-09 John Marshall <johnm@falch.net>:
7168         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
7169         sources.redhat.com, and tweak some related URLs which had
7170         suffered from linkrot.
7171
7172 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
7173
7174         From Jeff law:
7175         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
7176         structures passed in registers.
7177
7178 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
7179
7180         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
7181         white space which prevented compilation.  Reported by DSK
7182         <dsk@student.unsw.edu.au>.
7183
7184 2002-01-11  Michael Snyder  <msnyder@redhat.com>
7185
7186         * symfile.c (build_section_addr_info_from_section_tab):
7187         Use bfd access method instead of manipulating bfd directly.
7188         (syms_from_objfile): Ditto.
7189         (simple_overlay_update_1): Ditto.
7190         (simple_overlay_update): Ditto.
7191         (generic_load): Ditto.
7192         (overlay_unmapped_address): FIXME comment, bfd access methods.
7193         (sections_overlap): FIXME comment, bfd access methods.
7194         (pc_in_mapped_range): FIXME comment, bfd access methods.
7195         (pc_in_unmapped_range): FIXME comment, bfd access methods.
7196         (section_is_mapped): FIXME comment, bfd access methods.
7197         (section_is_overlay): FIXME comment, bfd access methods.
7198
7199         * symfile.c (generic_load): Whitespace and long line cleanups.
7200         Remove duplicate variable, change several local variables to
7201         more appropriate data types.
7202         (print_transfer_performance): Use %lu instead of %ld for ulongs.
7203
7204 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
7205
7206         From Peter Schauer:
7207         * language.c (longest_local_hex_string_custom): Use phex_nz to
7208         convert NUM to a hex string.
7209
7210 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
7211
7212         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
7213         the function.
7214         Update Copyright year.
7215
7216 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
7217
7218         * language.c (longest_raw_hex_string): Delete unused function.
7219
7220 2002-01-11  Petr Sorfa  <petrs@caldera.com>
7221
7222         * MAINTAINERS (write-after-approval): Add myself.
7223         * dwarf2read.c (read_tag_string_type): Handling of
7224         DW_AT_byte_size.
7225         (read_tag_string_type): FORTRAN fix to prevent propagation of
7226         first string size.
7227         (set_cu_language): Handling of DW_LANG_Fortran95
7228
7229 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
7230
7231         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
7232         GETPID(inferior_ptid).
7233         (store_inferior_registers): Likewise.
7234
7235 2002-01-10  Jason Merrill  <jason@redhat.com>
7236
7237         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
7238         Fix DW_OP_minus.
7239
7240 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
7241
7242         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
7243         and bfd/elf32-sh-nbsd.c.
7244
7245 2002-01-10  Michael Snyder  <msnyder@redhat.com>
7246
7247         * NEWS: Mention --pid and corefile/proc-id behavior change.
7248
7249         * Makefile.in: Add rules for gcore.o and linux-proc.o.
7250         * gcore.c: Include cli/cli-decode.h instead of command.h.
7251
7252         * main.c (captured_main): Add new command line option "--pid".
7253         If the second command line argument (following the symbol-file)
7254         begins with a digit, try to attach to it before trying to open
7255         it as a corefile.
7256         (print_gdb_help): Document the "--pid" argument.
7257
7258 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
7259
7260         * completer.c (command_completer): New function.
7261
7262         * completer.h <command_completer>: Add prototype.
7263
7264         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7265         completer for the "help" command.
7266
7267 2002-01-09  Jason Merrill  <jason@redhat.com>
7268
7269         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7270
7271 2002-01-09  Michael Snyder  <msnyder@redhat.com>
7272
7273         * i386-linux-nat.c (fill_fpxregset): Make global.
7274         (store_fpxregset): Ditto.
7275
7276         * gregset.h (gdb_fpxregset_t): Define.
7277         (supply_fpxregset): Prototype.
7278         (fill_fpxregset): Prototype.
7279
7280         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7281
7282 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
7283
7284         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
7285         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
7286         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
7287
7288 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
7289
7290         * MAINTAINERS: Update target maintainer rules so that any
7291         Maintainer can approve a tested patch for a maintenance-only
7292         target.
7293
7294 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
7295
7296         * MAINTAINERS (write-after-approval): Add myself.
7297
7298         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
7299         IN_SIGTRAMP.
7300
7301 2002-01-08  Michael Snyder  <msnyder@redhat.com>
7302
7303         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
7304         real name of the executable, rather than the /proc name.
7305
7306 2002-01-03  Michael Snyder  <msnyder@redhat.com>
7307
7308         Implement a "generate-core-file" command in gdb, save target state.
7309         * gcore.c: New file.  Implement new command 'generate-core-file'.
7310         Save a corefile image of the current state of the inferior.
7311         * linux-proc.c: Add linux-specific code for saving corefiles.
7312         * target.h (struct target_ops): Add new target vectors for saving
7313         corefiles; to_find_memory_regions and to_make_corefile_notes.
7314         (target_find_memory_regions): New macro.
7315         (target_make_corefile_notes): New macro.
7316         * target.c (update_current_target): Inherit new target methods.
7317         (dummy_find_memory_regions): New place-holder method.
7318         (dummy_make_corefile_notes): New place-holder method.
7319         (init_dummy_target): Initialize new dummy target vectors.
7320         * exec.c (exec_set_find_memory_regions): New function.
7321         Allow the exec_ops vector for memory regions to be taken over.
7322         (exec_make_note_section): New function, target vector method.
7323         * defs.h (exec_set_find_memory_regions): Export prototype.
7324         * procfs.c (proc_find_memory_regions): New function, corefile method.
7325         (procfs_make_note_section): New function, corefile method.
7326         (init_procfs_ops): Set new target vector pointers.
7327         (find_memory_regions_callback): New function.
7328         (procfs_do_thread_registers): New function.
7329         (procfs_corefile_thread_callback): New function.
7330         * sol-thread.c (sol_find_memory_regions): New function.
7331         (sol_make_note_section): New function.
7332         (init_sol_thread_ops): Initialize new target vectors.
7333         * inftarg.c (inftarg_set_find_memory_regions): New function.
7334         Allow to_find_memory_regions vector to be taken over.
7335         (inftarg_set_make_corefile_notes): New function.
7336         Allow to_make_corefile_notes vector to be taken over.
7337         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
7338         interface layer if not target_has_execution (may be a corefile).
7339         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
7340         * config/sparc/sun4sol2.mh: Ditto.
7341         * config/alpha/alpha-linux.mh: Ditto.
7342         * config/arm/linux.mh: Ditto.
7343         * config/i386/x86-64linux.mh: Ditto.
7344         * config/ia64/linux.mh: Ditto.
7345         * config/m68k/linux.mh: Ditto.
7346         * config/mips/linux.mh: Ditto.
7347         * config/powerpc/linux.mh: Ditto.
7348         * config/sparc/linux.mh: Ditto.
7349
7350 2002-01-07  Michael Snyder  <msnyder@redhat.com>
7351
7352         * arm-linux-nat.c: Remove references to regcache.c internal data
7353         (registers[] and register_valid[]).
7354
7355 2002-01-07  Michael Snyder  <msnyder@redhat.com>
7356
7357         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
7358         so that attaching to a pid will automatically read the process's
7359         symbol file and shlibs.
7360         * Makefile.in: Add rule for linux-proc.o.
7361         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
7362         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
7363         * config/arm/linux.mh: Ditto.
7364         * config/i386/linux.mh: Ditto.
7365         * config/i386/x86-64linux.mh: Ditto.
7366         * config/ia64/linux.mh: Ditto.
7367         * config/m68k/linux.mh: Ditto.
7368         * config/mips/linux.mh: Ditto.
7369         * config/powerpc/linux.mh: Ditto.
7370         * config/sparc/linux.mh: Ditto.
7371
7372 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7373
7374         * win32-nat.c: Add i386-tdep.h dependency.
7375
7376 2002-01-07  Michael Snyder  <msnyder@redhat.com>
7377
7378         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
7379         instead of bfd_get_arch_size.  Don't bail out just because
7380         there's no exec_bfd.
7381
7382         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
7383         * p-valprint.c (pascal_object_print_value): Ditto.
7384         * somread.c (som_symtab_read): Ditto.
7385         * symfile.c (simple_free_overlay_region_table): Ditto.
7386         * valops.c (value_assign): Ditto.
7387
7388         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
7389         use tilde_expand and strerror for opening save-tracepoints file.
7390
7391         * thread-db.c (thread_db_new_objfile): Indendation fix.
7392
7393         * infptrace.c (GDB_MAX_ALLOCA): New define.
7394         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
7395         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
7396         can be overridden with whatever value is appropriate to the host).
7397         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
7398         alloca to allocate potentially large buffer.
7399         * rs6000-nat.c (child_xfer_memory): Ditto.
7400         * symm-nat.c (child_xfer_memory): Ditto.
7401         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
7402
7403 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
7404
7405         From Nick Clifton  <nickc@redhat.com>
7406         * d10v-tdep.c: Set STACK_START to 0x200bffe.
7407
7408 2002-01-07  Michael Snyder  <msnyder@redhat.com>
7409
7410         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7411         Don't use exec_bfd if it's NULL.
7412
7413 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
7414
7415         * valops.c (value_arg_coerce): Fix formatting.
7416
7417 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
7418
7419         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
7420         * gnu-nat.c: Ditto.
7421
7422 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
7423
7424         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
7425         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
7426         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
7427         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
7428         z8k-coff have not been multi-arched.  Update z8k-coff build
7429         status.
7430
7431 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
7432
7433         * MAINTAINERS: Mark a29k target as obsolete.
7434         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
7435         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
7436         comments.
7437         * NEWS: Note that a29k targets are obsolete.
7438         * a29k-tdep.c: Mark as obsolete.
7439         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7440         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7441         a29k-*-vxworks* targets as obsolete.
7442         * remote-adapt.c: Obsolete.
7443         * remote-eb.c: Obsolete.
7444         * remote-mm.c: Obsolete.
7445         * remote-udi.c: Obsolete.
7446         * config/a29k/a29k-udi.mt: Obsolete.
7447         * config/a29k/a29k.mt: Obsolete.
7448         * config/a29k/tm-a29k.h: Obsolete.
7449         * config/a29k/tm-vx29k.h: Obsolete.
7450         * config/a29k/vx29k.mt: Obsolete.
7451
7452 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
7453
7454         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
7455         with BFD_ENDIAN_BIG.
7456
7457 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
7458
7459         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
7460         * configure, config.in: Re-generate.
7461         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
7462         * defs.h: Do not include <endian.h>.
7463
7464 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
7465
7466         * acconfig.h (HAVE_PT_GETXMMREGS): New.
7467         * config.in: Regenerate.
7468         * configure.in: Update copyright years.
7469         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
7470         * configure: Regenerate.
7471         * i386bsd-nat.c: Update copyright years.
7472         (fill_gregset): Use regcache_collect.
7473         (fetch_inferior_registers): Only fetch integer registers
7474         if requested to do so.  Add support for XMM registers
7475         using PT_GETXMMREGS.
7476         (store_inferior_registers): Only store integer registers
7477         if requested to do so.  Add support for XMM registers
7478         using PT_SETXMMREGS.
7479         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
7480         (store_inferior_registers): Remove.
7481         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
7482         (fetch_elfcore_registers): New function.
7483         (i386nbsd_elfcore_fns): New.
7484         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
7485         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
7486         i386bsd-nat.o.
7487         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7488         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
7489         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
7490         * config/i386/tm-nbsd.h: Update copyright years.
7491         (HAVE_SSE_REGS): Define.
7492         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
7493         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
7494         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
7495         (SIGCONTEXT_PC_OFFSET): Remove.
7496         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
7497
7498 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
7499
7500         * configure.tgt: Remove powerpc-*-macos* target.
7501         * config/m68k/xm-mpw.h: Delete file.
7502         * config/xm-mpw.h: Delete file.
7503         * ser-mac.c: Delete file.
7504         * mpw-make.sed: Delete file.
7505         * mpw-config.in: Delete file.
7506         * mac-xdep.c: Delete file.
7507         * mac-gdb.r: Delete file.
7508         * mac-defs.h: Delete file.
7509         * mac-nat.c: Delete file.
7510         * config/powerpc/macos.mh: Delete file.
7511         * config/powerpc/macos.mt: Delete file.
7512         * config/powerpc/nm-macos.h: Delete file.
7513         * config/powerpc/tm-macos.h: Delete file.
7514         * source.c (openp, open_source_file): Remove obsolete code.
7515         * top.c (gdb_readline): Ditto.
7516         * utils.c (query): Ditto.
7517         * event-top.c (display_gdb_prompt): Ditto.
7518         * Makefile.in (ser-mac.o): Delete obsolete target.
7519         * NEWS: Update.
7520
7521 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
7522
7523         * defs.h (BIG_ENDIAN): Delete macro definition.
7524         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
7525         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
7526         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
7527         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7528         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
7529         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
7530         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
7531         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7532         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7533         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
7534         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
7535         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
7536         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7537         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7538         * gdbarch.c: Re-generate.
7539
7540 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
7541
7542         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
7543         for core files.
7544
7545 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
7546
7547         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
7548
7549 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
7550
7551         * value.h (value_ptr): Delete typedef.
7552
7553 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
7554
7555         * i386nbsd-nat.c: Update copyright years.
7556         Include i386-tdep.h.
7557
7558 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
7559
7560         * stabsread.c: Update copyright years.
7561
7562         From Debashis Mahata <debashis.mahata@wipro.com>:
7563         (read_struct_fields): Deal with Sun C compiler erroneous stab
7564         output for structs and unions.
7565         Fix PR gdb/269.
7566
7567 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
7568
7569         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
7570         prototype.
7571
7572 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
7573
7574         * cp-abi.c: Fix whitespace.
7575         (baseclass_offset): New wrapper function.
7576         * cp-abi.h (baseclass_offset): Add prototype.
7577         (struct cp_abi_ops): Add baseclass_offset pointer.
7578
7579         * valops.c (vb_match): Move to...
7580         * gnu-v2-abi.c (vb_match): here.
7581         * valops.c (baseclass_offset): Move to...
7582         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
7583
7584         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
7585
7586         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
7587         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
7588         * hpacc-abi.c (init_hpacc_ops): Likewise.
7589
7590 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
7591
7592         * valops.c (find_overload_match): Accept obj as a
7593         reference parameter.  Update it before returning.
7594         * value.h (find_overload_match): Update prototype.
7595         * eval.c (evaluate_subexp_standard): Pass object to
7596         find_overload_match by reference.
7597
7598 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
7599
7600         * valarith.c: Replace value_ptr with struct value pointer.  Remove
7601         register attribute from value declarations.
7602         * valops.c: Ditto.
7603         * value.h: Ditto.
7604         * scm-lang.c (scm_lookup_name): Ditto.
7605
7606 2002-01-03  Michael Snyder  <msnyder@redhat.com>
7607
7608         Abstract the functionality of iterating over mapped memory
7609         regions into a general purpose iterator function.
7610         * procfs.c (iterate_over_mappings): New function, general purpose
7611         iterator for memory sections.
7612         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
7613         (solib_mappings_callback): New function, callback for above.
7614         (info_proc_mappings): Reimpliment using iterate_over_mappings.
7615         (info_mappings_callback): New function, callback for above.
7616
7617         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
7618
7619 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
7620
7621         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
7622         * i386-tdep.c: Include "elf-bfd.h".
7623         (process_note_abi_tag_sections): New function.
7624         (i386_gdbarch_init): Add code to recognize various OS/ABI
7625         combinations.
7626
7627         * maint.c (_initialize_maint_cmds): Add missing \ in
7628         string-literal.
7629
7630 For older changes see ChangeLog-2001
7631 \f
7632 Local Variables:
7633 mode: change-log
7634 left-margin: 8
7635 fill-column: 74
7636 version-control: never
7637 End: