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