binutils-gdb.git
15 years ago*** empty log message ***
gdbadmin [Wed, 7 Oct 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago ARI fix: OP eol rule.
Pierre Muller [Tue, 6 Oct 2009 23:27:05 +0000 (23:27 +0000)]
ARI fix: OP eol rule.
* doublest.c (floatformat_from_length): Avoid operator at end of line.
* dwarf2-frame.c (dwarf2_build_frame_info): Idem.
* dwarf2read.c (read_array_order, dwarf_decode_macros): Idem.
* eval.c (evaluate_subexp_standard): Idem.
* event-loop.c (create_timer, handle_timer_event): Idem.
* expprint.c (print_subexp_standard): Idem.
* f-exp.y (variable): Idem.
* f-typeprint.c (f_print_type): Idem.

15 years ago * options.h (class General_options): Define
Ian Lance Taylor [Tue, 6 Oct 2009 22:58:27 +0000 (22:58 +0000)]
* options.h (class General_options): Define
split_stack_adjust_size parameter.
* object.h (class Object): Add uses_split_stack_ and
has_no_split_stack_ fields.  Add uses_split_stack and
has_no_split_stack accessor functions.  Declare
handle_split_stack_section.
(class Reloc_symbol_changes): Define.
(class Sized_relobj): Define Function_offsets.  Declare
split_stack_adjust, split_stack_adjust_reltype, and
find_functions.
* object.cc (Object::handle_split_stack_section): New function.
(Sized_relobj::do_layout): Call handle_split_stack_section.
* dynobj.cc (Sized_dynobj::do_layout): Call
handle_split_stack_section.
* reloc.cc (Sized_relobj::relocate_sections): Call
split_stack_adjust for executable sections in split_stack
objects.  Pass reloc_map to relocate_section.
(Sized_relobj::split_stack_adjust): New function.
(Sized_relobj::split_stack_adjust_reltype): New function.
(Sized_relobj::find_functions): New function.
* target-reloc.h: Include "object.h".
(relocate_section): Add reloc_symbol_changes parameter.  Change
all callers.
* target.h (class Target): Add calls_non_split method.  Declare
do_calls_non_split virtual method.  Declare match_view and
set_view_to_nop.
* target.cc: Include "elfcpp.h".
(Target::do_calls_non_split): New function.
(Target::match_view): New function.
(Target::set_view_to_nop): New function.
* gold.cc (queue_middle_tasks): Give an error if mixing
split-stack and non-split-stack objects with -r.
* i386.cc (Target_i386::relocate_section): Add
reloc_symbol_changes parameter.
(Target_i386::do_calls_non_split): New function.
* x86_64.cc (Target_x86_64::relocate_section): Add
reloc_symbol_changes parameter.
(Target_x86_64::do_calls_non_split): New function.
* arm.cc (Target_arm::relocate_section): Add reloc_symbol_changes
parameter.
* powerpc.cc (Target_powerpc::relocate_section): Add
reloc_symbol_changes parameter.
* sparc.cc (Target_sparc::relocate_section): Add
reloc_symbol_changes parameter.
* configure.ac: Call AM_CONDITIONAL for the default target.
* configure: Rebuild.
* testsuite/Makefile.am (TEST_AS): New variable.
(check_SCRIPTS): Add split_i386.sh and split_x86_64.sh.
(check_DATA): Add split_i386 and split_x86_64 files.
(SPLIT_DEFSYMS): Define.
(split_i386_[1234n].o): New targets.
(split_i386_[124]): New targets.
(split_i386_[1234r].stdout): New targets.
(split_x86_64_[1234n].o): New targets.
(split_x86_64_[124]): New targets.
(split_x86_64_[1234r].stdout): New targets.
(MOSTLYCLEANFILES): Add new executables.
* testsuite/split_i386.sh: New file.
* testsuite/split_x86_64.sh: New file.
* testsuite/split_i386_1.s: New file.
* testsuite/split_i386_2.s: New file.
* testsuite/split_i386_3.s: New file.
* testsuite/split_i386_4.s: New file.
* testsuite/split_i386_n.s: New file.
* testsuite/split_x86_64_1.s: New file.
* testsuite/split_x86_64_2.s: New file.
* testsuite/split_x86_64_3.s: New file.
* testsuite/split_x86_64_4.s: New file.
* testsuite/split_x86_64_n.s: New file.
* testsuite/testfile.cc (Target_test): Update relocation_section
function.
* testsuite/Makefile.in: Rebuild.

15 years ago ARI fix: OP eol rule.
Pierre Muller [Tue, 6 Oct 2009 22:47:20 +0000 (22:47 +0000)]
ARI fix: OP eol rule.
* blockframe.c (find_pc_partial_function): Avoid operator at end of
line.
* buildsym.c (find_symbol_in_list): Idem.
(start_subfile, patch_subfile_names): Idem.
* c-exp.y (variable, yylex): Idem.
* c-typeprint.c (c_print_type, c_type_print_base): Idem.
* c-valprint.c (c_val_print): Idem.
* coffread.c (patch_opaque_types, process_coff_symbol): Idem.
* corelow.c (core_open): Idem.
* cris-tdep.c (move_reg_to_mem_movem_op): Idem.
* cli/cli-decode.c (help_cmd_list, find_command_name_length): Idem.

15 years agoTweak last patch.
Ian Lance Taylor [Tue, 6 Oct 2009 21:44:11 +0000 (21:44 +0000)]
Tweak last patch.

15 years ago * i386.cc (class Target_i386::Relocate): Add ldo_addrs_ field.
Ian Lance Taylor [Tue, 6 Oct 2009 21:36:00 +0000 (21:36 +0000)]
* i386.cc (class Target_i386::Relocate): Add ldo_addrs_ field.
(Target_i386::Relocate::relocate_tls): Call fix_up_ldo before
changing local_dynamic_type_ from LOCAL_DYNAMIC_NONE.  When
handling R_386_TLS_LDO_32, if local_dynamic_type_ is NONE, push
the address on ldo_addrs_.
(Target_i386::Relocate::fix_up_ldo): New function.

15 years ago ARI fix: OP eol rule.
Pierre Muller [Tue, 6 Oct 2009 21:27:59 +0000 (21:27 +0000)]
ARI fix: OP eol rule.
* ada-exp.y (block_lookup): Avoid operator at end of line.
* aix-thread.c (pd_enable): Idem.
* alpha-tdep.c (alpha_next_pc): Idem.
* arm-tdep.c (arm_skip_prologue, arm_scan_prologue): Idem.
(condition_true, coff_sym_is_thumb): Idem.

15 years ago * plugin.cc (add_input_library): New.
Ian Lance Taylor [Tue, 6 Oct 2009 20:15:09 +0000 (20:15 +0000)]
* plugin.cc (add_input_library): New.
(Plugin::load): Add add_input_library to tv.
(Plugin_manager::add_input_file): Add the is_lib argument.
(add_input_file): Update call to Plugin_manager::add_input_file.
(add_input_library): New.
* plugin.h (Plugin_manager::add_input_file): Add the is_lib argument.

15 years agoMerge from gcc repository.
Ian Lance Taylor [Tue, 6 Oct 2009 20:14:06 +0000 (20:14 +0000)]
Merge from gcc repository.

15 years ago2009-10-06 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 6 Oct 2009 19:41:13 +0000 (19:41 +0000)]
2009-10-06  H.J. Lu  <hongjiu.lu@intel.com>

