binutils-gdb.git
14 years ago * src/opcodes/dlx-dis.c (print_insn_dlx): Use dlx_insn type for
Pierre Muller [Fri, 10 Sep 2010 13:00:54 +0000 (13:00 +0000)]
* src/opcodes/dlx-dis.c (print_insn_dlx): Use dlx_insn type for
dlx_insn_type array.

14 years ago * objcopy.c: Add --interleave-width option to allow interleaving
Nick Clifton [Fri, 10 Sep 2010 12:11:28 +0000 (12:11 +0000)]
    * objcopy.c: Add --interleave-width option to allow interleaving
        of more than one byte at a time.
        (copy_width): New variable.
        (copy_options): Add --interleave-width.
        (copy_section): When interleaving copy in units of copy_width
        bytes.
        (copy_main): Parse the new option.
        * doc/binutils: Document the new option.
        * NEWS: Mention the new feature.

        * binutils-all/objcopy.exp: Add test of new --interleave-width
        option.

14 years ago PR gold/11997
Nick Clifton [Fri, 10 Sep 2010 11:50:24 +0000 (11:50 +0000)]
    PR gold/11997
        * testsuite/memory_test.t: Discard any sections that are not
        needed.

14 years ago * ld-gc/abi-note.d: Exclude aout and oldld targets.
Alan Modra [Fri, 10 Sep 2010 07:18:36 +0000 (07:18 +0000)]
* ld-gc/abi-note.d: Exclude aout and oldld targets.
* ld-gc/start.d: Likewise.
* ld-scripts/section-match-1.d: Likewise, and tic30.

14 years ago PR ld/11931
Alan Modra [Fri, 10 Sep 2010 01:23:12 +0000 (01:23 +0000)]
PR ld/11931
* ldlang.h (lang_for_each_statement_worker): Declare.
* ldlang.c (lang_for_each_statement_worker): Make global.  Don't
recurse into children of output_section_statement with constraint
set to -1.
(print_assignment): Handle NULL output_section->bfd_section.
(lang_size_sections_1): Ignore output section statement address
when constraint is -1.
* emultempl/xtensaelf.em (lang_for_each_statement_worker): Delete.

14 years ago * ld-scripts/rgn-at5.d: Restrict to *-*-linux*.
Hans-Peter Nilsson [Fri, 10 Sep 2010 01:00:28 +0000 (01:00 +0000)]
* ld-scripts/rgn-at5.d: Restrict to *-*-linux*.

