binutils-gdb.git
11 years ago PR ld/15762
Alan Modra [Sat, 20 Jul 2013 09:50:16 +0000 (09:50 +0000)]
PR ld/15762
PR ld/12761
* elflink.c (elf_link_add_object_symbols): Don't clobber
.gnu.warning.symbol sections when shared.

11 years agodaily update
Alan Modra [Sat, 20 Jul 2013 00:00:05 +0000 (00:00 +0000)]
daily update

11 years agogold/
Roland McGrath [Fri, 19 Jul 2013 23:07:08 +0000 (23:07 +0000)]
gold/
* options.h (General_options): Add -Trodata-segment option.
* parameters.cc (Parameters::check_rodata_segment): New function.
(Parameters::set_target_once): Call it.
* parameters.h (Parameters): Declare it (private member function).
* layout.cc (load_seg_unusable_for_headers): New function, broken
out of Layout::relaxation_loop_body.  If TARGET->isolate_execinstr()
then validate rodata segment rather than text segment.
(relaxation_loop_body): Call that.
(is_text_segment): New function.  Don't admit a non-executable
segment if TARGET->isolate_execinstr().
(set_segment_offsets): Call it.  Honor -Trodata-segment option.

11 years ago[AArch64, ILP32] Retire -milp32 and -mlp64; use -mabi=ilp32 and -mabi=lp64.
Yufeng Zhang [Fri, 19 Jul 2013 16:25:54 +0000 (16:25 +0000)]
[AArch64, ILP32] Retire -milp32 and -mlp64; use -mabi=ilp32 and -mabi=lp64.

gas/