* bfd-in2.h: Regenerated.

15 years ago* info (Contributors): Add self for Xilinx MicroBlaze.
Michael Eager [Tue, 6 Oct 2009 18:02:36 +0000 (18:02 +0000)]
* info (Contributors): Add self for Xilinx MicroBlaze.
(Embedded Processors): Add MicroBlaze.
(MicroBlaze): New.  Describe Xilinx MicroBlaze

15 years agoGDB 7.0 released.
gdbadmin [Tue, 6 Oct 2009 17:40:34 +0000 (17:40 +0000)]
GDB 7.0 released.

15 years agoMinor reformatting of the last entry.
Joel Brobecker [Tue, 6 Oct 2009 16:04:05 +0000 (16:04 +0000)]
Minor reformatting of the last entry.

15 years agoUpdated Finnish translation
Nick Clifton [Tue, 6 Oct 2009 15:44:40 +0000 (15:44 +0000)]
Updated Finnish translation

15 years ago * ARI fix: "%p" rule.
Pierre Muller [Tue, 6 Oct 2009 15:32:18 +0000 (15:32 +0000)]
* ARI fix: "%p" rule.
target.c (debug_to_thread_architecture): Replace %p by %s using
host_address_to_string function.

15 years ago* microblaze/interp.c: Add include microblaze-dis.h.
Michael Eager [Tue, 6 Oct 2009 15:19:52 +0000 (15:19 +0000)]
* microblaze/interp.c: Add include microblaze-dis.h.

