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