14 years ago*** empty log message ***
gdbadmin [Fri, 10 Sep 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 10 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
Kevin Buettner [Thu, 9 Sep 2010 23:04:46 +0000 (23:04 +0000)]
* v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
type to be signed.

14 years agoCheck VEXW1 for 2-byte VEX prefix.
H.J. Lu [Thu, 9 Sep 2010 21:12:37 +0000 (21:12 +0000)]
Check VEXW1 for 2-byte VEX prefix.

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

* config/tc-i386.c (build_vex_prefix): Check VEXW1 for 2-byte
VEX prefix.

14 years ago * doc/c-tic6x.texi (.c6xabi_attribute): Document directive.
Joseph Myers [Thu, 9 Sep 2010 20:56:15 +0000 (20:56 +0000)]
* doc/c-tic6x.texi (.c6xabi_attribute): Document directive.

14 years agogdb/testsuite/
Jan Kratochvil [Thu, 9 Sep 2010 20:00:49 +0000 (20:00 +0000)]
gdb/testsuite/
* gdb.base/break-interp.exp (reach): Permit leading . for ppc64.
(test_ld) <powerpc64-*>: New.

14 years agoSupport building gold with gcc 4.2/4.3.
H.J. Lu [Thu, 9 Sep 2010 19:57:06 +0000 (19:57 +0000)]
Support building gold with gcc 4.2/4.3.

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

PR gold/11996
* object.cc (Sized_relobj::do_finalize_local_symbols): Remove
"This::" to work around a bug in gcc 4.2.

* testsuite/ifuncmain7.c (foo_ifunc): Add __attribute__ ((used)).

14 years agoDon't warn zero LMA adjustment.
H.J. Lu [Thu, 9 Sep 2010 19:22:29 +0000 (19:22 +0000)]
Don't warn zero LMA adjustment.

bfd/

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

PR ld/11998
* elf.c (assign_file_positions_for_load_sections): Don't warn
zero LMA adjustment.

ld/testsuite/

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

PR ld/11998
* ld-scripts/rgn-at5.d: New.
* ld-scripts/rgn-at5.s: Likewise.
* ld-scripts/rgn-at5.t: Likewise.

14 years agomerge from gcc
DJ Delorie [Thu, 9 Sep 2010 17:39:52 +0000 (17:39 +0000)]
merge from gcc

14 years agoAdd missing ChangeLog entries.
H.J. Lu [Thu, 9 Sep 2010 16:54:53 +0000 (16:54 +0000)]
Add missing ChangeLog entries.

14 years ago * dwarf2read.c (fixup_partial_die): Do not set dummy name for
Ulrich Weigand [Thu, 9 Sep 2010 16:42:39 +0000 (16:42 +0000)]
* dwarf2read.c (fixup_partial_die): Do not set dummy name for
anonymous class partial DIEs.

14 years ago2010-09-09 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola [Thu, 9 Sep 2010 15:29:01 +0000 (15:29 +0000)]
2010-09-09  Rafael Espindola  <espindola@google.com>

* layout.cc (Layout::attach_allocated_section_to_segment): Don't put
sections with different PF_X flags in the same segment.
(Layout::find_first_load_seg): Search all segments to find the first
one.
* options.h (rosegment): New.

14 years ago * configure.ac: Add --enable-inprocess-agent option.
Nathan Sidwell [Thu, 9 Sep 2010 13:16:38 +0000 (13:16 +0000)]
* configure.ac: Add --enable-inprocess-agent option.
* configure: Rebuilt.

14 years ago * dwarf.c (decode_location_expression): Fix data adjustment
Jakub Jelinek [Thu, 9 Sep 2010 12:08:59 +0000 (12:08 +0000)]
* dwarf.c (decode_location_expression): Fix data adjustment
for DW_OP_GNU_implicit_pointer in v3+.

14 years ago * gas/config/tc-arm.c (arm_cpus): Add cortex-a15 entry.
Matthew Gretton-Dann [Thu, 9 Sep 2010 12:08:13 +0000 (12:08 +0000)]
* gas/config/tc-arm.c (arm_cpus): Add cortex-a15 entry.
* gas/doc/c-arm.texi: Document -mcpu=cortex-a15.

14 years ago * gas/config/tc-m68k.c (tc_gen_reloc): Handle references to defined
Nick Clifton [Thu, 9 Sep 2010 10:48:17 +0000 (10:48 +0000)]
    * gas/config/tc-m68k.c (tc_gen_reloc): Handle references to defined
        weak symbols first if generating an a.out object.

14 years agobinutils/
Tristan Gingold [Thu, 9 Sep 2010 10:46:33 +0000 (10:46 +0000)]
binutils/
2010-09-09  Tristan Gingold  <gingold@adacore.com>

* NEWS: Add entry to NEWS for hppa/som.

ld/
2010-09-09  Tristan Gingold  <gingold@adacore.com>

* NEWS: Add a entry for alpha-vms.

14 years agoFix PR number in previous delta.
Nick Clifton [Thu, 9 Sep 2010 10:40:54 +0000 (10:40 +0000)]
Fix PR number in previous delta.

14 years ago PR gas/11931
Nick Clifton [Thu, 9 Sep 2010 10:37:48 +0000 (10:37 +0000)]
    PR gas/11931
        * gas/mn10300/pr11931.s: New file: Test case.
        * gas/mn10300/pr11931.d: New file: Expected output.
        * gas/mn10300/basic.exp: Run the new test.

14 years ago * dwarf.h (debug_info): Add offset_info and dwarf_version fields.
Jakub Jelinek [Thu, 9 Sep 2010 10:18:12 +0000 (10:18 +0000)]
* dwarf.h (debug_info): Add offset_info and dwarf_version fields.
* dwarf.c (decode_location_expression): Add offset_size and
dwarf_version arguments.  Prefix DIE offset with 0x for
DW_OP_call{2,4,_ref}.  Fix up DW_OP_call_ref operand size,
complain if in frame info section.  Handle
DW_OP_GNU_implicit_pointer.
(read_and_display_attr_value, display_debug_loc,
display_debug_frames): Adjust decode_location_expression callers.
(process_debug_info): Save offset_size and dwarf_version values
into debug_information array.

* dwarf2.h (DW_OP_GNU_implicit_pointer): New.

14 years ago * elflink.c (bfd_elf_final_link): Correct calculation of
Bernd Schmidt [Thu, 9 Sep 2010 09:55:03 +0000 (09:55 +0000)]
* elflink.c (bfd_elf_final_link): Correct calculation of
max_external_reloc_size.

14 years ago * config/tc-arm.c (md_apply_fix): Check if widened add, sub are
Nick Clifton [Thu, 9 Sep 2010 09:09:43 +0000 (09:09 +0000)]
    * config/tc-arm.c (md_apply_fix): Check if widened add, sub are
        flag-setting and handle accordingly.

        * gas/arm/addsw-bad.s: New file.
        * gas/arm/addsw-bad.l: New file.
        * gas/arm/addsw-bad.d: New file.

14 years ago PR gas/11972
Nick Clifton [Thu, 9 Sep 2010 07:40:11 +0000 (07:40 +0000)]
    PR gas/11972
        * config/tc-arm.c (parse_big_immediate): Allow for bignums being
        extended to the size of a .octa.

14 years ago2010-09-03 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola [Thu, 9 Sep 2010 00:13:08 +0000 (00:13 +0000)]
2010-09-03  Rafael Espindola  <espindola@google.com>

      * layout.cc (Layout::set_segment_offsets): Always advance to a new page.

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

14 years agodaily update
Alan Modra [Thu, 9 Sep 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago2010-09-08 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 8 Sep 2010 23:54:51 +0000 (23:54 +0000)]
2010-09-08  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_exidx_cantunwind::do_print_to_mapfile): New method.
(Arm_relobj::do_relocate_sections): Add new parameter for output
file to match the parent.
(Target_arm::scan_reloc_section_for_stubs): Use would-be final values
of local symbols instead of input values.  Update code to track
changes in gold::relocate_section.
* object.cc (Sized_relobj::compute_final_local_value): New methods.
(Sized_relobj::compute_final_local_value_internal): New methods.
(Sized_relobj::do_finalize_local_symbols): Move code from loop
body into private version of Sized_relobj::compute_final_local_value.
Call the inline method.
* object.h (Symbol_value::Symbol_value): Define destructor.  Free
merged symbol value if there is one.
(Symbol_value::has_output_value): New method defintiion.
(Sized_relobj::Compute_final_local_value_status): New enum type.
(Sized_relobj::compute_final_local_value): New methods.
(Sized_relobj::compute_final_local_value_internal): New methods.
* Makefile.am (check_SCRIPTS): Add arm_branch_out_of_range.sh
and arm_cortex_a8.sh.
(thumb_bl_out_of_range_local, arm_cortex_a8_b_cond, arm_cortex_a8_bl,
arm_cortex_a8_blx, arm_cortex_a8_local, arm_corte_a8_local_reloc):
New tests.
* Makefile.in: Regenerate.
* testsuite/arm_bl_out_of_range.s: Update test.
* testsuite/thumb_bl_out_of_range.s: Ditto.
* testsuite/thumb_blx_out_of_range.s: Ditto.
* testsuite/arm_branch_out_of_range.sh: New file.
* testsuite/arm_cortex_a8.sh: Ditto.
* testsuite/arm_cortex_a8_b.s: Ditto.
* testsuite/arm_cortex_a8_b_cond.s: Ditto.
* testsuite/arm_cortex_a8_b_local.s: Ditto.
* testsuite/arm_cortex_a8_bl.s: Ditto.
* testsuite/arm_cortex_a8_blx.s: Ditto.
* testsuite/arm_cortex_a8_local.s: Ditto.
* testsuite/arm_cortex_a8_local_reloc.s: Ditto.
* testsuite/thumb_bl_out_of_range_local.s: Ditto.