15 years ago * gdb.base/annota1.exp: Remove obsolete match_max increase.
Pierre Muller [Tue, 6 Oct 2009 15:12:06 +0000 (15:12 +0000)]
* gdb.base/annota1.exp: Remove obsolete match_max increase.
* gdb.base/annota3.exp: Idem.
* gdb.base/maint.exp: Idem.

15 years ago2009-10-06 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 6 Oct 2009 07:23:05 +0000 (07:23 +0000)]
2009-10-06  Tristan Gingold  <gingold@adacore.com>

* darwin-nat.c: Add __TEXT __info_plist content.
(darwin_attach_pid): Update error message.

15 years ago * MAINTAINERS: Add Tristan Gingold as Maintainer of the Darwin port.
Joel Brobecker [Tue, 6 Oct 2009 05:14:46 +0000 (05:14 +0000)]
    * MAINTAINERS: Add Tristan Gingold as Maintainer of the Darwin port.

15 years ago * MAINTAINERS: Add Jan Kratochvil as Maintainer of the ia64 target.
Joel Brobecker [Tue, 6 Oct 2009 02:56:04 +0000 (02:56 +0000)]
    * MAINTAINERS: Add Jan Kratochvil as Maintainer of the ia64 target.

15 years ago*** empty log message ***
gdbadmin [Tue, 6 Oct 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Mon, 5 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update

15 years ago PR gas/10704
Alan Modra [Mon, 5 Oct 2009 21:58:19 +0000 (21:58 +0000)]
PR gas/10704
* symbols.c (snapshot_symbol): Revert 2006-01-09 patch for PR2117.

15 years ago * read.c (s_reloc): Don't use expression_and_evaluate.
Alan Modra [Mon, 5 Oct 2009 21:57:12 +0000 (21:57 +0000)]
* read.c (s_reloc): Don't use expression_and_evaluate.

15 years ago Revert:
Pedro Alves [Mon, 5 Oct 2009 13:46:52 +0000 (13:46 +0000)]
Revert:
2009-10-04  Pedro Alves  <pedro@codesourcery.com>
* gdbinit.in: Set data-directory to @srcdir@.

15 years ago * opc2c.c: Include "libiberty.h" and <errno.h>.
Nick Clifton [Mon, 5 Oct 2009 13:14:55 +0000 (13:14 +0000)]
    * opc2c.c: Include "libiberty.h" and <errno.h>.
        (orig_filename): Constify.
        (dump_lines): Fix line number directive.
        (main): Set orig_filename to basename of input file.  Use
        xstrerror.

        * Makefile.am (rx-dis.lo): Remove explicit dependencies.
        ($(srcdir)/rx-decode.c): Use @MAINT@.  Use $(EXEEXT_FOR_BUILD)
        instead of $(EXEEXT).
        (opc2c$(EXEEXT_FOR_BUILD)): Renamed from opc2c$(EXEEXT) and use
        $(LINK_FOR_BUILD).  Link with libiberty.
        (MOSTLYCLEANFILES): Add opc2c$(EXEEXT_FOR_BUILD).
        (MAINTAINERCLEANFILES): Add $(srcdir)/rx-decode.c.
        * Makefile.in: Regenerated.
        * rx-decode.c: Regenerated.

15 years ago * lib/gdb.exp (default_gdb_init): Set current value of match_max
Pierre Muller [Mon, 5 Oct 2009 06:27:46 +0000 (06:27 +0000)]
* lib/gdb.exp (default_gdb_init): Set current value of match_max
to default.

15 years ago*** empty log message ***
gdbadmin [Mon, 5 Oct 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sun, 4 Oct 2009 23:00:04 +0000 (23:00 +0000)]
daily update

15 years ago * NEWS: Mention non-stop mode.
Pedro Alves [Sun, 4 Oct 2009 17:39:30 +0000 (17:39 +0000)]
* NEWS: Mention non-stop mode.

15 years ago * gdb.texinfo (Remote Protocol): Don't mention vCont;T.
Pedro Alves [Sun, 4 Oct 2009 17:37:57 +0000 (17:37 +0000)]
* gdb.texinfo (Remote Protocol): Don't mention vCont;T.

15 years ago * gdbinit.in: Set data-directory to @srcdir@.
Pedro Alves [Sun, 4 Oct 2009 13:50:08 +0000 (13:50 +0000)]
* gdbinit.in: Set data-directory to @srcdir@.

15 years ago*** empty log message ***
gdbadmin [Sun, 4 Oct 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Sat, 3 Oct 2009 23:00:05 +0000 (23:00 +0000)]
daily update

15 years agoRevert the last change.
H.J. Lu [Sat, 3 Oct 2009 17:00:16 +0000 (17:00 +0000)]
Revert the last change.

15 years ago2009-10-03 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 3 Oct 2009 14:36:34 +0000 (14:36 +0000)]
2009-10-03  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am ($(srcdir)/rx-decode.c): Add @MAINT@.
(rx-dis.lo): Remove a space.
(pc2c$(EXEEXT)): Remove a space. Use $(LINK_FOR_BUILD) instead
of gcc.
(MAINTAINERCLEANFILES): Add $(srcdir)/rx-decode.c.
* Makefile.in: Regenerated.

