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