14 years ago * gdb.cp/templates.exp (test_template_args): Allow "struct".
Daniel Jacobowitz [Wed, 8 Sep 2010 23:41:40 +0000 (23:41 +0000)]
* gdb.cp/templates.exp (test_template_args): Allow "struct".

14 years ago * dwarf2read.c (dwarf2_compute_name): Check that the first
Daniel Jacobowitz [Wed, 8 Sep 2010 23:34:11 +0000 (23:34 +0000)]
* dwarf2read.c (dwarf2_compute_name): Check that the first
argument is a pointer.

14 years ago * dwarf2read.c (read_func_scope, read_structure_type)
Daniel Jacobowitz [Wed, 8 Sep 2010 23:14:52 +0000 (23:14 +0000)]
* dwarf2read.c (read_func_scope, read_structure_type)
(read_common_block): Check for a NULL return from new_symbol.

14 years ago2010-09-08 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola [Wed, 8 Sep 2010 21:06:53 +0000 (21:06 +0000)]
2010-09-08  Rafael Espindola  <espindola@google.com>

* Makefile.am (memory_test.stdout): Run readelf with -W
* Makefile.in: Regenerate.
* testsuite/memory_test.sh: Make the regexps accept both 32 and 64 bit outputs.

14 years ago2010-09-08 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola [Wed, 8 Sep 2010 20:08:14 +0000 (20:08 +0000)]
2010-09-08  Rafael Espindola  <espindola@google.com>