15 years ago * arm-dis.c (print_insn): Check symtab_size not *symtab.
Alan Modra [Sat, 3 Oct 2009 00:39:53 +0000 (00:39 +0000)]
* arm-dis.c (print_insn): Check symtab_size not *symtab.

15 years agodaily update
Alan Modra [Sat, 3 Oct 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Sat, 3 Oct 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * remove unwanted directory parts
Pierre Muller [Fri, 2 Oct 2009 22:39:41 +0000 (22:39 +0000)]
 * remove unwanted directory parts

15 years ago * lib/gdb.exp (gdb_compile): Add --enable-auto-import option for
Pierre Muller [Fri, 2 Oct 2009 22:25:26 +0000 (22:25 +0000)]
* lib/gdb.exp (gdb_compile): Add --enable-auto-import option for
mingw and cygwin targets.

15 years ago * lib/gdb.exp (gdb_compile): Avoid adding
Pierre Muller [Fri, 2 Oct 2009 21:28:34 +0000 (21:28 +0000)]
* lib/gdb.exp (gdb_compile): Avoid adding
gdb_saved_unbuffered_mode_obj if -nostdlib option is used.

15 years ago2009-10-02 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 2 Oct 2009 19:03:40 +0000 (19:03 +0000)]
2009-10-02  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Drop Disp64 on jump and loop instructions.
* i386-tbl.h: Regenerated.

15 years agomerge from gcc
DJ Delorie [Fri, 2 Oct 2009 18:23:01 +0000 (18:23 +0000)]
merge from gcc

15 years ago * linux-nat.c (TRAP_IS_SYSCALL, TRAP_REMOVE_SYSCALL_FLAG): Delete.
Pedro Alves [Fri, 2 Oct 2009 16:51:04 +0000 (16:51 +0000)]
* linux-nat.c (TRAP_IS_SYSCALL, TRAP_REMOVE_SYSCALL_FLAG): Delete.
(SYSCALL_SIGTRAP): New.
(status_to_str): Adjust.
(get_pending_status): Pending events in lp->waitstatus don't map
to any signal.  Simplify.
(linux_handle_syscall_trap): New.
(linux_handle_extended_wait): When handling PTRACE_EVENT_CLONE
events, use linux_ops->to_resume instead of direct ptrace with
PTRACE_CONT.  Remove all TRAP_IS_SYSCALL handling.
(wait_lwp): Handle syscall traps with linux_handle_syscall_trap,
and clear the sysgood bit.
(status_callback): Make it clearer and add comments.
(cancel_breakpoints_callback): Ignore if LP has waitstatus set.
(linux_nat_filter_event): Handle syscall traps with
linux_handle_syscall_trap, and clear the sysgood bit.  Move the
check for storing siginfo to after handling extended statuses and
syscall traps.  Store status in the lwp object.
(linux_wait_1): Don't swap the pending status out of the lwp
object until after deciding we found an lwp with an interesting
event.  Requeue a new pending signal if we find one while getting
rid or a pending SIGSTOP we sent ourselves.  Don't clear the
sysgood bit here.

* infrun.c (deal_with_syscall_event): Rename to ...
(handle_syscall_event): ... this.  Always context switch and set
stop_pc, even if not catching the syscall.  If not catching the
syscall, always resume with keep_going.
(handle_inferior_event): Adjust.

