binutils-gdb.git
14 years ago * gdb.server/ext-run.exp: Fix intermittent failures.
Doug Evans [Thu, 18 Nov 2010 20:25:12 +0000 (20:25 +0000)]
* gdb.server/ext-run.exp: Fix intermittent failures.

14 years ago * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
Pierre Muller [Thu, 18 Nov 2010 16:38:20 +0000 (16:38 +0000)]
* arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
instruction is found.

14 years ago PR gas/12181
Rainer Orth [Thu, 18 Nov 2010 16:00:25 +0000 (16:00 +0000)]
PR gas/12181
* config/obj-elf.c (elf_adjust_symtab) [TE_SOLARIS]: Make sy
weak hidden.

14 years ago PR binutils/11742
Alan Modra [Thu, 18 Nov 2010 07:54:07 +0000 (07:54 +0000)]
PR binutils/11742
* readelf.c (get_archive_member_name): Formatting.  Properly
handle full size ar_name.

14 years ago * ld-elf/binutils.exp: Correct x86 gnu target match.
Alan Modra [Thu, 18 Nov 2010 06:57:57 +0000 (06:57 +0000)]
* ld-elf/binutils.exp: Correct x86 gnu target match.
* ld-i386/i386.exp: Likewise.
* ld-ifunc/binutils.exp: Likewise.
* ld-ifunc/ifunc.exp: Likewise.
* ld-discard/discard.exp: Remove unnecessary line continuations.
* ld-elfvers/vers.exp: Likewise.  Simplify linuxaout and linuxoldld
test.
* ld-elfweak/elfweak.exp: Likewise.

14 years ago*** empty log message ***
gdbadmin [Thu, 18 Nov 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Wed, 17 Nov 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago * value.c (value_entirely_optimized_out): Check the
Tom Tromey [Wed, 17 Nov 2010 19:53:37 +0000 (19:53 +0000)]
* value.c (value_entirely_optimized_out): Check the
'check_any_valid' field.

14 years agostart a gitignore
Mike Frysinger [Wed, 17 Nov 2010 19:34:59 +0000 (19:34 +0000)]
start a gitignore

14 years ago2010-11-17 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 17 Nov 2010 11:32:53 +0000 (11:32 +0000)]
2010-11-17  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (vms_write_index): Add comments.
Partially revert previous patch.  Free blocks later.

14 years ago * input-file.c (input_file_open): Check for empty input files.
Nick Clifton [Wed, 17 Nov 2010 11:15:21 +0000 (11:15 +0000)]
* input-file.c (input_file_open): Check for empty input files.
(input_file_get): Check for end of file before reading any more
data.
(input_file_give_next_buffer): Likewise.

14 years ago PR ld/12161
Nick Clifton [Wed, 17 Nov 2010 10:56:42 +0000 (10:56 +0000)]
PR ld/12161
* elf32-avr.c (elf32_avr_check_relocs): Delete.
(elf_backend_check_relocs): Delete.

14 years agooops - acccidentally omitted from loongson 3a check-in.
Nick Clifton [Wed, 17 Nov 2010 09:32:42 +0000 (09:32 +0000)]
oops - acccidentally omitted from loongson 3a check-in.

14 years ago * ar.c (print_contents): Don't internationalize strings without words.
Alan Modra [Wed, 17 Nov 2010 03:35:50 +0000 (03:35 +0000)]
* ar.c (print_contents): Don't internationalize strings without words.
* dwarf.c (process_extended_line_op): Likewise.
(process_debug_info): Likwise.
(display_debug_lines_raw): Likewise.
(display_debug_lines_decoded): Likewise.
(display_debug_abbrev): Likewise.
* readelf.c (process_file_header): Likewise.
(GET_OP): Likewise.
(decode_arm_unwind): Likewise.
(process_mips_specific): Likewise.
* resrc.c (run_cmd): Likewise.
(rcparse_warning): Likewise.
* objdump.c (dump_headers): Don't print "Pg".

14 years agomerge from gcc
DJ Delorie [Wed, 17 Nov 2010 02:03:43 +0000 (02:03 +0000)]
merge from gcc

14 years ago * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
Cary Coutant [Wed, 17 Nov 2010 01:53:22 +0000 (01:53 +0000)]
* dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
Check for ".zdebug_line".

