Alan Modra
45c97054a3
daily update
2009-10-01 00:00:04 +00:00
Ian Lance Taylor
029ba97335
* object.h (class Object): Remove target_ field, and target,
...
sized_target, and set_target methods.
(Object::sized_target): Remove.
(class Sized_relobj): Update declarations. Remove sized_target.
* object.cc (Sized_relobj::setup): Remove target parameter.
Change all callers.
(Input_objects::add_object): Don't do anything with the target.
(make_elf_sized_object): Add punconfigured parameter. Change all
callers. Set or test parameter target.
* dynobj.cc (Sized_dynobj::target): Remove target parameter.
Change all callers.
* parameters.cc (Parameters::set_target): Change parameter type to
be non-const.
(Parameters::default_target): Remove.
(set_parameters_target): Change parameter type to be non-const.
(parameters_force_valid_target): New function.
(parameters_clear_target): New function.
* parameters.h (class Parameters): Update declarations. Remove
default_target method. Add sized_target and clear_target
methods. Change target_ to be non-const.
(set_parameters_target): Update declaration.
(parameters_force_valid_target): Declare.
(parameters_clear_target): Declare.
* readsyms.cc (Read_symbols::do_read_symbols): Pass punconfigured
as NULL if we aren't searching.
(Add_symbols::run): Don't check for compatible target.
* fileread.cc (Input_file::open_binary): Call
parameters_force_valid_target.
* gold.cc (queue_middle_tasks): Likewise.
* plugin.cc (make_sized_plugin_object): Likewise. Don't call
set_target on object.
* dynobj.h (class Sized_dynobj): Update declarations.
* archive.cc (Archive::get_elf_object_for_member): Return NULL if
make_elf_object returns NULL.
(Archive::include_member): Don't check whether object target is
compatible.
* output.cc (Output_section::add_input_section): Get target from
parameters.
(Output_section::relax_input_section): Likewise.
* reloc.cc (Sized_relobj::do_gc_process_relocs): Get target from
parameters.
(Sized_relobj::do_scan_relocs): Likewise.
(Sized_relobj::relocate_sections): Likewise.
* resolve.cc (Symbol_table::resolve): Likewise.
* symtab.cc (Symbol_table::wrap_symbol): Likewise. Remove object
parameter. Change all callers.
(Symbol_table::add_from_object): Get target from parameters.
(Symbol_table::add_from_relobj): Don't check object target.
(Symbol_table::add_from_dynobj): Likewise.
(Symbol_table::define_special_symbol): Get target from
parameters.
* symtab.h (class Symbol_table): Update declaration.
* testsuite/binary_unittest.cc (gold_testsuite): Remove target
parameter. Change all callers. Clear parameter target.
(Binary_test): Test target here.
* testsuite/object_unittest.cc (gold_testsuite): Remove
target_test_pointer parameter. Change all callers.
(Object_test): Test target here.
2009-09-30 22:21:13 +00:00
Tristan Gingold
27a5525e75
2009-09-30 Tristan Gingold <gingold@adacore.com>
...
* configure.com: Use hosts/alphavms.h on both alpha and ia64 VMS.
2009-09-30 13:12:50 +00:00
Alan Modra
340de16f7f
daily update
2009-09-30 00:00:04 +00:00
gdbadmin
b41791fe4d
*** empty log message ***
2009-09-30 00:00:03 +00:00
Paolo Bonzini
c8cb1b3e6f
2009-09-29 Paolo Bonzini <bonzini@gnu.org>
...
Sync from gcc:
2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.ac: Update minimum MPC version to 0.7.
* configure: Regenerate.
2009-09-29 21:31:07 +00:00
Jan Kratochvil
8172766a93
gdb/testsuite/
...
* gdb.base/breakpoint-shadow.exp: Move the ia64 part into ...
* gdb.arch/ia64-breakpoint-shadow.exp: ... a new file, with new tests.
* gdb.arch/ia64-breakpoint-shadow.S: New file.
2009-09-29 19:24:46 +00:00
Ulrich Weigand
0f73703cc3
* gdb.objc/basicclass.exp: Disable pending breakpoint query.
...
* gdb.objc/nondebug.exp: Likewise.
2009-09-29 19:02:22 +00:00
Nick Clifton
94f63f209a
* emulparams/m68kelf.sh (NOP): Use 0x4e71 (nop) rather than 0x4e75
...
(rts).
2009-09-29 16:28:52 +00:00
Jan Kratochvil
e453266f58
gdb/
...
* ia64-tdep.c (ia64_convert_from_func_ptr_addr): New variable buf.
Check first the descriptor memory is readable.
2009-09-29 16:27:05 +00:00
Nick Clifton
94454bb4c9
* doc/binutils.texi (c++filt): Remove spurious description of
...
nonexistent --java command line switch for cxxfilt.
2009-09-29 15:34:08 +00:00
Tom Tromey
31158f0e2a
* python/py-value.c (valpy_string): NULL-terminate 'keywords'.
2009-09-29 15:13:45 +00:00
H.J. Lu
464d3bd458
2009-09-29 H.J. Lu <hongjiu.lu@intel.com>
...
* elf64-x86-64.c (elf64_x86_64_append_rela): New.
(elf64_x86_64_relocate_section): Use it.
(elf64_x86_64_finish_dynamic_symbol): Likewise.
2009-09-29 14:37:57 +00:00
Nick Clifton
c7927a3c0e
bfd
...
* Makefile.am (ALL_MACHINES): Add cpu-rx.lo.
(ALL_MACHINES_CFILES): Add cpu-rx.c.
(BFD32_BACKENDS): Add elf32-rx.lo.
(BFD32_BACKENDS_CFILES): Add elf32-rx.c.
* archures.c (bfd_architecture): Add bfd_arch_rx and bfd_mach_rx.
Export bfd_rx_arch.
(bfd_archures_list): Add bfd_rx_arch.
* config.bfd: Add entry for rx-*-elf.
* configure.in: Add entries for bfd_elf32_rx_le_vec and
bfd_elf32_rx_be_vec.
* reloc.c: Add RX relocations.
* targets.c: Add RX target vectors.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* configure: Regenerate.
* libbfd.h: Regenerate.
* cpu-rx.c: New file.
* elf32-rx.c: New file.
binutils
* readelf.c: Add support for RX target.
* MAINTAINERS: Add DJ and NickC as maintainers for RX.
gas
* Makefile.am: Add RX target.
* configure.in: Likewise.
* configure.tgt: Likewise.
* read.c (do_repeat_with_expander): New function.
* read.h: Provide a prototype for do_repeat_with_expander.
* doc/Makefile.am: Add RX target documentation.
* doc/all.texi: Likewise.
* doc/as.texinfo: Likewise.
* Makefile.in: Regenerate.
* NEWS: Mention support for RX architecture.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
* config/rx-defs.h: New file.
* config/rx-parse.y: New file.
* config/tc-rx.h: New file.
* config/tc-rx.c: New file.
* doc/c-rx.texi: New file.
gas/testsuite
* gas/rx: New directory.
* gas/rx/*: New set of test cases.
* gas/elf/section2.e-rx: New expected output file.
* gas/all/gas.exp: Add support for RX target.
* gas/elf/elf.exp: Likewise.
* gas/lns/lns.exp: Likewise.
* gas/macros/macros.exp: Likewise.
include
* dis-asm.h: Add prototype for print_insn_rx.
include/elf
* rx.h: New file.
include/opcode
* rx.h: New file.
ld
* Makefile.am: Add rules to build RX emulation.
* configure.tgt: Likewise.
* NEWS: Mention support for RX architecture.
* Makefile.in: Regenerate.
* emulparams/elf32rx.sh: New file.
* emultempl/rxelf.em: New file.
opcodes
* Makefile.am: Add RX files.
* configure.in: Add support for RX target.
* disassemble.c: Likewise.
* Makefile.in: Regenerate.
* configure: Regenerate.
* opc2c.c: New file.
* rx-decode.c: New file.
* rx-decode.opc: New file.
* rx-dis.c: New file.
2009-09-29 14:17:19 +00:00
Peter Bergner
8765b55692
opcodes/
...
* ppc-opc.c (powerpc_opcodes): Remove support for the the "lxsdux",
"lxvd2ux", "lxvw4ux", "stxsdux", "stxvd2ux" and "stxvw4ux" opcodes.
gas/testsuite/
* gas/ppc/vsx.s ("lxsdux", "lxvd2ux", "lxvw4ux", "stxsdux",
"stxvd2ux", "stxvw4ux"): Remove tests.
* gas/ppc/vsx.d: Likewise.
* gas/ppc/power7.s: Likewise.
* gas/ppc/power7.d: Likewise.
2009-09-29 13:19:10 +00:00
Ulrich Weigand
b32306caf4
* gdb.base/watchpoints.exp: Respect gdb,no_hardware_watchpoints
...
target_info setting.
* gdb.threads/thread-specific.exp (get_thread_list): Support targets
that detect new threads during "info threads".
2009-09-29 13:02:58 +00:00
Ulrich Weigand
beaabab239
* s390-tdep.c (s390_displaced_step_fixup): Use type ULONGEST
...
instead of CORE_ADDR for "amode".
2009-09-29 12:51:34 +00:00
M R Swami Reddy
0505e9020e
2009-09-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
...
* elf32-cr16.c (elf32_cr16_relocate_section): Removed info->relocatable
to fix the ld/testsuites/ld-elf/linkonce1 test case.
2009-09-29 11:55:09 +00:00
Alan Modra
cafed8af5a
* ldlang.c (lang_size_sections_1): Allow scripts to specify a
...
non-zero vma even when relocatable.
2009-09-29 02:24:56 +00:00
Joel Brobecker
ca8b503212
* ia64-tdep.c: Update the comments on how we insert/remove
...
breakpoints for L-X instructions.
(ia64_memory_insert_breakpoint, ia64_memory_remove_breakpoint):
Update the comments inside these functions.
2009-09-29 01:25:37 +00:00
Ulrich Weigand
99e4058030
* gdbarch.sh (displaced_step_hw_singlestep): New callback.
...
* gdbarch.c, gdbarch.h: Regenerate.
* arch-utils.c (default_displaced_step_hw_singlestep): New function.
* arch-utils.h (default_displaced_step_hw_singlestep): Add prototype.
* ppc-linux-tdep.c (ppc_displaced_step_hw_singlestep): New function.
(rs6000_gdbarch_init): Install it.
* infrun.c (displaced_step_fixup): Use new callback to determine
whether to "step" or "continue" displaced copy.
(resume): Likewise. Do not call maybe_software_singlestep
for displaced stepping.
(maybe_software_singlestep): Do not handle displaced stepping.
2009-09-29 00:53:04 +00:00
Ulrich Weigand
69368a60a4
* eval.c (evaluate_subexp_standard) [OP_OBJC_MSGCALL]: Support
...
platforms that use function descriptors. Prefer to use function
pointer types instead of function types.
* linespec.c (decode_objc): Support function descriptors. Fully
initialize SAL result.
* objc-lang.c (find_methods): Support function descriptors.
Do not require function symbol to point to text section.
* ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): When calling
via a function pointer, use the descriptor it points to.
2009-09-29 00:48:32 +00:00
Alan Modra
67f470de12
daily update
2009-09-29 00:00:05 +00:00
gdbadmin
8f9e1f0ef3
*** empty log message ***
2009-09-29 00:00:03 +00:00
Joel Brobecker
73a9714c1a
Fix ia64 breakpoints in the L-X slot.
...
* ia64-tdep.c (ia64_memory_insert_breakpoint): Extend the comment.
New variable shadow_slotnum, use it appropriately instead of slotnum.
Move shadow_len initialization before SLOTNUM adjustment, cover now the
whole remaining bundle. Error now on breakpoints requested for the
slot 2 of L-X bundles. Better sanity check the requested slot 1 of L-X
bundles.
(ia64_memory_remove_breakpoint): New variable shadow_slotnum, use it
appropriately instead of slotnum. Warn now on breakpoints requested
for the slot 2 of L-X bundles. Better sanity check the requested slot
1 of L-X bundles. Update the assertio check of PLACED_SIZE.
(ia64_breakpoint_from_pc): New variable shadow_slotnum, use it
appropriately instead of slotnum. Move *lenptr initialization before
SLOTNUM adjustment, cover now the whole remaining bundle. Error now
on breakpoints requested for the slot 2 of L-X bundles. Better sanity
check the requested slot 1 of L-X bundles. Simplify the returned
expression.
2009-09-28 23:54:01 +00:00
Joel Brobecker
35ec2a3e66
* ia64-tdep.c (ia64_memory_insert_breakpoint): Check the slotnum
...
and the type of instruction before deciding which slot to save
in the breakpoint shadown contents.
2009-09-28 23:47:02 +00:00
Doug Evans
66d990c749
(TRAP_REMOVE_SYSCALL_FLAG): New macro.
...
(linux_nat_wait_1): Mask off is-syscall bit in wait status for
TRAP_IS_SYSCALL before passing value to caller.
2009-09-28 21:09:15 +00:00
Doug Evans
206aa7673d
* linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL.
2009-09-28 18:39:29 +00:00
Alan Modra
52fbfb5d63
* configure.in: Don't invoke configure.tgt on $enable_targets.
...
* configure: Regenerate.
2009-09-28 12:48:16 +00:00
Nick Clifton
e3ad91e358
oops - omitted from previous delta
2009-09-28 12:15:51 +00:00
Nick Clifton
caa83f8b08
PR 10478
...
* elf.c (bfd_section_from_shdr): Allow SHN_BEFORE and SHN_AFTER
section link values in x86 binaries.
* elfcode.h (elf_object_p): Likewise.
* readelf.c (get_elf_section_flags): Allow SHN_BEFORE and
SHN_AFTER section link values in x86 binaries.
(process_section_headers): Likewise.
2009-09-28 09:45:33 +00:00
Nick Clifton
fc9f1df98e
* elf32-m68k.c (elf_m68k_final_write_processing): New function.
...
(elf_backend_final_write_processing): Macro defined as above function.
2009-09-28 09:34:20 +00:00
Ulrich Weigand
2d88202ad4
* valops.c (value_assign): Respect parent offset when
...
assigning to a bitfield.
2009-09-28 09:16:15 +00:00
Alan Modra
5ccff77654
missed entry
2009-09-28 07:14:37 +00:00
Hui Zhu
926569ae8e
2009-09-28 Hui Zhu <teawater@gmail.com>
...
* i386-tdep.c (i386_process_record): Remove "0x" that
don't need.
2009-09-28 07:11:36 +00:00
Alan Modra
df381c72f4
* scripttempl/elf32cr16.sc: Emit empty script for ld -r and ld -Ur.
...
* scripttempl/elf32cr16c.sc: Likewise.
* scripttempl/elf32crx.sc: Likewise.
* scripttempl/tic54xcoff.sc: Likewise.
* scripttempl/aix.sc: Delete ${RELOCATING-0}.
* scripttempl/avr.sc: Likewise.
* scripttempl/elf32msp430.sc: Likewise.
* scripttempl/elf32msp430_3.sc: Likewise.
* scripttempl/elf32sh-symbian.sc: Likewise.
* scripttempl/elf_chaos.sc: Likewise.
* scripttempl/elfi370.sc: Likewise.
* scripttempl/nw.sc: Likewise.
* scripttempl/psos.sc: Likewise.
* scripttempl/armbpabi.sc: Delete ${RELOCATING-0} and ${CONSTRUCTING-0}.
* scripttempl/elf.sc: Likewise.
* scripttempl/elf64hppa.sc: Likewise.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/elfd30v.sc: Likewise.
* scripttempl/elfm68hc11.sc: Likewise.
* scripttempl/elfm68hc12.sc: Likewise.
* scripttempl/elfmicroblaze.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.
* scripttempl/iq2000.sc: Likewise.
* scripttempl/mep.sc: Likewise.
* scripttempl/xstormy16.sc: Likewise.
2009-09-28 07:08:50 +00:00
gdbadmin
9188c27260
*** empty log message ***
2009-09-28 00:00:33 +00:00
Alan Modra
67b15f3b90
daily update
2009-09-28 00:00:17 +00:00
Ulrich Weigand
1db4e8a0b4
* s390-tdep.c (op_bctr, op_bctgr, op_bct, op1_bctg, op2_bctg,
...
op_bxh, op1_bxhg, op2_bxhg, op_bxle, op1_bxleg, op2_bxleg,
op1_brct, op2_brct, op1_brctg, op2_brctg, op_brxh, op1_brxhg,
op2_brxhg, op_brxle, op1_brxlg, op2_brxlg): New enum values.
(is_rsi, is_rie): New insn format decoder routines.
(s390_displaced_step_fixup): New function.
(s390_gdbarch_init): Install displaced stepping routines.
2009-09-27 20:47:42 +00:00
Ulrich Weigand
1ba3a4f4b8
* configure.tgt (powerpc-*-linux* | powerpc64-*-linux*):
...
Add linux-tdep.o to gdb_target_obs.
(s390*-*-*): Likewise.
2009-09-27 20:46:35 +00:00
Ulrich Weigand
4168d2d616
* spu-low.c (spu_kill): Wait for inferior to terminate.
...
Call clear_inferiors.
(spu_detach): Call clear_inferiors.
2009-09-27 20:45:20 +00:00
Ulrich Weigand
0057022f7e
* gdb.threads/manythreads.c (main): Increase thread stack size
...
to 2*PTHREAD_STACK_MIN.
* gdb.threads/multi-create.c (main): Likewise.
(create_function): Likewise.
2009-09-27 20:44:25 +00:00
Ulrich Weigand
f29c032579
* gdb.base/dump.exp: Pass difference of pointer types instead
...
of integer types as offset to restore in intarr3.srec case.
2009-09-27 20:42:40 +00:00
Ulrich Weigand
fcb34849df
* gdb.cp/gdb2495.exp: Skip test on spu*-*-*.
2009-09-27 20:41:53 +00:00
Ulrich Weigand
d5142e3b62
* gdb.base/pie-support.exp: Pass "quiet" flag to gdb_compile.
2009-09-27 20:40:23 +00:00
Christopher Faylor
eceda120cd
* ldlang.c (lang_size_sections_1): Always force output vma to zero for
...
relocatable sections.
(lang_size_sections_1): Revert previous COFF-only accommodation for relocatable
sections.
2009-09-27 16:08:34 +00:00
Don Lee
5b6912fbdb
* score-tdep.c: Comment out some simulator dependent codes.
...
* score-tdep.h: Delete some simulator dependent macro definitions.
2009-09-27 08:45:12 +00:00
Ian Lance Taylor
a6a22b839b
* testsuite/initpri1.c: Don't try to use constructor priorities if
...
compiling with gcc before 4.3.
2009-09-27 05:20:03 +00:00
Hui Zhu
5d40bb8544
2009-09-27 Hui Zhu <teawater@gmail.com>
...
* record.c (record_open): Change "query" to "error".
(cmd_record_stop): Change "query" to "printf_unfiltered".
2009-09-27 02:49:34 +00:00
Alan Modra
d8c8c4064b
daily update
2009-09-27 00:00:04 +00:00