15 years agogdb/
Jan Kratochvil [Fri, 2 Oct 2009 16:02:34 +0000 (16:02 +0000)]
gdb/
Fix compatibility of --with-system-readline and readline-6.0+.
* configure.ac <--with-system-readline> (for readline_echoing_p): New
test.
* config.in: Regenerate.
* configure: Regenerate.

15 years ago2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
Tom Tromey [Fri, 2 Oct 2009 15:43:17 +0000 (15:43 +0000)]
2009-10-02  Ralf Corsepius <ralf.corsepius@rtems.org>

* Make-common.in: Add datarootdir.

15 years agotypo fix
Alan Modra [Fri, 2 Oct 2009 15:35:01 +0000 (15:35 +0000)]
typo fix

15 years agold/
Alan Modra [Fri, 2 Oct 2009 15:00:30 +0000 (15:00 +0000)]
ld/
* emultempl/ppc32elf.em (emit_stub_syms): Init to -1.
(ppc_after_open): Set emit_stubs_syms by default when shared.
(OPTION_NO_STUBSYMS): Define.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
* emultempl/ppc64elf.em (emit_stub_syms): Init to -1.
(gld${EMULATION_NAME}_finish): Set emit_stubs_syms by default.
(OPTION_NO_STUBSYMS): Define.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
ld/testsuite/
* ld-powerpc/tlsexe.d: Update.
* ld-powerpc/tlsexe.r: Update.
* ld-powerpc/tlsexetoc.d: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlsso.d: Update.
* ld-powerpc/tlsso.r: Update.
* ld-powerpc/tlstocso.d: Update.
* ld-powerpc/tlstocso.r: Update.

15 years agogas/
Peter Bergner [Fri, 2 Oct 2009 14:42:42 +0000 (14:42 +0000)]
gas/
* config/tc-ppc.c (md_show_usage): Document -m476.
* doc/c-ppc.texi (PowerPC-Opts): Document -m476.

gas/testsuite/
* gas/ppc/476.s: New test.
* gas/ppc/476.d: Likewise.
* gas/ppc/ppc.exp: Run the 476 test.

include/opcode/
* ppc.h (PPC_OPCODE_476): Define.

opcodes/
* ppc-dis.c (ppc_opts): Add "476" entry.
* ppc-opc.c (PPC476): Define.
(powerpc_opcodes): Update mnemonics where required for 476.

15 years agoinclude/aout/
Alan Modra [Fri, 2 Oct 2009 14:40:41 +0000 (14:40 +0000)]
include/aout/
* aout64.h (N_SHARED_LIB): Define as zero if not already defined.
* sun4.h (N_SHARED_LIB): Define.
* hp300hpux.h (N_SHARED_LIB): Don't define.
bfd/
* aout-cris.c (N_SHARED_LIB): Don't define.
* hp300bsd.c (N_SHARED_LIB): Don't define.
* i386bsd.c (N_SHARED_LIB): Don't define.
* i386linux.c (N_SHARED_LIB): Don't define.
* i386lynx.c (N_SHARED_LIB): Don't define.
* m68klinux.c (N_SHARED_LIB): Don't define.
* m88kmach3.c (N_SHARED_LIB): Don't define.
* mipsbsd.c (N_SHARED_LIB): Don't define.
* newsos3.c (N_SHARED_LIB): Don't define.
* pc532-mach.c (N_SHARED_LIB): Don't define.
* pdp11.c (N_SHARED_LIB): Don't define.
* sparclinux.c (N_SHARED_LIB): Don't define.
* vaxbsd.c (N_SHARED_LIB): Don't define.

15 years ago * dw2gencfi.c: Include dwarf2dbg.h.
Jakub Jelinek [Fri, 2 Oct 2009 11:33:50 +0000 (11:33 +0000)]
* dw2gencfi.c: Include dwarf2dbg.h.
(DWARF2_FORMAT): Define if not defined.
(dot_cfi_sections): New function.
(cfi_pseudo_table): Handle .cfi_sections.
(CFI_EMIT_eh_frame, CFI_EMIT_debug_frame): Define.
(cfi_sections): New variable.
(output_cie, output_fde, select_cie_for_fde): Add eh_frame
argument, add supporting for outputting .debug_frame
section.
(cfi_change_reg_numbers): New function or macro.
(cfi_finish): Only emit .eh_frame if
cfi_sections & CFI_EMIT_eh_frame.  Emit .debug_frame if
cfi_sections & CFI_EMIT_debug_frame.
* config/tc-ppc.h (md_reg_eh_frame_to_debug_frame): Define.
* doc/as.texinfo (CFI directives): Document .cfi_sections.