* script-sections.cc (Script_sections::add_memory_region): Convert
field precision to int.
* script.cc (script_set_section_region, script_set_section_region):
Convert field precision to int.

14 years agogdb/
Jan Kratochvil [Wed, 8 Sep 2010 19:49:28 +0000 (19:49 +0000)]
gdb/
* dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.

14 years ago gdb/
Daniel Jacobowitz [Wed, 8 Sep 2010 19:09:43 +0000 (19:09 +0000)]
gdb/
* dwarf2read.c (read_structure_type): Move processing of
fields and member functions from here...
(process_structure_scope): ... to here.

gdb/testsuite/
* gdb.cp/templates.cc (Empty, FunctionArg): New classes.
(FunctionArg::method): New function.
(empty, arg): New variables.
(main): Call arg.method.
* gdb.cp/templates.exp (test_template_args): New function.
(do_tests): Call it.

14 years ago * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
Daniel Jacobowitz [Wed, 8 Sep 2010 18:53:34 +0000 (18:53 +0000)]
* gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
the domain type.
(gnuv3_make_method_ptr): Likewise.

14 years ago2010-09-08 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola [Wed, 8 Sep 2010 18:31:35 +0000 (18:31 +0000)]
2010-09-08  Rafael Espindola  <espindola@google.com>

* arm.cc (do_finalize_sections): Create the __exidx_start and
__exdix_end symbols even when the section is missing.

14 years ago * breakpoint.c (create_breakpoint): Add missing _().
Tom Tromey [Wed, 8 Sep 2010 18:05:42 +0000 (18:05 +0000)]
* breakpoint.c (create_breakpoint): Add missing _().

14 years ago * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
Doug Evans [Wed, 8 Sep 2010 17:52:50 +0000 (17:52 +0000)]
* dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.

14 years ago * gdb.threads/threxit-hop-specific.exp: Use "continue" instead
Ulrich Weigand [Wed, 8 Sep 2010 17:49:54 +0000 (17:49 +0000)]
* gdb.threads/threxit-hop-specific.exp: Use "continue" instead
of "next" to proceed over pthread_exit call.

14 years ago * config/tc-arm.c (create_neon_reg_alias): Deal with case
Nathan Sidwell [Wed, 8 Sep 2010 17:49:21 +0000 (17:49 +0000)]
* config/tc-arm.c (create_neon_reg_alias): Deal with case
sensitivity.

14 years ago * gdb.base/maint.exp: Avoid wildcards against potentially very long
Ulrich Weigand [Wed, 8 Sep 2010 17:22:26 +0000 (17:22 +0000)]
* gdb.base/maint.exp: Avoid wildcards against potentially very long
"maint print statistics" output to prevent expect timeouts.

14 years ago Revert:
Tom Tromey [Wed, 8 Sep 2010 17:17:42 +0000 (17:17 +0000)]
Revert:
2010-09-01  Tom Tromey  <tromey@redhat.com>
* dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
symtab.h: Revert earlier change.

14 years ago * README: Remove claim that MEMORY is not supported.
Nick Clifton [Wed, 8 Sep 2010 16:10:33 +0000 (16:10 +0000)]
    * README: Remove claim that MEMORY is not supported.
        * expression.cc (script_exp_function_origin)
        (script_exp_function_length): Move from here to ...
        * script.cc: ... here.
        (script_set_section_region, script_add_memory)
        (script_parse_memory_attr, script_include_directive): New
        functions.
        * script-sections.cc
        (class Memory_region): New class.
        (class Output_section_definition): Add set_memory_region,
        set_section_vma, set_section_lma and get_section_name methods.
        (class Script_Sections): Add add_memory_region,
        find_memory_region, find_memory_region_origin,
        find_memory_region_length and set_memory_region methods.
        Have set_section_addresses method walk the list of set memory
        regions.
        Extend the print methos to display memory regions.
        * script-sections.h: Add prototypes for new methods.
        Add enum for MEMORY region attributes.
        * yyscript.y: Add support for parsing MEMORY regions.
        * script-c.h: Add prototypes for new functions.
        * testsuite/Makefile.am: Add test of MEMORY region functionality.
        * testsuite/Makefile.in: Regenerate.
        * testsuite/memory_test.sh: New script.
        * testsuite/memory_test.s: New assembler source file.
        * testsuite/memory_test.t: New linker script.

