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