14 years ago*** empty log message ***
gdbadmin [Wed, 17 Nov 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago* ld/testsuite/ld-gc/pr11218-2.c: Declare
Andreas Schwab [Tue, 16 Nov 2010 23:41:38 +0000 (23:41 +0000)]
* ld/testsuite/ld-gc/pr11218-2.c: Declare
unresolved_detected_at_runtime_not_at_linktime.

14 years ago * ld-plugin/plugin.exp: Define printf and puts as main.
Alan Modra [Tue, 16 Nov 2010 23:00:48 +0000 (23:00 +0000)]
* ld-plugin/plugin.exp: Define printf and puts as main.

14 years agodaily update
Alan Modra [Tue, 16 Nov 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years agogdb/
Jan Kratochvil [Tue, 16 Nov 2010 22:13:02 +0000 (22:13 +0000)]
gdb/
* ada-lang.c (modify_general_field): Remove.
(make_array_descriptor): Replace all modify_general_field calls by
modify_field.
* value.c (modify_field): Update comment.  New variable bytesize.
Normalize BITPOS.  Initialize BYTESIZE, use it.

14 years agogdb/
Jan Kratochvil [Tue, 16 Nov 2010 22:04:52 +0000 (22:04 +0000)]
gdb/
* dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
elements after xfree.

14 years ago * output.h (Output_segment::set_section_addresses): Pass increase_relro
Cary Coutant [Tue, 16 Nov 2010 19:18:31 +0000 (19:18 +0000)]
* output.h (Output_segment::set_section_addresses): Pass increase_relro
by reference; adjust all callers.
* output.cc (Output_segment::set_section_addresses): Adjust references
to increase_relro. Add padding to *increase_relro when ORDER_RELRO_LAST
list is empty.
(Output_segment::set_offset): Assert if PT_GNU_RELRO segment does not
end at page boundary.

14 years agosim: dv-sockser: add a write buffer variant
Mike Frysinger [Tue, 16 Nov 2010 19:10:29 +0000 (19:10 +0000)]
sim: dv-sockser: add a write buffer variant

Rather than having to bang out chunks of data one byte at a time over
the socket interface, add a write variant that accepts an arbitrarily
long buffer.  This speeds things up considerably when we have many
chars to send out at once.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago PR gold/12220
Cary Coutant [Tue, 16 Nov 2010 18:40:28 +0000 (18:40 +0000)]
PR gold/12220
* layout.cc (Layout::choose_output_section): Transform names of
compressed sections even when using a script with a SECTIONS clause.
(Layout::output_section_name): Remove code to transform
compressed debug section names.
* output.cc (Output_section::add_input_section): Use uncompressed
section size when tracking input sections.

14 years agoProperly demangle a global constructor symbol.
H.J. Lu [Tue, 16 Nov 2010 17:58:26 +0000 (17:58 +0000)]
Properly demangle a global constructor symbol.

2010-11-16  H.J. Lu  <hongjiu.lu@intel.com>

PR other/42670
PR binutils/11137
* cp-demangle.c (d_make_demangle_mangled_name): New.
(d_demangle_callback): Use it on DCT_GLOBAL_XTORS.

* testsuite/demangle-expected: Updated.

14 years ago * gdb-add-index.sh: Really remove.
Tom Tromey [Tue, 16 Nov 2010 17:38:40 +0000 (17:38 +0000)]
* gdb-add-index.sh: Really remove.

14 years agogdb/
Jan Kratochvil [Tue, 16 Nov 2010 04:36:26 +0000 (04:36 +0000)]
gdb/
Code cleanup.
* dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
(init_one_comp_unit): ... this one.
(prepare_one_comp_unit): New prototype.
(dw2_require_line_header, process_psymtab_comp_unit): Use
init_one_comp_unit.
(process_psymtab_comp_unit): Use prepare_one_comp_unit.
(load_partial_comp_unit): Remove variable attr.  Use
init_one_comp_unit with xmalloc.  Use prepare_one_comp_unit.
(load_full_comp_unit): Use init_one_comp_unit with xmalloc.  Use
prepare_one_comp_unit.
(read_signatured_type): Remove variable attr.  Use init_one_comp_unit.
Use prepare_one_comp_unit.
(alloc_one_comp_unit): Rename to ...
(init_one_comp_unit): ... here and remove there calloc, new parameter
cu.
(prepare_one_comp_unit): New function.

14 years agoblackfin: add support for L1 code/data flags
Mike Frysinger [Tue, 16 Nov 2010 03:33:07 +0000 (03:33 +0000)]
blackfin: add support for L1 code/data flags

forgot to `cvs add` this file

14 years agogdbserver: fix warning in nommu clone
Mike Frysinger [Tue, 16 Nov 2010 03:27:05 +0000 (03:27 +0000)]
gdbserver: fix warning in nommu clone

Building gdbserver for nommu targets atm fails with:
linux-low.c: In function 'linux_tracefork_child':
linux-low.c:4151: error: pointer of type 'void *' used in arithmetic

So cast the void* to a char*.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago*** empty log message ***
gdbadmin [Tue, 16 Nov 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * windmc.c: ,%s' -> `%s' in a number of strings.
Alan Modra [Mon, 15 Nov 2010 23:54:23 +0000 (23:54 +0000)]
* windmc.c: ,%s' -> `%s' in a number of strings.

14 years agodaily update
Alan Modra [Mon, 15 Nov 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agoblackfin: add support for L1 code/data flags
Mike Frysinger [Mon, 15 Nov 2010 22:30:47 +0000 (22:30 +0000)]
blackfin: add support for L1 code/data flags

Add new linker options for marking programs to load into L1 memory
at runtime.  This needs new EF flag bits, so declare them.

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago * emultempl/pe.em (_list_options): Correct typo.
Alan Modra [Mon, 15 Nov 2010 22:01:17 +0000 (22:01 +0000)]
* emultempl/pe.em (_list_options): Correct typo.
* emultempl/pep.em (_list_options): Likewise.

14 years agoUse binutils_assemble_flags for --nocompress-debug-sections.
H.J. Lu [Mon, 15 Nov 2010 21:05:26 +0000 (21:05 +0000)]
Use binutils_assemble_flags for --nocompress-debug-sections.

2010-11-15  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/compress.exp: Replace binutils_assemble with
binutils_assemble_flags for --nocompress-debug-sections.

14 years agoAlso expect .zdebug in DWARF debug section name.
H.J. Lu [Mon, 15 Nov 2010 18:14:11 +0000 (18:14 +0000)]
Also expect .zdebug in DWARF debug section name.

binutils/testsuite/

2010-11-15  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/compress.exp: Pass --nocompress-debug-sections to
assembler for uncompressed debug sections.

* binutils-all/testranges.d: Also expect .zdebug in section name.

gas/testsuite/

2010-11-15  H.J. Lu  <hongjiu.lu@intel.com>

* gas/elf/dwarf2-3.d: Also expect .zdebug in section name.
* gas/i386/debug1.d: Likewise.
* gas/lns/lns-common-1.d: Likewise.
* gas/lns/lns-duplicate.d: Likewise.

14 years agoMark parameters of elf_process_stab as ATTRIBUTE_UNUSED.
H.J. Lu [Mon, 15 Nov 2010 18:12:42 +0000 (18:12 +0000)]
Mark parameters of elf_process_stab as ATTRIBUTE_UNUSED.

2010-11-15  H.J. Lu  <hongjiu.lu@intel.com>

* config/obj-elf.c (elf_process_stab): Mark parameters as
ATTRIBUTE_UNUSED.

14 years agorevert previous patch
Doug Evans [Mon, 15 Nov 2010 17:25:09 +0000 (17:25 +0000)]
revert previous patch

14 years ago * gdb.base/maint.exp (maint print statistics): Increase timeout for
Doug Evans [Mon, 15 Nov 2010 17:17:57 +0000 (17:17 +0000)]
* gdb.base/maint.exp (maint print statistics): Increase timeout for
all targets.  Restore old timeout afterwards.

14 years ago * config/obj-elf.c (elf_generate_asm_lineno): New function.
Rainer Orth [Mon, 15 Nov 2010 12:31:05 +0000 (12:31 +0000)]
* config/obj-elf.c (elf_generate_asm_lineno): New function.
(elf_process_stab): New function.
(elf_format_ops): Always use them as generate_asm_lineno,
process_stab members.

14 years ago PR gas/12198
Matthew Gretton-Dann [Mon, 15 Nov 2010 10:03:05 +0000 (10:03 +0000)]
PR gas/12198
* gas/config/tc-arm.c (arm_arch_v6m_only): New variable.
(aeabi_set_public_attributes): Ensure we only set the Operating System
Extension when we are on an M-profile core.
* gas/testsuite/gas/arm/pr12198-1.d: New test.
* gas/testsuite/gas/arm/pr12918-1.s: Likewise.
* gas/testsuite/gas/arm/pr12198-2.d: Likewise.
* gas/testsuite/gas/arm/pr12918-2.s: Likewise.
* include/opcode/arm.h (ARM_AEXT_V6M_ONLY): New define.
(ARM_AEXT_V6M): Rewrite in terms of ARM_AEXT_V6M_ONLY.
(ARM_ARCH_V6M_ONLY): New define.

14 years agobfd: bfin: drop needless symbol flag handling imported from FRV
Mike Frysinger [Mon, 15 Nov 2010 08:34:00 +0000 (08:34 +0000)]
bfd: bfin: drop needless symbol flag handling imported from FRV

The Blackfin bfd merged some FRV code recently, and then removed pieces
that didn't make sense.  In the FRV code, it outputs a "_gp" symbol in
its BFD whereas in the Blackfin code, we don't.  So while on the FRV
side it fiddles with the "flags" variable (sometimes using it for section
flags and sometimes using it for symbol flags), we don't need any of
that.  This lead to BZ 12177 where the Blackfin code is a bit confusing.
So to fix things up, remove more stuff we don't need.  Shouldn't change
the behavior at all.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago*** empty log message ***
gdbadmin [Mon, 15 Nov 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sun, 14 Nov 2010 23:00:06 +0000 (23:00 +0000)]
daily update

14 years agomerge from gcc
DJ Delorie [Sun, 14 Nov 2010 21:42:55 +0000 (21:42 +0000)]
merge from gcc

14 years ago * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
Pierre Muller [Sun, 14 Nov 2010 12:10:59 +0000 (12:10 +0000)]
* arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
possible used of uninitialized variable.

14 years ago*** empty log message ***
gdbadmin [Sun, 14 Nov 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sat, 13 Nov 2010 23:00:06 +0000 (23:00 +0000)]
daily update

14 years agogas/
Richard Sandiford [Sat, 13 Nov 2010 11:59:21 +0000 (11:59 +0000)]
gas/
* config/tc-mips.c (macro_build): Remove gas_assert from 'o' case.
Use a restricted gas_assert for 'i' and 'j'.

gas/testsuite/
* gas/mips/elf-rel28.s, gas/mips/elf-rel28-n32.d,
gas/mips/elf-rel28-n64.d: New test.
* gas/mips/mips.exp: Run it.

14 years agomerge from gcc
DJ Delorie [Sat, 13 Nov 2010 02:20:31 +0000 (02:20 +0000)]
merge from gcc

14 years ago*** empty log message ***
gdbadmin [Sat, 13 Nov 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 12 Nov 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agoProperly copy BFD_COMPRESS and BFD_DECOMPRESS to archive element.
H.J. Lu [Fri, 12 Nov 2010 22:10:18 +0000 (22:10 +0000)]
Properly copy BFD_COMPRESS and BFD_DECOMPRESS to archive element.

2010-11-12  H.J. Lu  <hongjiu.lu@intel.com>

* archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS and
BFD_DECOMPRESS.
(bfd_openr_next_archived_file): Revert the last change.

14 years agogdb/
Nathan Froyd [Fri, 12 Nov 2010 21:54:31 +0000 (21:54 +0000)]
gdb/
* rs6000-tdep.c (bfd_uses_spe_extensions): New function.
(rs6000_gdbarch_init): Call it.

14 years agogdb/
Nathan Froyd [Fri, 12 Nov 2010 21:53:10 +0000 (21:53 +0000)]
gdb/
* rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
instructions if debugging an E500 binary.

14 years agogdb/testsuite/
Nathan Froyd [Fri, 12 Nov 2010 21:49:55 +0000 (21:49 +0000)]
gdb/testsuite/
* gdb.stabs/gdb11479.exp: Use runto_main.

14 years agogdb/testsuite/
Nathan Froyd [Fri, 12 Nov 2010 21:47:47 +0000 (21:47 +0000)]
gdb/testsuite/
* gdb.base/break-entry.exp: Skip if using a stub.

14 years agogdb/testsuite/
Nathan Froyd [Fri, 12 Nov 2010 21:44:49 +0000 (21:44 +0000)]
gdb/testsuite/
* gdb.python/py-inferior.exp: Pack values in target endianness.

14 years agogdb
Tom Tromey [Fri, 12 Nov 2010 20:49:43 +0000 (20:49 +0000)]
gdb
* varobj.c (value_get_print_value): Rearrange.  Pass stream to
apply_varobj_pretty_printer.
* c-lang.c: Include exceptions.h.
(c_get_string): Throw MEMORY_ERROR when appropriate.
* python/py-prettyprint.c (enum string_repr_result): New.
(print_stack_unless_memory_error): New function.
(print_string_repr): Change return type.  Use
print_stack_unless_memory_error.
(print_children): Use print_stack_unless_memory_error.
(apply_val_pretty_printer): Update.  Don't print children if
string representation threw an exception.
(apply_varobj_pretty_printer): Add 'stream' argument.  Use
print_stack_unless_memory_error.
* python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
globals.
(_initialize_python): Initialize them.
* python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
gdbpy_convert_exception.
(GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
(gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
(gdbpy_convert_exception): Declare.
(apply_varobj_pretty_printer): Update.
* python/py-utils.c (gdbpy_convert_exception): New function.
gdb/doc
* gdb.texinfo (Basic Python): Update.  Add xref.
(Exception Handling): Document new exception classes.
(Types In Python): Update.
(Frames In Python): Update.
gdb/testsuite
* gdb.python/py-prettyprint.c (main): Add new 'ns2' local.
* gdb.python/py-prettyprint.exp (run_lang_tests): Add test for
MemoryError.
* gdb.python/python.exp (gdb_py_test_multiple): Update exception
type.
* gdb.python/py-value.exp (test_value_in_inferior): Add test for
MemoryError.
(test_subscript_regression): Update exception type.

14 years ago2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
Marc Khouzam [Fri, 12 Nov 2010 18:46:42 +0000 (18:46 +0000)]
2010-11-12  Marc Khouzam  <marc.khouzam@ericsson.com>

        * mi/mi-main.c (mi_cmd_target_detach): Accept new
        thread-group id format.

14 years agogdb/
Jan Kratochvil [Fri, 12 Nov 2010 12:38:39 +0000 (12:38 +0000)]
gdb/
* spu-tdep.c (spu_catch_start): Fix compilation error typo.

14 years ago* rx.c (lsb_count): New.
DJ Delorie [Fri, 12 Nov 2010 01:01:12 +0000 (01:01 +0000)]
* rx.c (lsb_count): New.
(divu_cycles): New.
(div_cycles): New.
(decode_opcode): Fix cycle count math for div, divu, suntil, and
swhile.

14 years ago*** empty log message ***
gdbadmin [Fri, 12 Nov 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Thu, 11 Nov 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Thu, 11 Nov 2010 14:11:56 +0000 (14:11 +0000)]
2010-11-11  Phil Muldoon  <pmuldoon@redhat.com>

* python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
NULL.
(BPPY_SET_REQUIRE_VALID): Ditto.
(bpnum_is_valid): Delete function.
(bppy_get_visibility): New function.
(bppy_new): Parse for, and validate internal keyword.  Pass
internal keyword to breakpoint or watchpoint functions.
(build_bp_list): New function.
(gdbpy_breakpoints): Rewrite.  Use build_bp_list and
iterate_over_breakpoints.
(gdbpy_breakpoint_created): Rewrite.  Do not store breakpoints in a
look-aside vector.
(gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
to internal breakpoint chain.

* breakpoint.c (set_breakpoint_number): New function.
(breakpoint_1): Check if breakpoint number is more than zero.
(set_raw_breakpoint_without_location): Set py_bp_object to NULL.
(create_breakpoint_sal): Take a new parameter called internal.
Call set_breakpoint_number with internal parameter.  Do not
mention internal breakpoints.  All callers updated.
(create_breakpoint): Ditto.
(create_breakpoints_sal): Ditto.
(watch_command_1): Ditto.
(watch_command_wrapper): Take a new parameter called internal.
All callers updated.
(rwatch_command_wrapper): Ditto.
(awatch_command_wrapper): Ditto.
(save_breakpoints): Update breakpoint save condition check.
(iterate_over_breakpoints): New function.
* breakpoint.h: Add conditional python includes.  Add py_bp_object
and comment to struct breakpoint.  Update all callers.
* defs.h: Add PyObject definition for GDB builds without Python.

2010-11-11  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.texinfo (Breakpoints In Python): Document "internal"
parameter, and visible attribute.

2010-11-11  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.python/py-breakpoint.exp: Add internal watchpoint and
breakpoint tests.

14 years agogold/
Richard Sandiford [Thu, 11 Nov 2010 10:43:30 +0000 (10:43 +0000)]
gold/
* symtab.h (Symbol::NON_PIC_REF): Remove.
(Symbol::RELATIVE_REF, Symbol::TLS_REF): New Reference_flags.
(Symbol::FUNCTION_CALL): Renumber.  Reword comment.
(Symbol::needs_dynamic_reloc): Don't check NON_PIC_REF.
(Symbol::use_plt_offset): Take a flags argument and pass it
directly to needs_dynamic_reloc.  Restrict check for undefined
weak symbols to function calls.
* arm.cc (Target_arm::Scan::get_reference_flags): New function.
(Target_arm::Scan::global): Use it.
(Target_arm::Scan::scan_reloc_for_stub): Likewise.
(Target_arm::Relocate::relocate): Likewise.
(Target_arm::Relocate::should_apply_static_reloc): Replace flags
parameter with an r_type parameter.  Use get_reference_flags
to get the flags.
(Target_arm::Relocate::relocate): Update accordingly.
* i386.cc (Target_i386::Scan::get_reference_flags): New function.
(Target_i386::Scan::reloc_needs_plt_for_ifunc): Use it.
(Target_i386::Scan::global): Likewise.
(Target_i386::Relocate::relocate): Likewise.
(Target_i386::Relocate::should_apply_static_reloc): Replace flags
parameter with an r_type parameter.  Use get_reference_flags
to get the flags.
(Target_i386::Relocate::relocate): Update accordingly.
* powerpc.cc (Target_powerpc::Scan::get_reference_flags): New function.
(Target_powerpc::Scan::global): Use it.
(Target_powerpc::Scan::scan_reloc_for_stub): Likewise.
(Target_powerpc::Relocate::relocate): Likewise.
* sparc.cc (Target_sparc::Scan::get_reference_flags): New function.
(Target_sparc::Scan::global): Use it.
(Target_sparc::Scan::scan_reloc_for_stub): Likewise.
(Target_sparc::Relocate::relocate): Likewise.
* x86_64.cc (Target_x86_64::Scan::get_reference_flags): New function.
(Target_x86_64::Scan::reloc_needs_plt_for_ifunc): Use it.
(Target_x86_64::Scan::global): Likewise.
(Target_x86_64::Relocate::relocate): Likewise.

14 years ago bfd/
Nick Clifton [Thu, 11 Nov 2010 10:23:39 +0000 (10:23 +0000)]
bfd/
* archures.c (bfd_mach_mips_loongson_3a): Defined.
* bfd-in2.h (bfd_mach_mips_loongson_3a): Defined.
* cpu-mips.c (I_loongson_3a): New add.
(arch_info_struct): Add loongson_3a.
* elfxx-mips.c (_bfd_elf_mips_mach): Add loongson_3a.
(mips_set_isa_flags): Add loongson_3a.
(mips_mach_extensions): Add loongson_3a in MIPS64 extensions.

binutils/
* readelf.c (get_machine_flags): Add loongson-3a.

gas/
* config/tc-mips.c (mips_cpu_info_table): Add loongson3a in MIPS 64.
* doc/c-mips.texi (MIPS cpu): Add loongson3a.

include/
* elf/mips.h (E_MIPS_MACH_LS3A): Defined.
* opcode/mips.h (INSN_LOONGSON_3A): Defined.
(CPU_LOONGSON_3A): Defined.
(OPCODE_IS_MEMBER): Add LOONGSON_3A.

opcodes/
* mips-dis.c (mips_arch_choices): Add loongson3a.
* mips-opc.c (IL3A): Defined as INSN_LOONGSON_3A.
(mips_builtin_opcodes): Modify some instructions' membership from
IL2F to IL2F|IL3A, since these instructions are supported by Loongson_3A.

14 years ago*** empty log message ***
gdbadmin [Thu, 11 Nov 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * python/lib/gdb/command/pretty_printers.py
Doug Evans [Wed, 10 Nov 2010 23:44:14 +0000 (23:44 +0000)]
* python/lib/gdb/command/pretty_printers.py
(do_enable_pretty_printer_1): Handle printer.subprinters is None.

14 years agodaily update
Alan Modra [Wed, 10 Nov 2010 23:00:06 +0000 (23:00 +0000)]
daily update

14 years ago * value.c (set_value_enclosing_type): Renamed from
Doug Evans [Wed, 10 Nov 2010 17:47:23 +0000 (17:47 +0000)]
* value.c (set_value_enclosing_type): Renamed from
value_change_enclosing_type.  All callers updated.
* value.h (set_value_enclosing_type): Update.
* valops.c (value_full_object): Always return a copy if we need to
make changes to the input value.

14 years agobfd/
Richard Sandiford [Wed, 10 Nov 2010 14:54:30 +0000 (14:54 +0000)]
bfd/
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove unused
variables.

14 years agoUpdated translations.
Nick Clifton [Wed, 10 Nov 2010 14:39:10 +0000 (14:39 +0000)]
Updated translations.

14 years agogas/
Richard Sandiford [Wed, 10 Nov 2010 13:36:31 +0000 (13:36 +0000)]
gas/
* config/tc-arm.c (do_t_branch): Treat (PLT) branches as wide.

gas/testsuite/
* gas/arm/plt-1.s, gas/arm/plt-1.d: New test.

14 years ago*** empty log message ***
gdbadmin [Wed, 10 Nov 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Tue, 9 Nov 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago gdb/
Pedro Alves [Tue, 9 Nov 2010 18:23:52 +0000 (18:23 +0000)]
gdb/
* breakpoint.c (watch_command_1): Get a pointer of the lazy
version of the expression's value, even if reading the value from
memory fails.  When creating a -location watchpoint, get the
value's address from the lazy value pointer.

gdb/testsuite/
* gdb.base/watchpoint.exp: Test "watch -location" with an
innacessible location.

14 years ago2010-11-08 Doug Kwan <dougkwan@google.com>
Doug Kwan [Tue, 9 Nov 2010 07:56:10 +0000 (07:56 +0000)]
2010-11-08  Doug Kwan  <dougkwan@google.com>
    Cary Coutant  <ccoutant@google.com>

* arm.cc (Arm_exidx_merge_section::build_contents): New method.
(Arm_exidx_merge_section::section_contents_): New data member.
(Arm_input_section::Arm_input_section): Initialize original_contents_.
(Arm_input_section::~Arm_input_section): De-allocate memory.
(Arm_input_section::original_contents_): New data member.
(Arm_exidx_fixup::process_exidx_section): Pass EXIDX section contents
in parameters instead of calling Object::section_contents without
locking.
(Arm_output_section::group_section): New parameter TASK.  Pass it
to callees that need locking objects.
(Arm_output_section::fix_exidx_coverage): New parameter TASK.  Use it
to lock EXIDX input sections.  Fix a formatting issue.  Call
Arm_exidx_merged_section::build_contents to create merged section
contents.
(Arm_output_section::create_stub_group): New parameter TASK.  Use it
to lock object of stub table owner.
(Arm_exidx_input_section::Arm_exidx_input_section): Add new parameter
TEXT_SIZE to initialize data member TEXT_SIZE_.
(Arm_exidx_input_section::addralign): Fix typo in comment.
(Arm_exidx_input_section::text_size): New method.
(Target_arm::do_relax): New parameter TASK.  Pass it to callees
that require locking objects.  Lock objects before scanning for stubs
and updating local symbols.
(Arm_input_section<big_endian>::init): Copy contents of original
input section.
  (Arm_input_section<big_endian>::do_write): Use saved contents of
original input section instead of calling Object::section_contents
without locking.
(Arm_exidx_cantunwind::do_fixed_endian_write): Find out text section
size without calling Object::section_size().
(Arm_exidx_merged_section::Arm_exidx_merged_section): Add sanity check
for size.  Allocate a buffer for merged EXIDX entries.
(Arm_exidx_merged_section::build_contents): New method.
  (Arm_exidx_merged_section::do_write): Move merge section contents
building code to Arm_exidx_merged_section::build_contetns.  Write
out contetns in buffer instead of building it on the fly.
(Arm_relobj::make_exidx_input_section): Also pass text section size
to Arm_exidx_input_section constructor.
(Arm_relobj::do_read_symbols): Fix memory leak.  Fix a formatting issue.
(Arm_dynobj::do_read_symbols): Fix memory leak.
* layout.cc (Layout::finalize): Pass TASK to Target::relax().
* target.h: (class Task): Add forward declaration.
(Target::relax): Add new parameter TASK and pass it to
Target::do_relax().
(Target::do_relax):: New parameter TASK.  Fix a formatting issue.

14 years agogdb/testsuite/
Jan Kratochvil [Tue, 9 Nov 2010 04:44:17 +0000 (04:44 +0000)]
gdb/testsuite/
* gdb.base/maint.exp: Expect "." prefix.
* gdb.base/nodebug.exp: Expect "." Likewise.
* gdb.base/sepsymtab.exp: Expect "." Likewise.
* gdb.base/watchpoint-cond-gone.exp: Likewise.
* gdb.base/watchpoint.exp: Expect a software watch to be created for
POWER server processors.

14 years ago*** empty log message ***
gdbadmin [Tue, 9 Nov 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Mon, 8 Nov 2010 23:00:06 +0000 (23:00 +0000)]
daily update

14 years agogdb/testsuite/
Jan Kratochvil [Mon, 8 Nov 2010 18:05:56 +0000 (18:05 +0000)]
gdb/testsuite/
* gdb.base/break-entry.exp: convert entry point for
ppc64 and expect leading `.' on ppc64's symbols

14 years agoUpdated Japanese translations.
Nick Clifton [Mon, 8 Nov 2010 11:37:07 +0000 (11:37 +0000)]
Updated Japanese translations.

14 years agoImprove binutils testsuite coverage for GNU/Hurd.
Thomas Schwinge [Mon, 8 Nov 2010 06:43:40 +0000 (06:43 +0000)]
Improve binutils testsuite coverage for GNU/Hurd.

binutils/testsuite/

* lib/utils-lib.exp (is_elf_format): Consider for *-*-gnu*, too.
* binutils-all/elfedit-2.d (target): Likewise.
* binutils-all/elfedit-3.d (target): Likewise.
* binutils-all/i386/i386.exp: Likewise.
* binutils-all/objcopy.exp: Likewise.
* binutils-all/strip-3.d (target): Likewise.

gas/testsuite/

* lib/gas-defs.exp (is_elf_format): Consider for *-*-gnu*, too.
* gas/elf/elf.exp: Likewise.
* gas/symver/symver.exp: Likewise.

ld/

* configure.host: Add stanza for *-*-gnu*.

ld/testsuite/

* lib/ld-lib.exp (is_elf_format): Consider for *-*-gnu*, too.
* ld-discard/discard.exp: Likewise.
* ld-elf/binutils.exp: Likewise.
* ld-elf/commonpage1.d (target): Likewise.
* ld-elf/compress1c.d (target): Likewise.
* ld-elf/discard1.d (target): Likewise.
* ld-elf/discard2.d (target): Likewise.
* ld-elf/discard3.d (target): Likewise.
* ld-elf/dynsym1.d (target): Likewise.
* ld-elf/eh6.d (target): Likewise.
* ld-elf/elf.exp: Likewise.
(array_tests): Move -static tests to...
(array_tests_static): ... here, and handle it accordingly.
* ld-elf/hash.d (target): Likewise.
* ld-elf/header.d (target): Likewise.
* ld-elf/loadaddr1.d (target): Likewise.
* ld-elf/loadaddr2.d (target): Likewise.
* ld-elf/loadaddr3a.d (target): Likewise.
* ld-elf/loadaddr3b.d (target): Likewise.
* ld-elf/local1.d (target): Likewise.
* ld-elf/maxpage1.d (target): Likewise.
* ld-elf/maxpage2.d (target): Likewise.
* ld-elf/maxpage3a.d (target): Likewise.
* ld-elf/multibss1.d (target): Likewise.
* ld-elf/noload-2.d (target): Likewise.
* ld-elf/seg.d (target): Likewise.
* ld-elf/textaddr1.d (target): Likewise.
* ld-elf/textaddr2.d (target): Likewise.
* ld-elf/textaddr3.d (target): Likewise.
* ld-elf/textaddr4.d (target): Likewise.
* ld-elf/textaddr5.d (target): Likewise.
* ld-elf/textaddr6.d (target): Likewise.
* ld-elf/textaddr7.d (target): Likewise.
* ld-elf/tls_common.exp: Likewise.
* ld-elf/unknown2.d (target): Likewise.
* ld-elfvers/vers.exp: Likewise.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfweak/elfweak.exp: Likewise.
(setup_xfail_gnu_hurd): New function.  Use it where appropriate.
* ld-gc/abi-note.d (target): Likewise.
* ld-gc/gc.exp: Likewise.
* ld-gc/pr11218.d (target): Likewise.
* ld-gc/start.d (target): Likewise.
* ld-i386/i386.exp: Likewise.
* ld-ifunc/binutils.exp: Likewise.
* ld-ifunc/ifunc.exp: Likewise.
* ld-linkonce/linkonce.exp: Likewise.
* ld-linkonce/zeroehl32.d (target): Likewise.
* ld-pie/pie.exp: Likewise.
* ld-scripts/phdrs2.exp: Likewise.
* ld-scripts/rgn-at5.d (target): Likewise.
* ld-shared/shared.exp: Likewise.
* ld-undefined/entry-3.d (target): Likewise.
* ld-undefined/entry-4.d (target): Likewise.
* ld-undefined/weak-undef.exp: Likewise.

14 years agobfd/
Alan Modra [Mon, 8 Nov 2010 02:48:57 +0000 (02:48 +0000)]
bfd/
* hash.c (bfd_hash_hash): Extract from..
(bfd_hash_lookup): ..here.
(bfd_hash_rename): New function.
* section.c (bfd_rename_section): New function.
* bfd-in.h (bfd_hash_rename): Declare.
* bfd-in2.h: Regenerate.
* elf.c (_bfd_elf_make_section_from_shdr): Rename input sections
when compressing or decompressing.  Don't assert name match.
* elf64-hppa.c (get_reloc_section): Don't assert name match.
* elfxx-ia64.c (get_reloc_section): Likewise.
binutils/
* objcopy.c (copy_main): No need to rename sections when compressing
or decompressing.
binutils/testsuite/
* binutils-all/objdump.W: Adjust expected result for debug section
rename.

14 years ago*** empty log message ***
gdbadmin [Mon, 8 Nov 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sun, 7 Nov 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agogdb/
Jan Kratochvil [Sun, 7 Nov 2010 22:25:16 +0000 (22:25 +0000)]
gdb/
* infrun.c (restore_inferior_thread_state): Use
discard_inferior_thread_state to free the data.
(discard_inferior_thread_state): xfree also siginfo_data.

14 years ago*** empty log message ***
gdbadmin [Sun, 7 Nov 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sat, 6 Nov 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago * ld-plugin/plugin-6.d: Relax file name match.
Alan Modra [Sat, 6 Nov 2010 10:47:32 +0000 (10:47 +0000)]
* ld-plugin/plugin-6.d: Relax file name match.

14 years ago*** empty log message ***
gdbadmin [Sat, 6 Nov 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 5 Nov 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago PR gold/10708
Cary Coutant [Fri, 5 Nov 2010 21:14:33 +0000 (21:14 +0000)]
PR gold/10708
* copy-relocs.cc (Copy_relocs::emit_copy_reloc): Hold a lock on the
object when reading from the file.
* gold.cc (queue_middle_tasks): Hold a lock on the object when doing
second layout pass.
* icf.cc (preprocess_for_unique_sections): Hold a lock on the object
when reading section contents.
(get_section_contents): Likewise.
(icf::find_identical_sections): Likewise.
* mapfile.cc (Mapfile::print_discarded_sections): Hold a lock on the
object when reading from the file.
* plugin.cc (Plugin_manager::layout_deferred_objects): Hold a lock on
the object when doing deferred section layout.

14 years agomerge from gcc
DJ Delorie [Fri, 5 Nov 2010 18:06:02 +0000 (18:06 +0000)]
merge from gcc

14 years agoFix spacing.
Richard Sandiford [Fri, 5 Nov 2010 17:21:06 +0000 (17:21 +0000)]
Fix spacing.

14 years agold/
Richard Sandiford [Fri, 5 Nov 2010 17:20:17 +0000 (17:20 +0000)]
ld/
2010-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>

* emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.

14 years ago * gdb.python/py-param.exp: Delete, contents moved to ...
Doug Evans [Fri, 5 Nov 2010 17:07:36 +0000 (17:07 +0000)]
* gdb.python/py-param.exp: Delete, contents moved to ...
* gdb.python/py-parameter.exp: ... here.  New file.
Add test for gdb.parameter ("directories").

14 years ago Make gdb.parameter("directories") work.
Doug Evans [Fri, 5 Nov 2010 16:55:40 +0000 (16:55 +0000)]
Make gdb.parameter("directories") work.
New command "set directories".
* NEWS: Document them.
* source.c (set_directories_command): New function.
(show_directories_1): Renamed from show_directories.
All callers updated.
(show_directories_command): New function.
(_initialize_source): Install "directories" as a set/show
variable instead of just a show command.

doc/
* gdb.texinfo (Source Path): Document "set directories".

testsuite/
* gdb.base/help.exp: Update expected output.
* gdb.python/py-parameter.exp: New file.