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