15 years ago*** empty log message ***
gdbadmin [Fri, 2 Oct 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Fri, 2 Oct 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * lib/ld-lib.exp (ld_simple_link_defsyms): New proc, adding
Alan Modra [Thu, 1 Oct 2009 23:29:29 +0000 (23:29 +0000)]
* lib/ld-lib.exp (ld_simple_link_defsyms): New proc, adding
powerpc-*-rtems to code setting symbols, extracted from..
* ld-srec/srec.exp (run_srec_test): ..here.  Correct flags for sh64.
* ld-gc/gc.exp (test_gc): Use ld_simple_link_defsyms.

15 years ago * MAINTAINERS: Move Don Lee to the correct section (Write After
Joel Brobecker [Thu, 1 Oct 2009 23:11:02 +0000 (23:11 +0000)]
    * MAINTAINERS: Move Don Lee to the correct section (Write After
        Approval).

15 years ago * src/gdb/testsuite/gdb.base/shr1.c: Use %p in format string.
Pierre Muller [Thu, 1 Oct 2009 21:33:24 +0000 (21:33 +0000)]
* src/gdb/testsuite/gdb.base/shr1.c: Use %p in format string.
* src/gdb/testsuite/gdb.base/unload.c: Avoid warning in fprintf.
* src/gdb/testsuite/gdb.base/watchpoint-solib.c: Idem.

15 years ago2009-10-01 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Thu, 1 Oct 2009 20:09:21 +0000 (20:09 +0000)]
2009-10-01  Phil Muldoon  <pmuldoon@redhat.com>

* infcall.c (call_function_by_hand): Add a new cleanup branch for
std::terminate breakpoints.

15 years ago * cofflink.c (_bfd_coff_generic_relocate_section): Look for the aux
Dave Korn [Thu, 1 Oct 2009 19:48:12 +0000 (19:48 +0000)]
* cofflink.c (_bfd_coff_generic_relocate_section): Look for the aux
symbol for a weak undef in the auxbfd, not the input bfd.

15 years agogas/
Peter Bergner [Thu, 1 Oct 2009 19:24:48 +0000 (19:24 +0000)]
gas/
* config/tc-ppc.c (md_show_usage): Rename "ppca2" to "a2".
* doc/c-ppc.texi (PowerPC-Opts): Likewise.

gas/testsuite/
* gas/ppc/a2.d: Rename "ppca2" to "a2".

include/opcode/
* ppc.h (PPC_OPCODE_A2): Rename from PPC_OPCODE_PPCA2.

opcodes/
* ppc-opc.c (PPCA2): Use renamed mask PPC_OPCODE_A2.
* ppc-dis.c (ppc_opts): Likewise.
Rename "ppca2" to "a2".

15 years ago * gdb.base/fileio.c (test_lseek): typecast ofs_t ret variable to
Pierre Muller [Thu, 1 Oct 2009 15:39:13 +0000 (15:39 +0000)]
* gdb.base/fileio.c (test_lseek): typecast ofs_t ret variable to
long type.
(test_unlink): Correct printf string.
* gdb.base/checkpoint.c (main): Correct fprintf string for variable i.
* gdb.threads/attachstop-mt.c: Add #include <string.h>.

15 years ago2009-10-01 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 1 Oct 2009 14:31:43 +0000 (14:31 +0000)]
2009-10-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (x86_cons): Reformat.

15 years agobfd/
Ulrich Weigand [Thu, 1 Oct 2009 13:09:56 +0000 (13:09 +0000)]
bfd/
* elf32-spu.c (spu_elf_auto_overlay): Insert icache linker script
after .toe instead of before .text section.  Set the LMA of all
overlay sections to their icache IA address.
(spu_elf_find_overlays): Determine icache set id without reference
to the LMA.

ld/testsuite/
* ld-spu/icache1.d: Update to new section layout.