* config/tc-aarch64.c (enum aarch64_abi_type): New enumeration tag.
(AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
(aarch64_abi): New variable.
(ilp32_p): Change to be a macro.
(aarch64_opts): Remove the support for option -milp32 and -mlp64.
(struct aarch64_option_abi_value_table): New struct.
(aarch64_abis): New table.
(aarch64_parse_abi): New function.
(aarch64_long_opts): Add entry for -mabi=.
* doc/as.texinfo (Target AArch64 options): Document -mabi.
* doc/c-aarch64.texi: Likewise.

gas/testsuite/

* gas/aarch64/ilp32-basic.d (#as): Update to use -mabi=ilp32

11 years agooops - omitted from previous delta
Nick Clifton [Fri, 19 Jul 2013 13:21:55 +0000 (13:21 +0000)]
oops - omitted from previous delta

11 years ago * elf32-rx.c (rx_elf_relocate_section): Fix typo: move
Nick Clifton [Fri, 19 Jul 2013 13:16:17 +0000 (13:16 +0000)]
* elf32-rx.c (rx_elf_relocate_section): Fix typo: move
saw_subtract from R_RX_OPdiv to R_RX_OPneg.

11 years ago PR binutils/15745
Nick Clifton [Fri, 19 Jul 2013 10:44:01 +0000 (10:44 +0000)]
PR binutils/15745
* readelf.c (get_unwind_section_word): Whilst searching for a
reloc section associated with an unwind section, check the type as
well as the section number.

11 years ago * ldgram.y: Add ALIGN_WITH_INPUT output section attribute.
Nick Clifton [Fri, 19 Jul 2013 10:39:51 +0000 (10:39 +0000)]
* ldgram.y: Add ALIGN_WITH_INPUT output section attribute.
* ldlang.c: Likewise.
* ldlang.h: Likewise.
* ldlex.l: Likewise.
* mri.c: Likewise.
* ld.texinfo: Document new feature.
* NEWS: Mention new feature.

* ld-scripts/script.exp: Run align with input test.
* ld-scripts/align-with-input.t: New file.
* ld-scripts/rgn-at8.d: Likewise.
* ld-scripts/rgn-at8.t: Likewise.

11 years agogdb/testsuite/gdb.base: Enable disp-step-syscall.exp tests for ARM.
Will Newton [Fri, 19 Jul 2013 10:24:34 +0000 (10:24 +0000)]
gdb/testsuite/gdb.base: Enable disp-step-syscall.exp tests for ARM.

disp-step-syscall.exp is not run for ARM targets because ARM syscall
instructions have not been added to the list of possible syscall
instructions. This patch adds ARM syscall instructions to enable
disp-step-syscall.exp tests for ARM targets. Attached patch is tested
on ARMv7 and helps pass all disp-step-syscall.exp tests for ARM
targets.

gdb/testsuite/ChangeLog:

2013-07-19  Omair Javaid  <Omair.Javaid@linaro.org>

* gdb.base/disp-step-syscall.exp: Add svc and swi syscall
instructions and enable disp-step-syscall for arm targets.

11 years agogdb/testsuite/gdb.dwarf2: Replace @ with % for ARM compatability.
Will Newton [Fri, 19 Jul 2013 10:01:26 +0000 (10:01 +0000)]
gdb/testsuite/gdb.dwarf2: Replace @ with % for ARM compatability.

The ARM assembler recognises @ symbol as a comment marker and
therefore is unable to assemble some of gdb.dwarf2 testsuite tests.
This patch replaces all occurrences of @ symbol with % sign to allow
tests stay compatible with both ARM and x86 assembly. This patch has
been tested on x86_64 and ARMv7 targets.

gdb/testsuite/ChangeLog:

2013-07-19  Omair Javaid  <Omair.Javaid@linaro.org>

        * gdb.dwarf2/fission-reread.S: Replace @ sign with % sign to remove
        assembler errors on arm.
        * gdb.dwarf2/mac-fileno.S: Likewise.
        * gdb.dwarf2/member-ptr-forwardref.S: Likewise.
        * gdb.dwarf2/pr13961.S: Likewise.

11 years ago2013-07-19 Hui Zhu <hui@codesourcery.com>
Hui Zhu [Fri, 19 Jul 2013 07:26:46 +0000 (07:26 +0000)]
2013-07-19  Hui Zhu  <hui@codesourcery.com>

PR gdb/15692
* mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.

2013-07-19  Hui Zhu  <hui@codesourcery.com>

PR gdb/15692
* gdb.mi/mi-dprintf.exp: Add double quotes test.

11 years agodaily update
Alan Modra [Fri, 19 Jul 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years agogdb/
Yao Qi [Thu, 18 Jul 2013 23:09:49 +0000 (23:09 +0000)]
gdb/

* target.c (update_current_target): Change the default action
of 'to_traceframe_info' from tcomplain to return_zero.
* target.h (struct target_ops) <to_traceframe_info>: Add more
comments.
* valops.c (read_value_memory): Call
traceframe_available_memory unconditionally.

gdb/testsuite/

* gdb.trace/read-memory.exp (test_from_remote): Update test.
(teset_from_exec): Likewise.

11 years agogdb/testsuite/
Yao Qi [Thu, 18 Jul 2013 23:04:00 +0000 (23:04 +0000)]
gdb/testsuite/

* gdb.trace/read-memory.c: New.
* gdb.trace/read-memory.exp: New.

11 years agogdb/testsuite/
Yao Qi [Thu, 18 Jul 2013 22:38:58 +0000 (22:38 +0000)]
gdb/testsuite/

* lib/gdb.exp (gdb_compile_shlib): Pass the tail name of
$dest to link options if host is remote.  Move the
generated file to $dest.a on host if host is remote.

11 years ago * ar.c (usage): Fix C conformance issue.
Nick Clifton [Thu, 18 Jul 2013 16:12:35 +0000 (16:12 +0000)]
* ar.c (usage): Fix C conformance issue.

* config/tc-i386-intel.c (i386_intel_operand): Fixed signed vs
unsigned comparison.

11 years agogdb/testsuite/gdb.threads: Ensure TLS tests link against pthreads.
Will Newton [Thu, 18 Jul 2013 15:49:22 +0000 (15:49 +0000)]
gdb/testsuite/gdb.threads: Ensure TLS tests link against pthreads.

On Ubuntu by default the compiler passes --as-needed to ld which
means no DT_NEEDED entry is added for libpthread when building
the TLS tests. This causes the test to fail as libpthread is
required to look up TLS variables. Add calls to pthread_testcancel
to make sure libpthread gets linked.

gdb/testsuite/ChangeLog:

2013-07-18  Will Newton  <will.newton@linaro.org>

* gdb.threads/tls-nodebug.c: Call pthread_testcancel
to ensure the test is linked against pthreads.
* gdb.threads/tls-var-main.c: Likewise.
* gdb.threads/tls-shared.c: Likewise.

11 years ago * doc/binutils.texi (nm, objdump): Remove bogus links to STABS
Nick Clifton [Thu, 18 Jul 2013 15:39:21 +0000 (15:39 +0000)]
* doc/binutils.texi (nm, objdump): Remove bogus links to STABS
documentation.

11 years ago PR ld/15721
Nick Clifton [Thu, 18 Jul 2013 14:08:42 +0000 (14:08 +0000)]
PR ld/15721
* elf32-msp430.c (R_MSP430_10_PCREL): Use 10-bit source and
destination masks.
* R_MSP430_2X_PCREL: Likewise.
* R_MSP430X_10_PCREL: Likewise.
* R_MSP430X_2X_PCREL: Likewise.

11 years ago PR binutils/15728
Nick Clifton [Thu, 18 Jul 2013 13:53:04 +0000 (13:53 +0000)]
PR binutils/15728
* basic-ops.h: (SUBWORDSIQI) Make declaration static.
* (SUBWORDSIHI): Likewise.
* (SUBWORDDIQI): Likewise.
* (SUBWORDDIHI): Likewise.
* (SUBWORDDISI): Likewise.

11 years ago * config/rx-defs.h: Add macros for RX100, RX200, RX600, and
Nick Clifton [Thu, 18 Jul 2013 12:15:15 +0000 (12:15 +0000)]
    * config/rx-defs.h: Add macros for RX100, RX200, RX600, and
RX610.
        * config/rx-parse.y: (rx_check_float_support): Add function to
check floating point operation support for target RX100 and
RX200.
        * config/tc-rx.c: Add CPU options RX100, RX200, RX600, and RX610.
        * doc/c-rx.texi: Add -mcpu option to recognize macros for RX100,
        RX200, RX600, and RX610

11 years ago * elf32-arm.c (arm_type_of_stub): Don't use ST_BRANCH_TO_ARM for
Nick Clifton [Thu, 18 Jul 2013 12:00:26 +0000 (12:00 +0000)]
    * elf32-arm.c (arm_type_of_stub): Don't use ST_BRANCH_TO_ARM for
thumb only targets.
        (elf32_arm_final_link_relocate): Likewise.

        * ld-arm/thumb-b-lks-sym.d: Updated to be more flexible.
        * ld-arm/thumb-bl-lks-sym.d: Likewise.

11 years ago * config/tc-avr.c (md_show_usage): Add avrxmega2 to help text
Nick Clifton [Thu, 18 Jul 2013 11:52:47 +0000 (11:52 +0000)]
* config/tc-avr.c (md_show_usage): Add avrxmega2 to help text

11 years ago * config/tc-avr.c: Make ata6289's ISA to AVR_ISA_AVR4.
Nick Clifton [Thu, 18 Jul 2013 11:47:30 +0000 (11:47 +0000)]
* config/tc-avr.c: Make ata6289's ISA to AVR_ISA_AVR4.
* doc/c-avr.texi: Likewise.

11 years ago * mach-o.c (mach_o_section_name_xlat dw): Add entry for
Nick Clifton [Thu, 18 Jul 2013 11:40:37 +0000 (11:40 +0000)]
* mach-o.c (mach_o_section_name_xlat dw): Add entry for
.debug_gdb_scripts

11 years ago * elf32-arm.c (elf32_arm_stub_long_branch_arm_nacl): New variable.
Nick Clifton [Thu, 18 Jul 2013 11:24:11 +0000 (11:24 +0000)]
* elf32-arm.c (elf32_arm_stub_long_branch_arm_nacl): New variable.
(elf32_arm_stub_long_branch_arm_nacl_pic): New variable.
(arm_build_one_stub): Increase MAXRELOCS to 3.
(arm_type_of_stub): Use them if GLOBALS->nacl_p.
(struct elf32_arm_link_hash_table): Give add_stub_section member's
pointee type a third argument.
(elf32_arm_create_or_find_stub_sec): Update caller.
(elf32_arm_size_stubs): Update argument type.
* bfd-in.h (elf32_arm_size_stubs): Update decl.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

* emultempl/armelf.em (elf32_arm_add_stub_section): Take third
argument ALIGNMENT_POWER, use it instead of constant 3.

* ld-arm/farcall-arm-nacl.d: New file.
* ld-arm/farcall-arm-nacl-pic.d: New file.
* ld-arm/farcall-data-nacl.d: New file.
* ld-arm/arm-elf.exp (armeabitests_common): Add extra element to
"action" lists for those cases to use a different dump file for NaCl
targets.
Massage $armeabitests_common to drop the extra element or the one
before it, depending on [istarget "arm*-*-nacl*"].

* ld-arm/arm-elf.exp (armelftests_common): Move all "Cortex-A8
erratum fix", Thumb-only and interworking cases to ...
(armelftests_nonacl): ... here.
(armeabitests_common): Move all "erratum 760522 fix", Thumb-only
and interworking cases to ...
(armeabitests_nonacl): ... here.

11 years ago * readelf.c (process_unwind): Do not return the result of a void
Nick Clifton [Thu, 18 Jul 2013 10:57:23 +0000 (10:57 +0000)]
* readelf.c (process_unwind): Do not return the result of a void
function.

11 years agogdb/testsuite/
Yao Qi [Thu, 18 Jul 2013 05:13:27 +0000 (05:13 +0000)]
gdb/testsuite/

* lib/future.exp (gdb_default_target_compile): Use tail name
of $destfile as the output name of compile.  Move the
generated file to $destfile on build.

11 years agogdb/testsuite/
Yao Qi [Thu, 18 Jul 2013 05:07:25 +0000 (05:07 +0000)]
gdb/testsuite/

* lib/gdb.exp (gdb_compile): Set
gdb_saved_set_unbuffered_mode_obj to
set_unbuffered_mode_saved.o if host is remote.  Invoke
remote_download to copy $unbuf_obj to host.

11 years agogdb/
Yao Qi [Thu, 18 Jul 2013 01:47:00 +0000 (01:47 +0000)]
gdb/
Commit the changelog change for my previous commit.

11 years agogdb/
Yao Qi [Thu, 18 Jul 2013 01:45:15 +0000 (01:45 +0000)]
gdb/
* coffread.c (coff_symfile_read): Iterate over minimal symbols,
if the name is prefixed by "__imp_" or "_imp_", look for minimal
symbol without prefix.  If found, set its type to
'mst_solib_trampoline'.

11 years agodaily update
Alan Modra [Thu, 18 Jul 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years ago * NEWS: Mention "set print raw frame-arguments".
Doug Evans [Wed, 17 Jul 2013 20:35:11 +0000 (20:35 +0000)]
* NEWS: Mention "set print raw frame-arguments".
* gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
* stack.c (print_raw_frame_arguments): New static global.
(print_frame_arg): Set opts.raw from print_raw_frame_arguments.
(_initialize_stack): New command "set/show print raw frame-arguments".
* valprint.c (setprintrawlist, showprintrawlist): New globals.
(set_print_raw, show_print_raw): New functions.
(_initialize_valprint): New prefix command "set/show print raw".
* valprint.h (value_print_options): Improve comments.

doc/
* gdb.texinfo (Print Settings): Document "print raw frame-arguments".

testsuite/
* gdb.python/py-frame-args.c: New file.
* gdb.python/py-frame-args.py: New file.
* gdb.python/py-frame-args.exp New file.

11 years ago * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
Doug Evans [Wed, 17 Jul 2013 20:26:28 +0000 (20:26 +0000)]
* cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
of all *list variables.

11 years ago * gdbcmd.h (togglelist): Delete.
Doug Evans [Wed, 17 Jul 2013 19:01:48 +0000 (19:01 +0000)]
* gdbcmd.h (togglelist): Delete.
* cli/cli-cmds.c (togglelist): Delete.
(init_cmd_lists): Update.
* cli/cli-cmds.h (togglelist): Delete.

11 years ago * dwarf2read.c (dwarf2_per_objfile_free): Clear
Tom Tromey [Wed, 17 Jul 2013 15:22:30 +0000 (15:22 +0000)]
* dwarf2read.c (dwarf2_per_objfile_free): Clear
dwarf2_per_objfile.

11 years agoopcodes/
Richard Sandiford [Wed, 17 Jul 2013 08:06:11 +0000 (08:06 +0000)]
opcodes/
* mips-formats.h (MAPPED_INT, MAPPED_REG, REG_PAIR): Add
ATTRIBUTE_UNUSED.

11 years ago * nto-tdep.c (nto_relocate_section_addresses): Update,
Doug Evans [Wed, 17 Jul 2013 05:28:04 +0000 (05:28 +0000)]
* nto-tdep.c (nto_relocate_section_addresses): Update,
target_section.bfd deleted.
* ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
* s390-tdep.c (s390_load): Ditto.
* solib-aix.c (solib_aix_relocate_section_addresses): Ditto.

11 years agodaily update
Alan Modra [Wed, 17 Jul 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years agoCheck for NULL character before calling strchr.
Andrew Burgess [Tue, 16 Jul 2013 21:12:14 +0000 (21:12 +0000)]
Check for NULL character before calling strchr.

  http://sourceware.org/ml/gdb-patches/2013-07/msg00322.html

gdb/ChangeLog

        * common/format.c (parse_format_string): Add checks for NULL
        character before calling strchr.

gdb/testsuite/ChangeLog

        * gdb.base/printcmds.exp (test_printf): Add tests for format
        strings with missing format specifier.

11 years ago * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
Doug Evans [Tue, 16 Jul 2013 20:43:48 +0000 (20:43 +0000)]
* solist.h (target_so_ops.find_and_open_solib): Clarify usage of
temp_pathname argument.
* nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
when opening the file fails.

11 years ago * target.h (struct target_section): Delete member bfd.
Doug Evans [Tue, 16 Jul 2013 20:41:55 +0000 (20:41 +0000)]
* target.h (struct target_section): Delete member bfd.
All users updated to use the_bfd_section->owner instead.
* exec.c (add_to_section_table): Assert bfd is expected value.
Remove initialization of target_section.bfd.
(remove_target_sections): Update.
(section_table_available_memory): Update.
(section_table_xfer_memory_partial): Update.
(print_section_info): Update.
(exec_set_section_address): Update.
* record-full.c (record_full_core_xfer_partial): Update.
* solib-svr4.c (svr4_relocate_section_addresses): Update.
* solib-target.c (solib_target_relocate_section_addresses): Update.
* symfile.c (build_section_addr_info_from_section_table): Update.
* target.c (memory_xfer_live_readonly_partial): Update.
(memory_xfer_partial_1): Update.

11 years agosimple test suite fix in gdb.ada
Tom Tromey [Tue, 16 Jul 2013 18:52:18 +0000 (18:52 +0000)]
simple test suite fix in gdb.ada

This changes one spot in gdb.ada to use standard_testfile.

* gdb.ada/info_types.exp: Use standard_testfile.

11 years agosimple test suite fix in gdb.mi
Tom Tromey [Tue, 16 Jul 2013 18:49:32 +0000 (18:49 +0000)]
simple test suite fix in gdb.mi

This is another simple test suite change for the parallelization
project.

This changes mi-basics.exp to avoid the use of subdir and objdir and
instead use standard_output_file.

There are still some uses of objdir, but as noted in a new comment in
the patch, these uses are parallel-safe.

* gdb.mi/mi-basics.exp: Use standard_output_file.
(test_dir_specification, test_cwd_specification)
(test_path_specification): Use testsubdir, not subdir and objdir.

11 years agotest suite fixlet for gdb.trace
Tom Tromey [Tue, 16 Jul 2013 18:48:31 +0000 (18:48 +0000)]
test suite fixlet for gdb.trace

This is a minor fix to clean up the last remaining test suite
parallelization issue in gdb.trace.

mi-traceframe-changed.exp refers to objdir.  This patch changes the
code to have the same effect, but avoid using that variable.

* gdb.trace/mi-traceframe-changed.exp: Don't use objdir.

11 years agodaily update
Alan Modra [Tue, 16 Jul 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years agogas/
Richard Sandiford [Mon, 15 Jul 2013 18:36:57 +0000 (18:36 +0000)]
gas/
* config/tc-mips.c (match_save_restore_list_operand): Avoid -Wformat
error with older GCCs.
(mips16_macro_build): Dereference args.

11 years ago2013-07-15 Shawn Landden <shawnlandden@gmail.com>
Cary Coutant [Mon, 15 Jul 2013 16:49:20 +0000 (16:49 +0000)]
2013-07-15  Shawn Landden  <shawnlandden@gmail.com>

gold/
PR gold/15070
* fileread.h (File_read::get_view): Clarify comment about ALIGNED.
* nacl.h (Sniff_file::View::View): Request aligned view.

11 years ago2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Ulrich Weigand [Mon, 15 Jul 2013 16:01:26 +0000 (16:01 +0000)]
2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>

* ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
now available for embedded (BookE) and server (BookS) processors,
correct mentions of 'booke' and adjust comments accordingly in order to
avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
(have_ptrace_booke_interface): Rename function and variable
'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
(booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
'hwdebug_point_cmp'. Update all uses.
(booke_find_thread_points_by_tid): Rename function
'booke_find_thread_points_by_tid' to
'hwdebug_find_thread_points_by_tid'. Update all uses.
(booke_insert_point): Rename function 'booke_insert_point' to
'hwdebug_insert_point'. Update all uses.
(booke_remove_point): Rename function 'booke_remove_point' to
'hwdebug_remove_point'. Update all uses.

11 years ago include/elf/
Maciej W. Rozycki [Mon, 15 Jul 2013 15:07:30 +0000 (15:07 +0000)]
include/elf/
* mips.h (Tag_GNU_MIPS_ABI_FP): Remove comment.
(Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE,
Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT,
Val_GNU_MIPS_ABI_FP_64): New enum.

bfd/
* elfxx-mips.c (mips_elf_merge_obj_attributes): Replace hardcoded
magic numbers with enum values.

binutils/
* readelf.c (display_mips_gnu_attribute): Replace hardcoded magic
numbers with enum values.

gdb/
* mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
numbers with enum values.

11 years ago2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
Ali Anwar [Mon, 15 Jul 2013 11:14:32 +0000 (11:14 +0000)]
2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>

        PR threads/13217
        * thread.c (thread_apply_all_command): Check for valid threads
        and thread count.
        (thread_array_cleanup): New struct.
        (set_thread_refcount): New function.

11 years agodaily update
Alan Modra [Mon, 15 Jul 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years agoopcodes/
Richard Sandiford [Sun, 14 Jul 2013 14:25:57 +0000 (14:25 +0000)]
opcodes/
* Makefile.am (mips-opc.lo, micromips-opc.lo, mips16-opc.lo): Remove
special rules.
* Makefile.in: Regenerate.
* mips-opc.c, micromips-opc.c, mips16-opc.c: Explicitly initialize
all fields.  Reformat.

11 years agogas/
Richard Sandiford [Sun, 14 Jul 2013 14:16:03 +0000 (14:16 +0000)]
gas/
* config/tc-mips.c (mips_prefer_vec_regno, mips_parse_register):
New functions, split out from...
(reg_lookup): ...here.  Remove itbl support.
(reglist_lookup): Delete.
(mips_operand_token_type): New enum.
(mips_operand_token): New structure.
(mips_operand_tokens): New variable.
(mips_add_token, mips_parse_base_start, mips_parse_argument_token)
(mips_parse_arguments): New functions.
(md_begin): Initialize mips_operand_tokens.
(mips_arg_info): Add a token field.  Remove optional_reg field.
(match_char, match_expression): New functions.
(match_const_int): Use match_expression.  Remove "s" argument
and return a boolean result.  Remove O_register handling.
(match_regno, match_reg, match_reg_range): New functions.
(match_int_operand, match_mapped_int_operand, match_msb_operand)
(match_reg_operand, match_reg_pair_operand, match_perf_reg_operand)
(match_addiusp_operand, match_clo_clz_dest_operand)
(match_lwm_swm_list_operand, match_entry_exit_operand)
(match_save_restore_list_operand, match_mdmx_imm_reg_operand)
(match_tied_reg_operand): Remove "s" argument and return a boolean
result.  Match tokens rather than text.  Update calls to
match_const_int.  Rely on match_regno to call check_regno.
(match_pcrel_operand, match_pc_operand): Replace "s" argument with
"arg" argument.  Return a boolean result.
(parse_float_constant): Replace with...
(match_float_constant): ...this new function.
(match_operand): Remove "s" argument and return a boolean result.
Update calls to subfunctions.
(mips_ip, mips16_ip): Call mips_parse_arguments.  Use match routines
rather than string-parsing routines.  Update handling of optional
registers for token scheme.

gas/testsuite/
* gas/mips/vr5400-ill.s, gas/mips/vr5400-ill.l: Add some more cases.
* gas/mips/micromips-ill.s, gas/mips/micromips-ill.l: New test.
* gas/mips/mips.exp: Run it.

11 years agogas/
Richard Sandiford [Sun, 14 Jul 2013 13:53:47 +0000 (13:53 +0000)]
gas/
* config/tc-mips.c (parse_float_constant): Split out from...
(mips_ip): ...here.

11 years agogas/
Richard Sandiford [Sun, 14 Jul 2013 13:52:52 +0000 (13:52 +0000)]
gas/
* config/tc-mips.c (INSERT_BITS, INSERT_OPERAND, MIPS16_INSERT_OPERAND):
Delete.

11 years agogas/
Richard Sandiford [Sun, 14 Jul 2013 13:51:52 +0000 (13:51 +0000)]
gas/
* config/tc-mips.c (mips32_to_16_reg_map): Delete.
(match_entry_exit_operand): New function.
(match_save_restore_list_operand): Likewise.
(match_operand): Use them.
(check_absolute_expr): Delete.
(mips16_ip): Rewrite main parsing loop to use mips_operands.

11 years agogas/
Richard Sandiford [Sun, 14 Jul 2013 13:49:14 +0000 (13:49 +0000)]
gas/
* config/tc-mips.c: Enable functions commented out in previous patch.
(SKIP_SPACE_TABS): Move further up file.
(mips32_to_micromips_reg_b_map, mips32_to_micromips_reg_c_map)
(mips32_to_micromips_reg_d_map, mips32_to_micromips_reg_e_map)
(ips32_to_micromips_reg_f_map, mips32_to_micromips_reg_g_map)
(mips32_to_micromips_reg_l_map, mips32_to_micromips_reg_m_map)
(mips32_to_micromips_reg_q_map, mips32_to_micromips_reg_n_map)
(micromips_imm_b_map, micromips_imm_c_map): Delete.
(mips_lookup_reg_pair): Delete.
(macro): Use report_bad_range and report_bad_field.
(mips_immed, expr_const_in_range): Delete.
(mips_ip): Rewrite main parsing loop to use new functions.

gas/testsuite/
* gas/mips/at-2.l: Remove duplicated $at warnings.
* gas/mips/ext-ill.l, gas/mips/lui-1.l, gas/mips/mips32r2-ill.l,
gas/mips/mips32r2-ill-nofp.l, gas/mips/mips32r2-ill-fp64.l,
gas/mips/mips64r2-ill.l, gas/mips/octeon-ill.l: Update error
messages.  Expect negative numbers to be printed as such,
rather than as large unsigned positive numbers.

11 years agogas/
Richard Sandiford [Sun, 14 Jul 2013 13:44:25 +0000 (13:44 +0000)]
gas/
* config/tc-mips.c (mips_oddfpreg_ok): Move further up file.
Change return type to bfd_boolean.
(report_bad_range, report_bad_field): New functions.
(mips_arg_info): New structure.
(match_const_int, convert_reg_type, check_regno, match_int_operand)
(match_mapped_int_operand, match_msb_operand, match_reg_operand)
(match_reg_pair_operand, match_pcrel_operand, match_perf_reg_operand)
(match_addiusp_operand, match_clo_clz_dest_operand)
(match_lwm_swm_list_operand, match_mdmx_imm_reg_operand)
(match_pc_operand, match_tied_reg_operand, match_operand)
(check_completed_insn): New functions, commented out for now.

11 years agogas/
Richard Sandiford [Sun, 14 Jul 2013 13:37:51 +0000 (13:37 +0000)]
gas/
* config/tc-mips.c (insn_insert_operand): New function.
(macro_build, mips16_macro_build): Put null character check
in the for loop and convert continues to breaks.  Use operand
structures to handle constant operands.

11 years agoinclude/opcode/
Richard Sandiford [Sun, 14 Jul 2013 13:36:51 +0000 (13:36 +0000)]
include/opcode/
* mips.h (mips_operand_type): Add OP_ENTRY_EXIT_LIST and
OP_SAVE_RESTORE_LIST.
(decode_mips16_operand): Declare.

opcodes/
* mips16-opc.c: Include mips-formats.h.
(reg_0_map, reg_29_map, reg_31_map, reg_m16_map, reg32r_map): New
static arrays.
(decode_mips16_operand): New function.
* mips-dis.c (mips16_to_32_reg_map, mips16_reg_names): Delete.
(print_insn_arg): Handle OP_ENTRY_EXIT list.
Abort for OP_SAVE_RESTORE_LIST.
(print_mips16_insn_arg): Change interface.  Use mips_operand
structures.  Delete GET_OP_S.  Move GET_OP definition to...
(print_insn_mips16): ...here.  Call init_print_arg_state.
Update the call to print_mips16_insn_arg.

11 years agoinclude/opcode/
Richard Sandiford [Sun, 14 Jul 2013 13:28:56 +0000 (13:28 +0000)]
include/opcode/
* mips.h (mips_operand_type, mips_reg_operand_type): New enums.
(mips_operand, mips_int_operand, mips_mapped_int_operand)
(mips_msb_operand, mips_reg_operand, mips_reg_pair_operand)
(mips_pcrel_operand): New structures.
(mips_insert_operand, mips_extract_operand, mips_signed_operand)
(mips_decode_int_operand, mips_decode_pcrel_operand): New functions.
(decode_mips_operand, decode_micromips_operand): Declare.

opcodes/
* mips-formats.h: New file.
* mips-opc.c: Include mips-formats.h.
(reg_0_map): New static array.
(decode_mips_operand): New function.
* micromips-opc.c: Remove <stdio.h> include.  Include mips-formats.h.
(reg_0_map, reg_28_map, reg_29_map, reg_31_map, reg_m16_map)
(reg_mn_map, reg_q_map, reg_h_map1, reg_h_map2, int_b_map)
(int_c_map): New static arrays.
(decode_micromips_operand): New function.
* mips-dis.c (micromips_to_32_reg_b_map, micromips_to_32_reg_c_map)
(micromips_to_32_reg_d_map, micromips_to_32_reg_e_map)
(micromips_to_32_reg_f_map, micromips_to_32_reg_g_map)
(micromips_to_32_reg_h_map1, micromips_to_32_reg_h_map2)
(micromips_to_32_reg_l_map, micromips_to_32_reg_m_map)
(micromips_to_32_reg_n_map, micromips_to_32_reg_q_map)
(micromips_imm_b_map, micromips_imm_c_map): Delete.
(print_reg): New function.
(mips_print_arg_state): New structure.
(init_print_arg_state, print_insn_arg): New functions.
(print_insn_args): Change interface and use mips_operand structures.
Delete GET_OP_S.  Move GET_OP definition to...
(print_insn_mips): ...here.  Update the call to print_insn_args.
(print_insn_micromips): Use print_insn_args.

gas/
* config/tc-mips.c (validate_mips_insn): Move further up file.
Add insn_bits and decode_operand arguments.  Use the mips_operand
fields to work out which bits an operand occupies.  Detect double
definitions.
(validate_micromips_insn): Move further up file.  Call into
validate_mips_insn.

11 years agogas/
Richard Sandiford [Sun, 14 Jul 2013 13:17:55 +0000 (13:17 +0000)]
gas/
* config/tc-mips.c (mips16_macro_build): Remove 'Y' case.

11 years agogas/
Richard Sandiford [Sun, 14 Jul 2013 13:15:25 +0000 (13:15 +0000)]
gas/
* config/tc-mips.c (macro_build): Take an int for "C", "k", "\\"
and "~".
(macro): Update accordingly.

11 years agogas/
Richard Sandiford [Sun, 14 Jul 2013 13:13:43 +0000 (13:13 +0000)]
gas/
* config/tc-mips.c (imm_expr, imm2_expr, offset_expr): Tweak commentary.
(imm_reloc): Delete.
(md_assemble): Remove imm_reloc handling.
(mips_ip): Update commentary.  Use offset_expr and offset_reloc
rather than imm_expr and imm_reloc for 'i', 'j' and 'u'.
Use a temporary array rather than imm_reloc when parsing
constant expressions.  Remove imm_reloc initialization.
(mips16_ip): Update commentary.  Use offset_expr and offset_reloc
for the relaxable field.  Use a relax_char variable to track the
type of this field.  Remove imm_reloc initialization.

11 years agoinclude/opcode/
Richard Sandiford [Sun, 14 Jul 2013 13:11:03 +0000 (13:11 +0000)]
include/opcode/
* mips.h: Document MIPS16 "I" opcode.

opcodes/
* mips16-opc.c (mips16_opcodes): Use "I" for immediate operands
in macros.

gas/
* config/tc-mips.c (mips16_ip): Handle "I".

11 years agoopcodes/
Richard Sandiford [Sun, 14 Jul 2013 13:07:50 +0000 (13:07 +0000)]
opcodes/
* mips-opc.c (mips_builtin_opcodes): Use "S,T" rather than "V,T" for
ADDA.S, MULA.S and SUBA.S.

11 years agodaily update
Alan Modra [Sun, 14 Jul 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years agodaily update
Alan Modra [Sat, 13 Jul 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years agobfd/
Roland McGrath [Fri, 12 Jul 2013 20:40:13 +0000 (20:40 +0000)]
bfd/
* reloc.c: Add BFD_RELOC_390_PC12DBL, BFD_RELOC_390_PLT12DBL,
BFD_RELOC_390_PC24DBL, BFD_RELOC_390_PLT24DBL (should have
been added here with 2013-07-05 elf32-s390.c change).
* bfd-in2.h: Regenerate (no-op).
* libbfd.h: Regenerate (no-op).

11 years ago include/elf/
Maciej W. Rozycki [Fri, 12 Jul 2013 15:58:15 +0000 (15:58 +0000)]
include/elf/
* mips.h (EF_MIPS_NAN2008): New macro.

bfd/
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Handle
EF_MIPS_NAN2008.
(_bfd_mips_elf_print_private_bfd_data): Likewise.

binutils/
* readelf.c (get_machine_flags): Handle EF_MIPS_NAN2008.

gas/
* config/tc-mips.c (mips_flag_nan2008): New variable.
(options): Add OPTION_NAN enum value.
(md_longopts): Handle it.
(md_parse_option): Likewise.
(s_nan): New function.
(mips_elf_final_processing): Handle EF_MIPS_NAN2008.
(md_show_usage): Add -mnan.

* doc/as.texinfo (Overview): Add -mnan.
* doc/c-mips.texi (MIPS Opts): Document -mnan.
(MIPS NaN Encodings): New node.  Document .nan directive.
(MIPS-Dependent): List the new node.

gas/testsuite/
* gas/mips/nan-2008-1.d: New test.
* gas/mips/nan-2008-2.d: New test.
* gas/mips/nan-2008-3.d: New test.
* gas/mips/nan-2008-4.d: New test.
* gas/mips/nan-legacy-1.d: New test.
* gas/mips/nan-legacy-2.d: New test.
* gas/mips/nan-legacy-3.d: New test.
* gas/mips/nan-legacy-4.d: New test.
* gas/mips/nan-legacy-5.d: New test.
* gas/mips/nan-error-1.l: New list test.
* gas/mips/nan-error-2.l: New list test.
* gas/mips/nan-2008-override.s: New test source.
* gas/mips/nan-2008.s: New test source.
* gas/mips/nan-legacy-override.s: New test source.
* gas/mips/nan-legacy.s: New test source.
* gas/mips/nan-error-1.s: New test source.
* gas/mips/nan-error-2.s: New test source.
* gas/mips/mips.exp: Run the new tests.

ld/testsuite/
* ld-mips-elf/nan-2008.d: New test.
* ld-mips-elf/nan-legacy.d: New test.
* ld-mips-elf/nan-mixed-1.d: New test.
* ld-mips-elf/nan-mixed-2.d: New test.
* ld-mips-elf/nan-2008.s: New test source.
* ld-mips-elf/nan-legacy.s: New test source.

11 years agodaily update
Alan Modra [Fri, 12 Jul 2013 00:00:05 +0000 (00:00 +0000)]
daily update

11 years agogold/
Cary Coutant [Thu, 11 Jul 2013 21:30:56 +0000 (21:30 +0000)]
gold/
* powerpc.cc (Target_powerpc::write_branch_lookup_table): Use
correct BRLT entry size.

11 years agoReuse print_hex_chars function.
Andrew Burgess [Thu, 11 Jul 2013 09:07:41 +0000 (09:07 +0000)]
Reuse print_hex_chars function.

http://sourceware.org/ml/gdb-patches/2013-07/msg00234.html

* infcmd.c (default_print_one_register_info): Reuse code in
print_hex_chars.

11 years agodaily update
Alan Modra [Thu, 11 Jul 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years ago2013-07-10 Jack Howarth <howarth@bromo.med.uc.edu>
Mike Stump [Wed, 10 Jul 2013 20:55:59 +0000 (20:55 +0000)]
2013-07-10  Jack Howarth  <howarth@bromo.med.uc.edu>

    PR target/57792
    * configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on darwin13 and later.
    * configure: Regenerated.

11 years ago * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
Tom Tromey [Wed, 10 Jul 2013 18:13:52 +0000 (18:13 +0000)]
* Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
(ada-exp.o): New target.

11 years agoinclude/coff/
Tristan Gingold [Wed, 10 Jul 2013 08:16:34 +0000 (08:16 +0000)]
include/coff/
2013-07-10  Tristan Gingold  <gingold@adacore.com>

* rs6000.h (external_core_dumpx): New structure.
(external_ld_info32): Ditto.

binutils/
2013-07-10  Tristan Gingold  <gingold@adacore.com>

* od-xcoff.c (OPT_LDINFO): Define.
(options): Add ldinfo.
(xcoff_help): Mention ldinfo.
(xcoff_dump): Rename to ...
(xcoff_dump_obj): ... this.  Add a break.
(dump_dumpx_core): New function.
(xcoff_dump_core): Likewise.
(xcoff_dump): Likewise.
* doc/binutils.texi (objdump): Mention ldinfo.

11 years agohttp://sourceware.org/ml/gdb-patches/2013-07/msg00065.html
Sergio Durigan Junior [Wed, 10 Jul 2013 03:15:05 +0000 (03:15 +0000)]
sourceware.org/ml/gdb-patches/2013-07/msg00065.html

Doug Evans committed the change above, but forgot to update one of
the callers of get_raw_print_options, at mt-tdep.c.  This commit fixes
this.

2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>

* mt-tdep.c (mt_registers_info): Call
get_no_prettyformat_print_options instead of
get_raw_print_options (regression by last patch from Doug
Evans).

11 years ago[testsuite/Ada] Add testing of access to packed arrays.
Joel Brobecker [Wed, 10 Jul 2013 00:35:01 +0000 (00:35 +0000)]
[testsuite/Ada] Add testing of access to packed arrays.

This patch adds some tests that evidence a regression fixed by
the following patch from Pedro Alves:

    [PATCH] ada-lang.c:coerce_unspec_val_to_type: Preserve laziness
    http://www.sourceware.org/ml/gdb-patches/2013-07/msg00178.html

gdb/testsuite/ChangeLog:

        * gdb.ada/arrayptr/foo.adb: Add some code defining an access
        to a packed array.
        * gdb.ada/arrayptr.exp: Add a few tests using that new access
        to packed array.

11 years agoada-lang.c:coerce_unspec_val_to_type: Preserve laziness.
Joel Brobecker [Wed, 10 Jul 2013 00:34:38 +0000 (00:34 +0000)]
ada-lang.c:coerce_unspec_val_to_type: Preserve laziness.

ada-lang.c:coerce_unspec_val_to_type does:

      if (value_lazy (val)
  || TYPE_LENGTH (type) > TYPE_LENGTH (value_type (val)))
result = allocate_value_lazy (type);
      else
{
  result = allocate_value (type);
  memcpy (value_contents_raw (result), value_contents (val),
  TYPE_LENGTH (type));
}
      set_value_component_location (result, val);
      set_value_bitsize (result, value_bitsize (val));
      set_value_bitpos (result, value_bitpos (val));
      set_value_address (result, value_address (val));
      set_value_optimized_out (result, value_optimized_out (val));

Notice that before value_optimized_out was made to auto-fetch lazy
values, VAL would end up still lazy if it was lazy on entry.  It's not
really a problem here if VAL is lazy, and VAL->optimized_out is 0,
because RESULT is also left lazy.  IOW, this just wants to copy the
VAL->optimized_out flag to RESULT->optimized_out, nothing else.

As a side-effect of the change in value_optimized_out, the following
testcase now regresses. Consider:

       type Small is range -64 .. 63;
       for Small'Size use 7;
       type Arr is array (1..10) of Small;
       pragma Pack (Arr);

       type Arr_Ptr is access Arr;
       An_Arr_Ptr : Arr_Ptr := new Arr'(10, 20, 30, 40, 50, 60, 62, 63,
                                        -23, 42);

    Trying to print one element of An_Arr_Ptr yields:

        (gdb) p an_arr_ptr(3)
        Cannot access memory at address 0x0

The patch adds the value_optimized_out_const function for that,
allowing us to avoid trying to fetch a value at a dummy address.

(I found this out by grepping for set_value_optimized_out and trying
to convert the uses I found to instead allocate the value with
allocate_optimized_out_value.)

Tested on x86_64 Fedora 17.

gdb/
2013-07-09  Pedro Alves  <palves@redhat.com>

* ada-lang.c (coerce_unspec_val_to_type): Use
value_optimized_out_const.
* value.c (value_optimized_out_const): New function.
* value.h (value_optimized_out_const): New declaration.

11 years agoFix FAIL: gdb.ada/small_reg_param.exp: continue to call_me
Joel Brobecker [Wed, 10 Jul 2013 00:10:37 +0000 (00:10 +0000)]
Fix FAIL: gdb.ada/small_reg_param.exp: continue to call_me

If enough information is provided by the compiler, the debugger
now prints the entry value of various parameters:

    (gdb) continue
    Continuing.

    Breakpoint 2, pck.call_me (w=w@entry=50) at [...]
    20            Last_Word := W;

This patch adjusts the expected output to allow an optional
"w@entry=" in the parameter value.

gdb/testsuite/ChangeLog:

        * gdb.ada/small_reg_param.exp: Accept optional entry value
        for parameter "w".

11 years agoRemove trailing space in gdb.ada/small_reg_param.exp
Joel Brobecker [Wed, 10 Jul 2013 00:10:26 +0000 (00:10 +0000)]
Remove trailing space in gdb.ada/small_reg_param.exp

gdb/testsuite/ChangeLog:

        * gdb.ada/small_reg_param.exp: Remove trailing space.

11 years agodaily update
Alan Modra [Wed, 10 Jul 2013 00:00:03 +0000 (00:00 +0000)]
daily update

11 years agogas/testsuite/
Richard Sandiford [Tue, 9 Jul 2013 17:15:13 +0000 (17:15 +0000)]
gas/testsuite/
* gas/mips/la-reloc.s, gas/mips/la-reloc.d, gas/mips/dla-reloc.s,
gas/mips/dla-reloc.d: Add files missing from earlier commit.

11 years ago * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
Doug Evans [Tue, 9 Jul 2013 16:57:09 +0000 (16:57 +0000)]
* defs.h (enum val_prettyformat): Renamed from val_prettyprint.
Enum values rename as well.  All uses updated.
* valprint.h (value_print_options): Rename member pretty to
pretty format.  Rename member prettyprint_arrays to
prettyformat_arrays.  Rename member prettyprint_structs to
prettyformat_structs.  All uses updated.
(get_no_prettyformat_print_options): Renamed from
get_raw_print_options.
* valprint.c (get_no_prettyformat_print_options): Renamed from
get_raw_print_options.  All callers updated.
(show_prettyformat_structs): Renamed from show_prettyprint_structs.
All callers updated.
(show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
All callers updated.
(_initialize_valprint): Improve help text for "set print pretty" and
"set print arrays".

testsuite/
* gdb.base/default.exp: Update expected output of "show print array"
and "show print pretty".

11 years agomerge from gcc
DJ Delorie [Tue, 9 Jul 2013 16:04:44 +0000 (16:04 +0000)]
merge from gcc

11 years agoRevert recent changes to value_bits_valid.
Andrew Burgess [Tue, 9 Jul 2013 14:11:53 +0000 (14:11 +0000)]
Revert recent changes to value_bits_valid.

  http://sourceware.org/ml/gdb-patches/2013-07/msg00243.html

  * value.c (value_bits_valid): Revert previous change, and change
  by Pedro on 2013-07-04, due to regressions in
  gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.

11 years ago2013-07-09 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 9 Jul 2013 10:12:22 +0000 (10:12 +0000)]
2013-07-09  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (struct vms_private_data_struct): Remove
flag_hash_long_names and flag_show_after_trunc.
(hash_string): Remove.
(_bfd_vms_length_hash_symbol): Remove.
(alpha_vms_write_exec): Remove call to _bfd_vms_length_hash_symbol.
(_bfd_vms_write_egsd): Likewise.  Rewrite condition.
(_bfd_vms_write_ehdr): Remove code that set removed flags.
(_bfd_vms_write_etir): Remove call to _bfd_vms_length_hash_symbol.
(vms_bfd_is_local_label_name): Remove trace call.

11 years ago2013-07-09 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 9 Jul 2013 07:44:25 +0000 (07:44 +0000)]
2013-07-09  Tristan Gingold  <gingold@adacore.com>

* makefile.vms (OBJS): Add dwarfnames.obj

11 years agobinutils/
Tristan Gingold [Tue, 9 Jul 2013 07:32:14 +0000 (07:32 +0000)]
binutils/
2013-07-09  Tristan Gingold  <gingold@adacore.com>

* configure.com: Add new defines to match changes in configure.

gas/
2013-07-09  Tristan Gingold  <gingold@adacore.com>

* configure.com: Define HAVE_SYS_TYPES_H and HAVE_UNISTD_H

11 years ago2013-07-09 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 9 Jul 2013 07:03:53 +0000 (07:03 +0000)]
2013-07-09  Tristan Gingold  <gingold@adacore.com>

* hosts/alphavms.h: Include config.h and ansidecl.h, remove useless
macros.
* configure.com: Adjust to match changes in configure.
* makefile.vms (OBJS): Update list.

11 years agodaily update
Alan Modra [Tue, 9 Jul 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years ago * scripttempl/elf.sc: Handle function names and other
Jeff Law [Mon, 8 Jul 2013 17:07:15 +0000 (17:07 +0000)]
* scripttempl/elf.sc: Handle function names and other
text after .text.unlikely too.

11 years agoReplace Xmmword with Qword on cvttps2pi
H.J. Lu [Mon, 8 Jul 2013 16:24:21 +0000 (16:24 +0000)]
Replace Xmmword with Qword on cvttps2pi

gas/testsuite/

PR gas/13572
* gas/i386/simd.s: Add a test for cvttps2pi.
* gas/i386/simd-intel.d: Updated.
* gas/i386/simd.d: Likewise.

opcodes/

PR gas/13572
* i386-opc.tbl: Replace Xmmword with Qword on cvttps2pi.
* i386-tbl.h: Regenerated.

11 years ago2013-07-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 8 Jul 2013 13:16:08 +0000 (13:16 +0000)]
2013-07-08  Tristan Gingold  <gingold@adacore.com>

* ia64.h (STB_VMS_WEAK, STB_VMS_SYSTEM): Add.

11 years ago2013-07-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 8 Jul 2013 13:02:21 +0000 (13:02 +0000)]
2013-07-08  Tristan Gingold  <gingold@adacore.com>

* scripttempl/ia64vms.sc: Add support of per data and per function
sections.

11 years ago2013-07-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
Ulrich Weigand [Mon, 8 Jul 2013 11:35:49 +0000 (11:35 +0000)]
2013-07-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>

* gdb.threads/wp-replication.exp: Stop counting available hardware
watchpoints after NR_THREADS iterations.

11 years agoAdd $gdb_prompt to test regexp.
Andrew Burgess [Mon, 8 Jul 2013 11:16:01 +0000 (11:16 +0000)]
Add $gdb_prompt to test regexp.

http://sourceware.org/ml/gdb-patches/2013-07/msg00173.html

* gdb.python/py-explore.exp: Add $gdb_prompt to test regexp.

11 years agoFix bug in value_bits_valid.
Andrew Burgess [Mon, 8 Jul 2013 10:21:33 +0000 (10:21 +0000)]
Fix bug in value_bits_valid.

http://sourceware.org/ml/gdb-patches/2013-07/msg00174.html

* value.c (value_bits_valid): If the value is not lval_computed
or has no check validity handler then the answer is the
optimized_out flag, otherwise defer to the handler.