2656d77b0e56d57f5920cbc595634829465cd6a8
[external/binutils.git] / gdb / ChangeLog
1 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
2
3         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
4         * defs.h: Include "gdb/signals.h".
5         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
6
7 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
8
9         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here 
11         from x86-64-tdep.h
12
13 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
14             Don Howard <dhoward@redhat.com>
15
16         * mips-tdep.c (ST0_FR): Define.
17         (mips2_fp_compat): New function, temporarily disabled.
18         (mips_read_fp_register_single): New function.
19         (mips_read_fp_register_double): New function.
20         (mips_print_register): Use them.
21         (do_fp_register_row): Likewise.
22
23 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
24
25         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
26         approval''.
27
28 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
29
30         * stabsread.c (read_member_functions): Fix is_stub test for
31         static member functions, improve comment.
32
33 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
34
35         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
36         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
37         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
38         commands that set boolean values.
39         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
40         (arm_rdi_resume): Always initialize PC.
41         (arm_rdi_open): Don't use rslt as a boolean.
42         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
43         (arm_rdi_fetch_registers, arm_rdi_store_registers)
44         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
45         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
46
47 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
48
49         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
50         * configure: Rebuilt.
51
52 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
53
54         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
55         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
56
57 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
58
59         * cli/cli-decode.c (set_cmd_completer): New function.
60         * command.h (set_cmd_completer): Declare.
61         * cli/cli-decode.h (set_cmd_completer): Ditto.
62
63         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
64         * cli/cli-cmds.c (init_cli_cmds): Ditto.
65         * win32-nat.c (_initialize_inftarg): Ditto.
66         * remote-rdi.c (_initialize_remote_rdi): Ditto.
67         * proc-api.c (_initialize_proc_api): Ditto.
68         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
69         * source.c (_initialize_source): Ditto.
70         * exec.c (_initialize_exec): Ditto.
71         * solib.c (_initialize_solib): Ditto.
72         * top.c (init_main): Ditto.
73         * tracepoint.c (_initialize_tracepoint): Ditto.
74         * symfile.c (_initialize_symfile): Ditto.
75         * printcmd.c (_initialize_printcmd): Ditto.
76         * infcmd.c (_initialize_infcmd): Ditto.
77         * corefile.c (_initialize_core): Ditto.
78
79 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
80
81         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
82
83 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
84
85         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
86
87 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
88
89         * NEWS: Update headings, 5.2 has branched.
90
91 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
92
93         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
94         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
95         (register_addr, REGISTER_RAW_SIZE): Likewise.
96         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
97         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
98
99 2002-03-03  Michal Ludvig <mludvig@suse.cz>
100
101         * MAINTAINERS (x86-64): Add myself.
102         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
103         changed value_ptr -> struct value *
104
105 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
106
107         * configure.host (sparc64-*-freebsd): Add.
108         * configure.tgt: Likewise.
109         * config/sparc/fbsd.mh: New file.
110         * config/sparc/fbsd.mt: Likewise.
111         * config/sparc/nm-fbsd.h: Likewise.
112         * config/sparc/tm-fbsd.h: Likewise.
113
114 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
115
116         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
117         regformats/reg-s390x.dat.
118
119 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
120
121         * utils.c: Add FIXME explaining true/false problem.
122
123 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
124
125         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
126
127 2002-02-28  Michael Chastain  <mec@shout.net>
128
129         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
130
131 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
132
133         * gdbserver/linux-s390-low.c: New file.
134         * regformats/reg-s390.dat: New file.
135         * regformats/reg-s390x.dat: New file.
136         * gdbserver/configure.srv: Add S/390.
137         * gdbserver/Makefile.in: Add S/390.
138         * configure.tgt: Enable gdbserver for S/390.
139
140 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
141
142         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
143         first line of the doc string for "info dos", except at the end of
144         the sentence, since the short help stops at the first period.
145
146 2002-02-28  Jason Merrill  <jason@redhat.com>
147
148         * dwarf2read.c (dwarf_cfi_name): Add new codes.
149
150 2002-02-27  Fred Fish  <fnf@redhat.com>
151
152         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
153         comment (dumy -> dummy).
154
155 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
156
157         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
158
159 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
160
161       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
162
163 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
164
165         * gdbserver/acconfig.h: New file.
166         * gdbserver/i387-fp.c: New file.
167         * gdbserver/i387-fp.h: New file.
168         * gdbserver/linux-x86-64.c: New file.
169         * regformats/reg-x86-64.dat: New file.
170         * configure.tgt: Add x86_64-*-linux* gdbserver support.
171         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
172         * gdbserver/configure.in: Add support for regsets.
173         * gdbserver/config.in: Regenerate.
174         * gdbserver/configure: Regenerate.
175         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
176         * gdbserver/linux-low.h: New file.
177         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
178         for regsets.
179         * gdbserver/linux-arm-low.c: Include "linux-low.h".
180         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
181         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
182         * gdbserver/linux-mips-low.c: Include "linux-low.h".
183         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
184         * gdbserver/linux-sh-low.c: Include "linux-low.h".
185         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
186         "i387-fp.h".  Add PTRACE_GETREGS and friends.
187         * gdbserver/regcache.c (supply_register): New function.
188         (supply_register_by_name): New function.
189         (collect_register): New function.
190         (collect_register_by_name): New function.
191
192 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
193
194         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
195         (config.status): Add configure.srv dependency.
196         (server_h): Add config.h dependency.
197
198 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
199
200         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
201         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
202         * gdbserver/configure.srv: Change i386-*-linux* to use
203         reg-i386-linux.o.
204
205 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
206
207         * x86-64-tdep.c: Re-indent.  Update copyright date.
208
209 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
210
211         From Michal Ludvig <mludvig@suse.cz>:
212         * x86-64-tdep.c (value.h): Delete.
213         (gdb_assert.h): Include.
214         (x86_64_register_convert_to_virtual,
215         x86_64_register_convert_to_raw ): Add check which lets only
216         floating-point values to be converted.
217         (value_push): Delete.
218         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
219         (i386_gdbarch_init): Number of register_bytes fixed.
220
221 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
222
223         * MAINTAINERS: Add x86-64 target.
224
225 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
226
227         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
228         * osfsolib.c (solib_map_sections): Ditto.
229         * irix5-nat.c (solib_map_sections): Ditto.
230         * corelow.c (gdb_check_format): Ditto.
231         * symfile.c (symfile_bfd_open): Ditto.
232         * solib.c (solib_map_sections): Ditto.
233         Fix PR gdb/354.
234         
235 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
236
237         * remote.c (_initialize_remote): By default, disable ``e'' and
238         ``E'' step out-of-range packets.
239
240 2002-02-26  Andreas Schwab  <schwab@suse.de>
241
242         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
243         m68k_linux_frame_saved_pc.
244         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
245         in_sigtramp.
246         (SIGCONTEXT_PC_OFFSET): Remove.
247         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
248         m68k_linux_sigtramp_saved_pc): New functions.
249         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
250         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
251         (UCONTEXT_PC_OFFSET): Define.
252         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
253         non-RT and RT signal trampolines.
254
255 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
256
257         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
258         (TARGET_NBPG, STACK_END_ADDR): Delete
259         (VARIABLES_INSIDE_BLOCK): Delete.
260
261 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
262
263         * utils.c (perror_with_name): Make string parameter constant.
264         (print_sys_errmsg): Ditto.
265         (query): Ditto.
266         * defs.h (perror_with_name): Update.
267         (print_sys_errmsg): Update.
268         (query): Update.
269
270 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
271
272         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
273         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
274
275 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
276
277         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
278         if it already matches the current architecture from the exec file.
279         Include arch-utils.h for gdbarch_info_init prototype.
280         * Makefile.in (rs6000-nat.o): Update dependencies.
281
282 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
283
284         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
285          list of exported variables.
286
287 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
288
289         * gdbserver/configure.srv: New file.
290         * gdbserver/configure.in: Use configure.srv instead
291         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
292         from it.
293         * gdbserver/configure: Regenerated.
294         * gdbserver/terminal.h: New file.
295         * gdbserver/Makefile.in: Update for configure changes.  Remove
296         more unneeded include paths.
297
298 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
299
300         From wiz at danbala:
301         * config/sparc/tm-sp64.h: Fix grammar and typos.
302         Fix PR gdb/287.
303
304 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
305
306         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
307         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
308         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
309         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
310         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
311         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
312         * s390-tdep.c: Ditto.
313         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
314         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
315         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
316         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
317         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
318         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
319         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
320         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
321         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
322         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
323         Fix PR gdb/378.
324         
325 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
326
327         * lin-thread.c: Delete file.
328         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
329         to gdb_proc_service.h.
330         * configure: Re-generate.
331
332         * ocd.c (ocd_open): Do not try to open the "ocd" device.
333         * serial.c (serial_open): Delete check for "ocd".
334         Fix PR gdb/349.
335
336         * Makefile.in (linux-thread.o): Delete target.
337         * linux-thread.c: Delete file.
338
339         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
340         renamed SH files to be consistent.
341
342         * symtab.c (sort_search_symbols): Use xfree.
343
344 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
345
346         * arm-linux-tdep.c (arm_linux_init_abi): Register
347         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
348         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
349         definition with undef, since we don't want the sysvr4 definition.
350         (SKIP_TRAMPOLINE_CODE): Likewise.
351
352 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
353
354         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
355
356         * configure.in: (AC_CHECK_FUNCS) Added test for
357         canonicalize_file_name Regenerated.
358         * config.in, configure: Regenerated.
359         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
360         defined use canonicalize_file_name.
361         
362 2002-02-23  Michael Chastain  <mec@shout.net>
363
364         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
365
366 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
367
368         * README: Remove references to cygnus.com.
369         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
370         dot com'' form.  Remove references to cygnus.com and sourceware.
371
372 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
373
374         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
375         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
376         1003.1-2001 no longer allows "head -1".
377         * gdb/Makefile.in (version.c): Likewise.
378         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
379         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
380         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
381
382 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
383
384         * cli/cli-decode.c (cmd_cfunc_eq): New function.
385         * command.h (cmd_cfunc_eq): Declare.
386         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
387
388         * cli/cli-cmds.h (is_complete_command): Change parameter to a
389         ``struct cmd_list_element *''.
390         * cli/cli-cmds.c (is_complete_command): Update.  Use
391         cmd_cfunc_eq.
392         * top.c (execute_command): Pass the command to
393         is_complete_command.
394         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
395
396 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
397
398         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
399         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
400         architecture defines.
401         * s390-tdep.c (s390_gdbarch_init): Likewise.
402
403 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
404
405         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
406         (arm_linux_push_arguments): Likewise.
407         (arm_linux_init_abi): Register them.  Also register linux-specific
408         call_dummy_words.
409         (find_minsym_and_objfile): Use strcmp, not STREQ.
410         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
411         (arm_linux_call_dummy_words): Delete declaration.
412         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
413         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
414         declarations.
415         (LOWEST_PC): Delete.
416
417 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
418
419         * maint.c (print_section_info): Do not prepend `0x' to filepos
420         output, it will be handled by local_hex_string_custom.
421
422 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
423
424         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
425         (store_newfpe_double, store_newfpe_extended, store_fpregister)
426         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
427
428 2002-02-22  Jim Blandy  <jimb@redhat.com>
429
430         Indicate that the bcache functions don't change the strings
431         they're passed.
432         * bcache.h (bcache, hash): Add `const' keywords to declarations.
433         * bcache.c (bcache, hash): Add `const' keywords to definitions.
434
435 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
436
437         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
438
439 2002-02-21  Christopher Faylor  <cgf@redhat.com>
440
441         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
442         find the complete path to a loaded DLL.
443
444 2002-02-21  Fred Fish  <fnf@redhat.com>
445
446         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
447         that marks the end of the range of a function, enter a line number
448         entry that has a line number of zero and a PC offset that matches
449         the end of the function.  This starts a range of PC's for which no
450         line number information is known.
451         * symtab.c (find_pc_sect_line): If our best fit is in a range of
452         PC's for which no line number info is found (line number is zero)
453         then we didn't find any valid line information.
454         * symtab.h: Document use of zero line number entry.
455
456 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
457
458         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
459         (have_ptrace_getvrregs): Define for run time checks.
460         (gdb_vrregset_t): New type for Altivec register handling.
461         (fetch_register, store_register): Fetch/store altivec register
462         when needed.
463         (fetch_altivec_register, store_altivec_register): New functions.
464         (supply_vrregset, fill_vrregset): New functions.
465         (fetch_altivec_registers, store_altivec_registers): New functions.
466         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
467         registers as well.
468
469 2002-02-21  Jiri Smid  <smid@suse.cz>
470
471         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
472
473 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
474
475         * Makefile.in (armnbsd-nat.o): Update dependencies.
476         * armnbsd-nat.c (supply_gregset): New function.  Common code to
477         supply the integer register set.
478         (supply_fparegset): New function.  Similar for FPA registers.
479         (fetch_regs, fetch_fp_regs): Use them.
480         (fetch_core_registers): Likewise.
481         (fetch_elfcore_registers): New function.
482         (arm_netbsd_elfcore_fns): New core-file type specification.
483         (_initialize_arm_netbsd_nat): Register it.
484
485 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
486
487         * armnbsd-nat.c: Include gdbcore.h.
488         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
489         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
490         'void' to declaration, to shut up ARI.
491         (fetch_core_registers): Make static.  Rewrite using supply_register.
492         (arm_netbsd_core_fns): New core-file type specification.
493         (_initialize_arm_netbsd_nat): New function.
494
495 2002-02-21  Christopher Faylor  <cgf@redhat.com>
496
497         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
498         value.
499
500 2002-02-20  Christopher Faylor  <cgf@redhat.com>
501
502         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
503         fails.
504
505 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
506
507         * jv-exp.y (parse_number): Change type of implicit longs
508         to builtin_type_uint64.
509
510 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
511
512         * gdbserver/linux-low.c (mywait): Change argument to waitpid
513         to be an integer instead of a `union wait'.
514
515 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
516
517         * mips-linux-nat.c: Call the operating system GNU/Linux.
518         * mips-linux-tdep.c: Likewise.
519         * mips-tdep.c: Likewise.
520
521 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
522
523         Fix PR gdb/265.
524         * jv-exp.y (parse_number): Handle 64-bit integers.
525
526 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
527
528         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
529         AC_STDC_HEADERS to AC_HEADER_STDC.
530         * gdbserver/configure: Regenerated.
531
532 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
533
534         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
535         is defined.
536         * sparc-tdep.c (get_longjmp_target): Likewise.
537
538 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
539
540         * News: Add news about ARM and Multi-arch.  Mention the new target
541         arm*-*-netbsd*.
542
543 2002-02-19  Jim Blandy  <jimb@redhat.com>
544
545         * stabsread.c (error_type_complaint): Improve error message.
546
547 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
548
549         * gdbserver/README: Update documentation.
550         * gdbserver/configure.in: Update configury to match documentation.
551         * gdbserver/Makefile.in: Likewise.
552         * gdbserver/configure: Regenerated.
553         * gdbserver/aclocal.m4: New file, generated by aclocal.
554         * gdbserver/config.in: New file, generated by autoheader.
555
556 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
557
558         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
559         armnbsd-nat.c.
560
561 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
562
563         * arm-tdep.h (enum arm_float_model): New enum.
564         (struct gdbarch_tdep): Add fp_model.
565         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
566         up floating-point conversions until we know the floating-point model
567         in use by the inferior.  Don't complain about being unable to
568         determine the ABI of the inferior when we don't have one.
569         (arm_extract_return_value): Support different floating-point models.
570         (arm_store_return_value): Likewise.
571         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
572         ARM_FLOAT_SOFT.
573         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
574
575 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
576
577         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
578         of ``current_gdbarch''.
579
580 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
581
582         * armnbsd-nat.c : ANSIfy all function declarations.
583         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
584         (fetch_inferior_registers): Re-implement in terms of above.
585         (store_register, store_regs, store_fp_register, store_fp_regs): New.
586         (store_inferior_registers): Re-implement in terms of above.
587
588 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
589
590         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
591         kernel.
592         * arm-linux-tdep.c: Likewise.
593         * config/arm/tm-linux.h: Likewise.
594
595 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
596
597         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
598         * config/arm/nbsd.mt (TM_FILE): Delete.
599         * config/arm/tm-nbsd.h: Delete.
600
601 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
602
603         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
604         Initialize CALL_DUMMY_LENGTH.
605
606 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
607
608         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
609         function.
610         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
611         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
612         defines one thing and that is incorrect for this port.
613         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
614
615 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
616
617         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
618
619 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
620
621         * win32-nat.c (display_selector): New function. Displays information
622         about the information returned by GetThreadSelectorEntry API function.
623         (display_selectors): New function. Displays the infomation of
624         the selector given as argument, or of CS, DS ans FS selectors
625         if no argument is given.
626         ( _initialize_inftarg): Add "w32" as info prefix command.
627         Add "info w32 selector" as command calling display_selectors.
628
629 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
630
631         * i386-tdep.c (get_longjmp_target): Fix compilation failure
632         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
633         if not defined.
634
635 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
636
637         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
638
639 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
640
641         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
642         (arm_fix_call_dummy): Call it.
643         (arm_call_dummy_breakpoint_offset): Delete.
644         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
645         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
646
647 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
648
649         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
650         Default to func_frame_chain_valid.
651         * gdbarch.h, gdbarch.c: Re-generate.
652         * frame.h (FRAME_CHAIN_VALID): Delete definition.
653
654 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
655
656         * ppc-linux-nat.c: Update copyright.
657         (fetch_register, store_register): Add tid parameter, don't compute
658         tid here.
659         (fetch_ppc_registers, store_ppc_registers): Add tid
660         parameter. Pass it along to callees.
661         (fetch_inferior_registers, store_inferior_registers): Compute tid
662         here, and pass it to calleed functions.
663         (fill_gregset, supply_fpregset): Clean up formatting.
664
665 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
666
667         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
668         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
669
670 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
671
672         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
673         * gdbarch.c gdbarch.h: Regenerate.
674         * breakpoint.c (create_longjmp_breakpoint): Always compile this
675         function.
676         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
677         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
678         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
679
680         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
681         * arm-tdep.c (arm_get_longjmp_target): New function.
682         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
683         this to a positive value register arm_get_longjmp_target as the
684         longjmp handler.
685         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
686         (arm_linux_init_abi): Set up longjmp description in tdep.
687         * armnbsd-nat.c (get_longjmp_target): Delete.
688         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
689         description in tdep.
690         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
691         (get_longjmp_target): Delete declaration.
692         (GET_LONGJMP_TARGET): Delete.
693         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
694         (GET_LONGJMP_TARGET): Delete.
695
696 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
697
698         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
699         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
700         of ``current_gdbarch''.
701
702 2002-02-17  Tom Tromey  <tromey@redhat.com>
703
704         * cli/cli-cmds.c (compare_strings): New function.
705         (complete_command): Only print each unique item once.
706         * completer.h (complete_line): Declare.
707         * completer.c (complete_line): New function.
708         (line_completion_function): Use it.
709
710 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
711
712         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
713         * gdbarch.h, gdbarch.c: Re-generate.
714
715 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
716
717         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
718
719 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
720
721         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
722         * valops.c (value_arg_coerce): Don't take the address of a reference
723         to convert an argument to a reference.
724
725 2002-02-15  Christopher Faylor  <cgf@redhat.com>
726
727         * win32-nat.c (get_image_name): New function.
728         (handle_load_dll): Use get_image_name function.
729         (get_child_debug_event): Avoid registering debug events until possibly
730         execed process is started.
731         (child_create_inferior): Allow invocation via shell so that command
732         line redirection, etc.  works ok.
733         (_initialize_inftarg): Add new command: "set shell" to control whether
734         a shell is used to start a process.
735
736 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
737
738         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
739         instead of find_register_by_number.
740         (cannot_store_register): Likewise.
741
742 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
743
744         * dwarf2read.c: Replace fprintf (stderr, ...) by
745         fprintf_unfiltered (gdb_stderr, ...).
746
747 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
748
749         * gdbserver/gdbserver.1: Document --attach.
750
751 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
752
753         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
754         descriptions.
755         * arm-tdep.c (arm_default_arm_le_breakpoint)
756         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
757         (arm_default_thumb_be_breakpoint): New.  Initialize them from
758         traditional breakpoint defines.
759         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
760         (arm_gdbarch_init): Initialize new breakpoint variables.
761         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
762         (arm_linux_init_abi): Initialize linux-specific breakpoint.
763         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
764         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
765         code out to ...
766         (arm_netbsd_init_abi_common): ... here; new function.
767         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
768         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
769         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
770         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
771
772 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
773
774         * arm-tdep.h (enum arm_abi): New enum.
775         (struct gdbarch_tdep): New structure.
776         (LOWEST_PC): Provide a default.
777         (arm_gdbarch_register_os_abi): Declare new function.
778         * arm-tdep.c (arm_abi_names): New array.
779         (process_note_abi_tag_sections): New function.
780         (get_elfosabi): New function.
781         (arm_gdbarch_register_os_abi): New function.
782         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
783         support for that ABI has been built in, then call the appropriate
784         configuration routine.  Use gdbarch_num_regs() to get the number
785         of registers.
786         (arm_dump_tdep): New function.
787         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
788         place-holder functions.
789         (_initialize_arm_tdep): Register them.
790         * config/arm/tm-arm.h (LOWEST_PC): Delete.
791
792         * armnbsd-tdep.c: New file.
793         * Makefile.in (armnbsd-tdep.o): Add dependencies.
794         * config/arm/nbsd.mt (TDEPFILES): Add it.
795         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
796
797         * armnbsd-nat.c: Include regcache.h.
798         * Makefile.in (armnbsd-nat.o): Update dependency list.
799
800         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
801
802 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
803
804         * gdbserver/Makefile.in: Fix typos in target rules.
805
806 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
807
808         Fix part of PR gdb/267.
809         * linespec.c (find_methods): Handle constructors specially for now.
810
811 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
812
813         * arm-tdep.c (arm_push_arguments): Eliminate special float type
814         handling.
815         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
816         standard_coerce_float_to_double().
817
818 2002-02-14  Christopher Faylor  <cgf@redhat.com>
819
820         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
821         GDBINIT_FILENAME.
822
823 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
824
825         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
826         find_variant_by_name, because it confuses the multiarch
827         framework. Return NULL if there isn't an architecture with the
828         user supplied name, instead of forcing a different one without
829         recording the change with the multiarch machinery.
830         (find_variant_by_name): Delete.
831
832 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
833
834         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
835         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
836
837 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
838
839         * stack.c (print_frame_info_base): When calling
840         print_frame_info_listing_hook, set current_source_symtab.
841
842 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
843
844         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
845         and remove unused $(INCLUDE_DIR).
846         Add regcache.c to OBS.
847         Add generated register protocol files to clean target.
848         Update dependencies for new objects, obsolete old target code.
849
850         * gdbserver/linux-low.c: Remove all platform-specific code to
851         new files.  Remove various dead code.  Update to use regcache
852         functionality.
853         * gdbserver/remote-utils.c (fromhex): Add return statement
854         to quiet warning.
855         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
856         constant.
857         (input_interrupt): Add integer parameter to match prototype
858         of a signal handler.
859         (outreg): Use register_data ().
860         (prepare_resume_reply): Use gdbserver_expedite_regs.
861         * gdbserver/server.c (main): Dynamically allocate own_buf because
862         PBUFSIZ is no longer constant.  Use registers_to_string () and
863         registers_from_string ().
864         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
865         for error (), fatal (), and warning ().  Update definition of
866         PBUFSIZ to use regcache functionality.  Add include guard.
867         * gdbserver/utils.c (fatal): Add missing ``const''.
868         (warning): New function.
869
870         * regformats/regdat.sh: Include "regcache.h" in generated files.
871         Provide init_registers () function.
872         * regformats/regdef.h: Add prototype for set_register_cache ().
873         Add include guard.
874
875         * gdbserver/linux-arm-low.c: New file.
876         * gdbserver/linux-i386-low.c: New file.
877         * gdbserver/linux-ia64-low.c: New file.
878         * gdbserver/linux-m68k-low.c: New file.
879         * gdbserver/linux-mips-low.c: New file.
880         * gdbserver/linux-ppc-low.c: New file.
881         * gdbserver/linux-sh-low.c: New file.
882
883         * gdbserver/regcache.c: New file.
884         * gdbserver/regcache.h: New file.
885
886         * gdbserver/low-linux.c: Removed obsolete file.
887
888 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
889
890         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
891         * config/i386/linux.mt: Likewise.
892         * config/ia64/linux.mt: Likewise.
893         * config/m68k/linux.mh: Likewise.
894         * config/powerpc/linux.mh: Likewise.
895         * config/mips/linux.mt: Likewise.
896
897         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
898
899         * config/i386/i386lynx.mh: Mark gdbserver variables
900         as (currently) obsolete for this target.
901         * config/i386/nbsd.mt: Likewise.
902         * config/i386/nbsdelf.mt: Likewise.
903         * config/m32r/m32r.mt: Likewise.
904         * config/m68k/m68klynx.mh: Likewise.
905         * config/m68k/nbsd.mt: Likewise.
906         * config/m68k/sun3os4.mh: Likewise.
907         * config/mips/vr5000.mt: Likewise.
908         * config/ns32k/nbsd.mt: Likewise.
909         * config/pa/hppabsd.mh: Likewise.
910         * config/pa/hppaosf.mh: Likewise.
911         * config/powerpc/nbsd.mt: Likewise.
912         * config/rs6000/rs6000lynx.mh: Likewise.
913         * config/s390/s390.mt: Likewise.
914         * config/s390/s390x.mt: Likewise.
915         * config/sparc/sparclynx.mh: Likewise.
916         * config/sparc/sun4os4.mh: Likewise.
917         * config/i386/x86-64linux.mt: Likewise.
918         * config/sparc/linux.mh: Likewise.
919
920 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
921
922         * configure.tgt: Configure gdbserver only for known working
923         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
924         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
925         SUBDIRS if it is configured.  Update comment for ${nativefile}.
926         * configure: Regenerated.
927
928 2002-02-13  Michael Snyder  <msnyder@redhat.com>
929
930         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
931         (default_gcore_mach): Just return 0, work around a problem in bfd.
932         (default_gcore_target): OK to return NULL if exec_bfd is null.
933         (make_mem_sec): Use a cast, avoid a warning.
934
935         * procfs.c (find_memory_regions_callback): Use a cast instead of
936         calling host_pointer_to_address (which complains if
937         sizeof (host pointer) != sizeof (target pointer)).
938         (procfs_make_note_section): Avoid overflow in psargs string.
939
940         * procfs.c (procfs_make_note_section): Make the default
941         implementation return an error.
942
943 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
944
945         * procfs.c (procfs_make_note_section): Provide a default definition
946         (for alpha-dec-osf4.0f). Fix typos.
947
948 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
949
950         * linux-proc.c: Add include of regcache.h.
951         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
952
953 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
954
955         From 2002-01-18 Greg McGary <greg@mcgary.org>:
956         * memattr.c (create_mem_region): Disallow useless empty region.
957         Regions are half-open intervals, so allow [A..B) [B..C) as
958         non-overlapping.
959
960 2002-02-13  Michael Chastain <mec@shout.net>
961
962         * defs.h: Kill CONST_PTR.
963         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
964         * c-lang.c (c_builtin_types): Likewise.
965         * ch-lang.c (ch_builtin_types): Likewise.
966         * f-lang.c (f_builtin_types): Likewise.
967         * language.c (unknown_builtin_types): Likewise.
968         * m2-lang.c (m2_builtin_types): Likewise.
969         * p-lang.c (pascal_builtin_types): Likewise.
970         * scm-lang.c (c_builtin_types): Likewise.
971
972 2002-02-13  Keith Seitz  <keiths@redhat.com>
973
974         * arm-tdep.h (arm_get_next_pc): Add declaration.
975
976 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
977
978         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
979         with other related struct-returning functions.
980         (arm_extract_struct_value_address): New function.
981         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
982         initialize float_format, double_format and long_double_format as
983         appropriate to the endianness of the target.
984         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
985         (arm_use_struct_convention): Delete declaration.
986         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
987
988 2002-02-13  Keith Seitz  <keiths@redhat.com>
989
990         * defs.h (core_addr_to_string_nz): New function.
991
992 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
993
994         Apply missing bits of 2002-01-15 patch.
995         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
996         (fill_fpregset): Use i387_fill_fsave.
997
998 2002-02-12  Keith Seitz  <keiths@redhat.com>
999
1000         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
1001         (core_addr_to_string_nz): New function.
1002
1003 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
1004
1005         * arm-linux-nat.c: Really include arm-tdep.h.
1006         * config/arm/tm-linux.h (struct type, struct value): Declare.
1007
1008 2002-02-11  Michael Snyder  <msnyder@redhat.com>
1009
1010         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
1011         (gcore section): Ifdef for Solaris and Unixware only.
1012         (procfs_do_thread_registers): Unixware needs one lwpstatus
1013         per thread (not one prstatus or pstatus).
1014         (procfs_make_note_section): Iterate only over kernel threads (lwps),
1015         not over all gdb threads.  For unixware, call elfcore_write_pstatus
1016         once before iterating over threads.
1017
1018 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
1019
1020         * arm-tdep.h: New file.
1021         * arm-tdep.c: Include arm-tdep.h.
1022         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1023         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1024         (arm_print_float_info, arm_register_type, convert_to_extended)
1025         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1026         (arm_extract_return_value, arm_register_name): Make static.
1027         (arm_software_single_step): Similarly.  Fix types in declaration.
1028         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
1029         (arm_store_return_value, arm_store_struct_return): New functions.
1030         (arm_gdbarch_init): Register the above functions.  Also register
1031         call_dummy_start_offset, sizeof_call_dummy_words,
1032         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
1033         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
1034         max_register_virtual_size, register_size.  Set up
1035         prologue_cache.saved_regs here, rather than ...
1036         (_initialize_arm_tdep): ... here.
1037         * config/arm/tm-arm.h (struct type, struct value): Delete forward
1038         declarations.
1039         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1040         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1041         (arm_print_float_info, arm_register_type, convert_to_extended)
1042         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1043         (arm_extract_return_value, arm_register_name): Delete declarations.
1044         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
1045         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
1046         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
1047         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
1048         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1049         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
1050         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
1051         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
1052         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
1053         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
1054         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
1055         (arm_get_next_pc): No-longer static -- these are needed by the RDI
1056         interface.
1057         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
1058         * remote-rdi.c remote-rdp.c: Likewise.
1059         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
1060         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
1061         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
1062         definition.
1063
1064         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
1065         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
1066         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
1067         from non-ARM_ prefixed definitions.
1068         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
1069         all uses of above.
1070         * remote-rdi.c remote-rdp.c: Likewise.
1071         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
1072
1073 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
1074
1075         * arm-tdep.c (arm_frameless_function_invocation)
1076         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1077         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1078         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1079         (arm_pop_frame, arm_get_next_pc): Make static.
1080         (arm_gdbarch_init): Register above in gdbarch structure.
1081         (arm_read_fp): Renamed from arm_target_read_fp.
1082         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
1083         * config/arm/tm-arm.h (arm_frameless_function_invocation)
1084         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1085         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1086         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1087         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
1088         (arm_pc_is_thumb_dummy): Delete declarations.
1089         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
1090         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
1091         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
1092         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
1093
1094 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
1095
1096         * symtab.c (compare_search_syms): New function.
1097         (sort_search_symbols): New function.
1098         (search_symbols): Sort symbols after searching rather than
1099         before.
1100
1101 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
1102
1103         * NEWS: Linux -> GNU/Linux.
1104
1105 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
1106
1107         * gdbarch.sh: For for level one methods, disallow a definition
1108         when partially multi-arched.  Add comments explaining rationale.
1109         * gdbarch.h: Re-generate.
1110
1111 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
1112
1113         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
1114         multi-arch partial.
1115
1116 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
1117
1118         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
1119         field.  Use diff -u.
1120         * gdbarch.c: Re-generate.
1121
1122 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
1123
1124         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
1125         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
1126         partial.
1127
1128 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
1129
1130         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
1131         multi-arch partial.
1132         (PUSH_ARGUMENTS): Switch to using predefault.
1133         * gdbarch.c: Regenerate.
1134
1135 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
1136
1137         * valops.c (PUSH_ARGUMENTS): Delete definition.
1138         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
1139         partial.  Default to default_push_arguments.
1140         * gdbarch.h, gdbarch.c: Regenerate.
1141
1142 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
1143
1144         * defs.h (throw_exception): Rename return_to_top_level.  Update
1145         comments.
1146         * utils.c (error_stream, internal_verror, quit): Ditto.
1147         * top.c (throw_exception, catcher): Ditto.
1148         * sparclet-rom.c (sparclet_load): Ditto.
1149         * remote.c (interrupt_query, minitelnet): Ditto.
1150         * remote-sds.c (interrupt_query): Ditto.
1151         * remote-mips.c (mips_error, mips_kill): Ditto.
1152         * ocd.c (interrupt_query): Ditto.
1153         * monitor.c (monitor_interrupt_query): Ditto.
1154         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
1155         * target.h: Update comment.
1156
1157         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
1158
1159 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
1160
1161         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
1162         default_double_format.
1163         * gdbarch.h, gdbarch.c: Re-generate.
1164         * findvar.c (floatformat_unknown): Delete variable definition.
1165         * doublest.h (floatformat_unknown): Delete variable declaration.
1166
1167 2002-02-09  Jim Blandy  <jimb@redhat.com>
1168
1169         * stabsread.c (read_type): Add code to parse Sun's syntax for
1170         prototyped function types.
1171
1172 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
1173
1174         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
1175         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
1176
1177 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1178
1179         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
1180         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
1181         now _initialize_xcoffsolib gets called again and overrides the
1182         commands from solib.c in a native configuration.
1183
1184 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
1185
1186         * doublest.c (store_typed_floating): Don't try to return a value.
1187         Fixes PR gdb/290.
1188
1189 2002-02-08  Jim Blandy  <jimb@redhat.com>
1190
1191         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
1192         is prototyped and has no arguments, print its argument list as
1193         `(void)'.
1194
1195 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
1196
1197         * MAINTAINERS (write-after-approval): Add myself.
1198         (paper-trail): I've escaped!
1199
1200 2002-02-08  Christopher Faylor  <cgf@redhat.com>
1201
1202         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
1203         changes.
1204         (_initialize_check_for_gdb_ini): Ditto.
1205
1206 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
1207
1208         * win32-nat.c (cygwin_pid_to_str): Fix typo.
1209         xaprintf -> xasprintf.
1210
1211 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
1212
1213         * win32-nat.c: Remove use of printf and sprintf functions.
1214
1215 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
1216
1217         * arm-tdep.c (arm_frame_chain_valid): Make static.
1218         (arm_push_arguments): Likewise.
1219         (arm_gdbarch_init): New function.
1220         (_initialize_arm_tdep): Call it.
1221         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
1222         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
1223         (FRAME_CHAIN_VALID): Delete.
1224         (arm_frame_chain_valid): Delete declaration.
1225         (PUSH_ARGUMENTS): Delete.
1226         (arm_push_arguments): Delete declaration.
1227         (CALL_DUMMY_P): Delete.
1228
1229 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
1230             Corinna Vinschen  <vinschen@redhat.com>
1231
1232         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
1233         on builtin float types.
1234
1235 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
1236
1237         * utils.c: Include <curses.h> before "bfd.h".
1238         * tui/tui-hooks.c: Likewise.
1239         * tui/tui.c: Likewise.
1240         * tui/tuiCommand.c: Likewise.
1241         * tui/tuiData.c: Likewise.
1242         * tui/tuiDataWin.c: Likewise.
1243         * tui/tuiDisassem.c: Likewise.
1244         * tui/tuiGeneralWin.c: Likewise.
1245         * tui/tuiIO.c: Likewise.
1246         * tui/tuiLayout.c: Likewise.
1247         * tui/tuiRegs.c: Likewise.
1248         * tui/tuiSource.c: Likewise.
1249         * tui/tuiSourceWin.c: Likewise.
1250         * tui/tuiStack.c: Likewise.
1251         * tui/tuiWin.c: Likewise.
1252
1253 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
1254
1255         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
1256         to include space for pseudoregs as well. Update loops accordingly.
1257         (sh_fp_frame_init_saved_regs): Ditto.
1258         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
1259
1260 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
1261
1262         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
1263         Add Richard Earnshaw to Arm maintainers.
1264
1265 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
1266
1267         * defs.h (warning_begin): Delete declaration.
1268
1269         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
1270         Delete macro.
1271
1272 2002-02-07  Michael Snyder  <msnyder@redhat.com>
1273
1274         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
1275         Logic bug, remove misplaced else.
1276
1277 2002-02-07  Klee Dienes  <klee@apple.com>
1278
1279         * fork-inferior.c (fork_inferior): Add '!' to the list of
1280         characters that need to be quoted when building a string for the
1281         shell.  Quote '!' specifically with a backslash, since CSH chokes
1282         when trying to evaluate "str!str".
1283
1284 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
1285
1286         * rdi-share/host.h: Only provide a typedef for bool if it is not
1287         defined.
1288
1289 2002-02-04  Michael Snyder  <msnyder@redhat.com>
1290
1291         * breakpoint.h (enum bptype): Add new overlay event bp type.
1292         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
1293
1294         * breakpoint.c (create_internal_breakpoint): New function.
1295         (internal_breakpoint_number): Moved into create_internal_breakpoint.
1296         (create_longjmp_breakpoint): Use create_internal_breakpoint.
1297         (create_thread_event_breakpoint): Ditto.
1298         (create_solib_event_breakpoint): Ditto.
1299         (create_overlay_event_breakpoint): New function.
1300         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
1301         (update_breakpoints_after_exec): Delete and re-initialize
1302         overlay event breakpoints after an exec.  Add FIXME comment
1303         about longjmp breakpoint.
1304         (print_it_typical): Ignore overlay event breakpoints.
1305         (print_one_breakpoint): Ditto.
1306         (mention): Ditto.
1307         (bpstat_what): Do not stop for overlay event breakpoints.
1308         (delete_breakpoint): Don't delete overlay event breakpoints.
1309         (breakpoint_re_set_one): Delete the overlay event breakpoint.
1310         (breakpoint_re_set): Re-create overlay event breakpoint.
1311
1312         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
1313         (overlay_manual_command): Disable overlay breakpoints.
1314         (overlay_off_command): Disable overlay breakpoints.
1315
1316 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
1317
1318         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
1319         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
1320         to here from config/tm-arm.h.
1321         (coff_sym_is_thumb): Make static.
1322         (arm_elf_make_msymbol_special): New function.
1323         (arm_coff_make_msymbol_special): New function.
1324         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
1325         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
1326         (coff_sym_is_thumb): Delete declaration.
1327         (arm_elf_make_msymbol_special): Declare.
1328         (arm_coff_make_msymbol_special): Declare.
1329         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
1330         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
1331
1332 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
1333
1334         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
1335
1336 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
1337
1338         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
1339         * gdbarch.c gdbarch.h: Regenerate.
1340         * arch-utils.c (default_print_float_info): New function.
1341         * arch-utils.h (default_print_float_info): Prototype it.
1342         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
1343         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
1344         (PRINT_FLOAT_INFO): Document it.
1345
1346         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
1347         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
1348         (PRINT_FLOAT_INFO): Define.
1349
1350 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
1351
1352         * win32-nat.c (_initialize_check_for_gdb_ini):
1353         Add typecast to sprintf argument to suppress a warning.
1354
1355 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
1356
1357         * win32-nat.c (last_sig): Changed type of variable to target_signal,
1358         to allow easier handling of pass state.
1359         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
1360         that gives exception name and address.
1361         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
1362         and set last_sig value to ourstatus->value.sig. Some missing
1363         exceptions added.
1364         (child_continue): Correctly report continue_status.
1365         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
1366         TARGET_SIGNAL_0 (new default value).
1367         (child_resume): consider sig argument passed to decide if
1368         the exception should be passed to debuggee or not.
1369
1370 2002-02-05  Michael Snyder  <msnyder@redhat.com>
1371
1372         * regcache.c (fetch_register): Call target_fetch_register
1373         only if we don't call FETCH_PSEUDO_REGISTER.
1374         (store_register): Call target_store_register only if we
1375         don't call STORE_PSEUDO_REGISTER.
1376
1377 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
1378
1379         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
1380         ELF_MAKE_MSYMBOL_SPECIAL.
1381         * gdbarch.c, gdbarch.h: Regenerate.
1382         * arch-utils.c (default_make_msymbol_special): New function.
1383         * arch-utils.h (default_make_msymbol_special): Export.
1384         * elfread.c (elf_symtab_read): Compile use of
1385         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
1386         multiarched.
1387         * coffread.c (coff_symtab_read): Ditto, for
1388         COFF_MAKE_MSYMBOL_SPECIAL.
1389
1390 2002-02-05  Jim Blandy  <jimb@redhat.com>
1391
1392         * solib-svr4.c (svr4_truncate_ptr): New function.
1393         (svr4_relocate_section_addresses): Do the address arithmetic with
1394         the appropriate truncation for target addresses, even when
1395         CORE_ADDR is larger than a target address.
1396
1397 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
1398
1399         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
1400         to (int *).
1401
1402 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
1403
1404         * gdbserver/linux-low.c (kill_inferior): Remove commented out
1405         code.
1406
1407 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
1408
1409         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
1410
1411 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
1412
1413         * gdbserver/linux-low.c: Remove unused include files.
1414
1415 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
1416
1417         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
1418         (read_inferior_memory): Use it.
1419         (write_inferior_memory): Likewise.
1420
1421 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
1422
1423         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
1424         grubbing through sys_errlist.
1425
1426 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
1427
1428         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
1429
1430 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
1431         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
1432
1433 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
1434
1435         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
1436         (do_sfunc, set_cmd_sfunc): New functions.
1437
1438         * command.h (struct cmd_list_element): Add field func.
1439         * cli/cli-decode.h (struct cmd_list_element): Ditto.
1440         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
1441         * cli/cli-decode.h: Ditto.
1442
1443         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
1444         (help_all, help_cmd_list): Ditto.
1445         (find_cmd, complete_on_cmdlist): Ditto.
1446         * top.c (execute_command): Ditto.
1447
1448         * cli/cli-setshow.c (do_setshow_command): Call func instead of
1449         function.sfunc.
1450
1451         * infcmd.c (notice_args_read): Fix function signature.
1452
1453         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
1454         * cli/cli-decode.c (add_set_cmd): Ditto.
1455         * utils.c (initialize_utils): Ditto.
1456         * maint.c (_initialize_maint_cmds): Ditto.
1457         * infrun.c (_initialize_infrun): Ditto.
1458         * demangle.c (_initialize_demangler): Ditto.
1459         * remote.c (add_packet_config_cmd): Ditto.
1460         * mips-tdep.c (_initialize_mips_tdep): Ditto.
1461         * cris-tdep.c (_initialize_cris_tdep): Ditto.
1462         * proc-api.c (_initialize_proc_api): Ditto.
1463         * kod.c (_initialize_kod): Ditto.
1464         * valprint.c (_initialize_valprint): Ditto.
1465         * top.c (init_main): Ditto.
1466         * infcmd.c (_initialize_infcmd): Ditto.
1467         * corefile.c (_initialize_core): Ditto.
1468         * arm-tdep.c (_initialize_arm_tdep): Ditto.
1469         * arch-utils.c (initialize_current_architecture): Ditto.
1470         (_initialize_gdbarch_utils): Ditto.
1471         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
1472
1473         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
1474         * wince.c (_initialize_inftarg): Ditto.
1475         * symfile.c (_initialize_symfile): Ditto.
1476         * mips-tdep.c (_initialize_mips_tdep): Ditto.
1477         * language.c (_initialize_language): Ditto.
1478         * arc-tdep.c (_initialize_arc_tdep): Ditto.
1479
1480 2002-02-04  Michael Snyder  <msnyder@redhat.com>
1481
1482         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
1483
1484 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
1485
1486         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
1487         Add rules for building the register data files.
1488
1489 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
1490
1491         * regformats/regdat.sh: Add braces to the definition of
1492         expedite_regs_${arch}.
1493
1494 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
1495
1496         * regformats/regdef.h (struct reg): Add comment describing the
1497         requirements for offset and size fields.
1498
1499 2002-02-04  Andreas Schwab  <schwab@suse.de>
1500
1501         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
1502         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
1503
1504 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
1505
1506         * gdbarch.sh (copyright): Update years in generated header.
1507         (SMASH_TEXT_ADDRESS): Add rule.
1508         * gdbarch.h, gdbarch.c: Re-generate.
1509         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
1510         * dbxread.c: Likewise.
1511         * dwarfread.c: Likewise.
1512         * elfread.c: Likewise.
1513         * somread.c: Likewise.
1514
1515         * arm-tdep.c (arm_smash_text_address): New function.
1516         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
1517
1518 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
1519
1520         Add support for hardware watchpoints on win32 native.
1521         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
1522         CONTEXT_DEBUG_REGISTERS.
1523         (dr variable): New variable. Static array containing a local copy
1524         of debug registers.
1525         (debug_registers_changed): New variable.  Reflects when debug registers
1526         are changed and need to be written to inferior.
1527         (debug_registers_used): New variable. Reflects when any debug register
1528         was set, used when new threads are created.
1529         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
1530         i386-nat code.
1531         (thread_rec): Set dr array if id is the thread of current_event .
1532         (child_continue, child_resume): Change the debug registers for all
1533         threads if debug_registers_changed.
1534         (child_add_thread): Change the debug registers if debug_registers_used.
1535         * config/i386/cygwin.mh: Add use of i386-nat.o file.
1536         Link nm.h to new nm-cygwin.h file.
1537         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
1538         of hardware registers.
1539
1540 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
1541
1542         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
1543         Restore behavour broken by 2002-01-20 Andrew Cagney
1544         <ac131313@redhat.com> IEEE_FLOAT removal.
1545
1546 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
1547
1548         * c-valprint.c (c_val_print): Pass a proper valaddr to
1549         cp_print_class_method.
1550         * valops.c (search_struct_method): If there is only one method
1551         and args is NULL, return that method.
1552
1553 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
1554
1555         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
1556         accessing tag_name directly.
1557
1558 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
1559
1560         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
1561         of accessing tag_name directly.
1562
1563 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
1564
1565         PR gdb/280
1566         * gdbtypes.c (replace_type): New function.
1567         * gdbtypes.h (replace_type): Add prototype.
1568         * stabsread.c (read_type): Use replace_type.
1569
1570 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
1571
1572         * Makefile.in (memattr.o): Add missing dependencies rule.
1573
1574 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1575
1576         * breakpoint.c (break_at_finish_command): Really export.
1577         (break_at_finish_at_depth_command): Ditto.
1578         (tbreak_at_finish_command): Ditto.
1579         * hppa-tdep.c: Include completer.h.
1580         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
1581         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
1582
1583 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
1584
1585         * utils.c (do_write): New function.
1586         (error_stream): Rewrite combining the code from error_begin and
1587         verror.
1588         (verror): Rewrite using error_stream.
1589         (error_begin): Delete function.
1590
1591 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
1592
1593         * utils.c (error_begin): Make static.
1594         * defs.h (error_begin): Delete declaration.
1595
1596         * linespec.c (cplusplus_error): Replace cplusplus_hint.
1597         (decode_line_1): Use cplusplus_error instead of error_begin,
1598         cplusplus_hint and return_to_top_level.
1599         * coffread.c (coff_symfile_read): Use error instead of error_begin
1600         and return_to_top_level.
1601         * infrun.c (default_skip_permanent_breakpoint): Ditto.
1602
1603 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
1604
1605         * language.h (type_error, range_error): Make string parameter
1606         constant.
1607         * language.c (warning_pre_print): Delete extern declaration.
1608         * dwarfread.c (warning_pre_print): Ditto.
1609         * language.c (type_error, range_error): Rewrite to use verror and
1610         vwarning instead of warning_begin.
1611
1612 2002-02-01  Michael Snyder  <msnyder@redhat.com>
1613
1614         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
1615         (set_ignore_count): Move misplaced comment back where it belongs.
1616
1617 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
1618
1619         * command.h (NO_FUNCTION): Delete macro.
1620         * cli/cli-decode.h (NO_FUNCTION): Ditto.
1621         * top.c (execute_command): Replace NO_FUNCTION with NULL.
1622         * tracepoint.c (_initialize_tracepoint): Ditto.
1623         * cli/cli-decode.c (add_set_cmd): Ditto.
1624         * cli/cli-cmds.c (init_cli_cmds): Ditto.
1625
1626 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
1627
1628         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
1629         Update ``this'' pointer when calling virtual functions.
1630
1631 2002-02-01  Michael Snyder  <msnyder@redhat.com>
1632
1633         * breakpoint.c (create_temp_exception_breakpoint): Delete.
1634         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
1635
1636 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
1637
1638         * regformats/reg-arm.dat: New file.
1639         * regformats/reg-i386.dat: New file.
1640         * regformats/reg-ia64.dat: New file.
1641         * regformats/reg-m68k.dat: New file.
1642         * regformats/reg-mips.dat: New file.
1643         * regformats/reg-ppc.dat: New file.
1644         * regformats/reg-sh.dat: New file.
1645         * regformats/regdef.h: New file.
1646         * regformats/regdat.sh: New file.
1647
1648 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
1649
1650         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
1651         (arm_frame_args_address, arm_frame_locals_address): New functions.
1652         (arm_frame_num_args): New function.
1653         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
1654         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
1655         (FRMA_NUM_ARGS): Call arm_frame_num_args.
1656
1657 2002-01-31  Michael Snyder  <msnyder@redhat.com>
1658
1659         * breakpoint.c (break_at_finish_command): Export.
1660         (break_at_finish_at_depth_command): Export.
1661         (tbreak_at_finish_command): Export.
1662         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
1663         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
1664         "tbreak" commands, which are HPPA specific.
1665
1666         * printcmd.c (disassemble_command): Remove an ancient
1667         artifact of an old merge.
1668
1669         * symfile.h (enum overlay_debugging_state):
1670         Define enum constant values for overlay mode.
1671         * symfile.c (overlay_debugging): Use enums instead of literals.
1672         (overlay_is_mapped, overlay_auto_command,
1673         overlay_manual_command): Ditto.
1674
1675         * breakpoint.c (insert_breakpoints, remove_breakpoint,
1676         breakpoint_here_p, breakpoint_inserted_here_p,
1677         breakpoint_thread_match, bpstat_stop_status,
1678         describe_other_breakpoints, check_duplicates, clear_command):
1679         Coding standard fixes.
1680
1681         * target.c (target_xfer_memory): Add spaces, coding standard.
1682         (do_xfer_memory): Add missing line to trust-readonly
1683         code: check bfd SEC_READONLY flag for section.
1684
1685 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
1686
1687         * PROBLEMS: Fix typo, 5.1->5.1.1.
1688
1689 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
1690
1691         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
1692         data symbols, since we search based on textlow and texthigh.
1693         (find_pc_sect_symtab): Likewise.
1694
1695 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
1696
1697         * defs.h (vwarning): Declare.
1698         * utils.c (vwarning): New function.
1699         (warning): Call vwarning.
1700         (warning_begin): Delete function.
1701
1702         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
1703         the warning message.
1704         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
1705         warning_begin.
1706
1707 2002-01-30  Michael Snyder  <msnyder@redhat.com>
1708
1709         * NEWS: Mention "set trust-readonly-sections" command.
1710         Mention generate-core-file command.
1711
1712 2002-01-15  Michael Snyder  <msnyder@redhat.com>
1713
1714         * target.c: New command, "set trust-readonly-sections on".
1715         (do_xfer_memory): Honor the suggestion to trust readonly sections
1716         by reading them from the object file instead of from the target.
1717         (initialize_targets): Register command "set trust-readonly-sections".
1718
1719 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
1720
1721         * parse.c (target_map_name_to_register): Simplify, search regs and
1722         pseudo-regs using a single loop.
1723
1724 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
1725
1726         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
1727
1728 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
1729
1730         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
1731         * config/i386/i386v42mp.mh: Add i387-nat.o .
1732         * i386v4-nat.c: Include i387-nat.h.
1733         (supply_fpregset): Use i387_supply_fsave.
1734         (fill_fpregset): Use i387_fill_fsave.
1735
1736 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
1737
1738         * arm-tdep.c (arm_call_dummy_words): Define.
1739         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
1740         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
1741         (CALL_DUMMY_WORDS): Define.
1742         (arm_call_dummy_words): Declare.
1743         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
1744         (arm_linux_call_dummy_words): Declare.
1745
1746 2002-01-30  Andreas Schwab  <schwab@suse.de>
1747
1748         * m68klinux-nat.c: Fix last change to use regcache_collect
1749         instead of referencing registers[] directly.
1750
1751 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
1752
1753         * parse.c (target_map_name_to_register): Delete code wrapped in
1754         #ifdef REGISTER_NAME_ALIAS_HOOK.
1755
1756 2002-01-28  Michael Snyder  <msnyder@redhat.com>
1757
1758         * regcache.c (legacy_read_register_gen): Need to be able to
1759         read pseudo-register as well as real register.
1760         (legacy_write_register_gen): Ditto.
1761
1762 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
1763
1764         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
1765         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
1766         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
1767         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
1768         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
1769         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
1770         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
1771         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
1772         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
1773         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
1774         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
1775         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
1776         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
1777         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
1778         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
1779         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
1780         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
1781         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
1782         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
1783         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
1784
1785 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
1786
1787         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
1788         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
1789         (initialize_current_architecture): Update target_byte_order using
1790         information from BFD.
1791         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
1792         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
1793
1794 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
1795
1796         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
1797         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
1798
1799         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
1800         #ifdef INVALID_FLOAT.
1801         * infcmd.c (do_registers_info): Ditto.
1802         * values.c (unpack_double): Ditto.  Add comment.
1803
1804         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
1805         already commented out.
1806
1807 2002-01-26  Andreas Schwab  <schwab@suse.de>
1808
1809         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1810         * m68klinux-nat.c: Update ptrace interface for fetching/storing
1811         registers and add support for PTRACE_GETREGS.
1812
1813 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
1814
1815         GDB 5.1.1 released from 5.1 branch.
1816         * NEWS: Add 5.1.1 news.
1817         * README: Sync with 5.1 branch.
1818
1819 2002-01-23  Fred Fish  <fnf@redhat.com>
1820
1821         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
1822         stabstring on initial malloc.  Reallocing will copy it for us,
1823         if necessary.
1824
1825 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
1826
1827         * Makefile.in (hpread_h): Delete.
1828         (HFILES_NO_SRCDIR): Remove hpread.h.
1829         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
1830         (hpread.o): Update dependencies.
1831         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
1832
1833         * hp-psymtab-read.c: Remove file.
1834         * hp-symtab-read.c: Remove file.
1835         * hpread.h: Remove file.
1836
1837         * hpread.c: Merge all contents of hp-psymtab-read.c,
1838         hp-symtab-read.c and hpread.h into this file, as it was prior to
1839         January 1999.
1840
1841         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
1842         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
1843         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
1844         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
1845
1846 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
1847
1848         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
1849         fill_gregset): Call gdbarch_tdep() just once, assign result to
1850         variable and use that, instead of calling the function several
1851         times.
1852
1853 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
1854
1855         * configure.host: Accept sparcv9 as alias for sparc64.
1856         * configure.tgt: Likewise.
1857
1858 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
1859
1860         * solib-aix5.c (build_so_list_from_mapfile)
1861         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
1862         arguments is not reversed.
1863         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
1864         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
1865
1866 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
1867
1868         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
1869         modified version of obsolete sh_fetch_pseudo_register.
1870         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
1871         (sh4_register_read): New function.
1872         (sh_pseudo_register_write): New function. Renamed and modified
1873         version of obsolete sh_store_pseudo_register.
1874         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
1875         (sh4_register_write): New function.
1876         (sh_gdbarch_init): Remove setting of gdbarch function
1877         fetch_pseudo_register and store_pseudo_register. Remove setting of
1878         register_convert_to_raw, register_convert_to_virtual,
1879         register_convertible.
1880         (sh_sh4_register_convertible): Delete. No longer needed. All is
1881         taken care by architecture specific functions
1882         register_read/register_write.
1883         (sh_sh4_register_convert_to_virtual): Make static.
1884         (sh_sh4_register_convert_to_raw): Ditto.
1885
1886 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
1887
1888         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
1889         (floatformat_is_nan, floatformat_mantissa): Ditto.
1890
1891         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
1892         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
1893         builtin_type_ieee_double_little,
1894         builtin_type_ieee_double_littlebyte_bigword,
1895         builtin_type_m68881_ext, builtin_type_i960_ext,
1896         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
1897         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
1898         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
1899         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
1900
1901 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
1902
1903         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
1904         parameter.  Set frameless flag if it exists and depended of
1905         whether the scanned function is frameless or not.
1906         (xstormy16_skip_prologue): If function is frameless, return
1907         result of xstormy16_scan_prologue().
1908         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
1909         call.
1910
1911 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
1912
1913         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
1914         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
1915         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
1916         sh_sh4_register_byte, sh_sh4_register_raw_size,
1917         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
1918         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
1919         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
1920         sh_store_pseudo_register, sh_do_pseudo_register): Call
1921         gdbarch_tdep() just once, assign result to variable and use that,
1922         instead of calling the function several times.
1923
1924 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
1925
1926         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
1927         macros instead of LAST_FPU_CTRL_REGNUM.
1928         (store_register): Likewise.
1929
1930 2002-01-21  Jim Blandy  <jimb@redhat.com>
1931
1932         * infcmd.c (run_command): Check that the `exec' target layer's BFD
1933         is up-to-date before running the program, not just when a program
1934         exits.
1935
1936 2002-01-21  Fred Fish  <fnf@redhat.com>
1937
1938         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
1939         when we have found all instructions we are looking for.
1940
1941 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
1942
1943         * arm-tdep.c (arm_register_name): New function.
1944         (arm_registers_names): Make static.
1945         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
1946         (arm_register_name): Declare.
1947         (REGISTER_NAME): Use it.
1948
1949 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
1950             Kevin Buettner  <kevinb@redhat.com>
1951
1952         Convert arm targets to new FRAME interface.
1953         * arm-tdep.c (struct frame_extra_info): Remove fsr.
1954         (arm_frame_find_save_regs): Delete.
1955         (arm_frame_init_saved_regs): New.
1956         (arm_init_extra_frame_info): Alloacte saved_regs as required.
1957         Allocate extra_info as required.  Convert all uses of fsr.regs
1958         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
1959         to use extra_info.
1960         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
1961         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
1962         (check_prologue_cache, save_prologue_cache): Likewise.
1963         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
1964         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
1965         (FRAME_FIND_SAVED_REGS): Delete.
1966         (arm_frame_find_saved_regs): Delete prototype.
1967         (arm_frame_init_saved_regs): New prototype.
1968         (FRAME_INIT_SAVED_REGS): Define.
1969
1970 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
1971
1972         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
1973
1974 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
1975
1976         From Jeff Law <law@redhat.com>:
1977         * infttrace.c: Include <sys/pstat.h>.
1978         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
1979         exec file if the ttrace equivalent fails.
1980
1981 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
1982
1983         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
1984         (closeLogFile): Ditto.
1985
1986 2002-01-20  Michael Chastain  <mec@shout.net>
1987
1988         * top.c (print_gdb_version): Bump copyright year to 2002.
1989
1990 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
1991
1992         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
1993         Zannoni and Eli Zaretskii.
1994
1995 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
1996
1997         * buildsym.c: Update copyright years.
1998         * c-typeprint.c: Likewise.
1999         * dwarf2read.c: Likewise.
2000         * f-typeprint.c: Likewise.
2001         * gdbtypes.c: Likewise.
2002         * gdbtypes.h: Likewise.
2003         * hp-symtab-read.c: Likewise.
2004         * hpread.c: Likewise.
2005         * mdebugread.c: Likewise.
2006         * p-typeprint.c: Likewise.
2007
2008 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
2009
2010         * remote-sim.c (gdbsim_open): Simplify code testing the macro
2011         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
2012         byte-order selectable.
2013         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
2014         * arch-utils.c: Ditto.
2015         (set_endian): Ditto.
2016         (set_endian_from_file): Ditto.
2017         * gdbserver/low-sim.c (create_inferior): Ditto.
2018         * gdbarch.sh: Ditto.
2019         * gdbarch.h: Re-generate.
2020         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2021         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
2022         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
2023         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2024         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2025         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2026         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
2027         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
2028         macro definition.
2029         * config/mips/tm-wince.h: Remove #undef of macro
2030         TARGET_BYTE_ORDER_SELECTABLE.
2031         * config/sh/tm-wince.h: Ditto.
2032
2033 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
2034
2035         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
2036         member function fields.  Add accessor macro
2037         TYPE_FN_FIELD_ARTIFICIAL.
2038         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
2039         * c-typeprint.c (c_type_print_base): Skip artificial member
2040         functions.
2041
2042 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
2043
2044         * f-typeprint.c: Delete unused function f_type_print_args.
2045         * p-typeprint.c: Delete unused function pascal_type_print_args.
2046
2047 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
2048
2049         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
2050         comment.  Add ``artificial'' to ``union field_location''.
2051
2052         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
2053
2054         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
2055         * mdebugread.c (parse_symbol): Likewise.
2056         * stabsread.c (define_symbol): Likewise.
2057         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
2058         initializing TYPE_FIELD_BITPOS to n (obsolete).
2059         (hpread_doc_function_type): Likewise.
2060         * hpread.c (hpread_function_type): Likewise.
2061
2062 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
2063
2064         * configure.in (host_makefile_frag): Only require a host makefile
2065         fragment when a native build.
2066         * configure: Re-generate.
2067
2068 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
2069
2070         * doublest.h (floatformat_from_type): Declare.
2071         * doublest.c (floatformat_from_type): New function.
2072         (convert_typed_floating): Use.
2073
2074         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
2075         call to function floatformat_from_type.
2076
2077         * gdbarch.sh (IEEE_FLOAT): Delete.
2078         * gdbarch.h, gdbarch.c: Re-generate.
2079         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
2080         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
2081         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
2082         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
2083         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
2084         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
2085         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
2086         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
2087         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
2088         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
2089         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
2090         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
2091
2092         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
2093         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2094         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2095         * sh-tdep.c (sh_gdbarch_init): Ditto.
2096         * mips-tdep.c (mips_gdbarch_init): Ditto.
2097         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2098         * cris-tdep.c (cris_gdbarch_init): Ditto.
2099
2100 2002-01-20  Jiri Smid  <smid@suse.cz>
2101
2102         * configure.host, configure.tgt: Support x86-64.
2103         * NEWS: Note new target x86-64.
2104
2105         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
2106         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
2107         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
2108         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
2109         x86-64-linux-nat.o): Fix dependencies.
2110
2111 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
2112
2113         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
2114         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
2115         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
2116         * config/sparc/xm-sun4os4.h: Delete file.
2117         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
2118
2119 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
2120
2121         * config/sparc/sparclynx.mh (XM_FILE): Delete.
2122         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
2123         * config/m68k/m68klynx.mh (XM_FILE): Delete.
2124         * config/i386/i386lynx.mh (XM_FILE): Delete.
2125         * config/rs6000/xm-rs6000ly.h: Delete file.
2126         * config/sparc/xm-sparclynx.h: Delete file.
2127         * config/m68k/xm-m68klynx.h: Delete file.
2128         * config/i386/xm-i386lynx.h: Delete file.
2129         * config/xm-lynx.h: Delete file.
2130         * config/djgpp/fnchange.lst: Update.
2131
2132 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
2133
2134         * alpha-tdep.c (alpha_register_byte): New function.
2135         (alpha_register_raw_size): Ditto.
2136         (alpha_register_virtual_size): Ditto.
2137         (alpha_skip_prologue_internal): Renamed from
2138         alpha_skip_prologue.
2139         (alpha_skip_prologue): New version that calls
2140         alpha_skip_prologue_internal.
2141         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
2142         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
2143         second argument from alpha_skip_prologue.
2144         (REGISTER_BYTE): Use alpha_register_byte.
2145         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
2146         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
2147         (FRAMELESS_FUNCTION_INVOCATION): Use
2148         generic_frameless_function_invocation_not.
2149         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
2150         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
2151
2152 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
2153
2154         * config/mips/xm-news-mips.h: Delete file.
2155         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
2156
2157         * config/m88k/xm-m88k.h: Delete file.
2158         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
2159         * config/m88k/xm-delta88v4.h: Ditto.
2160         * config/m88k/xm-delta88.h: Ditto.
2161
2162         * config/alpha/xm-fbsd.h: Delete file.
2163         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
2164
2165         * config/sparc/xm-sparc.h: Delete file.
2166         * Makefile.in (xm-sun4os4.h): Delete dependency.
2167         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
2168         * config/sparc/xm-sun4os4.h: Ditto.
2169         * config/sparc/xm-linux.h: Ditto.
2170
2171         * config/i386/xm-windows.h: Delete file.
2172
2173 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
2174
2175         * utils.c: Include <sys/param.h> for MAXPATHLEN.
2176         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
2177
2178 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
2179
2180         * alpha-tdep.c (alpha_call_dummy_words): New.
2181         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
2182         (CALL_DUMMY_P): Define.
2183         (CALL_DUMMY_WORDS): Define.
2184         (SIZEOF_CALL_DUMMY_WORDS): Define.
2185
2186 2002-01-19  Per Bothner  <per@bothner.com>
2187
2188         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
2189         isn't NULL, which can happen with some gcj-3.x-produced code.
2190
2191 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
2192
2193         * alpha-tdep.c (alpha_register_virtual_type): New function.
2194         (alpha_init_frame_pc_first): Ditto.
2195         (alpha_fix_call_dummy): Ditto.
2196         (alpha_store_struct_return): Ditto.
2197         (alpha_extract_struct_value_address): Ditto.
2198         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
2199         alpha_register_virtual_type.
2200         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
2201         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
2202         alpha_extract_struct_value_address.
2203         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
2204         (INIT_FRAME_PC): Use init_frame_pc_noop.
2205         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
2206
2207 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
2208
2209         * i386gnu-nat.c: Include "i386-tdep.h".
2210         (fetch_fpregs): Simplify code dealing with uninitialized floating
2211         point states such that it doesn't require FP7_REGNUM.
2212
2213 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
2214
2215         * alpha-tdep.c (frame_extra_info): New.
2216         (alpha_find_saved_regs): Make static.  Use
2217         frame->extra_info.
2218         (alpha_frame_init_saved_regs): New function.
2219         (alpha_frame_saved_pc): Use frame->extra_info.
2220         (temp_saved_regs): Don't declare as struct frame_saved_regs.
2221         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
2222         (init_extra_frame_info): Rename to...
2223         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
2224         (alpha_print_extra_frame_info): New function.
2225         (alpha_frame_locals_address): Ditto.
2226         (alpha_frame_args_address): Ditto.
2227         (alpha_pop_frame): Use frame->extra_info.
2228         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
2229         alpha_frame_args_address.
2230         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
2231         (alpha_find_saved_regs): Remove prototype.
2232         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
2233         (EXTRA_FRAME_INFO): Remove.
2234         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
2235         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
2236
2237 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
2238
2239         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
2240         (alpha_cannot_fetch_register): Ditto.
2241         (alpha_cannot_store_register): Ditto.
2242         (alpha_register_convertible): Ditto.
2243         (alpha_use_struct_convention): Ditto.
2244         * config/alpha/tm-alpha.h: Update copyright years.
2245         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
2246         (INNER_THAN): Use core_addr_lessthan.
2247         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
2248         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
2249         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
2250         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
2251         (FRAME_CHAIN): Remove unnecessary cast.
2252
2253 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
2254
2255         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
2256         obsolete.
2257
2258 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
2259
2260         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
2261         * monitor.c, remote-array.c, remote-bug.c: Ditto.
2262         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
2263         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
2264         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
2265         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
2266         * x86-64-linux-nat.c: Ditto.
2267
2268 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
2269
2270         * alpha-tdep.c (alpha_register_name): New function.
2271         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
2272         (REGISTER_NAME): Define.
2273
2274 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
2275
2276         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
2277
2278 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
2279
2280         * alpha-tdep.c: Update copyright years.
2281         (alpha_next_pc): New function.
2282         (alpha_software_single_step): Ditto.
2283         * config/alpha/tm-alpha.h: Add prototype for
2284         alpha_software_single_step.
2285
2286 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
2287
2288         * alphabsd-nat.c: Update copyright years.
2289         (fill_gregset): Use regcache_collect.
2290         (fill_fpregset): Likewise.
2291         (fetch_inferior_registers): Only fetch integer registers
2292         if requested to do so.
2293         (store_inferior_registers): Only store integer registers
2294         if requested to do so.
2295
2296 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
2297
2298         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
2299         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
2300         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
2301         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
2302         * config/alpha/fbsd.mh (XDEPFILES): Delete.
2303         * config/arm/linux.mh (XDEPFILES): Delete.
2304         * config/arm/nbsd.mh (XDEPFILES): Delete.
2305         * config/i386/i386dgux.mh (XDEPFILES): Delete.
2306         * config/i386/i386sol2.mh (XDEPFILES): Delete.
2307         * config/i386/i386m3.mh (XDEPFILES): Delete.
2308         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
2309         * config/i386/i386gnu.mh (XDEPFILES): Delete.
2310         * config/i386/fbsd.mh (XDEPFILES): Delete.
2311         * config/i386/i386bsd.mh (XDEPFILES): Delete.
2312         * config/i386/i386sco5.mh (XDEPFILES): Delete.
2313         * config/i386/i386v4.mh (XDEPFILES): Delete.
2314         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
2315         * config/i386/i386sco4.mh (XDEPFILES): Delete.
2316         * config/i386/i386aix.mh (XDEPFILES): Delete.
2317         * config/i386/go32.mh (XDEPFILES): Delete.
2318         * config/i386/cygwin.mh (XDEPFILES): Delete.
2319         * config/i386/i386lynx.mh (XDEPFILES): Delete.
2320         * config/i386/i386mach.mh (XDEPFILES): Delete.
2321         * config/i386/i386v32.mh (XDEPFILES): Delete.
2322         * config/i386/linux.mh (XDEPFILES): Delete.
2323         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
2324         * config/i386/ncr3000.mh (XDEPFILES): Delete.
2325         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
2326         * config/i386/i386sco.mh (XDEPFILES): Delete.
2327         * config/i386/i386v.mh (XDEPFILES): Delete.
2328         * config/i386/nbsd.mh (XDEPFILES): Delete.
2329         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
2330         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
2331         * config/i386/symmetry.mh (XDEPFILES): Delete.
2332         * config/i386/obsd.mh (XDEPFILES): Delete.
2333         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
2334         * config/ia64/linux.mh (XDEPFILES): Delete.
2335         * config/ia64/aix.mh (XDEPFILES): Delete.
2336         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
2337         * config/m68k/dpx2.mh (XDEPFILES): Delete.
2338         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
2339         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
2340         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
2341         * config/m68k/linux.mh (XDEPFILES): Delete.
2342         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
2343         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
2344         * config/m68k/nbsd.mh (XDEPFILES): Delete.
2345         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
2346         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
2347         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
2348         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
2349         * config/m88k/delta88.mh (XDEPFILES): Delete.
2350         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
2351         * config/m88k/m88k.mh (XDEPFILES): Delete.
2352         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
2353         * config/mips/linux.mh (XDEPFILES): Delete.
2354         * config/mips/irix6.mh (XDEPFILES): Delete.
2355         * config/mips/irix5.mh (XDEPFILES): Delete.
2356         * config/mips/irix4.mh (XDEPFILES): Delete.
2357         * config/mips/irix3.mh (XDEPFILES): Delete.
2358         * config/mips/decstation.mh (XDEPFILES): Delete.
2359         * config/mips/mipsm3.mh (XDEPFILES): Delete.
2360         (NATDEPFILES): Move core-aout.o to here.
2361         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
2362         * config/pa/hpux1020.mh (XDEPFILES): Delete.
2363         * config/pa/hppabsd.mh (XDEPFILES): Delete.
2364         * config/pa/hppahpux.mh (XDEPFILES): Delete.
2365         * config/pa/hpux11w.mh (XDEPFILES): Delete.
2366         * config/pa/hppaosf.mh (XDEPFILES): Delete.
2367         * config/pa/hpux11.mh (XDEPFILES): Delete.
2368         * config/powerpc/aix.mh (XDEPFILES): Delete.
2369         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
2370         * config/powerpc/linux.mh (XDEPFILES): Delete.
2371         * config/romp/rtbsd.mh: Rename XDEPFILES.
2372         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
2373         * config/rs6000/aix4.mh (XDEPFILES): Delete.
2374         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
2375         * config/s390/s390.mh (XDEPFILES): Delete.
2376         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
2377         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
2378         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
2379         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
2380         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
2381         * config/sparc/nbsd.mh (XDEPFILES): Delete.
2382         * config/sparc/linux.mh (XDEPFILES): Delete.
2383         * config/vax/vaxult.mh (XDEPFILES): Delete.
2384         * config/vax/vaxult2.mh (XDEPFILES): Delete.
2385         * Makefile.in (DEPFILES): Remove XDEPFILES.
2386
2387 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
2388
2389         * utils.c (internal_verror): Fix comments, default is yes not no.
2390         Update queries to match.  Default to quit and dump core.
2391
2392 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
2393
2394         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
2395         copyright.
2396         * defs.h, event-top.c, gdbcmd.h: Ditto.
2397         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
2398         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
2399         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
2400         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
2401         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
2402         * mi/mi-main.c:Ditto.
2403
2404         * stack.c, symfile.c: Update copyright.
2405
2406 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
2407
2408         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
2409         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
2410         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
2411         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
2412
2413 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
2414
2415         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
2416         * gdbserver/low-lynx.c (myattach): Likewise.
2417         * gdbserver/low-nbsd.c (myattach): Likewise.
2418         * gdbserver/low-sim.c (myattach): Likewise.
2419         * gdbserver/low-sparc.c (myattach): Likewise.
2420         * gdbserver/low-sun3.c (myattach): Likewise.
2421
2422         * gdbserver/low-linux.c (myattach): New function.
2423
2424         * gdbserver/server.c (attach_inferior): New function.
2425         (main): Handle "--attach".
2426
2427 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
2428
2429         * MAINTAINERS (language support): Daniel Jacobwitz is C++
2430         maintainer.
2431
2432 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
2433
2434         * c-typeprint.c (is_type_conversion_operator): Add additional
2435         check for non-conversion operators.
2436
2437 2002-01-15  Michael Snyder  <msnyder@redhat.com>
2438
2439         * linux-proc.c: Add "info proc" command, a la procfs.c.
2440         (read_mapping): New function, abstract and re-use code.
2441         (linux_find_memory_regions): Use new func read_mapping.
2442         (linux_info_proc_cmd): New function, implement "info proc".
2443         (_initialize_linux_proc): Add new command "info proc".
2444
2445 2002-01-15  Michael Snyder  <msnyder@redhat.com>
2446
2447         * symfile.c (generic_load): Use bfd_map_over_sections method
2448         instead of manipulating bfd structure members directly.
2449         (add_section_size_callback): New function, bfd sections callback
2450         used by generic_load.
2451         (load_sections_callback): New function, bfd sections callback
2452         used by generic_load.
2453
2454 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
2455
2456         [Based on work by Jim Blandy]
2457         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
2458         (builtin_type_vec128): Export.
2459         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
2460         types.
2461         (builtin_type_vec128): New builtin type for 128 bit vector
2462         registers.
2463         (build_gdbtypes): Initialize builtin_type_v16qi and
2464         builtin_type_v8hi. Create the vec128 register builtin type
2465         structure.
2466         (build_builtin_type_vec128): New function.
2467         (_initialize_gdbtypes): Register builtin_type_v16qi and
2468         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
2469         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
2470         AltiVec register to new builtin type.
2471
2472 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
2473
2474         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
2475         to make_cv_type.
2476
2477 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
2478
2479         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
2480         CLEAN_UP_REGISTER_VALUE.
2481         * regcache.c (supply_register): Update only call.
2482
2483 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
2484
2485         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
2486         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
2487         a29k-*-vxworks* targets as obsolete.
2488
2489 2002-01-14  Michael Snyder  <msnyder@redhat.com>
2490
2491         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
2492         until we can resolve portability issues.
2493         * gregset.h: Remove references to fpxregs.
2494         * gcore.c (gcore_command): Initialize note_sec to NULL.
2495
2496 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
2497
2498         * signals.c (target_signal_to_name): Rewrite.  Only use
2499         signals[].name when in bounds and non-NULL.
2500
2501 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
2502
2503         From Petr Ledvina <ledvinap@kae.zcu.cz>:
2504         * signals.c (target_signal_to_name): Verify that SIG is within the
2505         bounds of the signals array.
2506
2507 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
2508
2509         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
2510
2511 2002-01-13  Keith Seitz  <keiths@redhat.com>
2512
2513         * stack.c (print_frame_info_base): Print the frame's pc
2514         only if when print_frame_info_listing_hook is not defined.
2515
2516 2002-01-13  Keith Seitz  <keiths@redhat.com>
2517
2518         * varobj.c (varobj_set_value): Make sure that there were no
2519         errors evaluating the object before attempting to set its
2520         value.
2521         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
2522         so this offset adjustment is no longer necessary.
2523         (create_child): Don't set the error flag if the child is
2524         a CPLUS_FAKE_CHILD.
2525         (value_of_child): If value_fetch_lazy fails, return NULL
2526         so that callers will be notified that an error occurred.
2527         (c_value_of_variable): Delay check of variable's validity
2528         until later. We actually want all structs and unions to have
2529         the value "{...}".
2530         Do not return "???" for variables which could not be evaluated.
2531         This error condition must be returned to the caller so that it
2532         can get the error condition from gdb.
2533         (cplus_name_of_child): Adjust index for vptr before figuring
2534         out the name of the child.
2535         (cplus_value_of_child): If a child's (real) parent is not valid,
2536         don't even bother trying to give a value for it. Just return
2537         an error. Change all instances in this function.
2538         (cplus_type_of_child): If our parent is one of the "fake"
2539         parents, we need to get at the type of the real parent, and
2540         derive the child's true type using this information.
2541
2542 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
2543
2544         From 2002-01-09 John Marshall <johnm@falch.net>:
2545         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
2546         sources.redhat.com, and tweak some related URLs which had
2547         suffered from linkrot.
2548
2549 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
2550
2551         From Jeff law:
2552         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
2553         structures passed in registers.
2554
2555 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
2556
2557         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
2558         white space which prevented compilation.  Reported by DSK
2559         <dsk@student.unsw.edu.au>.
2560
2561 2002-01-11  Michael Snyder  <msnyder@redhat.com>
2562
2563         * symfile.c (build_section_addr_info_from_section_tab):
2564         Use bfd access method instead of manipulating bfd directly.
2565         (syms_from_objfile): Ditto.
2566         (simple_overlay_update_1): Ditto.
2567         (simple_overlay_update): Ditto.
2568         (generic_load): Ditto.
2569         (overlay_unmapped_address): FIXME comment, bfd access methods.
2570         (sections_overlap): FIXME comment, bfd access methods.
2571         (pc_in_mapped_range): FIXME comment, bfd access methods.
2572         (pc_in_unmapped_range): FIXME comment, bfd access methods.
2573         (section_is_mapped): FIXME comment, bfd access methods.
2574         (section_is_overlay): FIXME comment, bfd access methods.
2575
2576         * symfile.c (generic_load): Whitespace and long line cleanups.
2577         Remove duplicate variable, change several local variables to
2578         more appropriate data types.
2579         (print_transfer_performance): Use %lu instead of %ld for ulongs.
2580
2581 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
2582
2583         From Peter Schauer:
2584         * language.c (longest_local_hex_string_custom): Use phex_nz to
2585         convert NUM to a hex string.
2586
2587 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
2588
2589         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
2590         the function.
2591         Update Copyright year.
2592
2593 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
2594
2595         * language.c (longest_raw_hex_string): Delete unused function.
2596
2597 2002-01-11  Petr Sorfa  <petrs@caldera.com>
2598
2599         * MAINTAINERS (write-after-approval): Add myself.
2600         * dwarf2read.c (read_tag_string_type): Handling of
2601         DW_AT_byte_size.
2602         (read_tag_string_type): FORTRAN fix to prevent propagation of
2603         first string size.
2604         (set_cu_language): Handling of DW_LANG_Fortran95
2605
2606 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
2607
2608         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
2609         GETPID(inferior_ptid).
2610         (store_inferior_registers): Likewise.
2611
2612 2002-01-10  Jason Merrill  <jason@redhat.com>
2613
2614         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
2615         Fix DW_OP_minus.
2616
2617 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
2618
2619         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
2620         and bfd/elf32-sh-nbsd.c.
2621
2622 2002-01-10  Michael Snyder  <msnyder@redhat.com>
2623
2624         * NEWS: Mention --pid and corefile/proc-id behavior change.
2625
2626         * Makefile.in: Add rules for gcore.o and linux-proc.o.
2627         * gcore.c: Include cli/cli-decode.h instead of command.h.
2628
2629         * main.c (captured_main): Add new command line option "--pid".
2630         If the second command line argument (following the symbol-file)
2631         begins with a digit, try to attach to it before trying to open
2632         it as a corefile.
2633         (print_gdb_help): Document the "--pid" argument.
2634
2635 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
2636
2637         * completer.c (command_completer): New function.
2638
2639         * completer.h <command_completer>: Add prototype.
2640
2641         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
2642         completer for the "help" command.
2643
2644 2002-01-09  Jason Merrill  <jason@redhat.com>
2645
2646         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
2647
2648 2002-01-09  Michael Snyder  <msnyder@redhat.com>
2649
2650         * i386-linux-nat.c (fill_fpxregset): Make global.
2651         (store_fpxregset): Ditto.
2652
2653         * gregset.h (gdb_fpxregset_t): Define.
2654         (supply_fpxregset): Prototype.
2655         (fill_fpxregset): Prototype.
2656
2657         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
2658
2659 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
2660
2661         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
2662         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
2663         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
2664
2665 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
2666
2667         * MAINTAINERS: Update target maintainer rules so that any
2668         Maintainer can approve a tested patch for a maintenance-only
2669         target.
2670
2671 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
2672
2673         * MAINTAINERS (write-after-approval): Add myself.
2674
2675         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
2676         IN_SIGTRAMP.
2677
2678 2002-01-08  Michael Snyder  <msnyder@redhat.com>
2679
2680         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
2681         real name of the executable, rather than the /proc name.
2682
2683 2002-01-03  Michael Snyder  <msnyder@redhat.com>
2684
2685         Implement a "generate-core-file" command in gdb, save target state.
2686         * gcore.c: New file.  Implement new command 'generate-core-file'.
2687         Save a corefile image of the current state of the inferior.
2688         * linux-proc.c: Add linux-specific code for saving corefiles.
2689         * target.h (struct target_ops): Add new target vectors for saving
2690         corefiles; to_find_memory_regions and to_make_corefile_notes.
2691         (target_find_memory_regions): New macro.
2692         (target_make_corefile_notes): New macro.
2693         * target.c (update_current_target): Inherit new target methods.
2694         (dummy_find_memory_regions): New place-holder method.
2695         (dummy_make_corefile_notes): New place-holder method.
2696         (init_dummy_target): Initialize new dummy target vectors.
2697         * exec.c (exec_set_find_memory_regions): New function.
2698         Allow the exec_ops vector for memory regions to be taken over.
2699         (exec_make_note_section): New function, target vector method.
2700         * defs.h (exec_set_find_memory_regions): Export prototype.
2701         * procfs.c (proc_find_memory_regions): New function, corefile method.
2702         (procfs_make_note_section): New function, corefile method.
2703         (init_procfs_ops): Set new target vector pointers.
2704         (find_memory_regions_callback): New function.
2705         (procfs_do_thread_registers): New function.
2706         (procfs_corefile_thread_callback): New function.
2707         * sol-thread.c (sol_find_memory_regions): New function.
2708         (sol_make_note_section): New function.
2709         (init_sol_thread_ops): Initialize new target vectors.
2710         * inftarg.c (inftarg_set_find_memory_regions): New function.
2711         Allow to_find_memory_regions vector to be taken over.
2712         (inftarg_set_make_corefile_notes): New function.
2713         Allow to_make_corefile_notes vector to be taken over.
2714         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
2715         interface layer if not target_has_execution (may be a corefile).
2716         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
2717         * config/sparc/sun4sol2.mh: Ditto.
2718         * config/alpha/alpha-linux.mh: Ditto.
2719         * config/arm/linux.mh: Ditto.
2720         * config/i386/x86-64linux.mh: Ditto.
2721         * config/ia64/linux.mh: Ditto.
2722         * config/m68k/linux.mh: Ditto.
2723         * config/mips/linux.mh: Ditto.
2724         * config/powerpc/linux.mh: Ditto.
2725         * config/sparc/linux.mh: Ditto.
2726
2727 2002-01-07  Michael Snyder  <msnyder@redhat.com>
2728
2729         * arm-linux-nat.c: Remove references to regcache.c internal data
2730         (registers[] and register_valid[]).
2731
2732 2002-01-07  Michael Snyder  <msnyder@redhat.com>
2733
2734         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
2735         so that attaching to a pid will automatically read the process's
2736         symbol file and shlibs.
2737         * Makefile.in: Add rule for linux-proc.o.
2738         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
2739         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
2740         * config/arm/linux.mh: Ditto.
2741         * config/i386/linux.mh: Ditto.
2742         * config/i386/x86-64linux.mh: Ditto.
2743         * config/ia64/linux.mh: Ditto.
2744         * config/m68k/linux.mh: Ditto.
2745         * config/mips/linux.mh: Ditto.
2746         * config/powerpc/linux.mh: Ditto.
2747         * config/sparc/linux.mh: Ditto.
2748
2749 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
2750
2751         * win32-nat.c: Add i386-tdep.h dependency.
2752
2753 2002-01-07  Michael Snyder  <msnyder@redhat.com>
2754
2755         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
2756         instead of bfd_get_arch_size.  Don't bail out just because
2757         there's no exec_bfd.
2758
2759         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
2760         * p-valprint.c (pascal_object_print_value): Ditto.
2761         * somread.c (som_symtab_read): Ditto.
2762         * symfile.c (simple_free_overlay_region_table): Ditto.
2763         * valops.c (value_assign): Ditto.
2764
2765         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
2766         use tilde_expand and strerror for opening save-tracepoints file.
2767
2768         * thread-db.c (thread_db_new_objfile): Indendation fix.
2769
2770         * infptrace.c (GDB_MAX_ALLOCA): New define.
2771         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
2772         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
2773         can be overridden with whatever value is appropriate to the host).
2774         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
2775         alloca to allocate potentially large buffer.
2776         * rs6000-nat.c (child_xfer_memory): Ditto.
2777         * symm-nat.c (child_xfer_memory): Ditto.
2778         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
2779
2780 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
2781
2782         From Nick Clifton  <nickc@redhat.com>
2783         * d10v-tdep.c: Set STACK_START to 0x200bffe.
2784
2785 2002-01-07  Michael Snyder  <msnyder@redhat.com>
2786
2787         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2788         Don't use exec_bfd if it's NULL.
2789
2790 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
2791
2792         * valops.c (value_arg_coerce): Fix formatting.
2793
2794 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
2795
2796         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
2797         * gnu-nat.c: Ditto.
2798
2799 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
2800
2801         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
2802         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
2803         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
2804         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
2805         z8k-coff have not been multi-arched.  Update z8k-coff build
2806         status.
2807
2808 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
2809
2810         * MAINTAINERS: Mark a29k target as obsolete.
2811         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
2812         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
2813         comments.
2814         * NEWS: Note that a29k targets are obsolete.
2815         * a29k-tdep.c: Mark as obsolete.
2816         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
2817         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
2818         a29k-*-vxworks* targets as obsolete.
2819         * remote-adapt.c: Obsolete.
2820         * remote-eb.c: Obsolete.
2821         * remote-mm.c: Obsolete.
2822         * remote-udi.c: Obsolete.
2823         * config/a29k/a29k-udi.mt: Obsolete.
2824         * config/a29k/a29k.mt: Obsolete.
2825         * config/a29k/tm-a29k.h: Obsolete.
2826         * config/a29k/tm-vx29k.h: Obsolete.
2827         * config/a29k/vx29k.mt: Obsolete.
2828
2829 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
2830
2831         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
2832         with BFD_ENDIAN_BIG.
2833
2834 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
2835
2836         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
2837         * configure, config.in: Re-generate.
2838         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
2839         * defs.h: Do not include <endian.h>.
2840
2841 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
2842
2843         * acconfig.h (HAVE_PT_GETXMMREGS): New.
2844         * config.in: Regenerate.
2845         * configure.in: Update copyright years.
2846         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
2847         * configure: Regenerate.
2848         * i386bsd-nat.c: Update copyright years.
2849         (fill_gregset): Use regcache_collect.
2850         (fetch_inferior_registers): Only fetch integer registers
2851         if requested to do so.  Add support for XMM registers
2852         using PT_GETXMMREGS.
2853         (store_inferior_registers): Only store integer registers
2854         if requested to do so.  Add support for XMM registers
2855         using PT_SETXMMREGS.
2856         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
2857         (store_inferior_registers): Remove.
2858         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
2859         (fetch_elfcore_registers): New function.
2860         (i386nbsd_elfcore_fns): New.
2861         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
2862         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
2863         i386bsd-nat.o.
2864         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2865         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
2866         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2867         * config/i386/tm-nbsd.h: Update copyright years.
2868         (HAVE_SSE_REGS): Define.
2869         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
2870         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
2871         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
2872         (SIGCONTEXT_PC_OFFSET): Remove.
2873         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
2874
2875 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
2876
2877         * configure.tgt: Remove powerpc-*-macos* target.
2878         * config/m68k/xm-mpw.h: Delete file.
2879         * config/xm-mpw.h: Delete file.
2880         * ser-mac.c: Delete file.
2881         * mpw-make.sed: Delete file.
2882         * mpw-config.in: Delete file.
2883         * mac-xdep.c: Delete file.
2884         * mac-gdb.r: Delete file.
2885         * mac-defs.h: Delete file.
2886         * mac-nat.c: Delete file.
2887         * config/powerpc/macos.mh: Delete file.
2888         * config/powerpc/macos.mt: Delete file.
2889         * config/powerpc/nm-macos.h: Delete file.
2890         * config/powerpc/tm-macos.h: Delete file.
2891         * source.c (openp, open_source_file): Remove obsolete code.
2892         * top.c (gdb_readline): Ditto.
2893         * utils.c (query): Ditto.
2894         * event-top.c (display_gdb_prompt): Ditto.
2895         * Makefile.in (ser-mac.o): Delete obsolete target.
2896         * NEWS: Update.
2897
2898 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
2899
2900         * defs.h (BIG_ENDIAN): Delete macro definition.
2901         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
2902         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
2903         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
2904         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
2905         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
2906         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
2907         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
2908         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
2909         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
2910         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
2911         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
2912         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
2913         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
2914         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
2915         * gdbarch.c: Re-generate.
2916
2917 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
2918
2919         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
2920         for core files.
2921
2922 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
2923
2924         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
2925
2926 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
2927
2928         * value.h (value_ptr): Delete typedef.
2929
2930 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
2931
2932         * i386nbsd-nat.c: Update copyright years.
2933         Include i386-tdep.h.
2934
2935 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
2936
2937         * stabsread.c: Update copyright years.
2938
2939         From Debashis Mahata <debashis.mahata@wipro.com>:
2940         (read_struct_fields): Deal with Sun C compiler erroneous stab
2941         output for structs and unions.
2942         Fix PR gdb/269.
2943
2944 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
2945
2946         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
2947         prototype.
2948
2949 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
2950
2951         * cp-abi.c: Fix whitespace.
2952         (baseclass_offset): New wrapper function.
2953         * cp-abi.h (baseclass_offset): Add prototype.
2954         (struct cp_abi_ops): Add baseclass_offset pointer.
2955
2956         * valops.c (vb_match): Move to...
2957         * gnu-v2-abi.c (vb_match): here.
2958         * valops.c (baseclass_offset): Move to...
2959         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
2960
2961         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
2962
2963         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
2964         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
2965         * hpacc-abi.c (init_hpacc_ops): Likewise.
2966
2967 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
2968
2969         * valops.c (find_overload_match): Accept obj as a
2970         reference parameter.  Update it before returning.
2971         * value.h (find_overload_match): Update prototype.
2972         * eval.c (evaluate_subexp_standard): Pass object to
2973         find_overload_match by reference.
2974
2975 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
2976
2977         * valarith.c: Replace value_ptr with struct value pointer.  Remove
2978         register attribute from value declarations.
2979         * valops.c: Ditto.
2980         * value.h: Ditto.
2981         * scm-lang.c (scm_lookup_name): Ditto.
2982
2983 2002-01-03  Michael Snyder  <msnyder@redhat.com>
2984
2985         Abstract the functionality of iterating over mapped memory
2986         regions into a general purpose iterator function.
2987         * procfs.c (iterate_over_mappings): New function, general purpose
2988         iterator for memory sections.
2989         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
2990         (solib_mappings_callback): New function, callback for above.
2991         (info_proc_mappings): Reimpliment using iterate_over_mappings.
2992         (info_mappings_callback): New function, callback for above.
2993
2994         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
2995
2996 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
2997
2998         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
2999         * i386-tdep.c: Include "elf-bfd.h".
3000         (process_note_abi_tag_sections): New function.
3001         (i386_gdbarch_init): Add code to recognize various OS/ABI
3002         combinations.
3003
3004         * maint.c (_initialize_maint_cmds): Add missing \ in
3005         string-literal.
3006
3007 For older changes see ChangeLog-2001
3008 \f
3009 Local Variables:
3010 mode: change-log
3011 left-margin: 8
3012 fill-column: 74
3013 version-control: never
3014 End: