+2002-11-19 Klee Dienes <kdienes@apple.com>
+ Adam Fedor <fedor@gnu.org>
+
+ * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
+ the ability to explicitly specify the quote characters and word
+ break characters; if NULL is specified for either, use the old
+ behavior of using the characters used by the completer.
+ (skip_chars): New function. Convenience wrapper around
+ skip_quoted_chars to provide the original skip_chars behavior.
+ * completer.h (skip_quoted_chars): Add prototype.
+
+2002-11-19 Andrew Cagney <ac131313@redhat.com>
+
+ Problems reported by Paul Eggert.
+ * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
+
+2002-11-19 Andreas Schwab <schwab@suse.de>
+
+ * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
+ (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
+ (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
+ (m68k_linux_frame_saved_pc): Move to ...
+ * m68klinux-tdep.c: ... here. New file.
+ * Makefile.in (m68klinux-tdep.o): Add dependencies.
+ * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
+
+2002-11-19 Adam Fedor <fedor@gnu.org>
+
+ * objc-exp.y: Revert to old skip_quoted usage.
+
+2002-11-19 Adam Fedor <fedor@gnu.org>
+
+ * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
+ (objc_lang_h): Define.
+ (YYFILES): Add objc-exp.tab.c.
+ (local-maintainer-clean): Remove objc-exp.tab.c.
+ (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
+
+2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * p-exp.y (typecast rule): Add automatic dereference of
+ pascal classes if needed.
+ (THIS): Set current_type.
+ Automatically dereference pascal classes.
+ (typebase rule): Add ^typebase recognition.
+
+2002-11-18 Adam Fedor <fedor@gnu.org>
+
+ * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
+ OP_OBJC_MSGCALL, and OP_OBJC_SELF.
+ (op_name): Handle OP_OBJC_SELF.
+ * Makefile.in (expprint.o): Add additional depends.
+
+2002-11-18 Adam Fedor <fedor@gnu.org>
+
+ * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
+ OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
+ * parse.c (length_of_subexp, prefixify_subexp): Likewise.
+ * objc-exp.y: Likewise.
+
+2002-11-18 Adam Fedor <fedor@gnu.org>
+
+ * gdb/parser-defs.h: (struct objc_class_str): New structure
+ for parsing ObjC classes.
+
+>>>>>>> 1.3477
+2002-11-18 Andrew Cagney <ac131313@redhat.com>
+
+ * stack.c (frame_relative_level): Copy function from here ...
+ * frame.c (frame_relative_level): ...to here.
+
+2002-11-18 Andrew Cagney <ac131313@redhat.com>
+
+ * frame.h (enum frame_type): Define.
+ (get_frame_type): Declare.
+ (struct frame_info): Add field `type'. Delete field
+ signal_handler_caller.
+ (deprecated_set_frame_signal_handler_caller): Declare.
+ * frame.c (get_frame_type): New function.
+ (deprecated_set_frame_type): New function.
+ (create_new_frame): Set the frame's type.
+ (get_prev_frame): Similar.
+ * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
+ * s390-tdep.c: Ditto.
+ * m68klinux-nat.c: Ditto.
+ * ns32k-tdep.c: Ditto.
+ * x86-64-linux-tdep.c: Ditto.
+ * vax-tdep.c: Ditto.
+ * rs6000-tdep.c: Ditto.
+ * ppc-linux-tdep.c: Ditto.
+ * i386-interix-tdep.c: Ditto.
+ * mips-tdep.c: Ditto.
+ * m68k-tdep.c: Ditto.
+ * hppa-tdep.c: Ditto.
+ * ia64-tdep.c: Ditto.
+ * cris-tdep.c: Ditto.
+ * arm-tdep.c: Ditto.
+ * alpha-tdep.c: Ditto.
+ * i386-tdep.c: Ditto.
+ * stack.c: Ditto.
+ * ada-lang.c: Ditto.
+ * blockframe.c: Update.
+ * i386-interix-tdep.c (i386_interix_back_one_frame): Use
+ deprecated_set_frame_type instead of signal_handler_caller.
+ * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
+ * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
+ * breakpoint.h: Delete FIXME suggesting get_frame_type.
+
+2002-11-18 Klee Dienes <kdienes@apple.com>
+
+ * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
+
+2002-11-18 Klee Dienes <kdienes@apple.com>
+
+ * buildsym.c (pop_context): Add comment.
+
+2002-11-18 Klee Dienes <kdienes@apple.com>
+
+ * buildsym.h (pop_context): Convert to function, defined in
+ buildsym.c.
+ * buildsym.c: Include gdb_assert.h.
+ (pop_context): Implement as C function. Add check for stack
+ underflow.
+ * dbxread.c (process_one_symbol): Complain and stop processing
+ that symbol if we are already at the top of the context stack for
+ a function-end N_FUN (this would imply an umatched RBRAC). Ditto
+ when processing N_RBRAC.
+
+2002-11-16 Daniel Jacobowitz <drow@mvista.com>
+
+ * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
+ define.
+ (struct target_waitstatus): Add opaque definition.
+ * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
+ * exec.c (init_exec_ops): Likewise.
+ * fork-child.c (clone_and_follow_inferior): Remove.
+ * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
+ * inferior.h (clone_and_follow_inferior): Remove prototype.
+ * infrun.c (follow_fork_mode_both): Remove.
+ (follow_fork_mode_kind_names): Remove commented out "both".
+ (follow_inferior_fork): Remove follow_fork_mode_both support.
+ * inftarg.c (child_clone_and_follow_inferior): Remove.
+ (child_post_follow_inferior_by_clone): Remove.
+ (init_child_ops): Don't set to_clone_and_follow_inferior
+ or to_post_follow_inferior_by_clone.
+ * target.c (default_clone_and_follow_inferior): Remove.
+ (cleanup_target): Don't set to_clone_and_follow_inferior
+ or to_post_follow_inferior_by_clone.
+ (find_default_clone_and_follow_inferior): Remove.
+ (init_dummy_target): Don't set to_clone_and_follow_inferior.
+ (debug_to_clone_and_follow_inferior): Remove.
+ (debug_to_post_follow_inferior_by_clone): Remove.
+ (setup_target_debug): Don't set to_clone_and_follow_inferior
+ or to_post_follow_inferior_by_clone.
+ * target.h (struct target_ops): Remove to_clone_and_follow_inferior
+ and to_post_follow_inferior_by_clone.
+ (child_clone_and_follow_inferior): Remove prototype.
+ (child_post_follow_inferior_by_clone): Remove prototype.
+ (target_clone_and_follow_inferior): Remove macro.
+ (target_post_follow_inferior_by_clone): Remove macro.
+ (find_default_clone_and_follow_inferior): Remove prototype.
+
+2002-11-16 Daniel Jacobowitz <drow@mvista.com>
+
+ * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
+ inferior_has_vforked, and inferior_has_execd instead of
+ target_has_forked, target_has_vforked, and target_has_execd.
+ * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
+ (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
+ (CHILD_WAIT): Define.
+ (child_wait): Add prototype.
+ * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
+ Add prototype.
+ (hpux_has_vforked): Likewise, from child_has_vforked.
+ (hpux_has_execd): Likewise, from child_has_execd.
+ (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
+ (not_same_real_pid, child_wait): New, copied from inftarg.c.
+ Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
+ and hpux_has_syscall_event instead of the target hooks.
+ * infrun.c (inferior_has_forked, inferior_has_vforked)
+ (inferior_has_execd): New functions.
+ * inftarg.c (not_same_real_pid): Remove.
+ (child_wait): Remove references to not_same_real_pid,
+ target_has_forked, target_has_vforked, target_has_execd,
+ and target_has_syscall_event.
+ (child_has_forked, child_has_vforked, child_has_execd)
+ (child_has_syscall_event): Remove.
+ (init_child_ops): Remove references to child_has_forked,
+ child_has_vforked, child_has_execd, and child_has_syscall_event.
+ * infttrace.c (hpux_has_forked): Rename from child_has_forked.
+ (hpux_has_vforked): Likewise, from child_has_vforked.
+ (hpux_has_execd): Likewise, from child_has_execd.
+ (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
+ * target.c (cleanup_target): Remove references to
+ to_has_forked, to_has_vforked, to_has_execd, and
+ to_has_syscall_event.
+ (update_current_target): Likewise.
+ (setup_target_debug): Likewise.
+ (debug_to_has_forked): Remove.
+ (debug_to_has_vforked): Remove.
+ (debug_to_has_execd): Remove.
+ (debug_to_has_syscall_event): Remove.
+ * target.h (struct target_ops): Remove to_has_forked.
+ to_has_vforked, to_has_execd, and to_has_syscall_event.
+ (child_has_forked, child_has_vforked, child_has_execd)
+ (child_has_syscall_event): Remove prototypes.
+ (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
+ prototypes.
+ (target_has_forked, target_has_vforked, target_has_execd)
+ (target_has_syscall_event): Remove macros.
+
+2002-11-16 Daniel Jacobowitz <drow@mvista.com>
+
+ * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
+ * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
+ (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
+ * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
+ * target.c (cleanup_target): Remove reference to
+ to_can_follow_vfork_prior_to_exec.
+ (update_current_target): Likewise.
+ (debug_to_can_follow_vfork_prior_to_exec): Remove.
+ (setup_target_debug): Remove reference to
+ to_can_follow_vfork_prior_to_exec.
+ * target.h (struct target_ops): Remove
+ to_can_follow_vfork_prior_to_exec.
+ (child_can_follow_vfork_prior_to_exec): Remove prototype.
+ (target_can_follow_vfork_prior_to_exec): Remove definition.
+ * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
+ define.
+ * infrun.c (follow_vfork_when_exec): Remove.
+ (follow_inferior_fork): Remove references to follow_vfork_when_exec.
+ (follow_exec): Likewise.
+ (handle_inferior_event): Likewise.
+ (keep_going): Likewise.
+
+2002-11-15 Andrew Cagney <cagney@redhat.com>
+
+ * frame.c (generic_unwind_get_saved_register): Make static.
+ * frame.h (generic_unwind_get_saved_register): Delete declaration.
+ * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
+ defaults to generic_unwind_get_saved_register.
+ * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
+ * h8300-tdep.c (h8300_gdbarch_init): Ditto.
+ * frv-tdep.c (frv_gdbarch_init): Ditto.
+ * i386-tdep.c (i386_gdbarch_init): Ditto.
+ * s390-tdep.c (s390_gdbarch_init): Ditto.
+ * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
+ * v850-tdep.c (v850_gdbarch_init): Ditto.
+ * mcore-tdep.c (mcore_gdbarch_init): Ditto.
+ * d10v-tdep.c (d10v_gdbarch_init): Ditto.
+ * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
+
+2002-11-15 Andrew Cagney <cagney@redhat.com>
+
+ * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
+ i386-tdep.c.
+
+2002-11-15 Andrew Cagney <cagney@redhat.com>
+
+ * frame.h (sigtramp_saved_pc): Delete declaration.
+ * blockframe.c (sigtramp_saved_pc): Delete function.
+ * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
+ (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
+ * vax-tdep.c (vax_sigtramp_saved_pc): New function.
+ (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
+
+2002-11-15 Andrew Cagney <ac131313@redhat.com>
+
+ * frame.c (frame_pc_unwind): New function.
+ (frame_saved_regs_pc_unwind): New function.
+ (frame_register_unwind): Pass unwind_cache instead of
+ register_unwind_cache.
+ (set_unwind_by_pc): Add unwind_pc parameter, set.
+ (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
+ (get_prev_frame): Ditto.
+ * frame.h (frame_pc_unwind_ftype): Declare.
+ (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
+ pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
+ (frame_pc_unwind): Declare.
+ * dummy-frame.c (dummy_frame_pc_unwind): New function.
+ (struct dummy_frame): Add comment mentioning that values are for
+ previous frame.
+ * dummy-frame.h (dummy_frame_pc_unwind): Declare.
+ * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
+ (generic_file_frame_chain_valid): Ditto.
+ * stack.c (frame_info): Ditto.
+
+2002-11-15 David Carlton <carlton@math.stanford.edu>
+
+ * linespec.c (locate_first_half): New function.
+ (decode_line_1): Move code into locate_first_half.
+
+2002-11-15 Andrew Cagney <ac131313@redhat.com>
+
+ * complaints.h: Add comment explaining how to eliminate a
+ deprecated_complain call.
+ * complaints.h: Fix spelling errors.
+
+2002-11-15 David Carlton <carlton@math.stanford.edu>
+
+ * printcmd.c: Remove #include "disasm.h".
+
+2002-11-14 Andrew Cagney <ac131313@redhat.com>
+
+ * frame.h: Move the most relevant interface functions to the start
+ of the file.
+
+2002-11-14 Andrew Cagney <ac131313@redhat.com>
+
+ * regcache.h (deprecated_registers): Rename registers.
+ * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
+ * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
+ * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
+ * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
+ * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
+ * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
+ * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
+ * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
+ * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
+ * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
+ * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
+ * v850ice.c: Update.
+
+Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
+
+ * utils.c (gdb_realpath): Add comment mentioning realpath with a
+ NULL buffer.
+
+2002-11-13 Andrew Cagney <cagney@redhat.com>
+
+ * regcache.h (deprecated_read_register_bytes): Rename
+ read_register_bytes.
+ (deprecated_write_register_bytes): Rename write_register_bytes.
+ * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
+ * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
+ * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
+ * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
+ * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
+ * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
+ * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
+ * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
+ * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
+ * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
+ * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
+ * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
+ * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
+ * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
+
+2002-11-13 Jim Blandy <jimb@redhat.com>
+
+ * findvar.c (read_var_value): Doc fix.
+
+2002-11-13 Andrew Cagney <cagney@redhat.com>
+
+ * regcache.c (struct regcache): Replace passthough_p with
+ readonly_p.
+ (regcache_xmalloc): Initialize readonly_p.
+ (build_regcache): Initialize readonly_p.
+ (regcache_save): New function.
+ (regcache_restore): New function.
+ (regcache_cpy): Re-implement using regcache_save and
+ regcache_restore.
+ (regcache_raw_read): Update.
+ (regcache_cooked_read): When a read-only cache, checked for cached
+ pseudo register values.
+ (regcache_raw_write): Assert that the cache is not read-only.
+ Remove code handling a non-passthrough cache.
+ * regcache.h (regcache_save): Declare.
+ (regcache_restore): Declare.
+
+2002-11-13 Andrew Cagney <cagney@redhat.com>
+
+ * regcache.c (struct regcache_descr): Add fields
+ sizeof_cooked_registers and sizeof_cooked_register_valid_p.
+ (init_legacy_regcache_descr): Compute the size of a cooked
+ register cache and then assign that to sizeof_raw_registers. Set
+ sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
+ (init_legacy_regcache_descr): Ditto.
+
+2002-11-13 Andrew Cagney <cagney@redhat.com>
+
+ * regcache.c (register_buffer): Move to near start of file, update
+ description.
+ (regcache_raw_read): Use.
+ (regcache_raw_write): Use.
+ (struct regcache): Rename raw_registers to registers and
+ raw_register_valid_p to register_valid_p.
+ (regcache_xmalloc): Update.
+ (regcache_xfree): Update.
+ (register_buffer): Update.
+ (regcache_cpy): Update.
+ (regcache_cpy_no_passthrough): Update.
+ (regcache_valid_p): Update.
+ (deprecated_grub_regcache_for_registers): Update.
+ (deprecated_grub_regcache_for_register_valid): Update.
+ (set_register_cached): Update.
+ (regcache_raw_write): Update.
+
+2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * p-exp.y (name_not_typename): Use copy_name to
+ set current_type variable for fields of THIS.
+
+2002-11-12 Daniel Jacobowitz <drow@mvista.com>
+
+ * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
+ * monitor.c (init_base_monitor_ops): Likewise.
+ * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
+ * remote-array.c (init_array_ops): Likewise.
+ * remote-e7000.c (init_e7000_ops): Likewise.
+ * remote-es.c (init_es1800_ops): Likewise.
+ (init_es1800_child_ops): Likewise.
+ * remote-rdp.c (init_remote_rdp_ops): Likewise.
+ * remote-sim.c (init_gdbsim_ops): Likewise.
+ * remote-st.c (init_st2000_ops): Likewise.
+ * sol-thread.c (init_sol_core_ops): Likewise.
+ (init_sol_thread_ops): Likewise.
+ * v850ice.c (init_850ice_ops): Likewise.
+ * win32-nat.c (init_child_ops): Likewise.
+ * wince.c (init_child_ops): Likewise.
+
+2002-11-12 Andrew Cagney <ac131313@redhat.com>
+
+ * utils.c (gdb_realpath): Make rp a constant pointer.
+
+2002-11-12 Andrew Cagney <ac131313@redhat.com>
+
+ * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
+ a constant buffer; cannonicalize_file_name(); realpath() with a
+ pathconf() defined buffer, xstrdup().
+
+2002-11-12 Andrew Cagney <ac131313@redhat.com>
+
+ * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
+ to hang2.C; hang3.c to hang3.C.
+
+2002-11-11 Elena Zannoni <ezannoni@redhat.com>
+
+ * findvar.c (read_var_value): Reenable TLS code.
+
+2002-11-11 Elena Zannoni <ezannoni@redhat.com>
+ Jim Blandy <jimb@redhat.com>
+
+ * gdb_thread_db.h (enum): Add TD_NOTALLOC.
+ * target.c (update_current_target): Add
+ to_get_thread_local_address.
+ * target.h (to_get_thread_local_address): Export.
+ (target_get_thread_local_address): Define.
+ (target_get_thread_local_address_p): Define.
+ * thread-db.c: Include solib-svr4.h.
+ (td_thr_tls_get_addr_p): Define.
+ (thread_db_load): Get a pointer to td_thr_tls_get_addr.
+ (thread_db_get_thread_local_address): New function.
+ (init_thread_db_ops): Initialize to_get_thread_local_address.
+ * configure.in: Add test for TD_NOTALLOC in thread_db.h.
+ * configure: Regenerate.
+ * config.in: Regenerate.
+
+2002-11-11 David Carlton <carlton@math.stanford.edu>
+
+ * linespec.c (set_flags): New function.
+ (decode_line_1): Move code into set_flags.
+
+2002-11-11 David Carlton <carlton@math.stanford.edu>
+
+ * linespec.c (decode_line_1): Move chunks of code to separate
+ functions.
+ (initialize_defaults): New function.
+ (decode_indirect): New function.
+
+2002-11-11 Andrew Cagney <ac131313@redhat.com>
+
+ * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
+ instead of void_code_ptr.
+ (sigtramp_saved_pc): Ditto.
+
+ * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
+ i386_fp_regnum_p.
+
+2002-11-10 Daniel Jacobowitz <drow@mvista.com>
+
+ * gdbtypes.h (struct main_type): Move artificial flag out of
+ loc. New member of ``struct field'' named static_kind. Reduce
+ overloaded meaning of bitsize.
+ (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
+ (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
+ (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
+
+ * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
+ new fields.
+ (template_to_fixed_record_type, template_to_static_fixed_type)
+ (to_record_with_fixed_variant_part): Likewise.
+ * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
+ * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
+ * dwarfread.c (struct_type, enum_type): Likewise.
+ * hpread.c (hpread_read_enum_type)
+ (hpread_read_function_type, hpread_read_doc_function_type)
+ (hpread_read_struct_type): Likewise.
+ * mdebugread.c (parse_symbol): Likewise.
+
+2002-11-10 Andrew Cagney <ac131313@redhat.com>
+
+ * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
+ * stack.c (print_frame_info_base): Update.
+ (print_frame_info_base, frame_info): Update.
+ * sparc-tdep.c (sparc_init_extra_frame_info): Update.
+ (sparc_frame_saved_pc): Update.
+ * ada-lang.c (find_printable_frame): Update.
+ * breakpoint.c (deprecated_frame_in_dummy): Update.
+
+2002-11-09 Mark Kettenis <kettenis@gnu.org>
+
+ * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
+ defined.
+ (regmap): Extend to cover all registers.
+ (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
+ OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
+ definitions.
+ (fetch_register, sore_register): Simplify.
+ (old_fetch_inferior_registers, old_store_inferior_registers):
+ Remove functions.
+ (cannot_fetch_register, cannot_store_register): Change
+ implementation to use regmap array to decide which registers
+ cannot be fetched/stored. This removes $orig_eax from the
+ registers that cannot be fetched/stored.
+ (fetch_inferior_registers): Call fetch_register directly instead
+ of calling old_fetch_inferior_registers.
+ (store_inferior_registers): Call store_register directly instead
+ of calling old_store_inferior_registers.
+ (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
+ (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
+ * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
+
+2002-11-09 Klee Dienes <kdienes@apple.com>
+
+ * i387-tdep.c (i387_supply_register): When called with NULL as a
+ buffer, mark the register as not provided (to mirror the behavior
+ of supply_register).
+ (i387_supply_fxsave): Ditto.
+ (i387_supply_fsave): Ditto (inherits the behavior from
+ i387_supply_register).
+
+2002-11-09 Klee Dienes <kdienes@apple.com>
+
+ * blockframe.c (sigtramp_saved_pc): Use
+ builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
+ extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
+ instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
+
+2002-11-09 Andrew Cagney <ac131313@redhat.com>
+
+ * frame.c (get_prev_frame): Test prev_p to identify a previously
+ unwound frame. Initialize prev_p.
+ * frame.h (struct frame_info): Add field prev_p. Expand prev/next
+ comment.
+
+2002-11-09 Andrew Cagney <ac131313@redhat.com>
+
+ * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
+ for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
+ more comments. Zap dead code.
+
+2002-11-09 Mark Kettenis <kettenis@gnu.org>
+
+ * infcmd.c (print_vector_info, print_float_info): Move code that
+ checks whether the target has any registers and whether there is a
+ selected frame up, such that it is also used if a target provides
+ multi-arch definitions of these functions.
+
+2002-11-08 Andrew Cagney <ac131313@redhat.com>
+
+ * Makefile.in (DESTDIR): Define.
+ (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
+ prefix.
+
+ * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
+ i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
+
+2002-11-08 Andrew Cagney <ac131313@redhat.com>
+
+ * i386-linux-tdep.c: Include "reggroups.h".
+ (i386_linux_register_reggroup_p): New function.
+ (i386_linux_init_abi): Set register_reggroup_p to
+ i386_linux_register_reggroup_p.
+ * i386-tdep.h (i386_register_reggroup_p): Declare.
+ * i386-tdep.c: Include "reggroups.h".
+ (i386_init_reggroups): New function.
+ (i386_add_reggroups): New function.
+ (i386_register_reggroup_p): New function.
+ (i386_sse_reggroup, i386_mmx_reggroup): New variables.
+ (_initialize_i386_tdep): Call i386_init_reggroups.
+ (i386_gdbarch_init): Set register_reggroup_p and add in the i386
+ specific reggroups.
+
+2002-11-09 Mark Kettenis <kettenis@gnu.org>
+
+ * infptrace.c (child_xfer_memory): Make use of the new PT_IO
+ request that's available in *BSD.
+
+ * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
+
+ * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
+ FDOFF_REGNUM.
+
+2002-11-08 Andrew Cagney <ac131313@redhat.com>
+
+ * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
+ * dummy-frame.c (find_dummy_frame): Rename
+ generic_find_dummy_frame, make static. Return the dummy frame
+ instead of the regcache.
+ (generic_find_dummy_frame): Re-implement using find_dummy_frame,
+ (cached_find_dummy_frame): New function. Use find_dummy_frame.
+ (dummy_frame_register_unwind): Rename
+ generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
+ * dummy-frame.h (dummy_frame_register_unwind): Rename
+ generic_call_dummy_register_unwind.
+
+2002-11-08 Mark Kettenis <kettenis@gnu.org>
+
+ * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
+ except the inclusion of "i386/tm-i386.h", to...
+ * config/i386/nm-i386v42mp.h: ...here.
+ * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
+
+2002-11-08 Andrew Cagney <ac131313@redhat.com>
+
+ * Makefile.in (frame.o): Update dependencies.
+ * blockframe.c (current_frame, frame_obstack_alloc)
+ (frame_saved_regs_zalloc, get_current_frame)
+ (set_current_frame, create_new_frame)
+ (set_unwind_by_pc, get_next_frame)
+ (flush_cached_frames, reinit_frame_cache)
+ (frame_saved_regs_register_unwind)
+ (deprecated_generic_get_saved_register)
+ (get_prev_frame, get_frame_pc, get_frame_saved_regs)
+ (_initialize_blockframe): Move frame code from here...
+ * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
+ "annotate.h" and "dummy-frame.h".
+ (_initialize_frame): New function.
+
+2002-11-08 Jim Blandy <jimb@redhat.com>
+
+ * dwarf2read.c (read_func_scope): Restore list_in_scope properly
+ when we finish a function a context.
+ * buildsym.h (outermost_context_p): New macro.
+ (Bug analyzed by David Edelsohn.)
+
+2002-11-08 Andrew Cagney <ac131313@redhat.com>
+
+ * blockframe.c: Include "dummy-frame.h".
+ (struct dummy_frame, dummy_frame_stack)
+ (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
+ (generic_pc_in_call_dummy, deprecated_read_register_dummy)
+ (generic_push_dummy_frame, generic_save_dummy_frame_tos)
+ (generic_save_call_dummy_addr, generic_pop_current_frame)
+ (generic_pop_dummy_frame, generic_fix_call_dummy)
+ (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
+ dummy frame code from here...
+ * dummy-frame.c: ...to here. New file.
+ * dummy-frame.h: New file.
+ (generic_call_dummy_register_unwind): Declare.
+ (generic_find_dummy_frame): Declare.
+ * Makefile.in (SFILES): Add dummy-frame.c.
+ (dummy-frame.o): Specify dependencies.
+ (dummy_frame_h): Define.
+ (COMMON_OBS): Add dummy-frame.o.
+ (blockframe.o): Update dependencies.
+
+2002-11-08 Jim Blandy <jimb@redhat.com>
+
+ * dwarf2read.c (read_func_scope): Restore local_symbols and
+ param_symbols after we finish the function context. (Based on a
+ patch from David Edelsohn.)
+
+2002-11-08 David Carlton <carlton@math.stanford.edu>
+
+ * linespec.c (symbol_found): New function.
+ (minsym_found): New function.
+ (decode_line_1): Separate out some code into separate functions.
+
+2002-11-08 Joel Brobecker <brobecker@gnat.com>
+
+ * i386-tdep.c (i386_frameless_signal_p): Make non static for
+ the benefit of the interix target.
+ * i386-tdep.h (i386_frameless_signal_p): Declare.
+
+2002-11-08 Andrew Cagney <ac131313@redhat.com>
+
+ * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
+ declaration that snuck in from change below.
+
+2002-11-06 Andrew Cagney <cagney@redhat.com>
+
+ * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
+ all callers.
+ (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
+ (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
+ (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
+ (i386_mxcsr_regnum_p): new function. Use instead of
+ MXCSR_REGNUM_P.
+ * i386-tdep.h (SSE_REGNUM_P): Delete macro.
+ (i386_sse_regnum_p): Declare.
+ (i386_mxcsr_regnum_p): Declare.
+ (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
+ (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
+ (IS_FP_REGNUM): Update definition.
+ (IS_FPU_CTRL_REGNUM): Update definition..
+ (IS_SSE_REGNUM): Update definition..
+ * i386v-nat.c (register_u_addr): Update.
+ * go32-nat.c (fetch_register): Update.
+ (store_register): Update.
+
+2002-11-07 Joel Brobecker <brobecker@gnat.com>
+
+ Preparation work to convert the hppa targets to multiarch partial.
+
+ * hppa-tdep.c: Add new functions replacing macro bodies from
+ config/pa/tm-hppa.h. These function will be used to initialize
+ the gdbarch structure. Import some comments from tm-hppa.h,
+ and place them where appropriate, to avoid loosing them when
+ we cleanup this file.
+ (hppa_reg_struct_has_addr): New function.
+ (hppa_inner_than): New function.
+ (hppa_stack_align): New function.
+ (hppa_pc_requires_run_before_use): New function.
+ (hppa_instruction_nullified): New function.
+ (hppa_register_byte): New function.
+ (hppa_register_virtual_type): New function.
+ (hppa_store_struct_return): New function.
+ (hppa_cannot_store_register): New function.
+ (hppa_frame_args_address): New function.
+ (hppa_frame_locals_address): New function.
+ (hppa_smash_text_address): New function.
+ (hppa_coerce_float_to_double): New function. Requires the inclusion
+ of "language.h".
+
+ * Makefile.in (hppa-tdep.o): Add dependency on language.h.
+
+ * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
+ gdbarch-eligible macro to a call to the new associated function
+ created in hppa-tdep.c.
+ (INNER_THAN): Likewise.
+ (STACK_ALIGN): Likewise.
+ (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
+ (INSTRUCTION_NULLIFIED): Likewise.
+ (REGISTER_BYTE): Likewise.
+ (REGISTER_VIRTUAL_TYPE): Likewise.
+ (STORE_STRUCT_RETURN): Likewise.
+ (CANNOT_STORE_REGISTER): Likewise.
+ (FRAME_ARGS_ADDRESS): Likewise.
+ (FRAME_LOCALS_ADDRESS): Likewise.
+ (SMASH_TEXT_ADDRESS): Likewise.
+ (COERCE_FLOAT_TO_DOUBLE): Likewise.
+ (ABOUT_TO_RETURN): Delete, as no longer used.
+
+2002-11-07 Fernando Nasser <fnasser@redhat.com>
+
+ * printcmd.c (disassemble_command): Remove obsolete function.
+ (_initialize_printcmd): Do not create disassemble command here.
+ * cli/cli-cmds.c (disassemble_command): New function. Implements
+ disassemble command.
+ (init_cli_cmds): Create disassemble command here instead.
+
+2002-11-07 Andrew Cagney <ac131313@redhat.com>
+
+ * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
+
+2002-11-07 Andrew Cagney <ac131313@redhat.com>
+
+ * regcache.h (regcache_cooked_read_using_offset_hack)
+ (regcache_cooked_write_using_offset_hack): Delete declarations.
+ (register_changed): Delete declaration.
+ * regcache.c (regcache_cooked_read_using_offset_hack)
+ (regcache_cooked_write_using_offset_hack): Delete functions.
+ (cooked_xfer_using_offset_hack): Delete function.
+ (register_changed): Delete function.
+
+2002-11-07 Jim Blandy <jimb@redhat.com>
+
+ * macroscope.c: #include "complaints.h".
+ (sal_macro_scope): Cope with filenames that appear in the symtabs,
+ but not in the macro table.
+ * Makefile.in (macroscope.o): Record dependency.
+
+2002-11-07 Joel Brobecker <brobecker@gnat.com>
+
+ * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
+
+2002-11-07 Andrew Cagney <ac131313@redhat.com>
+
+ * regcache.c (deprecated_registers_fetched): Update.
+ * regcache.h (deprecated_registers_fetched): Rename
+ registers_fetched.
+ * remote-vxsparc.c (vx_read_register): Update.
+ * remote-vxmips.c (vx_read_register): Update.
+ * remote-vx68.c (vx_read_register): Update.
+ * irix5-nat.c (fetch_core_registers): Update.
+ * mipsm3-nat.c (fetch_inferior_registers): Update.
+ * sun3-nat.c (fetch_inferior_registers): Update.
+ * symm-nat.c (fetch_inferior_registers): Update.
+ * ns32knbsd-nat.c (fetch_inferior_registers): Update.
+ (fetch_core_registers): Update.
+ (fetch_kcore_registers): Update.
+ * mips-nat.c (fetch_inferior_registers): Update.
+ * corelow.c (get_core_registers): Update.
+ * a68v-nat.c (fetch_inferior_registers): Update.
+
+2002-11-06 Joel Brobecker <brobecker@gnat.com>
+
+ Put in place the framework necessary for multiarching the hppa targets.
+ * hppa-tdep.c (hppa_gdbarch_init): New function.
+ (hppa_dump_tdep): New function.
+ (_initialize_hppa_tdep): Register the hppa gdbarch init function and
+ tdep structure dumper.
+ * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
+ until the multi-arching conversion has partially been completed.
+
+2002-11-06 Andrew Cagney <ac131313@redhat.com>
+
+ * valops.c (value_assign): Merge lval_register case into
+ lval_reg_frame_relative. Use frame_register and
+ regcache_cooked_write instead of get_saved_register and
+ write_register_bytes. After flushing the register cache, try to
+ re-select the selected frame.
+
+2002-11-06 Andrew Cagney <ac131313@redhat.com>
+
+ * regcache.h (deprecated_register_valid): Rename register_valid.
+ * regcache.c: Update.
+ * ia64-aix-nat.c: Update.
+ * i386gnu-nat.c: Update.
+ * alpha-nat.c: Update.
+ * sparc-nat.c: Update.
+ * lynx-nat.c: Update.
+ * remote-mips.c: Update.
+
+2002-11-06 Joel Brobecker <brobecker@gnat.com>
+
+ * hppa-tdep.c (_initialize_hppa_tdep): Move function body
+ to end of file, to be more consistent with the pratice followed
+ by other targets.
+
+2002-11-06 Andrew Cagney <ac131313@redhat.com>
+
+ * infcmd.c: Include "reggroups.h" and <ctype.h>.
+ (print_float_info): Print registers in float_reggroup.
+ (print_vector_info): Print registers in vector_reggroup.
+ (default_print_registers_info): When all, print registers in
+ all_reggroup. Otherwize, print registers in general_reggroup.
+ (registers_info): Rewrite. Add support for register groups.
+ Eliminate a goto.
+
+2002-11-06 Elena Zannoni <ezannoni@redhat.com>
+
+ * symtab.c (methods_info): Delete. It has been ifdeffed out for
+ ages.
+ (symtab_symbol_info): Remove eons old ifdeffed out code.
+ (_initialize_symtab): Remove prehistoric disabled 'info methods'
+ command.
+
+2002-11-06 Theodore A. Roth <troth@openavr.org>
+
+ * c-exp.y: Add missing semi-colons.
+ * f-exp.y: Add missing semi-colons.
+ * m2-exp.y: Add missing semi-colons.
+ * p-exp.y: Add missing semi-colons.
+ Add empty action to start rule to avoid a type clash error when
+ building with bison >= 1.50.
+
+2002-11-06 Jim Blandy <jimb@redhat.com>
+
+ * macrotab.h (struct macro_source_file): Doc fix.
+
+2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
+
+ * varobj.c (child_exists, cplus_number_of_children): Change
+ STREQ macro references to strcmp.
+ (cplus_name_of_child): Change code to handle the fact that
+ fields are not necessarily contiguous with regards to their
+ access control. This is a fix for PR gdb/792.
+
+2002-11-05 Andrew Cagney <ac131313@redhat.com>
+
+ * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
+ * gdbarch.h, gdbarch.c: Regnerate.
+ * frame.h (frame_register): Declare.
+ * frame.c (frame_register): New function.
+ (get_saved_register): Test GET_SAVED_REGISTER_P before calling
+ GET_SAVED_REGISTER, otherwize call
+ generic_unwind_get_saved_register.
+ (frame_register_read): Use frame_register instead of
+ get_saved_register.
+
+2002-11-05 Elena Zannoni <ezannoni@redhat.com>
+
+ From Jim Ingham <jingham@apple.com>:
+ * event-top.c (gdb_disable_readline): New function.
+ (_initialize_event_loop): Move comment.
+
+2002-11-05 Elena Zannoni <ezannoni@redhat.com>
+
+ * event-loop.c (start_event_loop): Add comment.
+ Update copyright.
+
+2002-11-05 Andrew Cagney <ac131313@redhat.com>
+
+ * infcmd.c (default_print_registers_info): Do not call
+ PRINT_REGISTER_HOOK.
+
+2002-11-05 Andrew Cagney <ac131313@redhat.com>
+
+ * sparc-tdep.c (sparc_print_register_hook): Make static.
+ (sparc_print_registers_info): New function.
+ (sparc_do_registers_info): New function.
+ (sparclet_print_registers_info): New function.
+ (sparclet_do_registers_info): New function.
+ (do_sparc_print_registers_info): New function.
+ (sparc_print_registers): New static function, clone of infcmd.c's
+ default_print_registers_info.
+ * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
+ (sparclet_do_registers_info): Declare.
+ (DEPRECATED_DO_REGISTERS_INFO): Re-define.
+ * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
+ Re-define.
+ (sparc_do_registers_info): Declare.
+ (PRINT_REGISTER_HOOK): Delete macro.
+ (sparc_print_register_hook): Delete declaration.
+
+2002-11-05 David Carlton <carlton@math.stanford.edu>
+
+ * symtab.c (lookup_symbol_aux): Move chunks of code into separate
+ functions.
+ (lookup_symbol_aux_local): New function.
+ (lookup_symbol_aux_symtabs): New function.
+ (lookup_symbol_aux_psymtabs): New function.
+
+2002-11-05 David Carlton <carlton@math.stanford.edu>
+
+ * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
+ previous values of 'objfile' and 'block'.
+
+2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * values.c (value_change_enclosing_type): Set
+ enclosing_type field correctly also for the case where
+ more memory needs to be allocated.
+
2002-11-03 Mark Kettenis <kettenis@gnu.org>
* i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2002-10-11 Klee Dienes <kdienes@apple.com>
- * findvar.c (read_memory_typed_address): New function.
+ * corefile.c (read_memory_typed_address): New function.
* gdbcore.h (read_memory_typed_address): Add prototype.
* blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
to read a value destined for a CORE_ADDR, not read_memory_integer.