14 years ago PR gas/11973
Nick Clifton [Wed, 8 Sep 2010 11:07:39 +0000 (11:07 +0000)]
    PR gas/11973
        * config/tc-mn10300.c (md_convert_frag): Zero out top two bytes of
        long call instruction's displacement.

14 years ago*** empty log message ***
gdbadmin [Wed, 8 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Wed, 8 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years agomerge from gcc
DJ Delorie [Tue, 7 Sep 2010 19:28:01 +0000 (19:28 +0000)]
merge from gcc

14 years agoAdd missing files.
H.J. Lu [Tue, 7 Sep 2010 17:52:32 +0000 (17:52 +0000)]
Add missing files.

14 years ago * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
Nick Clifton [Tue, 7 Sep 2010 15:02:17 +0000 (15:02 +0000)]
    * ldwrite.c (clone_section): Call bfd_copy_private_section_data on
        newly cloned section.
        * ld-x86-64/split-by-file.rd: New test.
        * ld-x86-64/split-by-file1.s: New test source code.
        * ld-x86-64/split-by-file2.s: New test source code.
        * ld-x86-64/x86-64.exp: Run the new test.
        * readelf.c (process_section_headers): Mention meaning of 'l'
        section flag for x86-64 targets.

14 years agoFix custom bcache hash regression.
Sami Wagiaalla [Tue, 7 Sep 2010 15:00:00 +0000 (15:00 +0000)]
Fix custom bcache hash regression.

2010-09-09  Sami Wagiaalla  <swagiaal@redhat.com>

* psymtab.c (add_psymbol_to_bcache): Initialize
obj_section.
memset psymbol.ginfo.value to 0.

14 years ago*** empty log message ***
gdbadmin [Tue, 7 Sep 2010 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Tue, 7 Sep 2010 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago * peXXigen.c: Whitespace.
Alan Modra [Mon, 6 Sep 2010 23:55:10 +0000 (23:55 +0000)]
* peXXigen.c: Whitespace.
(pe_print_idata): Correct section limit calculations.  Tidy array
indexing.
(_bfd_XX_print_ce_compressed_pdata): Don't leak memory.

14 years agogdb/testsuite/
Jan Kratochvil [Mon, 6 Sep 2010 15:48:34 +0000 (15:48 +0000)]
gdb/testsuite/
* gdb.base/printcmds.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
* gdb.java/jv-print.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
* gdb.objc/print.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.
* gdb.pascal/print.exp (test_float_accepted): Import gdb_prompt.
Move here, negate and extend by XFAIL the "p 0x1.1" test from ...
(test_float_rejected): ... here.

14 years agoSync bootstrap-lto.mk and dfp.m4 with gcc.
H.J. Lu [Mon, 6 Sep 2010 15:46:09 +0000 (15:46 +0000)]
Sync bootstrap-lto.mk and dfp.m4 with gcc.

14 years ago2010-09-06 Yao Qi <yao@codesourcery.com>
Yao Qi [Mon, 6 Sep 2010 15:15:50 +0000 (15:15 +0000)]
2010-09-06  Yao Qi  <yao@codesourcery.com>

* linux-low.c (linux_kill): Remove unused variable.
(linux_stabilize_threads): Likewise.
* server.c (start_inferior): Likewise.
(queue_stop_reply_callback): Likewise.
* tracepoint.c (do_action_at_tracepoint): Likewise.

14 years ago2010-09-06 Yao Qi <yao@codesourcery.com>
Yao Qi [Mon, 6 Sep 2010 15:10:15 +0000 (15:10 +0000)]
2010-09-06  Yao Qi  <yao@codesourcery.com>

* linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
on return.

14 years ago * infrun.c (resume): Extend comment on ignoring single-step
Pedro Alves [Mon, 6 Sep 2010 14:22:07 +0000 (14:22 +0000)]
* infrun.c (resume): Extend comment on ignoring single-step
requests on vfork parents waiting for a vfork-done.

14 years agogdb/
Jan Kratochvil [Mon, 6 Sep 2010 13:59:03 +0000 (13:59 +0000)]
gdb/
* corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
is NULL.
* fork-child.c (startup_inferior) <resume_signal>: Use enum
target_signal type.
* linux-nat.c (linux_nat_resume): Use target_signal_to_host before
calling strsignal.  Use enum target_signal type for saved_signo.
(linux_handle_extended_wait) <signo>: Use enum target_signal type.
(linux_nat_wait_1): Use enum target_signal type for signo.  Use
target_signal_to_host before calling strsignal.
* remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
TARGET_SIGNAL_0.

gdb/gdbserver/
* target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.

14 years agogdb/
Jan Kratochvil [Mon, 6 Sep 2010 13:34:03 +0000 (13:34 +0000)]
gdb/
* common/signals.c (ANY): Remove.
(SET): No longer use ANY.

include/gdb/
* signals.def: Replace all ANY uses by SET with specific numbers.
* signals.h (ANY): Remove.

14 years ago2010-09-06 Yao Qi <yao@codesourcery.com>
Yao Qi [Mon, 6 Sep 2010 13:10:28 +0000 (13:10 +0000)]
2010-09-06  Yao Qi  <yao@codesourcery.com>

* infrunc(resume): When inferior is waiting_for_vfork_done,
clear step and don't use displaced stepping.

14 years ago * Makefile.in (install-only): Replace $IPA_DEPFILES with
Pedro Alves [Mon, 6 Sep 2010 10:43:58 +0000 (10:43 +0000)]
* Makefile.in (install-only): Replace $IPA_DEPFILES with
"$(IPA_DEPFILES)".

14 years agodaily update
Alan Modra [Mon, 6 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

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

14 years ago*** empty log message ***
gdbadmin [Sun, 5 Sep 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sun, 5 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago * breakpoint.c (can_use_hardware_watchpoint): Handle the first
Daniel Jacobowitz [Sat, 4 Sep 2010 15:30:09 +0000 (15:30 +0000)]
* breakpoint.c (can_use_hardware_watchpoint): Handle the first
value specially.

testsuite/
* gdb.base/watchpoint.exp: Call test_inaccessible_watchpoint
before disabling hardware watchpoints.
(test_inaccessible_watchpoint): Check that hardware watchpoints
are used.  Test for watchpoints on a constant address.

14 years agogdb/
Jan Kratochvil [Sat, 4 Sep 2010 14:27:46 +0000 (14:27 +0000)]
gdb/
Code cleanup - split print_stop_reason.
* infrun.c (enum inferior_stop_reason): Remove.
(print_stop_reason): Remove by splitting into ...
(print_exited_reason, print_signal_exited_reason)
(print_no_history_reason, print_signal_received_reason)
(print_end_stepping_range_reason): ... these new functions.  Update
the preceding comment.
(handle_inferior_event): Change the calls to print_exited_reason,
print_signal_exited_reason, print_no_history_reason,
print_signal_received_reason, print_end_stepping_range_reason.
(handle_step_into_function, handle_step_into_function_backward):
Change the calls to print_end_stepping_range_reason.

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

14 years agodaily update
Alan Modra [Sat, 4 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years agoCheck flag_code instead of use_rela_relocations for 64bit.
H.J. Lu [Fri, 3 Sep 2010 17:38:38 +0000 (17:38 +0000)]
Check flag_code instead of use_rela_relocations for 64bit.

gas/

2010-09-03  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11974
* config/tc-i386.c (i386_finalize_immediate): Check flag_code
instead of use_rela_relocations for 64bit.

gas/testsuite/

2010-09-03  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11974
* gas/i386/immed64.s: Add more movabs tests.
* gas/i386/immed64.d: Updated.

14 years agobinutils/
Jan Kratochvil [Fri, 3 Sep 2010 15:54:32 +0000 (15:54 +0000)]
binutils/
* dwarf.c (regname): New declaration.
(decode_location_expression): Print for registers also regname output.

binutils/testsuite/
* binutils-all/objdump.W: Update DW_OP_reg5 expected output.

gas/testsuite/
* gas/elf/dwarf2-1.d: Update DW_OP_reg5 expected output.
* gas/elf/dwarf2-2.d: Likewise.
* gas/i386/dw2-compress-1.d: Likewise.

14 years agogdb/
Jan Kratochvil [Fri, 3 Sep 2010 15:42:04 +0000 (15:42 +0000)]
gdb/
* breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
* cli-out.c: Include vec.h.
(cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
variable stream, initialize it, use it.
(cli_redirect): New function comment.  Replace the stream and
original_stream fields by the new streams field.  Remove the
original_stream != NULL conditional, assert error on NULL instead.
(out_field_fmt, field_separator): New variable stream, initialize it, use it.
(cli_out_data_ctor): Assert non-NULL stream.  Replace the stream and
original_stream fields by the new streams field.
(cli_out_set_stream): Replace the stream field by the new streams
field.
* cli-out.h: Include vec.h.
(ui_filep): New typedef, call DEF_VEC_P for it.
(struct cli_ui_out_data): Replace the stream and original_stream
fields by the new streams field.
* cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
NULL first.  Extend the comment.
(handle_redirections): Call ui_out_redirect with output.
* python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
calls outside of the TRY_CATCH block.

gdb/testsuite/
* gdb.base/ui-redirect.exp: New file.

14 years ago * gas/cfi/cfi-i386.d: Use objdump -Wf instead of readelf.
Richard Henderson [Fri, 3 Sep 2010 14:57:56 +0000 (14:57 +0000)]
    * gas/cfi/cfi-i386.d: Use objdump -Wf instead of readelf.
        * gas/cfi/cfi-i386.s: Remove .type directives.
        * gas/cfi/reloc-pe-i386.d: Adjust test for i386.

14 years agolibdecnumber/
Andreas Krebbel [Fri, 3 Sep 2010 13:30:58 +0000 (13:30 +0000)]
libdecnumber/

2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

    * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
    * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
    * configure: Regenerate.
    * aclocal.m4: Regenerate.
config/

2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

    * dfp.m4: New file.

14 years agoGDB 7.2 released.
gdbadmin [Fri, 3 Sep 2010 01:29:09 +0000 (01:29 +0000)]
GDB 7.2 released.

14 years agodaily update
Alan Modra [Fri, 3 Sep 2010 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Fri, 3 Sep 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agoSelect 32-bit pei for 64-bit pei configurations.
Richard Henderson [Thu, 2 Sep 2010 22:54:44 +0000 (22:54 +0000)]
Select 32-bit pei for 64-bit pei configurations.

14 years agoBack out the change introducing the "record pic" feature.
Joel Brobecker [Thu, 2 Sep 2010 22:52:06 +0000 (22:52 +0000)]
Back out the change introducing the "record pic" feature.

gdb/ChangeLog:

Back out the following change:
| 2010-06-29  Hui Zhu  <teawater@gmail.com>
| * record.c (set_record_pic_cmdlist,
| show_record_pic_cmdlist): New variables.
| (set_record_pic_command,
| show_record_pic_command): New functions.
| (record_pic_function, record_pic_line, record_pic_enum,
| set_record_pic_type, record_pic_hide_nofunction,
| record_pic_hide_nosource, record_pic_hide_same): New variables.
| (record_pic_fputs): New function.
| (function_list, node_list, edge_list): New struct.
| (function_list, node_list, edge_list): New variables.
| (record_pic_cleanups, record_pic_node,
| record_pic_edge, cmd_record_pic): New functions.
| (_initialize_record): Add new commands for record pic.

14 years ago * gas/cfi/reloc-pe-i386.d, gas/cfi/reloc-pe-i386.s: New test.
Richard Henderson [Thu, 2 Sep 2010 22:44:09 +0000 (22:44 +0000)]
* gas/cfi/reloc-pe-i386.d, gas/cfi/reloc-pe-i386.s: New test.

14 years ago * dw2gencfi.c (TC_DWARF2_EMIT_OFFSET): Provide default.
Richard Henderson [Thu, 2 Sep 2010 22:43:46 +0000 (22:43 +0000)]
* dw2gencfi.c (TC_DWARF2_EMIT_OFFSET): Provide default.
(output_fde): Use it.  Make sure to fully init exp before using it.
testsuite/
* gas/cfi/cfi-common-1.d: Use objdump instead of readelf to dump.
* gas/cfi/cfi-common-2.d, gas/cfi/cfi-common-3.d,
gas/cfi/cfi-common-4.d, gas/cfi/cfi-common-6.d,
gas/cfi/cfi-common-7.d, gas/cfi/cfi-x86_64.d: Likewise.
* gas/cfi/cfi-x86_64.s: Remove .type directives.
* gas/cfi/cfi.exp: Run for pecoff objects too.
* gas/cfi/reloc-pe-i386.d, gas/cfi/reloc-pe-i386.s: New test.

14 years ago * dwarf.c (init_dwarf_regnames_i386, init_dwarf_regnames_x86_64): New.
Richard Henderson [Thu, 2 Sep 2010 22:35:18 +0000 (22:35 +0000)]
* dwarf.c (init_dwarf_regnames_i386, init_dwarf_regnames_x86_64): New.
(init_dwarf_regnames): Use them.
* dwarf.h: Declare them.
* objdump.c (dump_dwarf): Use bfd_get_arch + bfd_get_mach to set up
the regnames, rather than using elf_machine_code.

14 years ago * objdump.c (dump_dwarf): Use bfd_arch_bits_per_address.
Richard Henderson [Thu, 2 Sep 2010 21:34:22 +0000 (21:34 +0000)]
    * objdump.c (dump_dwarf): Use bfd_arch_bits_per_address.

14 years agoFix ChangeLog entries cli-logging.c -> cli/cli-logging.c .
Jan Kratochvil [Thu, 2 Sep 2010 18:40:12 +0000 (18:40 +0000)]
Fix ChangeLog entries cli-logging.c -> cli/cli-logging.c .

14 years ago * config.in, configure: Regenerated.
Daniel Jacobowitz [Thu, 2 Sep 2010 17:12:38 +0000 (17:12 +0000)]
* config.in, configure: Regenerated.
* configure.ac: Check for waitpid.
* ser-pipe.c (pipe_close): Wait for the program to exit.

14 years agogdb/
Jan Kratochvil [Thu, 2 Sep 2010 15:42:03 +0000 (15:42 +0000)]
gdb/
* cli-logging.c: Include gdb_assert.h.
(set_logging_overwrite): New function.
(logging_redirect): New comment.
(logging_no_redirect_file, set_logging_redirect)
(pop_output_files) <logging_no_redirect_file>: New.
(handle_redirections) <!logging_redirect>: New variable
no_redirect_file.  Remove file autoclose for tee_file_new.  No longer
discard cleanup for the close of former OUTPUT.  Set
LOGGING_NO_REDIRECT_FILE.
(handle_redirections) <logging_redirect>: gdb_assert
LOGGING_NO_REDIRECT_FILE.
(show_logging_command) <logging_redirect handling>: Adjust messages
for SAVED_FILENAME not NULL.
(_initialize_cli_logging): Install set_logging_overwrite and
set_logging_redirect.

14 years agoAdd test for -file-list-exec-source-files
Joel Brobecker [Thu, 2 Sep 2010 15:19:57 +0000 (15:19 +0000)]
Add test for -file-list-exec-source-files

gdb/testsuite/ChangeLog:

        * gdb.dwarf/dw2-filename.S, gdb.dwarf/dw2-filename.exp: New files.

14 years agogdb/
Jan Kratochvil [Thu, 2 Sep 2010 14:00:21 +0000 (14:00 +0000)]
gdb/
* iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.

14 years agogdb/
Jan Kratochvil [Thu, 2 Sep 2010 13:58:06 +0000 (13:58 +0000)]
gdb/
* Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
(monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
add $(GDB_WARN_CFLAGS_NO_FORMAT).
(printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).

14 years ago2010-09-02 Yao Qi <yao@codesourcery.com>
Yao Qi [Thu, 2 Sep 2010 01:19:32 +0000 (01:19 +0000)]
2010-09-02  Yao Qi  <yao@codesourcery.com>

        * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
        number from a WIFSIGNALED status.

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

14 years agodaily update
Alan Modra [Thu, 2 Sep 2010 00:00:06 +0000 (00:00 +0000)]
daily update

14 years ago * symtab.h (lookup_type_symbol): Declare.
Tom Tromey [Wed, 1 Sep 2010 21:50:26 +0000 (21:50 +0000)]
* symtab.h (lookup_type_symbol): Declare.
* symtab.c (lookup_symbol_in_language_full): Rename from
lookup_symbol_in_language.  Add 'for_type' argument.
(lookup_symbol_in_language): New function.
(lookup_type_symbol): Likewise.
(lookup_symbol_aux): Add 'for_type' argument.
(match_symbol_aux): New function.
(lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
(match_transparent_type): New function.
(basic_lookup_transparent_type): Use expand_one_symtab_matching.
* symfile.h (struct quick_symbol_functions)
<pre_expand_symtabs_matching>: Remove.
<expand_one_symtab_matching>: New field.
* psymtab.c (expand_one_symtab_matching_psymtabs): New function.
(pre_expand_symtabs_matching_psymtabs): Remove.
(psym_functions): Update.
* gdbtypes.c (lookup_typename): Use lookup_type_symbol.
* dwarf2read.c (dw2_lookup_symbol): Update comment.
(dw2_pre_expand_symtabs_matching): Remove.
(dw2_expand_one_symtab_matching): New function.
(dwarf2_gdb_index_functions): Update.