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