15 years ago2009-10-01 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
M R Swami Reddy [Thu, 1 Oct 2009 08:19:55 +0000 (08:19 +0000)]
2009-10-01  M R Swami Reddy <MR.Swami.Reddy@nsc.com>

       * crx-dis.c (match_opcode): Truncate mcode to 32-bit.

15 years ago * addr2line.c (slurp_symtab): Don't use bfd_read_minisymbols.
Alan Modra [Thu, 1 Oct 2009 06:33:15 +0000 (06:33 +0000)]
* addr2line.c (slurp_symtab): Don't use bfd_read_minisymbols.

15 years ago2009-09-30 Doug Kwan <dougkwan@google.com>
Doug Kwan [Thu, 1 Oct 2009 00:58:38 +0000 (00:58 +0000)]
2009-09-30  Doug Kwan  <dougkwan@google.com>

* arm.cc (Target_arm::may_need_copy_reloc): Check for THUMB function
symbol and call Symbol::may_need_copy_reloc to determine if
a copy reloc is needed.
* copy-relocs.cc (Copy_relocs::need_copy_reloc): Return false if -z
nocopyreloc is given in command line.
(Copy_relocs::emit_copy_reloc): Assert that -z nocopyreloc is not
given in command line.
* i386.cc (Target_i386::may_need_copy_reloc): Remove.
(Target_i386::Scan::global): Use Symbol::may_need_copy_reloc instead
of the removed Target_i386::may_need_copy_reloc.
* options.h (copyreloc): New option with default value false.
* powerpc.cc (Target_powerpc::may_need_copy_reloc): Remove.
(Target_powerpc::Scan::global): Use Symbol::may_need_copy_reloc
instead of the removed Target_powerpc::may_need_copy_reloc.
* sparc.cc (Target_powerpc::may_need_copy_reloc): Remove.
(Target_sparc::Scan::global): Use Symbol::may_need_copy_reloc
instead of the removed Target_sparc::may_need_copy_reloc.
* symtab.h (Symbol::may_need_copy_reloc): New method definition.
* x86_64.cc (Target_powerpc::may_need_copy_reloc): Remove.
(Target_x86_64::Scan::global): Use Symbol::may_need_copy_reloc
instead of the removed Target_x86_64::may_need_copy_reloc.

15 years ago*** empty log message ***
gdbadmin [Thu, 1 Oct 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
Alan Modra [Thu, 1 Oct 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago * object.h (class Object): Remove target_ field, and target,
Ian Lance Taylor [Wed, 30 Sep 2009 22:21:13 +0000 (22:21 +0000)]
* 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.

15 years ago2009-09-30 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 30 Sep 2009 13:12:50 +0000 (13:12 +0000)]
2009-09-30  Tristan Gingold  <gingold@adacore.com>

* configure.com: Use hosts/alphavms.h on both alpha and ia64 VMS.

15 years agodaily update
Alan Modra [Wed, 30 Sep 2009 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 30 Sep 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago2009-09-29 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 29 Sep 2009 21:31:07 +0000 (21:31 +0000)]
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.

15 years agogdb/testsuite/
Jan Kratochvil [Tue, 29 Sep 2009 19:24:46 +0000 (19:24 +0000)]
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.

15 years ago * gdb.objc/basicclass.exp: Disable pending breakpoint query.
Ulrich Weigand [Tue, 29 Sep 2009 19:02:22 +0000 (19:02 +0000)]
* gdb.objc/basicclass.exp: Disable pending breakpoint query.
* gdb.objc/nondebug.exp: Likewise.

15 years ago * emulparams/m68kelf.sh (NOP): Use 0x4e71 (nop) rather than 0x4e75
Nick Clifton [Tue, 29 Sep 2009 16:28:52 +0000 (16:28 +0000)]
    * emulparams/m68kelf.sh (NOP): Use 0x4e71 (nop) rather than 0x4e75
        (rts).

15 years agogdb/
Jan Kratochvil [Tue, 29 Sep 2009 16:27:05 +0000 (16:27 +0000)]
gdb/
* ia64-tdep.c (ia64_convert_from_func_ptr_addr): New variable buf.
Check first the descriptor memory is readable.

15 years ago * doc/binutils.texi (c++filt): Remove spurious description of
Nick Clifton [Tue, 29 Sep 2009 15:34:08 +0000 (15:34 +0000)]
    * doc/binutils.texi (c++filt): Remove spurious description of
        nonexistent --java command line switch for cxxfilt.

15 years ago * python/py-value.c (valpy_string): NULL-terminate 'keywords'.
Tom Tromey [Tue, 29 Sep 2009 15:13:45 +0000 (15:13 +0000)]
* python/py-value.c (valpy_string): NULL-terminate 'keywords'.

15 years ago2009-09-29 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 29 Sep 2009 14:37:57 +0000 (14:37 +0000)]
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.

