Daniel Jacobowitz [Mon, 18 Nov 2002 00:37:50 +0000 (00:37 +0000)]
* linux-arm-low.c (arm_num_regs): Increase.
(arm_regmap): Include status register.
* linux-low.c (register_addr): Remove incorrect -1 check.
Alan Modra [Mon, 18 Nov 2002 00:33:01 +0000 (00:33 +0000)]
* bfd.c (bfd_preserve_save): Don't zero BFD_IN_MEMORY.
gdbadmin [Mon, 18 Nov 2002 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 17 Nov 2002 23:00:03 +0000 (23:00 +0000)]
daily update
gdbadmin [Sun, 17 Nov 2002 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 16 Nov 2002 23:00:04 +0000 (23:00 +0000)]
daily update
DJ Delorie [Sat, 16 Nov 2002 22:12:28 +0000 (22:12 +0000)]
merge whitespace tweaks from gcc
Klee Dienes [Sat, 16 Nov 2002 21:09:08 +0000 (21:09 +0000)]
Remove spurious ChangeLog addition.
Daniel Jacobowitz [Sat, 16 Nov 2002 19:23:52 +0000 (19:23 +0000)]
* 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.
Daniel Jacobowitz [Sat, 16 Nov 2002 19:22:59 +0000 (19:22 +0000)]
* 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.
Daniel Jacobowitz [Sat, 16 Nov 2002 19:21:44 +0000 (19:21 +0000)]
* 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.
Klee Dienes [Sat, 16 Nov 2002 18:43:03 +0000 (18:43 +0000)]
2002-11-16 Klee Dienes <kdienes@apple.com>
* opcode/m88k.h (INSTAB): Remove 'next' field.
(instruction): Remove definition; replace with extern declaration
and mark as const.
W
Klee Dienes [Sat, 16 Nov 2002 18:42:12 +0000 (18:42 +0000)]
2002-11-16 Klee Dienes <kdienes@apple.com>
* m88k-dis.c: Include libiberty.h (for xmalloc).
(HASHTAB): New type, used to build instruction hash tables.
Contains a pointer to an INSTAB and a pointer to the next hash
chain entry.
(instructions): Move definition from m88k.h; remove initialization
of 'next' field.
(hashtable): Now an aray of pointer-to-HASHTAB, not INSTAB.
(printop): Mark pointer to OPSPEC as const.
(install): Remove; fold into init_disasm.
(m88kdis): Update to ihashtab_initialized to 1 after calling
init_disasm. entry_ptr now iterates through HASHTABs, not
INSTABs.
(init_disasm): Iterate through the instructions and add to
hashtable[].
Klee Dienes [Sat, 16 Nov 2002 18:34:52 +0000 (18:34 +0000)]
2002-11-16 Klee Dienes <kdienes@apple.com>
* m88k.h (INSTAB): Remove 'next' field.
(instruction): Remove definition; replace with extern declaration
and mark as const.
2002-11-16 Klee Dienes <kdienes@apple.com>
* m88k-dis.c: (HASHTAB): New type, used to build instruction hash tables.
Contains a pointer to an INSTAB and a pointer to the next hash
chain entry.
(instructions): Move definition from m88k.h; remove initialization
of 'next' field.
(hashtable): Now an aray of pointer-to-HASHTAB, not INSTAB.
(printop): Mark pointer to OPSPEC as const.
(install): Remove; fold into init_disasm.
(m88kdis): Update to ihashtab_initialized to 1 after calling init_disasm.
entry_ptr now iterates through HASHTABs, not INSTABs.
(init_disasm): Iterate through the instructions and add to hashtable[].
Jakub Jelinek [Sat, 16 Nov 2002 12:39:57 +0000 (12:39 +0000)]
* md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
used with arguments in traditional C' warnings.
Svein Seldal [Sat, 16 Nov 2002 12:23:23 +0000 (12:23 +0000)]
* gas/config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
(c4x_operands_match): Added check for 8-bits LDF insn. Give
warning when using constant direct bigger than 2^16. Add the new
arguments.
* include/opcode/tic4x.h: Major rewrite of entire file. Define
instruction classes, and put each instruction into a class.
* opcodes/tic4x-dis.c: (c4x_print_op): Add support for the new
argument format. Fix bug in 'N' register printer.
Andrew Cagney [Sat, 16 Nov 2002 01:00:07 +0000 (01:00 +0000)]
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.
Andrew Cagney [Sat, 16 Nov 2002 00:53:23 +0000 (00:53 +0000)]
2002-11-15 Andrew Cagney <cagney@redhat.com>
* x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
i386-tdep.c.
gdbadmin [Sat, 16 Nov 2002 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Andrew Cagney [Fri, 15 Nov 2002 23:24:21 +0000 (23:24 +0000)]
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.
Alan Modra [Fri, 15 Nov 2002 23:00:04 +0000 (23:00 +0000)]
daily update
Andrew Cagney [Fri, 15 Nov 2002 22:16:25 +0000 (22:16 +0000)]
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.
David Carlton [Fri, 15 Nov 2002 21:55:44 +0000 (21:55 +0000)]
Fix date stamp on ChangeLog entry.
David Carlton [Fri, 15 Nov 2002 21:55:16 +0000 (21:55 +0000)]
2002-11-12 David Carlton <carlton@math.stanford.edu>
* linespec.c (locate_first_half): New function.
(decode_line_1): Move code into locate_first_half.
Andrew Cagney [Fri, 15 Nov 2002 21:08:11 +0000 (21:08 +0000)]
* complaints.h: Fix spelling errors.
Andrew Cagney [Fri, 15 Nov 2002 20:55:45 +0000 (20:55 +0000)]
2002-11-15 Andrew Cagney <
ac131313@redhat.com>
* complaints.h: Add comment explaining how to eliminate a
deprecated_complain call.
David Carlton [Fri, 15 Nov 2002 19:14:47 +0000 (19:14 +0000)]
2002-11-15 David Carlton <carlton@math.stanford.edu>
* printcmd.c: Remove #include "disasm.h".
Andrew Cagney [Fri, 15 Nov 2002 15:50:21 +0000 (15:50 +0000)]
2002-11-14 Andrew Cagney <
ac131313@redhat.com>
* frame.h: Move the most relevant interface functions to the start
of the file.
Nick Clifton [Fri, 15 Nov 2002 11:18:49 +0000 (11:18 +0000)]
Fix h8300 relaxation.
Klee Dienes [Fri, 15 Nov 2002 08:38:38 +0000 (08:38 +0000)]
2002-11-15 Klee Dienes <kdienes@apple.com>
* pef.c (bfd_pef_convert_architecture): Move declaration
ARCH_POWERPC and ARCH_M68K to the start of the function.
gdbadmin [Fri, 15 Nov 2002 00:01:02 +0000 (00:01 +0000)]
*** empty log message ***
Alan Modra [Thu, 14 Nov 2002 23:00:04 +0000 (23:00 +0000)]
daily update
DJ Delorie [Thu, 14 Nov 2002 22:42:36 +0000 (22:42 +0000)]
* Makefile.tpl: syntactic cleanup
Andrew Cagney [Thu, 14 Nov 2002 20:37:29 +0000 (20:37 +0000)]
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.
Nick Clifton [Thu, 14 Nov 2002 18:03:17 +0000 (18:03 +0000)]
Add --enable-auto-import extension.
Nick Clifton [Thu, 14 Nov 2002 14:38:39 +0000 (14:38 +0000)]
Handle binaries with corrupt section or segment headers
Svein Seldal [Thu, 14 Nov 2002 11:02:30 +0000 (11:02 +0000)]
* coff-tic4x.c (tic4x_howto_table): Formatting fixup
Andrew Cagney [Thu, 14 Nov 2002 02:54:14 +0000 (02:54 +0000)]
Index: common/ChangeLog
2002-11-13 Andrew Cagney <cagney@redhat.com>
* run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
Index: d10v/ChangeLog
2002-11-13 Andrew Cagney <cagney@redhat.com>
* simops.c: Include <string.h>.
Hans-Peter Nilsson [Thu, 14 Nov 2002 01:32:28 +0000 (01:32 +0000)]
* elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs):
For bpo_gregs_section->contents, allocate _raw_size, not
_cooked_size.
Andrew Cagney [Thu, 14 Nov 2002 00:50:04 +0000 (00:50 +0000)]
Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
* utils.c (gdb_realpath): Add comment mentioning realpath with a
NULL buffer.
Andrew Cagney [Thu, 14 Nov 2002 00:25:05 +0000 (00:25 +0000)]
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 Andrew Cagney <
ac131313@redhat.com>
* mi-main.c (mi_cmd_data_write_register_values): Use
deprecated_write_register_bytes instead of write_register_bytes.
gdbadmin [Thu, 14 Nov 2002 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 13 Nov 2002 23:00:05 +0000 (23:00 +0000)]
daily update
Jim Blandy [Wed, 13 Nov 2002 18:13:17 +0000 (18:13 +0000)]
* findvar.c (read_var_value): Doc fix.
Andrew Cagney [Wed, 13 Nov 2002 17:59:40 +0000 (17:59 +0000)]
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.
Andrew Cagney [Wed, 13 Nov 2002 16:57:36 +0000 (16:57 +0000)]
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.
Andrew Cagney [Wed, 13 Nov 2002 16:07:03 +0000 (16:07 +0000)]
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.
Pierre Muller [Wed, 13 Nov 2002 09:13:39 +0000 (09:13 +0000)]
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.
Alan Modra [Wed, 13 Nov 2002 01:45:42 +0000 (01:45 +0000)]
* config.bfd: Add entries for powerpc-*-darwin and cousins.
gdbadmin [Wed, 13 Nov 2002 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 12 Nov 2002 23:25:42 +0000 (23:25 +0000)]
Missed commit in last change.
Alan Modra [Tue, 12 Nov 2002 23:00:04 +0000 (23:00 +0000)]
daily update
H.J. Lu [Tue, 12 Nov 2002 22:49:45 +0000 (22:49 +0000)]
2002-11-13 H.J. Lu <hjl@gnu.org>
* elfcode.h (elf_object_p): Don't restore abfd->arch_info.
Daniel Jacobowitz [Tue, 12 Nov 2002 21:43:55 +0000 (21:43 +0000)]
* 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.
Andrew Cagney [Tue, 12 Nov 2002 20:26:05 +0000 (20:26 +0000)]
2002-11-12 Andrew Cagney <
ac131313@redhat.com>
* utils.c (gdb_realpath): Make rp a constant pointer.
Andrew Cagney [Tue, 12 Nov 2002 17:19:06 +0000 (17:19 +0000)]
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().
Andrew Cagney [Tue, 12 Nov 2002 16:30:08 +0000 (16:30 +0000)]
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.
Alan Modra [Tue, 12 Nov 2002 15:44:24 +0000 (15:44 +0000)]
* bfd.c (struct bfd_preserve): New.
(bfd_preserve_save): New function.
(bfd_preserve_restore): Ditto.
(bfd_preserve_finish): Ditto.
* bfd-in2.h: Regenerate.
* mach-o.c: Formatting.
(bfd_mach_o_scan_read_symtab_symbol): Make "value" unsigned.
(bfd_mach_o_object_p): Use bfd_preserve_save/restore/finish.
(bfd_mach_o_core_p): Ditto.
(bfd_mach_o_scan): Pass in mdata.
* mach-o.h (bfd_mach_o_scan): Update prototype.
* pef.c: Formatting.
(bfd_pef_object_p): Use bfd_preserve_save/restore/finish.
(bfd_pef_xlib_object_p): Ditto.
(bfd_pef_scan): Pass in mdata. Move version check to bfd_pef_object_p.
* pef.h (bfd_pef_scan): Update prototype.
* xsym.c: Formatting, K&R fixes.
(bfd_sym_object_p): Use bfd_preserve_save/restore/finish.
(bfd_sym_scan): New function split out from bfd_sym_object_p.
* xsym.h (bfd_sym_scan): Declare.
* elfcode.h (elf_object_p): Use bfd_preserve_save/restore/finish.
(elf_core_file_p): Likewise.
* targets.c (_bfd_target_vector): Revert 2002-11-08 change.
Alan Modra [Tue, 12 Nov 2002 11:31:43 +0000 (11:31 +0000)]
* ldlang.c (lang_add_section): Discard debugging sections that have
been marked SEC_EXCLUDE.
Nick Clifton [Tue, 12 Nov 2002 10:08:25 +0000 (10:08 +0000)]
Add new/updated Danish translations
Alan Modra [Tue, 12 Nov 2002 07:56:38 +0000 (07:56 +0000)]
* emultempl/ppc64elf.em (ppc_before_allocation): New function.
(LDEMUL_BEFORE_ALLOCATION): Define.
(gld${EMULATION_NAME}_finish): Run discard_info for relocatable
linking.
* emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
Alan Modra [Tue, 12 Nov 2002 07:55:43 +0000 (07:55 +0000)]
* elflink.h (elf_link_add_object_symbols): Optimize stabs for
relocatable link too.
(elf_link_input_bfd): When emitting relocs, adjust offsets for
eh_frame and stab sections. Zap deleted relocs.
(elf_reloc_symbol_deleted_p): Return true for zero r_symndx.
(elf_bfd_discard_info): Run for relocatable link too.
* elf64-ppc.c (ppc64_elf_edit_opd): Rename from edit_opd. Make global.
Handle ld -r case.
(ppc64_elf_size_dynamic_sections): Don't call edit_opd from here.
* elf64-ppc.h (ppc64_elf_edit_opd): Declare.
Alan Modra [Tue, 12 Nov 2002 07:35:26 +0000 (07:35 +0000)]
* elf-bfd.h (struct cie_header): Move from elf_eh-frame.c.
(struct cie, struct eh_cie_fde, struct eh_frame_sec_info): Likewise.
(struct eh_frame_array_ent, struct eh_frame_hdr_info): Likewise.
(enum elf_link_info_type): Remove ELF_INFO_TYPE_EH_FRAME_HDR.
(struct eh_frame_hdr_info): Add "hdr_sec", remove "split".
(struct elf_link_hash_table): Add eh_info.
(struct elf_obj_tdata): Change eh_frame_hdr to an asection *.
(_bfd_elf_discard_section_eh_frame): Update prototype.
(_bfd_elf_discard_section_eh_frame_hdr): Likewise.
(_bfd_elf_write_section_eh_frame): Likewise.
(_bfd_elf_write_section_eh_frame_hdr): Likewise.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Remove "ehdrsec"
param. Get "hdr_info" from link hash table.
(_bfd_elf_discard_section_eh_frame_hdr): Remove "sec" param. Get
header section from link hash table. Save header section to elf_tdata.
(_bfd_elf_maybe_strip_eh_frame_hdr): Remove local "sec". Use
header section from link hash table. Don't alloc hdr_info. Clear
hdr_sec instead of setting "strip".
(_bfd_elf_eh_frame_section_offset): Formatting.
(_bfd_elf_write_section_eh_frame): Remove "ehdrsec", add "info" param.
Get header section from link hash table.
(_bfd_elf_write_section_eh_frame_hdr): Remove "sec", add "info" param.
Get header section from link hash table.
* elf.c (map_sections_to_segments): Use cached eh_frame_hdr.
(get_program_header_size): Likewise.
(_bfd_elf_section_offset): Formatting.
* elflink.h (elf_link_create_dynamic_sections): Stash eh frame header
section pointer in link hash table.
(elf_bfd_final_link): Adjust _bfd_elf_write_section_eh_frame_hdr
and _bfd_elf_write_section_eh_frame calls. Update comment about
eh_frame entries.
(elf_bfd_discard_info): Adjust _bfd_elf_discard_section_eh_frame and
_bfd_elf_discard_section_eh_frame_hdr calls. Remove "ehdr".
* po/SRC-POTFILES.in: Regenerate.
Alan Modra [Tue, 12 Nov 2002 06:21:05 +0000 (06:21 +0000)]
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't zero
relocs for discarded FDEs. Remove dead code.
(_bfd_elf_write_section_eh_frame_hdr): Remove dead code.
* elflink.h (elf_bfd_discard_info): Don't save edited relocs.
Tidy conditions under which stabs are edited. Formatting.
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
from discarded relocs.
* elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Add reloc output
section adjustments after testing magic values.
Alan Modra [Tue, 12 Nov 2002 04:04:13 +0000 (04:04 +0000)]
* gas/ppc/booke.d: Adjust output for corrected condition reg.
Alan Modra [Tue, 12 Nov 2002 04:03:31 +0000 (04:03 +0000)]
* ppc-dis.c (print_insn_powerpc): Correct condition register display.
Christopher Faylor [Tue, 12 Nov 2002 03:48:43 +0000 (03:48 +0000)]
* configure.tgt (LIB_PATH): Default to searching w32api directory under cygwin.
Elena Zannoni [Tue, 12 Nov 2002 02:39:41 +0000 (02:39 +0000)]
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.
gdbadmin [Tue, 12 Nov 2002 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 11 Nov 2002 23:42:29 +0000 (23:42 +0000)]
* elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Correct
references to large plt symbols.
David Carlton [Mon, 11 Nov 2002 23:20:07 +0000 (23:20 +0000)]
2002-11-11 David Carlton <carlton@math.stanford.edu>
* linespec.c (set_flags): New function.
(decode_line_1): Move code into set_flags.
Alan Modra [Mon, 11 Nov 2002 23:19:03 +0000 (23:19 +0000)]
* mach-o.c (bfd_mach_o_scan_read_thread): Don't re-use 'i' when
looking for an unused section name.
Alan Modra [Mon, 11 Nov 2002 23:15:38 +0000 (23:15 +0000)]
* rddbg.c (read_section_stabs_debugging_info): Also recognize
LC_SYMTAB.stab/LC_SYMTAB.stabstr as a valid pair of sections.
Alan Modra [Mon, 11 Nov 2002 23:01:15 +0000 (23:01 +0000)]
daily update
David Carlton [Mon, 11 Nov 2002 21:18:55 +0000 (21:18 +0000)]
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.
Christopher Faylor [Mon, 11 Nov 2002 21:16:28 +0000 (21:16 +0000)]
* pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list of
restricted auto-export libs.
Christopher Faylor [Mon, 11 Nov 2002 17:42:36 +0000 (17:42 +0000)]
* pe-dll.c (autofilter_liblist): Generalize library names to catch more
creative library naming instances like, e.g., libstdc++-2.a.
Christopher Faylor [Mon, 11 Nov 2002 17:21:33 +0000 (17:21 +0000)]
* configure.in: Use .gdbinit under Cygwin.
* configure: Regenerate.
Christopher Faylor [Mon, 11 Nov 2002 17:11:53 +0000 (17:11 +0000)]
* config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if STRICT_PE_FORMAT.
Jeff Johnston [Mon, 11 Nov 2002 17:09:50 +0000 (17:09 +0000)]
2002-11-11 Jeff Johnston <jjohnstn@redhat.com>
* gdbmi.texinfo (-var-assign): Add comments about interaction
with -var-update and add an example. Part of fix for gdb/702.
Christopher Faylor [Mon, 11 Nov 2002 16:53:19 +0000 (16:53 +0000)]
* MAINTAINERS: Reinstate DJ Delorie as COFF maintainer. Drop COFF from cgf
maintainership.
Andrew Cagney [Mon, 11 Nov 2002 16:23:58 +0000 (16:23 +0000)]
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.
Christopher Faylor [Mon, 11 Nov 2002 16:06:50 +0000 (16:06 +0000)]
* MAINTAINERS: Replace DJ Delorie as PE/COFF maintainer.
Andrew Cagney [Mon, 11 Nov 2002 16:00:57 +0000 (16:00 +0000)]
2002-11-11 Andrew Cagney <
ac131313@redhat.com>
* x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
i386_fp_regnum_p.
Svein Seldal [Mon, 11 Nov 2002 14:58:49 +0000 (14:58 +0000)]
* Makefile.am: Added tic4x dependecy
* Makefile.in: Regenerate
Svein Seldal [Mon, 11 Nov 2002 14:29:01 +0000 (14:29 +0000)]
gas tic4x target enhancements (long list - see gas/ChangeLog and
include/ChangeLog)
Hans-Peter Nilsson [Mon, 11 Nov 2002 10:16:57 +0000 (10:16 +0000)]
* ld-elf/sec64k.exp: New test.
* lib/ld-lib.exp (run_dump_test): Don't prepend "$srcdir/$subdir/"
to a source file starting with "/".
Hans-Peter Nilsson [Mon, 11 Nov 2002 08:42:52 +0000 (08:42 +0000)]
* macro.c (get_any_string): Correct logic for not going beyond end
of in->ptr[].
Stan Shebs [Mon, 11 Nov 2002 05:38:51 +0000 (05:38 +0000)]
Retire common MPW configury bits.
* mpw-mh-mpw: Remove.
* mpw: Remove directory along with all of its files.
Kazu Hirata [Mon, 11 Nov 2002 05:05:22 +0000 (05:05 +0000)]
* coff-h8300.c: Fix formatting.
* elf32-h8300.c: Likewise.
* reloc16.c: Likewise.
Daniel Jacobowitz [Mon, 11 Nov 2002 00:55:34 +0000 (00:55 +0000)]
* 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.
gdbadmin [Mon, 11 Nov 2002 00:01:02 +0000 (00:01 +0000)]
*** empty log message ***
Alan Modra [Sun, 10 Nov 2002 23:00:05 +0000 (23:00 +0000)]
daily update
Hans-Peter Nilsson [Sun, 10 Nov 2002 18:35:51 +0000 (18:35 +0000)]
* config/tc-mmix.c (get_putget_operands): Mark both possible
operands as invalid at beginning.
Andrew Cagney [Sun, 10 Nov 2002 15:36:26 +0000 (15:36 +0000)]
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.
Hans-Peter Nilsson [Sun, 10 Nov 2002 13:09:11 +0000 (13:09 +0000)]
* config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
Initialize target of fixup to zero.
Hans-Peter Nilsson [Sun, 10 Nov 2002 09:29:07 +0000 (09:29 +0000)]
* ld-mmix/local1.d, ld-mmix/local3.d, ld-mmix/local5.d,
ld-mmix/local7.d: Tweak for change in readelf output.
gdbadmin [Sun, 10 Nov 2002 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 9 Nov 2002 23:00:04 +0000 (23:00 +0000)]
daily update
Mark Kettenis [Sat, 9 Nov 2002 21:31:12 +0000 (21:31 +0000)]
* 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.