15 years agobfd
Nick Clifton [Tue, 29 Sep 2009 14:17:19 +0000 (14:17 +0000)]
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.

15 years agoopcodes/
Peter Bergner [Tue, 29 Sep 2009 13:19:10 +0000 (13:19 +0000)]
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.

15 years ago * gdb.base/watchpoints.exp: Respect gdb,no_hardware_watchpoints
Ulrich Weigand [Tue, 29 Sep 2009 13:02:58 +0000 (13:02 +0000)]
* 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".

15 years ago * s390-tdep.c (s390_displaced_step_fixup): Use type ULONGEST
Ulrich Weigand [Tue, 29 Sep 2009 12:51:34 +0000 (12:51 +0000)]
* s390-tdep.c (s390_displaced_step_fixup): Use type ULONGEST
instead of CORE_ADDR for "amode".

15 years ago2009-09-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
M R Swami Reddy [Tue, 29 Sep 2009 11:55:09 +0000 (11:55 +0000)]
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.

15 years ago * ldlang.c (lang_size_sections_1): Allow scripts to specify a
Alan Modra [Tue, 29 Sep 2009 02:24:56 +0000 (02:24 +0000)]
* ldlang.c (lang_size_sections_1): Allow scripts to specify a
non-zero vma even when relocatable.

15 years ago * ia64-tdep.c: Update the comments on how we insert/remove
Joel Brobecker [Tue, 29 Sep 2009 01:25:37 +0000 (01:25 +0000)]
    * 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.

15 years ago * gdbarch.sh (displaced_step_hw_singlestep): New callback.
Ulrich Weigand [Tue, 29 Sep 2009 00:53:04 +0000 (00:53 +0000)]
* 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.

15 years ago * eval.c (evaluate_subexp_standard) [OP_OBJC_MSGCALL]: Support
Ulrich Weigand [Tue, 29 Sep 2009 00:48:32 +0000 (00:48 +0000)]
* 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.

15 years agodaily update
Alan Modra [Tue, 29 Sep 2009 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Tue, 29 Sep 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago Fix ia64 breakpoints in the L-X slot.
Joel Brobecker [Mon, 28 Sep 2009 23:54:01 +0000 (23:54 +0000)]
    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.

15 years ago * ia64-tdep.c (ia64_memory_insert_breakpoint): Check the slotnum
Joel Brobecker [Mon, 28 Sep 2009 23:47:02 +0000 (23:47 +0000)]
    * 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.

15 years ago (TRAP_REMOVE_SYSCALL_FLAG): New macro.
Doug Evans [Mon, 28 Sep 2009 21:09:15 +0000 (21:09 +0000)]
(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.

15 years ago * linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL.
Doug Evans [Mon, 28 Sep 2009 18:39:29 +0000 (18:39 +0000)]
* linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL.

15 years ago * configure.in: Don't invoke configure.tgt on $enable_targets.
Alan Modra [Mon, 28 Sep 2009 12:48:16 +0000 (12:48 +0000)]
* configure.in: Don't invoke configure.tgt on $enable_targets.
* configure: Regenerate.

15 years agooops - omitted from previous delta
Nick Clifton [Mon, 28 Sep 2009 12:15:51 +0000 (12:15 +0000)]
oops - omitted from previous delta

15 years ago PR 10478
Nick Clifton [Mon, 28 Sep 2009 09:45:33 +0000 (09:45 +0000)]
    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.

15 years ago * elf32-m68k.c (elf_m68k_final_write_processing): New function.
Nick Clifton [Mon, 28 Sep 2009 09:34:20 +0000 (09:34 +0000)]
    * elf32-m68k.c (elf_m68k_final_write_processing): New function.
       (elf_backend_final_write_processing): Macro defined as above function.

15 years ago * valops.c (value_assign): Respect parent offset when
Ulrich Weigand [Mon, 28 Sep 2009 09:16:15 +0000 (09:16 +0000)]
* valops.c (value_assign): Respect parent offset when
assigning to a bitfield.