public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] avoid compiler warnings in remote-m32r-sdi.c
@ 2016-02-25 17:42 sergiodj+buildbot
  2016-02-25 17:43 ` Failures on RHEL-s390x-m64, branch master sergiodj+buildbot
                   ` (19 more replies)
  0 siblings, 20 replies; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-25 17:42 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 1547ef64562ebbfcdc768ce93979f09bdd119b11 ***

Author: Doug Evans <dje@google.com>
Branch: master
Commit: 1547ef64562ebbfcdc768ce93979f09bdd119b11

avoid compiler warnings in remote-m32r-sdi.c

gdb/ChangeLog:

	* remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
	compiler warning.
	(recv_long_data): Ditto.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add aarch64-*-rtems* target
@ 2016-02-26 20:30 sergiodj+buildbot
  2016-02-26 20:58 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 20:30 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 12a132db164ea95e9e457427c2c97005f94c5a70 ***

Author: Joel Sherrill <joel@rtems.org>
Branch: master
Commit: 12a132db164ea95e9e457427c2c97005f94c5a70

Add aarch64-*-rtems* target


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add x86_64-*-rtems* target
@ 2016-02-26 20:20 sergiodj+buildbot
  2016-02-26 20:26 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 20:20 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT f73dbb0e48ef50d2743fed89b68530b731329f05 ***

Author: Joel Sherrill <joel.sherrill@oarcorp.com>
Branch: master
Commit: f73dbb0e48ef50d2743fed89b68530b731329f05

Add x86_64-*-rtems* target

	ld/configure.tgt: Also add stanza for x86_64-*-elf.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [BFD][AARCH64]Fix MOVW_SABS_G(0, 1, 2) relocation overflow check.
@ 2016-02-26 18:19 sergiodj+buildbot
  2016-02-26 18:38 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 18:19 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT c5e3a3641ea9d6ed2918021fd77925825d24e9be ***

Author: Renlin Li <renlin.li@arm.com>
Branch: master
Commit: c5e3a3641ea9d6ed2918021fd77925825d24e9be

[BFD][AARCH64]Fix MOVW_SABS_G(0,1,2) relocation overflow check.

For these three relocations, 17 bit signed value should be used, instead of
16 bit. The bitsize field is changed from 16 to 17, this field in aarch64
backend is used for overflow check only.

bfd/

2016-02-26  Renlin Li  <renlin.li@arm.com>

    * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
    check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.

ld/

2016-02-26  Renlin Li  <renlin.li@arm.com>

    * testsuite/ld-aarch64/aarch64-elf.exp: Run new testcases.
    * testsuite/ld-aarch64/emit-relocs-270.d: Update to use new boundary.
    * testsuite/ld-aarch64/emit-relocs-271.d: Likewise.
    * testsuite/ld-aarch64/emit-relocs-272.d: Likewise.
    * testsuite/ld-aarch64/emit-relocs-270-overflow.d: New.
    * testsuite/ld-aarch64/emit-relocs-270-overflow.s: New.
    * testsuite/ld-aarch64/emit-relocs-271-overflow.d: New.
    * testsuite/ld-aarch64/emit-relocs-271-overflow.s: New.
    * testsuite/ld-aarch64/emit-relocs-272-overflow.d: New.
    * testsuite/ld-aarch64/emit-relocs-272-overflow.s: New.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Optimize x86 GOT32X/GOTPCRELX relocations
@ 2016-02-26 17:52 sergiodj+buildbot
  2016-02-26 18:00 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 17:52 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT bae420ef26f4331415b0503141c5931318025906 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: bae420ef26f4331415b0503141c5931318025906

Optimize x86 GOT32X/GOTPCRELX relocations

R_386_GOT32X, R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX relocations
retrieve the symbol address via its GOT slot.  If the symbol address is
known at the link-time, we can use it directly by changing instruction
encoding.  Indirect branch can only be converted to PC relative direct
branch.  MOV can be changed to LEA or encoded differently with signed
address.  The subset of binary operations can be encoded only with
signed address.

If undefined weak symbol is resolved to zero link-time, we can use it
as address.  Zero addresss can't used with PC relative direct branch
when PIC is true since the current PC is unknown.  In 64-bit, 32-bit
relocation for PC relatiave direct branch to zero may also overflow.

If this optimization causes relocation overflow, --no-relax can be used
to work around it.

bfd/

	PR ld/19609
	* elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
	load with locally bound symbols if PIC is false or there is no
	base register.  Optimize branch to 0 if PIC is false.
	(elf_i386_relocate_section): Don't generate dynamic relocations
	against undefined weak symbols if PIC is false.
	* elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
	if we can't estimate relocation overflow with --no-relax.
	Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
	symbols if PIC is false.  Optimize branch to 0 if PIC is false.
	(elf_x86_64_relocate_section): Don't generate dynamic relocations
	against undefined weak symbols if PIC is false.

ld/

	PR ld/19609
	* testsuite/ld-i386/got1.dd: Updated.
	* testsuite/ld-i386/lea1c.d: Likewise.
	* testsuite/ld-i386/load1-nacl.d: Likewise.
	* testsuite/ld-i386/load1.d: Likewise.
	* testsuite/ld-i386/load4b.d: Likewise.
	* testsuite/ld-i386/load5b.d: Likewise.
	* testsuite/ld-i386/mov1b.d: Likewise.
	* testsuite/ld-x86-64/mov1b.d: Likewise.
	* testsuite/ld-x86-64/mov1d.d: Likewise.
	* testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
	* testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
	* testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
	* testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
	* testsuite/ld-x86-64/gotpcrel1.dd: Likewise.
	* testsuite/ld-x86-64/lea1a.d: Likewise.
	* testsuite/ld-x86-64/lea1b.d: Likewise.
	* testsuite/ld-x86-64/lea1c.d: Likewise.
	* testsuite/ld-x86-64/lea1d.d: Likewise.
	* testsuite/ld-x86-64/lea1e.d: Likewise.
	* testsuite/ld-x86-64/lea1f.d: Likewise.
	* testsuite/ld-x86-64/mov1b.d: Likewise.
	* testsuite/ld-x86-64/mov1d.d: Likewise.
	* testsuite/ld-x86-64/pr13082-3b.d: Likewise.
	* testsuite/ld-x86-64/pr13082-4b.d: Likewise.
	* testsuite/ld-x86-64/lea1.s: Add tests for 32-bit registers.
	* testsuite/ld-i386/pr19609-1.s: New file.
	* testsuite/ld-i386/pr19609-1a.d: Likewise.
	* testsuite/ld-i386/pr19609-1b.d: Likewise.
	* testsuite/ld-i386/pr19609-1c.d: Likewise.
	* testsuite/ld-i386/pr19609-1d.d: Likewise.
	* testsuite/ld-i386/pr19609-1e.d: Likewise.
	* testsuite/ld-i386/pr19609-1f.d: Likewise.
	* testsuite/ld-i386/pr19609-1g.d: Likewise.
	* testsuite/ld-i386/pr19609-1h.d: Likewise.
	* testsuite/ld-i386/pr19609-1i.d: Likewise.
	* testsuite/ld-i386/pr19609-2.s: Likewise.
	* testsuite/ld-i386/pr19609-2a.d: Likewise.
	* testsuite/ld-i386/pr19609-2b.d: Likewise.
	* testsuite/ld-i386/pr19609-2c.d: Likewise.
	* testsuite/ld-i386/undefweak.s: Likewise.
	* testsuite/ld-i386/undefweaka.d: Likewise.
	* testsuite/ld-i386/undefweakb.d: Likewise.
	* testsuite/ld-x86-64/pr13082-3c.d: Likewise.
	* testsuite/ld-x86-64/pr13082-3d.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1.s: Likewise.
	* testsuite/ld-x86-64/pr19609-1a.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1b.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1c.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1d.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1e.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1f.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1g.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1h.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1i.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1j.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1k.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1l.d: Likewise.
	* testsuite/ld-x86-64/pr19609-1m.d: Likewise.
	* testsuite/ld-x86-64/pr19609-2.s: Likewise.
	* testsuite/ld-x86-64/pr19609-2a.d: Likewise.
	* testsuite/ld-x86-64/pr19609-2b.d: Likewise.
	* testsuite/ld-x86-64/pr19609-2c.d: Likewise.
	* testsuite/ld-x86-64/pr19609-2d.d: Likewise.
	* testsuite/ld-x86-64/pr19609-3.s: Likewise.
	* testsuite/ld-x86-64/pr19609-3a.d: Likewise.
	* testsuite/ld-x86-64/pr19609-3b.d: Likewise.
	* testsuite/ld-x86-64/pr19609-4.s: Likewise.
	* testsuite/ld-x86-64/pr19609-4a.d: Likewise.
	* testsuite/ld-x86-64/pr19609-4b.d: Likewise.
	* testsuite/ld-x86-64/pr19609-4c.d: Likewise.
	* testsuite/ld-x86-64/pr19609-4d.d: Likewise.
	* testsuite/ld-x86-64/pr19609-4e.d: Likewise.
	* testsuite/ld-x86-64/pr19609-5.s: Likewise.
	* testsuite/ld-x86-64/pr19609-5a.d: Likewise.
	* testsuite/ld-x86-64/pr19609-5b.d: Likewise.
	* testsuite/ld-x86-64/pr19609-5c.d: Likewise.
	* testsuite/ld-x86-64/pr19609-5d.d: Likewise.
	* testsuite/ld-x86-64/pr19609-5e.d: Likewise.
	* testsuite/ld-x86-64/pr19609-6.s: Likewise.
	* testsuite/ld-x86-64/pr19609-6a.d: Likewise.
	* testsuite/ld-x86-64/pr19609-6b.d: Likewise.
	* testsuite/ld-x86-64/pr19609-6c.d: Likewise.
	* testsuite/ld-x86-64/pr19609-6d.d: Likewise.
	* testsuite/ld-x86-64/pr19609-7.s: Likewise.
	* testsuite/ld-x86-64/pr19609-7a.d: Likewise.
	* testsuite/ld-x86-64/pr19609-7b.d: Likewise.
	* testsuite/ld-x86-64/pr19609-7c.d: Likewise.
	* testsuite/ld-x86-64/pr19609-7d.d: Likewise.
	* testsuite/ld-i386/i386.exp: Run undefweak tests and tests for
	PR ld/19609.
	* testsuite/ld-x86-64/x86-64.exp: Run pr13082-3c, pr13082-3d
	and tests for PR ld/19609.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Rename gdb.reverse/aarch64.{exp, c} to gdb.reverse/insn-reverse.{exp, c}
@ 2016-02-26 16:01 sergiodj+buildbot
  2016-02-26 16:02 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 16:01 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT ce90fefec908ee50ae5a3b22b03447df638a54c1 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: ce90fefec908ee50ae5a3b22b03447df638a54c1

Rename gdb.reverse/aarch64.{exp,c} to gdb.reverse/insn-reverse.{exp,c}

gdb/testsuite:

2016-02-26  Yao Qi  <yao.qi@linaro.org>

	* gdb.reverse/aarch64.c: Rename to ...
	* gdb.reverse/insn-reverse.c: ... it.
	* gdb.reverse/aarch64.exp: Rename to ...
	* gdb.reverse/insn-reverse.exp: ... it.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix various bugs in arm_record_exreg_ld_st_insn
@ 2016-02-26 16:00 sergiodj+buildbot
  2016-02-26 17:11 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 16:00 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 9fde51ed303ea3ecbaa7c0084ea417e775a5db29 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 9fde51ed303ea3ecbaa7c0084ea417e775a5db29

Fix various bugs in arm_record_exreg_ld_st_insn

This patch fixes various bugs in arm_record_exreg_ld_st_insn, and use
gdb.reverse/insn-reverse.c to test more arm instructions.

 - Set flag SINGLE_REG correctly.  In the arch reference manual,
   SING_REG is true when the bit 8 of instruction is zero.
 - Record the right D registers for instructions changing S registers.
 - Fix the order of length and address in record_buf_mem array.
 - Shift the offset by 2 instead of by 24.

This patch also fixes one internal error,

(gdb) PASS: gdb.reverse/finish-precsave.exp: BP at end of main
continue^M
Continuing.^M
../../binutils-gdb/gdb/utils.c:1072: internal-error: virtual memory exhausted.^M
A problem internal to GDB has been detected,FAIL: gdb.reverse/finish-precsave.exp: run to end of main (GDB internal error)

gdb:

2016-02-26  Yao Qi  <yao.qi@linaro.org>

	* arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
	per bit 8.  Check bit 20 instead of bit 4 for VMOV
	instruction.  Record D registers for instructions changing
	S registers.  Change of the order of length and address
	in record_buf_mem array.

gdb/testsuite:

2016-02-26  Yao Qi  <yao.qi@linaro.org>

	* gdb.reverse/insn-reverse.c [__arm__] (ext_reg_load): New.
	[__arm__] (ext_reg_mov, ext_reg_push_pop): New.
	(testcases): Update.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Record right reg num of thumb special data instructions
@ 2016-02-26 15:51 sergiodj+buildbot
  2016-02-26 16:39 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 15:51 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 1f33efec7c6d1357d7e867176cfb88942fc513a8 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 1f33efec7c6d1357d7e867176cfb88942fc513a8

Record right reg num of thumb special data instructions

When GDB decodes these thumb special data instructions, such as 'mov sp, r7'
the Rd is got incorrectly.  According to the arch reference manual, the Rd
is DN:Rdn, in which DN is bit 7 and Rdn is bits 0 to 2.  This patch fixes it.

gdb:

2016-02-26  Yao Qi  <yao.qi@linaro.org>

	* arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
	number of Rd.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Generalize gdb.reverse/aarch64.exp
@ 2016-02-26 15:15 sergiodj+buildbot
  2016-02-26 15:29 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 15:15 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 3263bceb4f76b783a44aeea417a9fb69dab26ee5 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 3263bceb4f76b783a44aeea417a9fb69dab26ee5

Generalize gdb.reverse/aarch64.exp

I said we can generialize gdb.reverse/aarch64.exp for other
architectures https://sourceware.org/ml/gdb-patches/2015-05/msg00482.html
and here is the patch to change aarch64.exp so that it can be used to
test for other architectures as well.

gdb/testsuite:

2016-02-26  Yao Qi  <yao.qi@linaro.org>

	* gdb.reverse/aarch64.c: [__aarch64__] Include arm_neon.h.
	(testcase_ftype): New.
	(testcases): New array.
	(n_testcases): New.
	(main): Call each element in testcases.
	* gdb.reverse/aarch64.exp: Remove is_aarch64_target check.
	(read_testcase): New.
	Do the tests in a loop.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Properly implement STT_COMMON
@ 2016-02-26 14:51 sergiodj+buildbot
  2016-02-26 14:58 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 14:51 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT b8871f357fdfa9c0c06d2d3e5600391d8c994f37 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: b8871f357fdfa9c0c06d2d3e5600391d8c994f37

Properly implement STT_COMMON

The BFD configure option, --enable-elf-stt-common, can't be to used to
verify STT_COMMON implementation with the normal binutils build.  Instead,
this patch removes it from BFD.  It adds --elf-stt-common=[no|yes] to ELF
assembler/objcopy and adds -z common/-z nocommon to ld.

A configure option, --enable-elf-stt-common, is added to gas to specify
whether ELF assembler should generate common symbols with the STT_COMMON
type by default.

Since BSF_KEEP_G is never used, it is renamed to BSF_ELF_COMMON for ELF
common symbols.

bfd/

	PR ld/19645
	* bfd.c (bfd): Change flags to 20 bits.
	(BFD_CONVERT_ELF_COMMON): New.
	(BFD_USE_ELF_STT_COMMON): Likewise.
	(BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
	BFD_USE_ELF_STT_COMMON.
	(BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
	* configure.ac: Remove --enable-elf-stt-common.
	* elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
	common symbol depending on BFD_CONVERT_ELF_COMMON and
	BFD_USE_ELF_STT_COMMON.
	* elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
	STT_COMMON.
	* elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
	STT_COMMON.
	(elf_link_convert_common_type): New function.
	(elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
	common symbol depending on BFD_CONVERT_ELF_COMMON and
	BFD_USE_ELF_STT_COMMON.  Set sym.st_info after sym.st_shndx.
	* elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
	and BFD_USE_ELF_STT_COMMON to object_flags.
	(TARGET_LITTLE_SYM): Likewise.
	* syms.c (BSF_KEEP_G): Renamed to ...
	(BSF_ELF_COMMON): This.
	* bfd-in2.h: Regenerated.
	* config.in: Likewise.
	* configure: Likewise.

binutils/

	PR ld/19645
	* NEWS: Mention --elf-stt-common= for objcopy.
	* doc/binutils.texi: Document --elf-stt-common= for objcopy.
	* objcopy.c (do_elf_stt_common): New.
	(command_line_switch): Add OPTION_ELF_STT_COMMON.
	(copy_options): Add --elf-stt-common=.
	(copy_usage): Add --elf-stt-common=.
	(copy_object): Also check do_elf_stt_common for ELF targets.
	(copy_file): Handle do_elf_stt_common.
	(copy_main): Handle OPTION_ELF_STT_COMMON.
	* readelf.c (apply_relocations): Support STT_COMMON.
	* testsuite/binutils-all/common-1.s: New file.
	* testsuite/binutils-all/common-1a.d: Likewise.
	* testsuite/binutils-all/common-1b.d: Likewise.
	* testsuite/binutils-all/common-1c.d: Likewise.
	* testsuite/binutils-all/common-1d.d: Likewise.
	* testsuite/binutils-all/common-1e.d: Likewise.
	* testsuite/binutils-all/common-1f.d: Likewise.
	* testsuite/binutils-all/common-2.s: Likewise.
	* testsuite/binutils-all/common-2a.d: Likewise.
	* testsuite/binutils-all/common-2b.d: Likewise.
	* testsuite/binutils-all/common-2c.d: Likewise.
	* testsuite/binutils-all/common-2d.d: Likewise.
	* testsuite/binutils-all/common-2e.d: Likewise.
	* testsuite/binutils-all/common-2f.d: Likewise.
	* testsuite/binutils-all/objcopy.exp
	(objcopy_test_elf_common_symbols): New proc.
	Run objcopy_test_elf_common_symbols for ELF targets

gas/

	PR ld/19645
	* NEWS: Mention --enable-elf-stt-common and --elf-stt-common=
	for ELF assemblers.
	* as.c (flag_use_elf_stt_common): New.
	(show_usage): Add --elf-stt-common=.
	(option_values): Add OPTION_ELF_STT_COMMON.
	(std_longopts): Add --elf-stt-common=.
	(parse_args): Handle --elf-stt-common=.
	* as.h (flag_use_elf_stt_common): New.
	* config.in: Regenerated.
	* configure: Likewise.
	* configure.ac: Add --enable-elf-stt-common and define
	DEFAULT_GENERATE_ELF_STT_COMMON.
	* gas/write.c (write_object_file): Set BFD_CONVERT_ELF_COMMON
	and BFD_USE_ELF_STT_COMMON if flag_use_elf_stt_common is set.
	* doc/as.texinfo: Document --elf-stt-common=.
	* testsuite/gas/elf/common3.s: New file.
	* testsuite/gas/elf/common3a.d: Likewise.
	* testsuite/gas/elf/common3b.d: Likewise.
	* testsuite/gas/elf/common4.s: Likewise.
	* testsuite/gas/elf/common4a.d: Likewise.
	* testsuite/gas/elf/common4b.d: Likewise.
	* testsuite/gas/i386/dw2-compress-3b.d: Likewise.
	* testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
	* testsuite/gas/elf/elf.exp: Run common3a, common3b, common4a
	and common4b.
	* testsuite/gas/i386/dw2-compress-3.d: Renamed to ...
	* testsuite/gas/i386/dw2-compress-3a.d: This.  Pass
	--elf-stt-common=no to as.
	* testsuite/gas/i386/dw2-compressed-3.d: Renamed to ...
	* testsuite/gas/i386/dw2-compressed-3a.d: This.  Pass
	--elf-stt-common=no to as.
	* testsuite/gas/i386/i386.exp: Run dw2-compress-3a,
	dw2-compress-3b, dw2-compressed-3a and dw2-compressed-3b instead
	of dw2-compress-3 and dw2-compressed-3.

include/

	PR ld/19645
	* bfdlink.h (bfd_link_elf_stt_common): New enum.
	(bfd_link_info): Add elf_stt_common.

ld/

	PR ld/19645
	* NEWS: Mention -z common/-z nocommon for ELF targets.
	* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
	-z common and -z nocommon.
	* ld.texinfo: Document -z common/-z nocommon.
	* lexsup.c (elf_shlib_list_options): Add -z common/-z nocommon.
	* testsuite/ld-elf/tls_common.exp: Test --elf-stt-common=no and
	--elf-stt-common=yes with assembler.
	* testsuite/ld-elfcomm/common-1.s: New file.
	* testsuite/ld-elfcomm/common-1a.d: Likewise.
	* testsuite/ld-elfcomm/common-1b.d: Likewise.
	* testsuite/ld-elfcomm/common-1c.d: Likewise.
	* testsuite/ld-elfcomm/common-1d.d: Likewise.
	* testsuite/ld-elfcomm/common-1e.d: Likewise.
	* testsuite/ld-elfcomm/common-1f.d: Likewise.
	* testsuite/ld-elfcomm/common-2.s: Likewise.
	* testsuite/ld-elfcomm/common-2a.d: Likewise.
	* testsuite/ld-elfcomm/common-2b.d: Likewise.
	* testsuite/ld-elfcomm/common-2c.d: Likewise.
	* testsuite/ld-elfcomm/common-2d.d: Likewise.
	* testsuite/ld-elfcomm/common-2e.d: Likewise.
	* testsuite/ld-elfcomm/common-2f.d: Likewise.
	* testsuite/ld-elfcomm/common-3a.rd: Likewise.
	* testsuite/ld-elfcomm/common-3b.rd: Likewise.
	* testsuite/ld-i386/pr19645.d: Likewise.
	* testsuite/ld-i386/pr19645.s: Likewise.
	* testsuite/ld-x86-64/largecomm-1.s: Likewise.
	* testsuite/ld-x86-64/largecomm-1a.d: Likewise.
	* testsuite/ld-x86-64/largecomm-1b.d: Likewise.
	* testsuite/ld-x86-64/largecomm-1c.d: Likewise.
	* testsuite/ld-x86-64/largecomm-1d.d: Likewise.
	* testsuite/ld-x86-64/largecomm-1e.d: Likewise.
	* testsuite/ld-x86-64/largecomm-1f.d: Likewise.
	* testsuite/ld-x86-64/pr19645.d: Likewise.
	* testsuite/ld-x86-64/pr19645.s: Likewise.
	* testsuite/ld-elfcomm/elfcomm.exp: Test --elf-stt-common=yes
	with assembler.
	(assembler_generates_commons): Removed.
	Run -z common/-z nocommon tests.  Run *.d tests.
	* testsuite/ld-i386/i386.exp: Run pr19645.
	* testsuite/ld-x86-64/x86-64.exp: Likewise.
	* testsuite/ld-x86-64/dwarfreloc.exp: Test --elf-stt-common with
	assembler.  Test STT_COMMON with readelf.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [x86] Resolve non-PIC undefweak symbols in executable
@ 2016-02-26 13:10 sergiodj+buildbot
  2016-02-26 13:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 13:10 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT aec6b87e0b66d707ead62ca40d220ee78b4cf5a5 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: aec6b87e0b66d707ead62ca40d220ee78b4cf5a5

[x86] Resolve non-PIC undefweak symbols in executable

For i386 and x86-64, non-PIC references to undefined weak symbols are
resolved without dynamic relocation when creating executable.  Resolved
undefined weak symbols are removed from the dynamic symbol table in
executable.  One exception is on i386, we need resolved undefined weak
symbols in the dynamic symbol table in PIE if input relocatable files
contain branchs without PLT so that we can branch to 0 with dynamic
relocation in text section.

This makes behaviors of dynamic executable and position independent
executable predictable with mixed PIC and non-PIC references to undefined
weak symbols.  If all references to undefined weak symbols are PIC,
dynamic relocations against undefined weak symbols will be generated
in executable unless -z nodynamic-undefined-weak is passed to linker.

bfd/

	PR ld/19636
	PR ld/19704
	PR ld/19719
	* elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
	(elf_i386_link_hash_entry): Add has_got_reloc and
	has_non_got_reloc.
	(elf_i386_link_hash_table): Add interp.
	(elf_i386_link_hash_newfunc): Initialize has_got_reloc and
	has_non_got_reloc.
	(elf_i386_copy_indirect_symbol): Copy has_got_reloc and
	has_non_got_reloc.
	(elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
	(elf_i386_fixup_symbol): New function.
	(elf_i386_pie_finish_undefweak_symbol): Likewise.
	(elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
	relocations and discard relocations against resolved undefined
	weak symbols in executable.  Don't make resolved undefined weak
	symbols in executable dynamic.  Keep dynamic non-GOT/non-PLT
	relocation against undefined weak symbols in PIE.
	(elf_i386_size_dynamic_sections): Set interp to .interp section.
	(elf_i386_relocate_section): Don't generate dynamic relocations
	against resolved undefined weak symbols in PIE, except for
	R_386_PC32.
	(elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
	dynamic PLT/GOT relocations for resolved undefined weak symbols.
	Don't generate dynamic relocation against resolved undefined weak
	symbol in executable.
	(elf_i386_finish_dynamic_sections): Call
	elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
	(elf_backend_fixup_symbol): New.
	* elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
	(elf_x86_64_link_hash_entry): Add has_got_reloc and
	has_non_got_reloc.
	(elf_x86_64_link_hash_table): Add interp.
	(elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
	has_non_got_reloc.
	(elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
	has_non_got_reloc.
	(elf_x86_64_check_relocs): Set has_got_reloc and
	has_non_got_reloc.
	(elf_x86_64_fixup_symbol): New function.
	(elf_x86_64_pie_finish_undefweak_symbol): Likewise.
	(elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
	relocations and discard relocations against resolved undefined
	weak symbols in executable.  Don't make resolved undefined weak
	symbols in executable dynamic.
	(elf_x86_64_size_dynamic_sections): Set interp to .interp section.
	(elf_x86_64_relocate_section): Check relocation overflow for
	dynamic relocations against unresolved weak undefined symbols.
	Don't generate dynamic relocations against resolved weak
	undefined symbols in PIE.
	(elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
	dynamic PLT/GOT relocations for resolved undefined weak symbols.
	Don't generate dynamic relocation against resolved undefined weak
	symbol in executable.
	(elf_x86_64_finish_dynamic_sections): Call
	elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
	(elf_backend_fixup_symbol): New.

include/

	PR ld/19636
	PR ld/19704
	PR ld/19719
	* bfdlink.h (bfd_link_info): Add dynamic_undefined_weak.

ld/

	PR ld/19636
	PR ld/19704
	PR ld/19719
	* Makefile.am (ELF_X86_DEPS): Add dynamic_undefined_weak.sh.
	* Makefile.in: Regenerated.
	* NEWS: Mention -z nodynamic-undefined-weak.
	* ld.texinfo: Document -z nodynamic-undefined-weak.
	* ldmain.c (main): Initialize dynamic_undefined_weak to -1.
	* emulparams/dynamic_undefined_weak.sh: New file.
	* emulparams/elf32_x86_64.sh: Source dynamic_undefined_weak.sh.
	* emulparams/elf_i386.sh: Likewise.
	* emulparams/elf_i386_be.sh: Likewise.
	* emulparams/elf_i386_chaos.sh: Likewise.
	* emulparams/elf_i386_ldso.sh: Likewise.
	* emulparams/elf_i386_vxworks.sh: Likewise.
	* emulparams/elf_iamcu.sh: Likewise.
	* emulparams/elf_k1om.sh: Likewise.
	* emulparams/elf_l1om.sh: Likewise.
	* emulparams/elf_x86_64.sh: Likewise.
	* emulparams/extern_protected_data.sh (PARSE_AND_LIST_OPTIONS):
	Append.
	(PARSE_AND_LIST_ARGS_CASE_Z): Likewise.
	* testsuite/ld-elf/pr19719a.c: New file.
	* testsuite/ld-elf/pr19719b.c: Likewise.
	* testsuite/ld-elf/pr19719c.c: Likewise.
	* testsuite/ld-elf/pr19719d.c: Likewise.
	* testsuite/ld-i386/pr19636-1.s: Likewise.
	* testsuite/ld-i386/pr19636-1a.d: Likewise.
	* testsuite/ld-i386/pr19636-1b.d: Likewise.
	* testsuite/ld-i386/pr19636-1c.d: Likewise.
	* testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
	* testsuite/ld-i386/pr19636-1d.d: Likewise.
	* testsuite/ld-i386/pr19636-1e.d: Likewise.
	* testsuite/ld-i386/pr19636-1f.d: Likewise.
	* testsuite/ld-i386/pr19636-1g.d: Likewise.
	* testsuite/ld-i386/pr19636-1h.d: Likewise.
	* testsuite/ld-i386/pr19636-1i.d: Likewise.
	* testsuite/ld-i386/pr19636-2.s: Likewise.
	* testsuite/ld-i386/pr19636-2a.d: Likewise.
	* testsuite/ld-i386/pr19636-2b.d: Likewise.
	* testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
	* testsuite/ld-i386/pr19636-2c.d: Likewise.
	* testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
	* testsuite/ld-i386/pr19636-2d.d: Likewise.
	* testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
	* testsuite/ld-i386/pr19636-2e.d: Likewise.
	* testsuite/ld-i386/pr19636-3.s: Likewise.
	* testsuite/ld-i386/pr19636-3a.d: Likewise.
	* testsuite/ld-i386/pr19636-3b.d: Likewise.
	* testsuite/ld-i386/pr19636-3c.d: Likewise.
	* testsuite/ld-i386/pr19636-3d.d: Likewise.
	* testsuite/ld-i386/pr19636-3e.d: Likewise.
	* testsuite/ld-i386/pr19636-3f.d: Likewise.
	* testsuite/ld-i386/pr19636-3g.d: Likewise.
	* testsuite/ld-i386/pr19636-4.s: Likewise.
	* testsuite/ld-i386/pr19636-4a.d: Likewise.
	* testsuite/ld-i386/pr19636-4b.d: Likewise.
	* testsuite/ld-i386/pr19636-4c.d: Likewise.
	* testsuite/ld-i386/pr19636-4d.d: Likewise.
	* testsuite/ld-i386/pr19704.out: Likewise.
	* testsuite/ld-i386/pr19704a.c: Likewise.
	* testsuite/ld-i386/pr19704b.c: Likewise.
	* testsuite/ld-x86-64/pr19636-1.s: Likewise.
	* testsuite/ld-x86-64/pr19636-1a.d: Likewise.
	* testsuite/ld-x86-64/pr19636-1b.d: Likewise.
	* testsuite/ld-x86-64/pr19636-1c.d: Likewise.
	* testsuite/ld-x86-64/pr19636-1d.d: Likewise.
	* testsuite/ld-x86-64/pr19636-1e.d: Likewise.
	* testsuite/ld-x86-64/pr19636-1f.d: Likewise.
	* testsuite/ld-x86-64/pr19636-1g.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2.s: Likewise.
	* testsuite/ld-x86-64/pr19636-2a.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2b.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2c.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2d.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2e.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2f.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2g.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2h.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2i.d: Likewise.
	* testsuite/ld-x86-64/pr19636-3.s: Likewise.
	* testsuite/ld-x86-64/pr19636-3a.d: Likewise.
	* testsuite/ld-x86-64/pr19636-3b.d: Likewise.
	* testsuite/ld-x86-64/pr19636-3c.d: Likewise.
	* testsuite/ld-x86-64/pr19636-3d.d: Likewise.
	* testsuite/ld-x86-64/pr19704.out: Likewise.
	* testsuite/ld-x86-64/pr19704a.c: Likewise.
	* testsuite/ld-x86-64/pr19704b.c: Likewise.
	* testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): New.
	Run mix_pic_and_non_pic.
	* testsuite/ld-i386/i386.exp (undefined_weak): New.
	Run undefined_weak and PR ld/19636 tests.
	* testsuite/ld-x86-64/x86-64.exp: Likewise.
	* testsuite/ld-x86-64/pr13082-3b.d: Updated.
	* testsuite/ld-x86-64/pr13082-4b.d: Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix powerpc64 -r --save-restore-funcs
@ 2016-02-26 13:00 sergiodj+buildbot
  2016-02-26 13:10 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-26 13:00 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT b32547cd11bec3baf53e0dedf3c733cd3e0839f6 ***

Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: b32547cd11bec3baf53e0dedf3c733cd3e0839f6

Fix powerpc64 -r --save-restore-funcs

	* elf64-ppc.c (create_linkage_sections): Create sfpr when
	save_restore_funcs, rest of sections when not relocatable.
	(ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
	(sfpr_define): Define all symbols on emitted code.
	(ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
	when relocatable.  Move sfpr_define loop earlier.


^ permalink raw reply	[flat|nested] 215+ messages in thread
[parent not found: <ab50308758bfde9ab7b50e6def65e20f0b560702@gdb-build>]
* [binutils-gdb] Remove gdb.base/branches.c
@ 2016-02-25 17:22 sergiodj+buildbot
  2016-02-25 17:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-25 17:22 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 6cb59ff1111c1d5e955ca0eeddab6f03db0fbfb7 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 6cb59ff1111c1d5e955ca0eeddab6f03db0fbfb7

Remove gdb.base/branches.c

This patch removes gdb.base/branches.c which was added by the following
commit, but it is not used at all.

commit ea8122af1432abdeb256b2c669eb3d0cf8cb97bf
Author: John Metzler <jmetzler@cygnus>
Date:   Thu Apr 16 17:56:11 1998 +0000

    Thu Apr 16 10:52:34 1998  John Metzler  <jmetzler@cygnus.com>

        * gdb.base/branches.c: Code with lots of loops and
        subroutines. Used to test gdbs ability to single step through PC
        changes, especially to test mips-tdep.c:mips_next_pc

gdb/testsuite:

2016-02-25  Yao Qi  <yao.qi@linaro.org>

	* gdb.base/branches.c: Remove.


^ permalink raw reply	[flat|nested] 215+ messages in thread
[parent not found: <ae91f6253926e4dadebcae90772f4f5a5bd06056@gdb-build>]
[parent not found: <166616ce00e0c27fa3f556bcdeb908d4c0212393@gdb-build>]
[parent not found: <678b48b7cf0bd518ebc234bda98229cc602c2a45@gdb-build>]
[parent not found: <7337a6f2297cdd91bb852b479b284e5796d62cc9@gdb-build>]
* [binutils-gdb] Map registers to remote numbers when encoding an ax_reg or ax_reg_mask operation
@ 2016-02-25 14:46 sergiodj+buildbot
  2016-02-25 14:57 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-25 14:46 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 1eb7c2d886c0faac42d2b68862b0e6b0d3182d98 ***

Author: Antoine Tremblay <antoine.tremblay@ericsson.com>
Branch: master
Commit: 1eb7c2d886c0faac42d2b68862b0e6b0d3182d98

Map registers to remote numbers when encoding an ax_reg or ax_reg_mask operation

When encoding the agent expression operation ax_reg or ax_reg_mask, the
register number used is internal to GDB. However GDBServer expects a tdesc
based number.

This usually does not cause a problem since at the moment, for raw
registers GDBServer R trace action ignores the register mask and just
collects all registers.

It can be a problem, however with pseudo registers on some platforms if the
tdesc number doesn't match the GDB internal register number.

This is the case with ARM, the upcoming ARM tracepoint support, fails
these test cases without this patch:

gdb.trace/collection.exp: collect register locals collectively:*

GDBSever would exit with: unhandled register size
Since the register number is not mapped.

This patch fixes these issues by calling gdbarch_remote_register_number
before encoding the register number in the ax_reg or ax_reg_mask operation.

Tested on x86 native-gdbserver no regressions observed.

gdb/ChangeLog:

	* ax-general.c (ax_reg): Call gdbarch_remote_register_number.
	(ax_reg_mask): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add elf_x86_64_need_pic
@ 2016-02-25 12:24 sergiodj+buildbot
  2016-02-25 12:36 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-25 12:24 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT ef77d6af7cade17c566e4d1ecff098b841972f17 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: ef77d6af7cade17c566e4d1ecff098b841972f17

Add elf_x86_64_need_pic

Add elf_x86_64_need_pic and replace x86_64_elf_howto_table[r_type].name
with howto->name.

	* elf64-x86-64.c (elf_x86_64_need_pic): New function.
	(elf_x86_64_relocate_section): Use it.  Replace
	x86_64_elf_howto_table[r_type] with howto.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Update symbol version for symbol from linker script
@ 2016-02-24 23:37 sergiodj+buildbot
  2016-02-24 23:42 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 23:37 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 0f550b3df1d4ae31d12505cf93981313c9c6dd25 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 0f550b3df1d4ae31d12505cf93981313c9c6dd25

Update symbol version for symbol from linker script

We need to update symbol version for symbols from linker script.

bfd/

	PR ld/19698
	* elflink.c (bfd_elf_record_link_assignment): Set versioned if
	symbol version is unknown.

ld/

	PR ld/19698
	* testsuite/ld-elf/pr19698.d: New file.
	* testsuite/ld-elf/pr19698.s: Likewise.
	* testsuite/ld-elf/pr19698.t: Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Handle MIPS Linux SIGTRAP siginfo.si_code values
@ 2016-02-24 23:11 sergiodj+buildbot
  2016-02-24 23:19 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 23:11 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT e7ad2f145c05bc60b1cd2796c8f3b72f02e3e730 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: e7ad2f145c05bc60b1cd2796c8f3b72f02e3e730

Handle MIPS Linux SIGTRAP siginfo.si_code values

This unbreaks pending/delayed breakpoints handling, as well as
hardware watchpoints, on MIPS.

Ref: https://sourceware.org/ml/gdb-patches/2016-02/msg00681.html

The MIPS kernel reports SI_KERNEL for all kernel generated traps,
instead of TRAP_BRKPT / TRAP_HWBKPT, but GDB isn't aware of this.

Basically, this commit:

- Folds watchpoints logic into check_stopped_by_breakpoint, and
  renames it to save_stop_reason.

- Adds GDB_ARCH_IS_TRAP_HWBKPT.

- Makes MIPS set both GDB_ARCH_IS_TRAP_BRPT and
  GDB_ARCH_IS_TRAP_HWBKPT to SI_KERNEL.  In save_stop_reason, we
  handle the case of the same si_code returning true for both
  TRAP_BRPT and TRAP_HWBKPT by looking at what the debug registers
  say.

Tested on x86-64 Fedora 20, native and gdbserver.

gdb/ChangeLog:
2016-02-24  Pedro Alves  <palves@redhat.com>

	* linux-nat.c (save_sigtrap) Delete.
	(stop_wait_callback): Call save_stop_reason instead of
	save_sigtrap.
	(check_stopped_by_breakpoint): Rename to ...
	(save_stop_reason): ... this.  Bits of save_sigtrap folded here.
	Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
	GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.  Factor out
	common code between the USE_SIGTRAP_SIGINFO and
	!USE_SIGTRAP_SIGINFO blocks.
	(linux_nat_filter_event): Call save_stop_reason instead of
	save_sigtrap.
	* nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
	si_code for MIPS.
	* nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table.  Add
	comments on MIPS behavior.
	(GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.

gdb/gdbserver/ChangeLog:
2016-02-24  Pedro Alves  <palves@redhat.com>

	* linux-low.c (check_stopped_by_breakpoint): Rename to ...
	(save_stop_reason): ... this.  Use GDB_ARCH_IS_TRAP_HWBKPT and
	handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
	Factor out common code between the USE_SIGTRAP_SIGINFO and
	!USE_SIGTRAP_SIGINFO blocks.
	(linux_low_filter_event): Call save_stop_reason instead of
	check_stopped_by_breakpoint and check_stopped_by_watchpoint.
	Update comments.
	(linux_wait_1): Update comments.


^ permalink raw reply	[flat|nested] 215+ messages in thread
[parent not found: <338435ef105ff51e967571ad073830ec1eb5a4ab@gdb-build>]
* [binutils-gdb] Move tfile-avx.exp to tracefile-pseudo-reg.exp
@ 2016-02-24 19:30 sergiodj+buildbot
  2016-02-24 19:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 19:30 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 861ca91fc65b9a53b807f6d5c5253fc33f92e7d8 ***

Author: Antoine Tremblay <antoine.tremblay@ericsson.com>
Branch: master
Commit: 861ca91fc65b9a53b807f6d5c5253fc33f92e7d8

Move tfile-avx.exp to tracefile-pseudo-reg.exp

As it is planned to add more architectures to this test, rename to a more
generic name.

gdb/testsuite/ChangeLog:

	* gdb.trace/tfile-avx.c: Move to...
	* gdb.trace/tracefile-pseudo-reg.c: Here.
	* gdb.trace/tfile-avx.exp: Move to...
	* gdb.trace/tracefile-pseudo-reg.exp: Here.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Move new skip features to proper section (post 7.11).
@ 2016-02-24 18:24 sergiodj+buildbot
  2016-02-24 19:05 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 18:24 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT d2dffb8d3be366d4d02de06e92c24c9abdb0adfc ***

Author: Doug Evans <dje@google.com>
Branch: master
Commit: d2dffb8d3be366d4d02de06e92c24c9abdb0adfc

Move new skip features to proper section (post 7.11).


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] powerpc: Support z-point type in gdbserver.
@ 2016-02-24 17:45 sergiodj+buildbot
  2016-02-24 18:08 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 17:45 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 657f9cde9d531c9929bef9e02a8064101d568f50 ***

Author: Wei-cheng Wang <cole945@gmail.com>
Branch: master
Commit: 657f9cde9d531c9929bef9e02a8064101d568f50

powerpc: Support z-point type in gdbserver.

Support z-point, so tracepoints and breakpoints can be inserted at the same
location.

gdb/gdbserver/ChangeLog:

2016-02-24  Wei-cheng Wang  <cole945@gmail.com>

	* linux-ppc-low.c (ppc_supports_z_point_type): New function:
	(ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
	(ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
	ppc_insert_point, ppc_remove_point.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Revert "ABS32"
@ 2016-02-24 15:09 sergiodj+buildbot
  2016-02-24 16:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 15:09 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 92d77487b3dbfd934c5565bab09e0f3051e0b08d ***

Author: Renlin Li <renlin.li@arm.com>
Branch: master
Commit: 92d77487b3dbfd934c5565bab09e0f3051e0b08d

Revert "ABS32"

This reverts commit 30bdf5c82e5734ac9f0b18eb7af631806d419270.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [OPCODES][ARM][1/3]Add armv8.2 fp16 instruction dissembler support.
@ 2016-02-24 14:22 sergiodj+buildbot
  2016-02-24 15:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 14:22 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT b0c11777665276f8e9b590bbe4832a7c66f5093d ***

Author: Renlin Li <renlin.li@arm.com>
Branch: master
Commit: b0c11777665276f8e9b590bbe4832a7c66f5093d

[OPCODES][ARM][1/3]Add armv8.2 fp16 instruction dissembler support.

opcodes/

2016-02-24  Renlin Li  <renlin.li@arm.com>

	* arm-dis.c (coprocessor_opcodes): Add fp16 instruction entries.
	(print_insn_coprocessor): Support fp16 instruction.

gas/

2016-02-24  Renlin Li  <renlin.li@arm.com>

	* testsuite/gas/arm/copro.d: Adjust output.
	* testsuite/gas/arm/copro.s: Adjust co-processor num.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [OPCODES][ARM]Fix mask for a few coprocessor opcodes.
@ 2016-02-24 14:12 sergiodj+buildbot
  2016-02-24 15:29 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 14:12 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 3e309328e8d91e37f2f3cea15f8a686d3bdfa700 ***

Author: Renlin Li <renlin.li@arm.com>
Branch: master
Commit: 3e309328e8d91e37f2f3cea15f8a686d3bdfa700

[OPCODES][ARM]Fix mask for a few coprocessor opcodes.

opcodes/

2016-02-24  Renlin Li  <renlin.li@arm.com>

	* arm-dis.c (coprocessor_opcodes): Fix mask for vsel, vmaxnm, vminnm,
	vrint(mpna).

gas/

2016-02-24  Renlin Li  <renlin.li@arm.com>

	* testsuite/gas/arm/mask_1.d: New.
	* testsuite/gas/arm/mask_1.s: New.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [OPCODE][ARM]Correct disassembler for cdp/cdp2, mcr/mcr2, mrc/mrc2, ldc/ldc2, stc/stc2
@ 2016-02-24 14:09 sergiodj+buildbot
  2016-02-24 15:01 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 14:09 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 8afc7bea4018bf535902503c9a25dd4a96dfa3ca ***

Author: Renlin Li <renlin.li@arm.com>
Branch: master
Commit: 8afc7bea4018bf535902503c9a25dd4a96dfa3ca

[OPCODE][ARM]Correct disassembler for cdp/cdp2, mcr/mcr2, mrc/mrc2, ldc/ldc2, stc/stc2

opcodes/

2016-02-24  Renlin Li  <renlin.li@arm.com>

	* arm-dis.c (print_insn_coprocessor): Check co-processor number for
	cpd/cpd2, mcr/mcr2, mrc/mrc2, ldc/ldc2, stc/stc2.

gas/

2016-02-24  Renlin Li  <renlin.li@arm.com>

	* testsuite/gas/arm/copro.s: Use coprocessor other than 10, 11.
	* testsuite/gas/arm/copro.d: Update.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] ABS32
@ 2016-02-24 14:07 sergiodj+buildbot
  2016-02-24 14:35 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 14:07 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 30bdf5c82e5734ac9f0b18eb7af631806d419270 ***

Author: Renlin Li <renlin.li@arm.com>
Branch: master
Commit: 30bdf5c82e5734ac9f0b18eb7af631806d419270

ABS32


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Set plt_got.offset to (bfd_vma) -1
@ 2016-02-24 13:54 sergiodj+buildbot
  2016-02-24 14:09 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 13:54 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 13f422778ff5307dad1f66d25a1d211bb8f76a8b ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 13f422778ff5307dad1f66d25a1d211bb8f76a8b

Set plt_got.offset to (bfd_vma) -1

Since plt_got.offset may be updated in x86 allocate_dynrelocs, set
plt_got.offset to (bfd_vma) -1 when setting needs_plt to 0.

	* elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
	to (bfd_vma) -1 when setting needs_plt to 0.
	* elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix logic in exec_file_locate_attach
@ 2016-02-24 12:00 sergiodj+buildbot
  2016-02-24 12:13 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24 12:00 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT bf74e428bca61022bd5cdf6bf28789a184748b4d ***

Author: Gary Benson <gbenson@redhat.com>
Branch: master
Commit: bf74e428bca61022bd5cdf6bf28789a184748b4d

Fix logic in exec_file_locate_attach

This commit fixes an error in exec_file_locate_attach where
the main executable could be loaded from outside the sysroot
if a nonempty, non-"target:" sysroot was set but the discovered
executable filename did not exist in that sysroot and did exist
on the main filesystem.

gdb/ChangeLog:

	* exec.c (exec_file_locate_attach): Do not attempt to
	locate main executable locally if not found in sysroot.

gdb/testsuite/ChangeLog:

	* gdb.base/attach-pie-noexec.exp: Do not expect an error
	message on attach.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Build unavailable-stack frames for tracepoint.
@ 2016-02-24  3:22 sergiodj+buildbot
  2016-02-24  3:34 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-24  3:22 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 50ae56ec464580492a5f987f658acc6ad82131b6 ***

Author: Wei-cheng Wang <cole945@gmail.com>
Branch: master
Commit: 50ae56ec464580492a5f987f658acc6ad82131b6

Build unavailable-stack frames for tracepoint.

gdb/ChangeLog:

2016-02-24  Wei-cheng Wang  <cole945@gmail.com>

	* rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
	unavailable PC/SP to build unavailable frame.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Remove search_parents parameter from d_lookup_symbol_imports.
@ 2016-02-21 20:46 sergiodj+buildbot
  2016-02-21 20:54 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-21 20:46 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 30a6a7f035026d05b52c92c26d4cb7ea3c6d6e5c ***

Author: Iain Buclaw <ibuclaw@gdcproject.org>
Branch: master
Commit: 30a6a7f035026d05b52c92c26d4cb7ea3c6d6e5c

Remove search_parents parameter from d_lookup_symbol_imports.

gdb/ChangeLog:

	* d-namespace.c (d_lookup_symbol_imports): Remove argument
	'search_parents'.  All callers updated.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add a more helpful warning message to explain why some AArch64 relocations can overflow.
@ 2016-02-09 11:06 sergiodj+buildbot
  2016-02-09 12:06 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-09 11:06 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 027e9c750c20fe8031a2b6d6272cd57bbf445df5 ***

Author: Nick Clifton <nickc@redhat.com>
Branch: master
Commit: 027e9c750c20fe8031a2b6d6272cd57bbf445df5

Add a more helpful warning message to explain why some AArch64 relocations can overflow.

bfd	* elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
	helpful warning message to explain why certain AArch64 relocs
	might overflow.

ld	* testsuite/ld-aarch64/reloc-overflow-bad.d: New test.
	* testsuite/ld-aarch64/reloc-overflow-1.s: New source file.
	* testsuite/ld-aarch64/reloc-overflow-2.s: New source file.
	* testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Revert "Fix build breakage"
@ 2016-02-09 10:57 sergiodj+buildbot
  2016-02-09 11:40 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-09 10:57 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT c23bbc1cdae6149de4175a75aa9bf9bcbc936fa4 ***

Author: Walfred Tedeschi <walfred.tedeschi@intel.com>
Branch: master
Commit: c23bbc1cdae6149de4175a75aa9bf9bcbc936fa4

Revert "Fix build breakage"

This reverts commit 222cab58b7ed37df6e01dacb0932f400a2588137.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add a more helpful warning message to explain why some AArch64 relocations can overflow.
@ 2016-02-09 10:10 sergiodj+buildbot
  2016-02-09 10:15 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-09 10:10 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 2ea53e003163338a403d5afbb2046cafb8f3abe9 ***

Author: Nick Clifton <nickc@redhat.com>
Branch: master
Commit: 2ea53e003163338a403d5afbb2046cafb8f3abe9

Add a more helpful warning message to explain why some AArch64 relocations can overflow.

bfd	* elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
	helpful warning message to explain why certain AArch64 relocs
	might overflow.

ld	* testsuite/ld-aarch64/reloc-overflow-bad.d: New test.
	* testsuite/ld-aarch64/reloc-overflow-1.s: New source file.
	* testsuite/ld-aarch64/reloc-overflow-2.s: New source file.
	* testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix macro redefinition error on Solaris
@ 2016-02-09  5:24 sergiodj+buildbot
  2016-02-09  5:31 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-09  5:24 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 24f5f69a8a1d09c317a5f28d324fca73a8a0b930 ***

Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 24f5f69a8a1d09c317a5f28d324fca73a8a0b930

Fix macro redefinition error on Solaris

	PR 16583
	* elf/common.h (AT_SUN_HWCAP): Undef before defining.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Always organize test artifacts in a directory hierarchy
@ 2016-02-08 19:40 sergiodj+buildbot
  2016-02-08 19:47 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-08 19:40 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 2151ccc56c74b55a8f0debf0724a495368f92591 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 2151ccc56c74b55a8f0debf0724a495368f92591

Always organize test artifacts in a directory hierarchy

When running tests in parallel, each test puts its generated files in a
different directory, under "outputs".  I think it would be nice if it
was always the case, as it would isolate the test cases a bit more.  An
artifact created by a test wouldn't get overwritten by another test.

Also, it makes it easier to clean up.  A lot of executables are left all
over the place because their names do not appear in gdb.*/Makefile.  If
everything is in "outputs", then we just have to delete that directory
(which we already do).

At the same time it makes the gdb.foo directories and their Makefiles
useless in the build directory, since they are pretty much only used for
cleaning.

What do you think?

gdb/testsuite/ChangeLog:

	* Makefile.in (ALL_SUBDIRS): Remove.
	(clean mostlyclean): Do not recurse in ALL_SUBDIRS.
	(distclean maintainer-clean realclean): Likewise.
	* configure.ac (AC_OUTPUT): Remove gdb.*/Makefile.
	* configure: Regenerate.
	* gdb.ada/Makefile.in: Delete.
	* gdb.arch/Makefile.in: Likewise.
	* gdb.asm/Makefile.in: Likewise.
	* gdb.base/Makefile.in: Likewise.
	* gdb.btrace/Makefile.in: Likewise.
	* gdb.cell/Makefile.in: Likewise.
	* gdb.compile/Makefile.in: Likewise.
	* gdb.cp/Makefile.in: Likewise.
	* gdb.disasm/Makefile.in: Likewise.
	* gdb.dlang/Makefile.in: Likewise.
	* gdb.dwarf2/Makefile.in: Likewise.
	* gdb.fortran/Makefile.in: Likewise.
	* gdb.gdb/Makefile.in: Likewise.
	* gdb.go/Makefile.in: Likewise.
	* gdb.guile/Makefile.in: Likewise.
	* gdb.java/Makefile.in: Likewise.
	* gdb.linespec/Makefile.in: Likewise.
	* gdb.mi/Makefile.in: Likewise.
	* gdb.modula2/Makefile.in: Likewise.
	* gdb.multi/Makefile.in: Likewise.
	* gdb.objc/Makefile.in: Likewise.
	* gdb.opencl/Makefile.in: Likewise.
	* gdb.opt/Makefile.in: Likewise.
	* gdb.pascal/Makefile.in: Likewise.
	* gdb.perf/Makefile.in: Likewise.
	* gdb.python/Makefile.in: Likewise.
	* gdb.reverse/Makefile.in: Likewise.
	* gdb.server/Makefile.in: Likewise.
	* gdb.stabs/Makefile.in: Likewise.
	* gdb.threads/Makefile.in: Likewise.
	* gdb.trace/Makefile.in: Likewise.
	* gdb.xml/Makefile.in: Likewise.
	* lib/gdb.exp (make_gdb_parallel_path): Add check for
	GDB_PARALLEL.
	(standard_output_file): Remove check for GDB_PARALLEL, always
	return path in outputs/$subdir/$testname.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix in-tree, parallel running of Ada tests
@ 2016-02-08 19:12 sergiodj+buildbot
  2016-02-08 19:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-08 19:12 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 437277d47a15711f29e02e5265ce8bbb8c8ef4f5 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 437277d47a15711f29e02e5265ce8bbb8c8ef4f5

Fix in-tree, parallel running of Ada tests

While testing the following patch,

  [PATCH] Always organize test artifacts in a directory hierarchy
  https://sourceware.org/ml/gdb-patches/2016-01/msg00133.html

I noticed that it broke Ada testing.  This lead me to think that
parallel testing when building in-tree didn't work previously in Ada.
It is confirmed by this test:

$ make check TESTS="gdb.ada/fun_addr.exp" -j 2
...
Running ./gdb.ada/fun_addr.exp ...
FAIL: gdb.ada/fun_addr.exp: compilation foo.adb
...

This patch fixes in-tree parallel testing for Ada, and consequently
serial and parallel testing when the aforementioned patch is applied.

The problem originates from the fact that Ada support code cd's to the
builddir before compiling.  In itself it's not a problem, it allows to
place intermediate auto-generated files in that directory.  The Ada
compilation refers to the source file, which is in another directory,
only by its base name (e.g. foo.adb).  In serial mode, that worked
because builddir was the same as the source directory (e.g.
gdb.ada/fun_addr/).  In an out-of-tree build, it works because the
source directory is added as an include directory (note: this is not the
same $srcdir as autoconf's):

  set srcdir [file dirname $source]
  additional_flags=-I$srcdir

which becomes:

  additional_flags=-I/home/emaisin/build/binutils-gdb/gdb/testsuite/gdb.ada/fun_addr

However, when building in-tree, srcdir is relative: ./gdb.ada/fun_addr.
When using parallel or always-in-outputs-directory mode, we are cd'ed in
the outputs directory.  So -I$srcdir is relative to the current
directory, which is wrong.

To fix it, I made the TCL variable srcdir (set in site.exp, from which
everything else is derived) always absolute.  It is done by assigning
autoconf's abs_srcdir instead of autoconf's srcdir.  This way -I$srcdir
will always be good, regardless of where we cd'ed to.  A small apparent
change is that when running tests, DejaGnu will say:

  Running /tmp/binutils-gdb/gdb/testsuite/gdb.ada/fun_addr.exp ...

instead of

  Running ./gdb.ada/fun_addr.exp ...

I hope it's not too much of an annoyance.  I think that it should make
the testsuite a tiny bit more robust against other bugs of the same
class.

Regtested in & out of tree, only with native target.

gdb/testsuite/ChangeLog:

	* Makefile.in (abs_srcdir): Assign @abs_srcdir@.
	(site.exp): Assign abs_srcdir to tcl's srcdir.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] remote.c: Cleanup unused variables
@ 2016-02-08 18:12 sergiodj+buildbot
  2016-02-08 18:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-08 18:12 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 5488790363bf8f338e7aec4731f8bed472a2fcf9 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 5488790363bf8f338e7aec4731f8bed472a2fcf9

remote.c: Cleanup unused variables

I built remote.c with -Wunused, to check a function I was working on,
turns out there is a bunch of unused variables.

gdb/ChangeLog:

	* remote.c (remote_register_number_and_offset): Remove unused
	variable(s).
	(remote_thread_always_alive): Likewise.
	(remote_update_thread_list): Likewise.
	(process_initial_stop_replies): Likewise.
	(remote_start_remote): Likewise.
	(remote_check_symbols): Likewise.
	(discard_pending_stop_replies): Likewise.
	(process_stop_reply): Likewise.
	(putpkt_binary): Likewise.
	(getpkt): Likewise.
	(remote_add_target_side_condition): Likewise.
	(remote_insert_breakpoint): Likewise.
	(remote_supports_stopped_by_sw_breakpoint): Likewise.
	(remote_supports_stopped_by_hw_breakpoint): Likewise.
	(remote_xfer_partial): Likewise.
	(remote_read_btrace): Likewise.
	(remote_async_serial_handler): Likewise.
	(remote_thread_events): Likewise.
	(_initialize_remote): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] varobj: Cleanup dead code
@ 2016-02-07 14:56 sergiodj+buildbot
  2016-02-07 15:04 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-07 14:56 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 30914ca8c030eedc4a7e1f1acc878211639cc1ca ***

Author: Simon Marchi <simon.marchi@polymtl.ca>
Branch: master
Commit: 30914ca8c030eedc4a7e1f1acc878211639cc1ca

varobj: Cleanup dead code

This patch removes some dead code.

I noticed that varobj_delete was always called with dellist == NULL, so
I started removing that parameter.  That allows removing a good chunk of
the code in varobj_delete, making it almost trivial.  We can also remove
the resultp parameters in that whole trail.  In turn, this shows that
struct cpstack, cppush and cppop were only used fo that mechanism, so
they can be removed as well.

I also moved the function comment to the header file to comply with
today's guideline, even though the rest of the file does not respect it
(yet).

gdb/ChangeLog:

	* varobj.h (varobj_delete): Remove dellist parameter, update and
	move documentation here.
	* varobj.c (struct cpstack, cppush, cppop): Remove.
	(delete_variable): Remove resultp (first) parameter.
	(delete_variable_1): Likewise.
	(varobj_delete): Remove dellist parameter and unused code.
	(update_dynamic_varobj_children): Adjust varobj_delete call.
	(update_type_if_necessary): Likewise.
	(varobj_set_visualizer): Likewise.
	(varobj_update): Likewise.
	(value_of_root): Likewise.
	(varobj_invalidate_iter): Likewise.
	* mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] sim: mips: fix prog_bfd usage
@ 2016-02-06  1:39 sergiodj+buildbot
  2016-02-06  1:46 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-06  1:39 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 1554f758410c4307103120424d35050e88433d85 ***

Author: Mike Frysinger <vapier@gentoo.org>
Branch: master
Commit: 1554f758410c4307103120424d35050e88433d85

sim: mips: fix prog_bfd usage

We do not want to reference the "base" member directly.  We have the
STATE_PROG_BFD macro instead to look up the prog_bfd member.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix formatting of pe-mips.c file.
@ 2016-02-05 10:26 sergiodj+buildbot
  2016-02-05 10:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-05 10:26 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 6f57d0469ae5e73643aa5ef96a10e6bae7a79a15 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 6f57d0469ae5e73643aa5ef96a10e6bae7a79a15

Fix formatting of pe-mips.c file.

	* pe-mips.c (coff_mips_reloc): Fix formatting.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Change the default architecture value for ARC bfds so that they have the lowest possible value, and hence can be merged with other ARC binaries wihtout changing their architecture value.
@ 2016-02-05 10:11 sergiodj+buildbot
  2016-02-05 10:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-05 10:11 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT bdbca4e6f805c73796c14c79102a8f1ea541d633 ***

Author: Cupertino Miranda <Cupertino.Miranda@synopsys.com>
Branch: master
Commit: bdbca4e6f805c73796c14c79102a8f1ea541d633

Change the default architecture value for ARC bfds so that they have the lowest possible value, and hence can be merged with other ARC binaries wihtout changing their architecture value.

bfd	* cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
	to bfd_mach_arc_arc600.

binutils * testsuite/binutils-all/objdump.exp: Update expected default
	architecture value for ARC binaries.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Prevent possible undefined behaviour computing the size of the scache by usingunsigned integers instead of signed integers.
@ 2016-02-04 16:40 sergiodj+buildbot
  2016-02-04 16:46 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-04 16:40 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 13754e4c3d1b78945ecba225216f29d71334b77d ***

Author: Nick Clifton <nickc@redhat.com>
Branch: master
Commit: 13754e4c3d1b78945ecba225216f29d71334b77d

Prevent possible undefined behaviour computing the size of the scache by usingunsigned integers instead of signed integers.

	* cgen-scache.c (scache_option_handler): Prevent possible
	undefined behaviour computing the size of the scache by using
	unsigned integers instead of signed integers.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [testsuite] Remove BASEDIR
@ 2016-02-04 15:57 sergiodj+buildbot
  2016-02-04 16:03 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-04 15:57 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 31d913c7e4e84edf88b4324c3a9a8fb31c8206ec ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 31d913c7e4e84edf88b4324c3a9a8fb31c8206ec

[testsuite] Remove BASEDIR

BASEDIR was added by https://sourceware.org/ml/gdb-patches/2013-10/msg00587.html
in order to handle the different directory layout in serial testing
and parallel testing.  BASEDIR is "gdb.base" in serial testing and is
"outputs/gdb.base/TESTNAME" in parallel testing.  However, it doesn't
work if the GDBserver is in remote target, like this,

$ make check RUNTESTFLAGS='--target_board=remote-gdbserver-on-localhost foll-vfork.exp foll-exec.exp'
FAIL: gdb.base/foll-exec.exp: continue to first exec catchpoint (the program exited)
FAIL: gdb.base/foll-vfork.exp: exec: vfork and exec child follow, to main bp: continue to bp (the program exited)
FAIL: gdb.base/foll-vfork.exp: exec: vfork child follow, finish after tcatch vfork: finish (the program exited)
FAIL: gdb.base/foll-vfork.exp: exec: vfork relations in info inferiors: continue to bp (the program exited)

these tests fail because the executable can't be found.  With target
board native-gdbserver, the program is spawned this way,

 spawn ../gdbserver/gdbserver --once :2347 /scratch/yao/gdb/build-git/x86_64/gdb/testsuite/gdb.base/foll-vfork

so BASEDIR is correct.  However, with target board
remote-gdbserver-on-localhost, the program is spawned

  spawn /usr/bin/ssh -l yao localhost /scratch/yao/gdb/build-git/x86_64/gdb/testsuite/../gdbserver/gdbserver --once :2346 /scratch/yao/gdb/build-git/x86_64/gdb/testsuite/gdb.base/foll-vfork

so BASEDIR (either "gdb.base" or "outputs/gdb.base/TESTNAME") makes no
sense.

I had a fix that pass absolute directory to BASEDIR, but it assumes
that directory structure is the same on build and target, and it
doesn't work in remote host case.  The current fix in this patch is
to get the directory from argv[0].  In any case, the program to be
exec'ed is at the same directory with the main program.

Note that these tests do "next N" to let program stop at the desired
line, but it is fragile, because GDB for different targets may skip
function prologue slightly differently, so I replace some of them by
"tbreak on LINE NUMBER and continue".

gdb/testsuite:

2016-02-04  Yao Qi  <yao.qi@linaro.org>

	* gdb.base/foll-exec-mode.c: Include limits.h.
	(main): Add parameters argc and argv.  Get directory from
	argv[0].
	* gdb.base/foll-exec-mode.exp: Don't pass -DBASEDIR in
	compilation.
	* gdb.base/foll-exec.c: Include limits.h.
	(main): Add parameters argc and argv.
	Get directory from argv[0].
	* gdb.base/foll-exec.exp: Don't pass -DBASEDIR in compilation.
	Adjust tests on the number of lines as source code changed.
	* gdb.base/foll-vfork-exit.c: Include limits.h.
	(main): Add one line of statement before vfork.
	* gdb.base/foll-vfork.c: Include limits.h and string.h.
	(main): Add parameters argc and argv.  Get directory from
	argv[0].
	* gdb.base/foll-vfork.exp: Don't pass -DBASEDIR in compilation.
	(setup_gdb): Set tbreak to skip some source lines.
	* gdb.multi/bkpt-multi-exec.c: Include limits.h.
	(main): Add parameters argc and argv.  Get directory from
	argv[0].
	* gdb.multi/bkpt-multi-exec.exp: Don't pass -DBASEDIR in
	compilation.
	* gdb.multi/multi-arch-exec.c: Include limits.h and string.h.
	(main): Add parameters argc and argv.  Get directory from
	argv[0].
	* gdb.multi/multi-arch-exec.exp: Don't pass -DBASEDIR in
	compilation.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] waiting_for_stop_reply around remote_fileio_request
@ 2016-02-04 15:22 sergiodj+buildbot
  2016-02-04 15:28 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-04 15:22 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT e42e5352d1d1e8a262178f606a5df3d0d988f78a ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: e42e5352d1d1e8a262178f606a5df3d0d988f78a

waiting_for_stop_reply around remote_fileio_request

Hi,
I see this error when GDB connects with qemu,

(gdb) n
....
Sending packet: $vCont;c#a8...Ack
Packet received: Ffstat,00000001,f6fff038
Cannot execute this command while the target is running.
Use the "interrupt" command to stop the target
and then try again.

looks we don't set rs->waiting_for_stop_reply to zero
before handle fileio request,

 #10 0x00000000005edb64 in target_write (len=64, offset=4143968312, buf=0x7fffffffd570 "\375\377\377\377", annex=0x0, object=TARGET_OBJECT_MEMORY,
    ops=<optimised out>) at /home/yao/SourceCode/gnu/gdb/git/gdb/target.c:1922
 #11 target_write_memory (memaddr=memaddr@entry=4143968312, myaddr=myaddr@entry=0x7fffffffd6a0 "", len=len@entry=64)
    at /home/yao/SourceCode/gnu/gdb/git/gdb/target.c:1500
 #12 0x00000000004b2b41 in remote_fileio_func_fstat (buf=0x127b258 "") at /home/yao/SourceCode/gnu/gdb/git/gdb/remote-fileio.c:1037
 #13 0x00000000004b1878 in do_remote_fileio_request (uiout=<optimised out>, buf_arg=buf_arg@entry=0x127b240)
    at /home/yao/SourceCode/gnu/gdb/git/gdb/remote-fileio.c:1204
 #14 0x00000000005b8c7c in catch_exceptions_with_msg (func_uiout=<optimised out>, func=func@entry=0x4b1800 <do_remote_fileio_request>,
    func_args=func_args@entry=0x127b240, gdberrmsg=gdberrmsg@entry=0x0, mask=mask@entry=RETURN_MASK_ALL)
    at /home/yao/SourceCode/gnu/gdb/git/gdb/exceptions.c:187
 #15 0x00000000005b8dea in catch_exceptions (uiout=<optimised out>, func=func@entry=0x4b1800 <do_remote_fileio_request>, func_args=func_args@entry=0x127b240,
    mask=mask@entry=RETURN_MASK_ALL) at /home/yao/SourceCode/gnu/gdb/git/gdb/exceptions.c:167
 #16 0x00000000004b2fff in remote_fileio_request (buf=0x127b240 "Xf6fff038,0:", ctrlc_pending_p=0) at /home/yao/SourceCode/gnu/gdb/git/gdb/remote-fileio.c:1255
 #17 0x0000000000496f12 in remote_wait_as (ptid=..., status=0x7fffffffdb20, options=1) at /home/yao/SourceCode/gnu/gdb/git/gdb/remote.c:6997

however, we did set rs->waiting_for_stop_reply to zero before Luis's
patch https://sourceware.org/ml/gdb-patches/2015-10/msg00336.html

In fact, Luis's patch v1
https://sourceware.org/ml/gdb-patches/2015-08/msg00809.html is about
setting rs->waiting_for_stop_reply back to one after
remote_fileio_request, which is correct.  However during the review, the
patch is changed and ends up with "not setting rs->waiting_for_stop_reply
to zero".

I manually test GDB, but I don't have a way to run regression tests.

gdb:

2016-02-04  Yao Qi  <yao.qi@linaro.org>

	* remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
	0 before handling 'F' and set it back afterwards.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix the encoding of the MSP430's RRUX instruction.
@ 2016-02-04 10:06 sergiodj+buildbot
  2016-02-04 10:13 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-04 10:06 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT c1d9289fef41b82aa22f63f74aa8e730ec898d3c ***

Author: Nick Clifton <nickc@redhat.com>
Branch: master
Commit: c1d9289fef41b82aa22f63f74aa8e730ec898d3c

Fix the encoding of the MSP430's RRUX instruction.

	PR target/19561
opcdoe	* msp430-dis.c (print_insn_msp430): Add a special case for
	decoding an RRC instruction with the ZC bit set in the extension
	word.

include	* opcode/msp430.h (IGNORE_CARRY_BIT): New define.
	(RRUX): Synthesise using case 2 rather than 7.

gas	* config/tc-msp430.c (msp430_operands): Remove case 7.  Use case 2
	to handle encoding of RRUX instruction.
	* testsuite/gas/msp430/msp430x.s: Add more tests of the extended
	shift instructions.
	* testsuite/gas/msp430/msp430x.d: Update expected disassembly.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] MAINTAINERS: Add Thiemo Seufer back, as a past maintainer
@ 2016-02-03 22:03 sergiodj+buildbot
  2016-02-03 22:09 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-03 22:03 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 3b8f2c8bcf7c6bf1339aa3c3f2d6f129b7878052 ***

Author: Maciej W. Rozycki <macro@linux-mips.org>
Branch: master
Commit: 3b8f2c8bcf7c6bf1339aa3c3f2d6f129b7878052

MAINTAINERS: Add Thiemo Seufer back, as a past maintainer

Complement commit 26e0f8dbd817 ("* MAINTAINERS: Remove Thiemo Seufer.").

	* MAINTAINERS (Past sim maintainers): Add Thiemo Seufer.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix "PowerPC64 ELFv2 entry code" for big-endian
@ 2016-02-03 14:16 sergiodj+buildbot
  2016-02-03 14:22 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-03 14:16 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 4f038ee5d22f04a16a413cf2e3d8ddeecdc75639 ***

Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 4f038ee5d22f04a16a413cf2e3d8ddeecdc75639

Fix "PowerPC64 ELFv2 entry code" for big-endian

bfd/
	* elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
	for big-endian.
gold/
	* powerpc.cc (relocate): Adjust last patch for big-endian.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] ui-out.c: Remove unused enum
@ 2016-02-02 21:51 sergiodj+buildbot
  2016-02-02 21:57 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 21:51 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 6456a18b717e7b1ae96d77a2549fbf4da60d6617 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 6456a18b717e7b1ae96d77a2549fbf4da60d6617

ui-out.c: Remove unused enum

This is unused since 54eb231c4bca046e8b8cd73461f695e02c5620d5, where
static arrays of ui_out_levels were replaced with vectors.

gdb/ChangeLog:

	* ui-out.c (MAX_UI_OUT_LEVELS): Remove.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix typos in bfd/ChangeLog and bfd/elf64-x86-64.c
@ 2016-02-02 21:21 sergiodj+buildbot
  2016-02-02 21:27 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 21:21 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT fb06f1c0f25d27006b28a94e54273a6bb35b5926 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: fb06f1c0f25d27006b28a94e54273a6bb35b5926

Fix typos in bfd/ChangeLog and bfd/elf64-x86-64.c


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Store estimated istrances in compressed_size
@ 2016-02-02 16:34 sergiodj+buildbot
  2016-02-02 16:41 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 16:34 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 4a539596f5d54d3116c5fdebd8be56998757288b ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 4a539596f5d54d3116c5fdebd8be56998757288b

Store estimated istrances in compressed_size

elf_x86_64_convert_load is very time consuming since it is called on
each input section and has a loop over input text sections to estimate
the branch distrance.  We can store the estimated distrances in the
compressed_size field of the output section, which is only used to
decompress the compressed input section.

Before the patch, linking clang 3.9 takes 52 seconds.  After the patch,
it only takes 2.5 seconds.

	PR ld/19542
	* elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
	distrances in the compressed_size field of the output section.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] PowerPC64 ELFv2 entry code
@ 2016-02-02 13:44 sergiodj+buildbot
  2016-02-02 14:14 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 13:44 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 85fabe715c441e1c90fe913e2a6d65f0e487e5e8 ***

Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 85fabe715c441e1c90fe913e2a6d65f0e487e5e8

PowerPC64 ELFv2 entry code

This tightens the condition under which ld optimizes PIC entry code
to non-PIC.

bfd/
	* elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
	ELFv2 entry optimization.
gold/
	* powerpc.cc (relocate): Further restrict ELFv2 entry optimization.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Clear HAS_RELOC if there are no relocations
@ 2016-02-02 12:31 sergiodj+buildbot
  2016-02-02 13:48 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 12:31 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 14f2c699ddca1e2f706342dffc59a6c7e23e844c ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 14f2c699ddca1e2f706342dffc59a6c7e23e844c

Clear HAS_RELOC if there are no relocations

The HAS_RELOC bit should be cleared when relocations are removed from
relocatable files.

bfd/

	PR binutils/19547
	* elf.c (assign_section_numbers): Clear HAS_RELOC if there are
	no relocations in relocatable files.

binutils/

	PR binutils/19547
	* testsuite/binutils-all/objcopy.exp
	(objcopy_test_without_global_symbol): New proc.
	Run objcopy_test_without_global_symbol.
	* testsuite/binutils-all/pr19547.c: New file.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Adaptation of siginfo fixup for the new bnd fields
@ 2016-02-02 12:26 sergiodj+buildbot
  2016-02-02 12:40 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 12:26 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 3f2f6cb5e8922b680de9d67ad83d3b571d3b2a46 ***

Author: Walfred Tedeschi <walfred.tedeschi@intel.com>
Branch: master
Commit: 3f2f6cb5e8922b680de9d67ad83d3b571d3b2a46

Adaptation of siginfo fixup for the new bnd fields

New bnds fields will be always present for x86 architecture.
Fixup for compatibility layer 32bits has to be fixed.

It was added the nat_siginfo to serving as intermediate step
between kernel provided siginfo and the fix up routine.

When executing compat_siginfo_from_siginfo or
compat_x32_siginfo_from_siginfo first the buffer read from the kernel are
converted into the nat_signfo for homogenization, then the fields of
nat_siginfo are use to set the compat and compat_x32 siginfo fields.

In other to make this conversion independent of the system where gdb
is compiled the most complete version of the siginfo, named as native
siginfo, is used internally as an intermediate step.

Conversion using nat_siginfo is exemplified below:

compat_siginfo_from_siginfo or compat_x32_siginfo_from_siginfo:

buffer (from the kernel) -> nat_siginfo -> 32 / X32 siginfo
                      (memcpy)       (field by field)

siginfo_from_compat_x32_siginfo or siginfo_from_compat_siginfo:

32 / X32 siginfo -> nat_siginfo -> buffer (to the kernel)
          (field by field)    (memcpy)

Caveat: No support for MPX on x32.

2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>

gdb/ChangeLog:

	* amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
	New types.
	(compat_siginfo): New bound fields added.
	(compat_x32_siginfo): New field added.
	(cpt_si_addr_lsb): New define.
	(compat_siginfo_from_siginfo): Use nat_siginfo.
	(siginfo_from_compat_siginfo): Use nat_siginfo.
	(compat_x32_siginfo_from_siginfo): Likewise.
	(siginfo_from_compat_x32_siginfo): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] opcodes/cgen: Rework calculation of shift when inserting fields
@ 2016-02-02 12:04 sergiodj+buildbot
  2016-02-02 13:26 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 12:04 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT a143b0045ca8a7024a8515b5dda3ceab5f832e83 ***

Author: Andrew Burgess <andrew.burgess@embecosm.com>
Branch: master
Commit: a143b0045ca8a7024a8515b5dda3ceab5f832e83

opcodes/cgen: Rework calculation of shift when inserting fields

The calculation of the shift amount, used to insert fields into the
instruction buffer, is not correct when the following conditions are all
true:
  - CGEN_INT_INSN_P is defined, and true.
  - CGEN_INSN_LSB0_P is true
  - Total instruction length is greater than the length of a single
    instruction word (the instruction is made of multiple words)
  - The word offset is non-zero (the field is outside the first word)

When the above conditions are all true, the calculated shift fails to
take account of the total instruction length.

After this commit the calculation of the shift amount is split into two
parts, first we calculate the shift required to get to BIT0 of the word
in which the field lives, then we calculate the shift required to place
the field within the instruction word.

The change in this commit only effects the CGEN_INT_INSN_P defined true
case, but changes the code for both CGEN_INSN_LSB0_P true, and false.

In the case of CGEN_INSN_LSB0_P being false, the code used to say:

	shift = total_length - (word_offset + start + length);

Now it says:

	shift_to_word = total_length - (word_offset + word_length);
	shift_within_word = word_length - start - length;
	shift = shift_to_word + shift_within_word;

>From which we can see that in all cases the computed shift value should
be unchanged.

In the case of CGEN_INSN_LSB0_P being true, the code used to say:

	shift = (word_offset + start + 1) - length;

Now it says:

	shift_to_word = total_length - (word_offset + word_length);
	shift_within_word = start + 1 - length;
	shift = shift_to_word + shift_within_word;

In the case where 'total_length == word_length' AND 'word_offset ==
0' (which indicates an instruction of a single word), we see that the
computed shift value will be unchanged.  However, when the total_length
and word_length are different, and the word_offset is non-zero then the
computed shift value will be different (and correct).

opcodes/ChangeLog:

	* cgen-ibld.in (insert_normal): Rework calculation of shift.
	* epiphany-ibld.c: Regenerate.
	* fr30-ibld.c: Regenerate.
	* frv-ibld.c: Regenerate.
	* ip2k-ibld.c: Regenerate.
	* iq2000-ibld.c: Regenerate.
	* lm32-ibld.c: Regenerate.
	* m32c-ibld.c: Regenerate.
	* m32r-ibld.c: Regenerate.
	* mep-ibld.c: Regenerate.
	* mt-ibld.c: Regenerate.
	* or1k-ibld.c: Regenerate.
	* xc16x-ibld.c: Regenerate.
	* xstormy16-ibld.c: Regenerate.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] epiphany/disassembler: Improve alignment of output.
@ 2016-02-02 11:38 sergiodj+buildbot
  2016-02-02 13:02 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 11:38 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT b89807c67baf4f31125d151f2dc3532b3420964d ***

Author: Andrew Burgess <andrew.burgess@embecosm.com>
Branch: master
Commit: b89807c67baf4f31125d151f2dc3532b3420964d

epiphany/disassembler: Improve alignment of output.

Always set the bytes_per_line field (of struct disassemble_info) to the
same constant value, this is inline with the advice contained within
include/dis-asm.h.

Setting this field to a constant value will cause the disassembler
output to be better aligned.

cpu/ChangeLog:

	* epiphany.opc (epiphany_print_insn): Set info->bytes_per_line to
	a constant to better align disassembler output.

opcodes/ChangeLog:

	* epiphany-dis.c: Regenerated from latest cpu files.

gas/ChangeLog:

	* testsuite/gas/epiphany/sample.d: Update expected output.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add bound related fields to the siginfo structure
@ 2016-02-02 11:21 sergiodj+buildbot
  2016-02-02 12:17 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 11:21 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 96b5c49fb18ba7ad070b0c3ad36388d56c5897fb ***

Author: Walfred Tedeschi <walfred.tedeschi@intel.com>
Branch: master
Commit: 96b5c49fb18ba7ad070b0c3ad36388d56c5897fb

Add bound related fields to the siginfo structure

Both Linux and glibc have introduced bound related fields in the
segmentation fault fields of the siginfo_t type. Add the new fields
to our x86's siginfo_t type too.

Kernel patch:
http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=ee1b58d36aa1b5a79eaba11f5c3633c88231da83

Glibc patch:
http://repo.or.cz/w/glibc.git/commit/d4358b51c26a634eb885955aea06cad26af6f696

2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>

gdb/ChangeLog:

	* linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
	structure to the siginfo if extra_fields contains
	LINUX_SIGINFO_FIELD_ADDR_BND.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Use linux_get_siginfo_type_with_fields for x86
@ 2016-02-02 11:13 sergiodj+buildbot
  2016-02-02 11:53 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 11:13 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 190b495d472576db66a8727d5872fcca3d5519c6 ***

Author: Walfred Tedeschi <walfred.tedeschi@intel.com>
Branch: master
Commit: 190b495d472576db66a8727d5872fcca3d5519c6

Use linux_get_siginfo_type_with_fields for x86

Use linux_get_siginfo_type_with_fields for adding bound fields on
segmentation fault for i386/amd64 siginfo.

2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>

gdb/ChangeLog:

	* linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
	* linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
	* i386-linux-tdep.h (x86_linux_get_siginfo_type): New
	function.
	* amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
	x86_linux_get_siginfo_type for the amd64 abi.
	* i386-linux-tdep.c (x86_linux_get_siginfo_type): New
	function.
	(i386_linux_init_abi): Add new function at the i386 ABI
	initialization.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Preparation for new siginfo on Linux
@ 2016-02-02 11:05 sergiodj+buildbot
  2016-02-02 11:28 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 11:05 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 43564574f1de367f537a37bf6ec83bb4c29627c6 ***

Author: Walfred Tedeschi <walfred.tedeschi@intel.com>
Branch: master
Commit: 43564574f1de367f537a37bf6ec83bb4c29627c6

Preparation for new siginfo on Linux

First add new structure and function to allow architecture customization
for the siginfo structure.

2016-01-15  Walfred Tedeschi  <walfred.tedeschi@intel.com>

gdb/ChangeLog:

	* linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
	(linux_siginfo_extra_fields): New enum type.
	* linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
	(linux_get_siginfo_type): Use new function.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Merge gdb and gdbserver implementations for siginfo
@ 2016-02-02 10:56 sergiodj+buildbot
  2016-02-02 11:05 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-02-02 10:56 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 93813b37c86a70fbd4d8c9d63f95cf8b87bbf425 ***

Author: Walfred Tedeschi <walfred.tedeschi@intel.com>
Branch: master
Commit: 93813b37c86a70fbd4d8c9d63f95cf8b87bbf425

Merge gdb and gdbserver implementations for siginfo

Extract the compatible siginfo handling from amd64-linux-nat.c and
gdbserver/linux-x86-low to a new file nat/amd64-linux-siginfo.c.

2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>

gdb/ChangeLog:

	* nat/amd64-linux-siginfo.c: New file.
	* nat/amd64-linux-siginfo.h: New file.
	* Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
	(amd64-linux-siginfo.o): New rule.
	* config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
	* amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
	(compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
	(compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
	(compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
	(cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
	(cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
	(cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.

gdb/gdbserver/ChangeLog:

	* configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
	to srv_tgtobj.
	(i[34567]86-*-linux*): Add amd64-linux-siginfo.o
	to srv_tgtobj.
	* linux-x86-low.c [__x86_64__]: Include
	"nat/amd64-linux-siginfo.h".
	(compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
	(compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
	(compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
	(cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
	(cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
	(cpt_si_fd, si_timerid, si_overrun): Move from
	nat/amd64-linux-siginfo.c.
	* Makefile.in (amd64-linux-siginfo.o:): New rule.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix memory corruption on Mach-O systems by suppressing a memory tidy up.
@ 2016-01-25  9:41 sergiodj+buildbot
  2016-01-25  9:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-25  9:41 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT cf466c2ac5ac55bb9b30b96fbdcad564e8c1ccc8 ***

Author: Nick Clifton <nickc@redhat.com>
Branch: master
Commit: cf466c2ac5ac55bb9b30b96fbdcad564e8c1ccc8

Fix memory corruption on Mach-O systems by suppressing a memory tidy up.

	PR target/19435
	* mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
	dsym filename buffer.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [AArch64] Fix missing architecture checks for ARMv8.2 system registers.
@ 2016-01-14 11:03 sergiodj+buildbot
  2016-01-14 11:19 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-14 11:03 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 651657fa61aa0a2946d56063295a7ce8d73f803b ***

Author: Matthew Wahab <matthew.wahab@arm.com>
Branch: master
Commit: 651657fa61aa0a2946d56063295a7ce8d73f803b

[AArch64] Fix missing architecture checks for ARMv8.2 system registers.

Some of the RAS system registers added to binutils as part of the ARMv8.2
support are missing the feature checks to warn when they aren't
supported by the target.

This patch adds the missing feature checks with a test to check that
the correct warnings are given for all the ARMv8.2 system registers.

gas/
2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>

	* testsuite/gas/aarch64/illegal-sysreg-2.l: New.
	* testsuite/gas/aarch64/illegal-sysreg-2.d: New.

opcodes/
2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>

	* aarch64-opc.c (aarch64_sys_reg_supported_p): Merge conditionals
	testing for RAS support.  Add checks for erxfr_el1, erxctlr_el1,
	erxtatus_el1 and erxaddr_el1.

Change-Id: I66b590ea49c1eb6b0e5c93e0dc2bc9c4e79a52fe


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [ARM] Make thumb2_breakpoint static again
@ 2016-01-14  9:39 sergiodj+buildbot
  2016-01-14  9:56 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-14  9:39 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 1b451dda5f8905b26bafafe00423335d4fffe8dd ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 1b451dda5f8905b26bafafe00423335d4fffe8dd

[ARM] Make thumb2_breakpoint static again

This patch makes thumb2_breakpoint static.  When writing this patch,
I find the only reason we keep thumb2_breakpoint extern is that it
is used as an argument passed to arm_gdbserver_get_next_pcs.  However,
field arm_thumb2_breakpoint is only used in a null check in
thumb_get_next_pcs_raw, so I wonder why do need to pass thumb2_breakpoint
to arm_gdbserver_get_next_pcs.

thumb2_breakpoint was added by Daniel Jacobowitz in order to support
single-step IT block
https://sourceware.org/ml/gdb-patches/2010-01/msg00624.html  the logic
there was if we have 32-bit thumb-2 breakpoint defined, we can safely
single-step IT block, otherwise, we can't.  Daniel didn't want to use
16-bit thumb BKPT instruction, because it triggers even on instruction
which should be executed.  Secondly, using 16-bit thumb illegal
instruction on top of 32-bit thumb instruction may break the meaning of
original IT blocks, because the other 16-bit can be regarded as an
instruction.  See more explanations from Daniel's kernel patch
http://www.spinics.net/lists/arm-kernel/msg80476.html

Let us back to this patch, GDB/GDBserver can safely single step
IT block if thumb2_breakpoint is defined, but the single step logic
doesn't have to know the thumb-2 breakpoint instruction.  Only
breakpoint insertion mechanism decides to use which breakpoint
instruction.  In the software single step code, instead of pass
thumb2_breakpoint, we can pass a boolean variable
has_thumb2_breakpoint indicate whether the target has thumb-2
breakpoint defined, which is equivalent to the original code.

Regression tested on arm-linux.  No regression.

gdb:

2016-01-14  Yao Qi  <yao.qi@linaro.org>

	* arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
	argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
	(thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
	instead.
	* arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
	<arm_thumb2_breakpoint>: Remove.
	<has_thumb2_breakpoint>: New field.
	(arm_get_next_pcs_ctor): Update declaration.
	* arm-linux-tdep.c (arm_linux_software_single_step): Pass
	1 to arm_get_next_pcs_ctor.
	* arm-tdep.c (arm_software_single_step): Pass 0 to
	arm_get_next_pcs_ctor.

gdb/gdbserver:

2016-01-14  Yao Qi  <yao.qi@linaro.org>

	* linux-aarch32-low.c (thumb2_breakpoint): Make it static.
	* linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
	* linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
	arm_get_next_pcs_ctor.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
@ 2016-01-13 18:04 sergiodj+buildbot
  2016-01-13 18:21 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-13 18:04 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT bc06e0b148dfc4f2e52003a17d48463150f72e7b ***

Author: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Branch: master
Commit: bc06e0b148dfc4f2e52003a17d48463150f72e7b

MAINTAINERS: Add Andreas Arnez as s390 target maintainer.

gdb/ChangeLog:

	* MAINTAINERS: Add Andreas Arnez as s390 target maintainer.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Read instruction with byte_order_for_code
@ 2016-01-13 16:19 sergiodj+buildbot
  2016-01-13 16:36 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-13 16:19 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 4e7b8beaa3b7b9ac8577b10afa9d58bb9d453b08 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 4e7b8beaa3b7b9ac8577b10afa9d58bb9d453b08

Read instruction with byte_order_for_code

When reading instruction, we should use byte_order_for_code instead
of byte_order.

gdb:

2016-01-13  Yao Qi  <yao.qi@linaro.org>

	* arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
	byte_order_for_code to read instruction.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add $_gthread convenience variable
@ 2016-01-13 11:42 sergiodj+buildbot
  2016-01-13 14:43 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-13 11:42 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 663f6d42f47265d2deaa86c8a976e658fb13f820 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 663f6d42f47265d2deaa86c8a976e658fb13f820

Add $_gthread convenience variable

This commit adds a new $_gthread convenience variable, that is like
$_thread, but holds the current thread's global thread id.

gdb/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* NEWS: Mention $_gthread.
	* gdbthread.h (struct thread_info) <global_num>: Mention
	$_gthread.
	* thread.c (thread_num_make_value_helper): New function.
	(thread_id_make_value): Delete.
	(thread_id_per_inf_num_make_value, global_thread_id_make_value):
	New.
	(thread_funcs): Adjust.
	(gthread_funcs): New.
	(_initialize_thread): Register $_gthread variable.

gdb/testsuite/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* gdb.base/default.exp: Expect $_gthread as well.
	* gdb.multi/tids.exp: Test $_gthread.
	* gdb.threads/thread-specific.exp: Test $_gthread.

gdb/doc/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* gdb.texinfo (Threads): Document the $_gthread convenience
	variable.
	(Convenience Vars): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Implement "info threads -gid"
@ 2016-01-13 11:41 sergiodj+buildbot
  2016-01-13 14:15 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-13 11:41 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT c84f6bbfe50ff13928360d3cc349d7c553867ce6 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: c84f6bbfe50ff13928360d3cc349d7c553867ce6

Implement "info threads -gid"

This commit makes global thread IDs optionaly visible in "info
threads", with the new "-gid" switch:

 (gdb) info threads -gid
   Id   GId  Target Id         Frame
   1.1  1    Thread 0x7ffff7fc2740 (LWP 6022) "threads" (running)
   1.2  3    Thread 0x7ffff77c0700 (LWP 6028) "threads" (running)
   1.3  4    Thread 0x7ffff7fc2740 (LWP 6032) "threads" (running)
   2.1  2    Thread 0x7ffff7fc1700 (LWP 6037) "threads" (running)
   2.2  5    Thread 0x7ffff77c0700 (LWP 6038) "threads" (running)
 * 2.3  6    Thread 0x7ffff7fc2740 (LWP 6039) "threads" (running)

 (gdb) info threads
   Id   Target Id         Frame
   1.1  Thread 0x7ffff7fc2740 (LWP 6022) "threads" (running)
   1.2  Thread 0x7ffff77c0700 (LWP 6028) "threads" (running)
   1.3  Thread 0x7ffff7fc2740 (LWP 6032) "threads" (running)
   2.1  Thread 0x7ffff7fc1700 (LWP 6037) "threads" (running)
   2.2  Thread 0x7ffff77c0700 (LWP 6038) "threads" (running)
 * 2.3  Thread 0x7ffff7fc2740 (LWP 6039) "threads" (running)

No regressions on x86_64 Fedora 20.

gdb/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* NEWS: Mention "info threads -gid".
	* gdbthread.h (struct thread_info) <global_num>: Mention "info
	threads -gid".
	* thread.c (info_threads_command): Handle "-gid".
	(_initialize_thread): Adjust "info threads" help string to mention
	-gid.

gdb/testsuite/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* gdb.multi/tids.exp: Test "info threads -gid".

gdb/doc/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* gdb.texinfo (Threads): Document "info threads -gid".


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add Python InferiorThread.global_num attribute
@ 2016-01-13 11:40 sergiodj+buildbot
  2016-01-13 13:50 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-13 11:40 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 22a0232400ea09c57ab70d97cffc1f25e6320da7 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 22a0232400ea09c57ab70d97cffc1f25e6320da7

Add Python InferiorThread.global_num attribute

This commit adds a new Python InferiorThread.global_num attribute.
This can be used to pass the correct thread ID to Breakpoint.thread,
which takes a global thread ID, not a per-inferior thread number.

gdb/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* NEWS: Mention InferiorThread.global_num.
	* python/py-infthread.c (thpy_get_global_num): New function.
	(thread_object_getset): Register "global_num".

gdb/testsuite/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* gdb.multi/tids.exp: Test InferiorThread.global_num and
	Breakpoint.thread.
	* gdb.python/py-infthread.exp: Test InferiorThread.global_num.

gdb/doc/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* python.texi (Breakpoints In Python) <Breakpoint.thread>: Add
	anchor.
	(Threads In Python): Document new InferiorThread.global_num
	attribute.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Per-inferior/Inferior-qualified thread IDs
@ 2016-01-13 11:39 sergiodj+buildbot
  2016-01-13 13:19 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-13 11:39 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 5d5658a1d3c3eb2a09c03f2f0662a1c01963c869 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 5d5658a1d3c3eb2a09c03f2f0662a1c01963c869

Per-inferior/Inferior-qualified thread IDs

This commit changes GDB to track thread numbers per-inferior.  Then,
if you're debugging multiple inferiors, GDB displays
"inferior-num.thread-num" instead of just "thread-num" whenever it
needs to display a thread:

 (gdb) info inferiors
   Num  Description       Executable
   1    process 6022     /home/pedro/gdb/tests/threads
 * 2    process 6037     /home/pedro/gdb/tests/threads
 (gdb) info threads
   Id   Target Id         Frame
   1.1  Thread 0x7ffff7fc2740 (LWP 6022) "threads" (running)
   1.2  Thread 0x7ffff77c0700 (LWP 6028) "threads" (running)
   1.3  Thread 0x7ffff7fc2740 (LWP 6032) "threads" (running)
   2.1  Thread 0x7ffff7fc1700 (LWP 6037) "threads" (running)
   2.2  Thread 0x7ffff77c0700 (LWP 6038) "threads" (running)
 * 2.3  Thread 0x7ffff7fc2740 (LWP 6039) "threads" (running)
 (gdb)
...
 (gdb) thread 1.1
 [Switching to thread 1.1 (Thread 0x7ffff7fc2740 (LWP 8155))]
 (gdb)
...

etc.

You can still use "thread NUM", in which case GDB infers you're
referring to thread NUM of the current inferior.

The $_thread convenience var and Python's InferiorThread.num attribute
are remapped to the new per-inferior thread number.  It's a backward
compatibility break, but since it only matters when debugging multiple
inferiors, I think it's worth doing.

Because MI thread IDs need to be a single integer, we keep giving
threads a global identifier, _in addition_ to the per-inferior number,
and make MI always refer to the global thread IDs.  IOW, nothing
changes from a MI frontend's perspective.

Similarly, since Python's Breakpoint.thread and Guile's
breakpoint-thread/set-breakpoint-thread breakpoint methods need to
work with integers, those are adjusted to work with global thread IDs
too.  Follow up patches will provide convenient means to access
threads' global IDs.

To avoid potencially confusing users (which also avoids updating much
of the testsuite), if there's only one inferior and its ID is "1",
IOW, the user hasn't done anything multi-process/inferior related,
then the "INF." part of thread IDs is not shown.  E.g,.:

 (gdb) info inferiors
   Num  Description       Executable
 * 1    process 15275     /home/pedro/gdb/tests/threads
 (gdb) info threads
   Id   Target Id         Frame
 * 1    Thread 0x7ffff7fc1740 (LWP 15275) "threads" main () at threads.c:40
 (gdb) add-inferior
 Added inferior 2
 (gdb) info threads
   Id   Target Id         Frame
 * 1.1  Thread 0x7ffff7fc1740 (LWP 15275) "threads" main () at threads.c:40
 (gdb)

No regressions on x86_64 Fedora 20.

gdb/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* NEWS: Mention that thread IDs are now per inferior and global
	thread IDs.
	* Makefile.in (SFILES): Add tid-parse.c.
	(COMMON_OBS): Add tid-parse.o.
	(HFILES_NO_SRCDIR): Add tid-parse.h.
	* ada-tasks.c: Adjust to use ptid_to_global_thread_id.
	* breakpoint.c (insert_breakpoint_locations)
	(remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
	(print_one_breakpoint_location, set_longjmp_breakpoint)
	(check_longjmp_breakpoint_for_call_dummy)
	(set_momentary_breakpoint): Adjust to use global IDs.
	(find_condition_and_thread, watch_command_1): Use parse_thread_id.
	(until_break_command, longjmp_bkpt_dtor)
	(breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
	to use global IDs.
	* dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
	ptid_to_global_thread_id.
	* elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
	* gdbthread.h (struct thread_info): Rename field 'num' to
	'global_num.  Add new fields 'per_inf_num' and 'inf'.
	(thread_id_to_pid): Rename thread_id_to_pid to
	global_thread_id_to_ptid.
	(pid_to_thread_id): Rename to ...
	(ptid_to_global_thread_id): ... this.
	(valid_thread_id): Rename to ...
	(valid_global_thread_id): ... this.
	(find_thread_id): Rename to ...
	(find_thread_global_id): ... this.
	(ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
	(print_thread_info): Add comment.
	* tid-parse.h: New file.
	* tid-parse.c: New file.
	* infcmd.c (step_command_fsm_prepare)
	(step_command_fsm_should_stop): Adjust to use the global thread
	ID.
	(until_next_command, until_next_command)
	(finish_command_fsm_should_stop): Adjust to use the global thread
	ID.
	(attach_post_wait): Adjust to check the inferior number too.
	* inferior.h (struct inferior) <highest_thread_num>: New field.
	* infrun.c (handle_signal_stop)
	(insert_exception_resume_breakpoint)
	(insert_exception_resume_from_probe): Adjust to use the global
	thread ID.
	* record-btrace.c (record_btrace_open): Use global thread IDs.
	* remote.c (process_initial_stop_replies): Also consider the
	inferior number.
	* target.c (target_pre_inferior): Clear the inferior's highest
	thread num.
	* thread.c (clear_thread_inferior_resources): Adjust to use the
	global thread ID.
	(new_thread): New inferior parameter.  Adjust to use it.  Set both
	the thread's global ID and the thread's per-inferior ID.
	(add_thread_silent): Adjust.
	(find_thread_global_id): New.
	(find_thread_id): Make static.  Adjust to rename.
	(valid_thread_id): Rename to ...
	(valid_global_thread_id): ... this.
	(pid_to_thread_id): Rename to ...
	(ptid_to_global_thread_id): ... this.
	(thread_id_to_pid): Rename to ...
	(global_thread_id_to_ptid): ... this.  Adjust.
	(first_thread_of_process): Adjust.
	(do_captured_list_thread_ids): Adjust to use global thread IDs.
	(should_print_thread): New function.
	(print_thread_info): Rename to ...
	(print_thread_info_1): ... this, and add new show_global_ids
	parameter.  Handle it.  Iterate over inferiors.
	(print_thread_info): Reimplement as wrapper around
	print_thread_info_1.
	(show_inferior_qualified_tids): New function.
	(print_thread_id): Use it.
	(tp_array_compar): Compare inferior numbers too.
	(thread_apply_command): Use tid_range_parser.
	(do_captured_thread_select): Use parse_thread_id.
	(thread_id_make_value): Adjust.
	(_initialize_thread): Adjust "info threads" help string.
	* varobj.c (struct varobj_root): Update comment.
	(varobj_create): Adjust to use global thread IDs.
	(value_of_root_1): Adjust to use global_thread_id_to_ptid.
	* windows-tdep.c (display_tib): No longer accept an argument.
	* cli/cli-utils.c (get_number_trailer): Make extern.
	* cli/cli-utils.h (get_number_trailer): Declare.
	(get_number_const): Adjust documentation.
	* mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
	thread IDs.
	* mi/mi-interp.c (mi_new_thread, mi_thread_exit)
	(mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
	* mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
	* guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
	Likewise.
	* python/py-breakpoint.c (bppy_set_thread): Likewise.
	* python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
	* python/py-infthread.c (thpy_get_num): Add comment and return the
	per-inferior thread ID.
	(thread_object_getset): Update comment of "num".

gdb/testsuite/ChangeLog:
2016-01-07  Pedro Alves  <palves@redhat.com>

	* gdb.base/break.exp: Adjust to output changes.
	* gdb.base/hbreak2.exp: Likewise.
	* gdb.base/sepdebug.exp: Likewise.
	* gdb.base/watch_thread_num.exp: Likewise.
	* gdb.linespec/keywords.exp: Likewise.
	* gdb.multi/info-threads.exp: Likewise.
	* gdb.threads/thread-find.exp: Likewise.
	* gdb.multi/tids.c: New file.
	* gdb.multi/tids.exp: New file.

gdb/doc/ChangeLog:
2016-01-07  Pedro Alves  <palves@redhat.com>

	* gdb.texinfo (Threads): Document per-inferior thread IDs,
	qualified thread IDs, global thread IDs and thread ID lists.
	(Set Watchpoints, Thread-Specific Breakpoints): Adjust to refer to
	thread IDs.
	(Convenience Vars): Document the $_thread convenience variable.
	(Ada Tasks): Adjust to refer to thread IDs.
	(GDB/MI Async Records, GDB/MI Thread Commands, GDB/MI Ada Tasking
	Commands, GDB/MI Variable Objects): Update to mention global
	thread IDs.
	* guile.texi (Breakpoints In Guile)
	<breakpoint-thread/set-breakpoint-thread breakpoint>: Mention
	global thread IDs instead of thread IDs.
	* python.texi (Threads In Python): Adjust documentation of
	InferiorThread.num.
	(Breakpoint.thread): Mention global thread IDs instead of thread
	IDs.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Centralize thread ID printing
@ 2016-01-13 11:38 sergiodj+buildbot
  2016-01-13 12:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-13 11:38 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 43792cf0de3a49fb871d432343672bdf16270e99 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 43792cf0de3a49fb871d432343672bdf16270e99

Centralize thread ID printing

Add a new function to print a thread ID, in the style of paddress,
plongest, etc. and adjust all CLI-reachable paths to use it.

This gives us a single place to tweak to print inferior-qualified
thread IDs later:

 - [Switching to thread 1 (Thread 0x7ffff7fc2740 (LWP 8155))]
 + [Switching to thread 1.1 (Thread 0x7ffff7fc2740 (LWP 8155))]

etc., though for now, this has no user-visible change.

No regressions on x86_64 Fedora 20.

gdb/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* breakpoint.c (remove_threaded_breakpoints)
	(print_one_breakpoint_location): Use print_thread_id.
	* btrace.c (btrace_enable, btrace_disable, btrace_teardown)
	(btrace_fetch, btrace_clear): Use print_thread_id.
	* common/print-utils.c (CELLSIZE): Delete.
	(get_cell): Rename to ...
	(get_print_cell): ... this and made extern.  Adjust call callers.
	Adjust to use PRINT_CELL_SIZE.
	* common/print-utils.h (get_print_cell): Declare.
	(PRINT_CELL_SIZE): New.
	* gdbthread.h (print_thread_id): Declare.
	* infcmd.c (signal_command): Use print_thread_id.
	* inferior.c (print_inferior): Use print_thread_id.
	* infrun.c (handle_signal_stop)
	(insert_exception_resume_breakpoint)
	(insert_exception_resume_from_probe)
	(print_signal_received_reason): Use print_thread_id.
	* record-btrace.c (record_btrace_info)
	(record_btrace_resume_thread, record_btrace_cancel_resume)
	(record_btrace_step_thread, record_btrace_wait): Use
	print_thread_id.
	* thread.c (thread_apply_all_command): Use print_thread_id.
	(print_thread_id): New function.
	(thread_apply_command): Use print_thread_id.
	(thread_command, thread_find_command, do_captured_thread_select):
	Use print_thread_id.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add Python InferiorThread.inferior attribute
@ 2016-01-13 11:36 sergiodj+buildbot
  2016-01-13 12:24 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-13 11:36 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 8465445732dc04c3fb6cf954274e12d06b274f08 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 8465445732dc04c3fb6cf954274e12d06b274f08

Add Python InferiorThread.inferior attribute

So a script can easily get at a thread's inferior and its number.

gdb/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* NEWS: Mention InferiorThread.inferior.
	* python/py-infthread.c (thpy_get_inferior): New.
	(thread_object_getset): Register "inferior".

gdb/testsuite/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* gdb.python/py-infthread.exp: Test InferiorThread.inferior.

gdb/doc/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* python.texi (Threads In Python): Document
	InferiorThread.inferior.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add a new $_inferior convenience variable
@ 2016-01-13 11:35 sergiodj+buildbot
  2016-01-13 11:52 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-13 11:35 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT e3940304fe75c91f99e260a89fe8c45ece7e373f ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: e3940304fe75c91f99e260a89fe8c45ece7e373f

Add a new $_inferior convenience variable

Like $_thread, but holds the current inferior number.

gdb/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* NEWS: Mention $_inferior.
	* inferior.c (inferior_id_make_value): New.
	(inferior_funcs): New.
	(_initialize_inferior): Create $_inferior variable.

gdb/testsuite/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* gdb.base/default.exp: Expect $_inferior as well.
	* gdb.multi/base.exp: Test $_inferior.

gdb/doc/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* gdb.texinfo (Inferiors and Programs): Document the $_inferior
	convenience variable.
	(Convenience Vars): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix PR19388: Can't access $_siginfo in breakpoint (catch signal) condition
@ 2016-01-13 10:52 sergiodj+buildbot
  2016-01-13 11:10 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-13 10:52 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT a911d87ad714cbfbbc5c5752cb8b445a7e70196c ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: a911d87ad714cbfbbc5c5752cb8b445a7e70196c

Fix PR19388: Can't access $_siginfo in breakpoint (catch signal) condition

This commit merges both the registers and $_siginfo "thread
running/executing" checks into a single function.

Accessing $_siginfo from a "catch signal" breakpoint condition doesn't
work.  The condition always fails with "Selected thread is running":

 (gdb) catch signal
 Catchpoint 3 (standard signals)
 (gdb)
 condition $bpnum $_siginfo.si_signo == 5
 (gdb) continue
 Continuing.
 Error in testing breakpoint condition:
 Selected thread is running.

 Catchpoint 3 (signal SIGUSR1), 0x0000003615e35877 in __GI_raise (sig=10) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
 56        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
 (gdb)

When accessing the $_siginfo object, we check whether the thread is
marked running (external/public) state and refuse the access if so.
This is so "print $_siginfo" at the prompt fails nicelly when the
current thread is running.  While evaluating breakpoint conditionals,
we haven't decided yet whether the thread is going to stop, so
is_running still returns true, and we thus always error out.

Evaluating an expression that requires registers access is really
conceptually the same -- we could think of $_siginfo as a pseudo
register.  However, in that case we check whether the thread is marked
executing (internal/private state), not running (external/public
state).  Changing the $_siginfo validation to check is_executing as
well fixes the bug in question.

Note that checking is_executing is not fully correct, not even for
registers.  See PR 19389.  However, I think this is the lesser of two
evils and ends up as an improvement.  We at least now have a single
place to fix.

Tested on x86_64 GNU/Linux.

gdb/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	PR breakpoints/19388
	* frame.c (get_current_frame): Use validate_registers_access.
	* gdbthread.h (validate_registers_access): Declare.
	* infrun.c (validate_siginfo_access): Delete.
	(siginfo_value_read, siginfo_value_write): Use
	validate_registers_access.
	* thread.c (validate_registers_access): New function.

gdb/testsuite/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	PR breakpoints/19388
	* gdb.base/catch-signal-siginfo-cond.c: New file.
	* gdb.base/catch-signal-siginfo-cond.exp: New file.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Implement 'catch syscall' for gdbserver
@ 2016-01-12 20:34 sergiodj+buildbot
  2016-01-12 20:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-12 20:34 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 82075af2c14b1f8a54fa5796fb63f7ef23f98d9d ***

Author: Josh Stone <jistone@redhat.com>
Branch: master
Commit: 82075af2c14b1f8a54fa5796fb63f7ef23f98d9d

Implement 'catch syscall' for gdbserver

This adds a new QCatchSyscalls packet to enable 'catch syscall', and new
stop reasons "syscall_entry" and "syscall_return" for those events.  It
is currently only supported on Linux x86 and x86_64.

gdb/ChangeLog:

2016-01-12  Josh Stone  <jistone@redhat.com>
	    Philippe Waroquiers  <philippe.waroquiers@skynet.be>

	* NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
	syscall_entry and syscall_return stop reasons.  Mention GDB
	support for remote catch syscall.
	* remote.c (PACKET_QCatchSyscalls): New enum.
	(remote_set_syscall_catchpoint): New function.
	(remote_protocol_features): New element for QCatchSyscalls.
	(remote_parse_stop_reply): Parse syscall_entry/return stops.
	(init_remote_ops): Install remote_set_syscall_catchpoint.
	(_initialize_remote): Config QCatchSyscalls.
	* linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.

gdb/doc/ChangeLog:

2016-01-12  Josh Stone  <jistone@redhat.com>
	    Philippe Waroquiers  <philippe.waroquiers@skynet.be>

	* gdb.texinfo (Remote Configuration): List the QCatchSyscalls packet.
	(Stop Reply Packets): List the syscall entry and return stop reasons.
	(General Query Packets): Describe QCatchSyscalls, and add it to the
	table and the detailed list of stub features.

gdb/gdbserver/ChangeLog:

2016-01-12  Josh Stone  <jistone@redhat.com>
	    Philippe Waroquiers  <philippe.waroquiers@skynet.be>

	* inferiors.h: Include "gdb_vecs.h".
	(struct process_info): Add syscalls_to_catch.
	* inferiors.c (remove_process): Free syscalls_to_catch.
	* remote-utils.c (prepare_resume_reply): Report syscall_entry and
	syscall_return stops.
	* server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
	* server.c (handle_general_set): Handle QCatchSyscalls.
	(handle_query): Report support for QCatchSyscalls.
	* target.h (struct target_ops): Add supports_catch_syscall.
	(target_supports_catch_syscall): New macro.
	* linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
	(struct lwp_info): Add syscall_state.
	* linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
	Maintain syscall_state and syscalls_to_catch across exec.
	(get_syscall_trapinfo): New function, proxy to the_low_target.
	(linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
	(linux_low_filter_event): Toggle syscall_state entry/return for
	syscall traps, and set it ignored for all others.
	(gdb_catching_syscalls_p): New function.
	(gdb_catch_this_syscall_p): New function.
	(linux_wait_1): Handle SYSCALL_SIGTRAP.
	(linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
	(linux_supports_catch_syscall): New function.
	(linux_target_ops): Install it.
	* linux-x86-low.c (x86_get_syscall_trapinfo): New function.
	(the_low_target): Install it.

gdb/testsuite/ChangeLog:

2016-01-12  Josh Stone  <jistone@redhat.com>
	    Philippe Waroquiers  <philippe.waroquiers@skynet.be>

	* gdb.base/catch-syscall.c (do_execve): New variable.
	(main): Conditionally trigger an execve.
	* gdb.base/catch-syscall.exp: Enable testing for remote targets.
	(test_catch_syscall_execve): New, check entry/return across execve.
	(do_syscall_tests): Call test_catch_syscall_execve.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] gdbserver: use the new gdb warning helpers
@ 2016-01-12 15:45 sergiodj+buildbot
  2016-01-12 17:01 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-12 15:45 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 8f13a3ce8afc1144169a14c7704689e263316e70 ***

Author: Mike Frysinger <vapier@gentoo.org>
Branch: master
Commit: 8f13a3ce8afc1144169a14c7704689e263316e70

gdbserver: use the new gdb warning helpers

We need to use -Wno-missing-prototypes for now as much of the code
sticks externs in local files and not in common headers.

2016-01-11  Mike Frysinger  <vapier@gentoo.org>

	* acinclude.m4: Include new ../warning.m4 file.
	* configure: Regenerated.
	* configure.ac: Replace all warning logic with AM_GDB_WARNINGS.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] gdbserver: fix various warnings
@ 2016-01-12 15:44 sergiodj+buildbot
  2016-01-12 16:30 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-12 15:44 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 5b3da067f0893be637f9e992b409e36682ea081a ***

Author: Mike Frysinger <vapier@gentoo.org>
Branch: master
Commit: 5b3da067f0893be637f9e992b409e36682ea081a

gdbserver: fix various warnings

Delete unused funcs, update old prototypes, and mark local funcs
as static.  This doesn't cover all missing prototype warnings.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Change function signature passed to clone
@ 2016-01-12 15:22 sergiodj+buildbot
  2016-01-12 16:04 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2016-01-12 15:22 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT ba4dd7c4a1d99c62a1c2edd68f511a82f8fe041e ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: ba4dd7c4a1d99c62a1c2edd68f511a82f8fe041e

Change function signature passed to clone

I see the following compile error with an old bfin-uclinux gcc to
build GDBserver,

 cc1: warnings being treated as errors
 gdb/gdbserver/../nat/linux-ptrace.c: In function 'linux_fork_to_function':
 gdb/gdbserver/../nat/linux-ptrace.c:283: error: passing argument 1 of 'clone' from incompatible pointer type

in glibc, clone's prototype is like this, and in uClibc, it is the same,

       int clone(int (*fn)(void *), void *child_stack,
                 int flags, void *arg, ...
                 /* pid_t *ptid, struct user_desc *tls, pid_t *ctid */ );

so this patch changes function signature from 'void (*function) (gdb_byte *)'
to 'int (*function) (void *)'.

Note that I find Pedro advised to change argument type from 'void *'
to 'gdb_byte *' during the patch review
https://sourceware.org/ml/gdb-patches/2013-08/msg00611.html  however,
I think fix compile error can justify the change back to 'void *'.

gdb:

2016-01-12  Yao Qi  <yao.qi@linaro.org>

	* nat/linux-ptrace.c (linux_fork_to_function): Change type
	of argument 'function'.
	(linux_grandchild_function): Change return type to 'int'.
	Change child_stack's type to 'void *'.
	(linux_child_function): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add documentation to gdb_compile
@ 2015-12-18 18:50 sergiodj+buildbot
  2015-12-18 20:26 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-12-18 18:50 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT aff9c0f8ab32e4f2f7ff9700afe84a61d23a08c6 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: aff9c0f8ab32e4f2f7ff9700afe84a61d23a08c6

Add documentation to gdb_compile

This patch adds some documentation to gdb_compile.  It describes the
various options that can influence compilation.  Most of them are
handled by DejaGnu, but are not really documented anywhere, so I think
it's good to have a quick reference.  Not all possible options are
described, that would add way to much noise.  I chose those that I think
are relevant in the context of writing a test case.

gdb/testsuite/ChangeLog:

	* lib/gdb.exp (gdb_compile): Add function doc.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Enable conditional breakpoints for targets that support software single step in GDBServer
@ 2015-12-18 17:59 sergiodj+buildbot
  2015-12-18 20:03 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-12-18 17:59 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT bd2b290956e9a1931cf593b0f2cc934867da1d45 ***

Author: Antoine Tremblay <antoine.tremblay@ericsson.com>
Branch: master
Commit: bd2b290956e9a1931cf593b0f2cc934867da1d45

Enable conditional breakpoints for targets that support software single step in GDBServer

This patch enables support for conditional breakpoints if the target supports
software single step.

This was disabled before as the implementations of software single step were too
simple as discussed in
https://sourceware.org/ml/gdb-patches/2015-04/msg01110.html.

Since these issues are now fixed support can be added back.

New tests passing :
PASS: gdb.base/cond-eval-mode.exp: set breakpoint condition-evaluation
target and related...

No regressions, tested on ubuntu 14.04 ARMv7 and x86.
With gdbserver-{native,extended} / { -marm -mthumb }

gdb/gdbserver/ChangeLog:

	* server.c (handle_query): Call target_supports_software_single_step.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Enable software single stepping for while-stepping actions in GDBServer
@ 2015-12-18 17:51 sergiodj+buildbot
  2015-12-18 19:33 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-12-18 17:51 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 7fe5e27e9d63b065731b1b0b69ffd344942f4f39 ***

Author: Antoine Tremblay <antoine.tremblay@ericsson.com>
Branch: master
Commit: 7fe5e27e9d63b065731b1b0b69ffd344942f4f39

Enable software single stepping for while-stepping actions in GDBServer

This patch enables software single stepping if the targets support it,
to do while-stepping actions.

No regressions, tested on ubuntu 14.04 ARMv7 and x86.
With gdbserver-{native,extended} / { -marm -mthumb }

gdb/gdbserver/ChangeLog:

	* linux-low.c (single_step): New function.
	(linux_resume_one_lwp_throw): Call single_step.
	(start_step_over): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Support software single step on ARM in GDBServer
@ 2015-12-18 17:43 sergiodj+buildbot
  2015-12-18 19:06 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-12-18 17:43 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT d9311bfaf572cf14af577a66e79c51c491553552 ***

Author: Antoine Tremblay <antoine.tremblay@ericsson.com>
Branch: master
Commit: d9311bfaf572cf14af577a66e79c51c491553552

Support software single step on ARM in GDBServer

This patch teaches GDBServer how to software single step on ARM
linux by sharing code with GDB.

The arm_get_next_pcs function in GDB is now shared with GDBServer.  So
that GDBServer can use the function to return the possible addresses of
the next PC.

A proper shared context was also needed so that we could share the code,
this context is described in the arm_get_next_pcs structure.

Testing :

No regressions, tested on ubuntu 14.04 ARMv7 and x86.
With gdbserver-{native,extended} / { -marm -mthumb }

gdb/ChangeLog:

	* Makefile.in (ALL_TARGET_OBS): Append arm-get-next-pcs.o,
	arm-linux.o.
	(ALLDEPFILES): Append arm-get-next-pcs.c, arm-linux.c
	(arm-linux.o): New rule.
	(arm-get-next-pcs.o): New rule.
	* arch/arm-get-next-pcs.c: New file.
	* arch/arm-get-next-pcs.h: New file.
	* arch/arm-linux.h: New file.
	* arch/arm-linux.c: New file.
	* arm.c: Include common-regcache.c.
	(thumb_advance_itstate): Moved from arm-tdep.c.
	(arm_instruction_changes_pc): Likewise.
	(thumb_instruction_changes_pc): Likewise.
	(thumb2_instruction_changes_pc): Likewise.
	(shifted_reg_val): Likewise.
	* arm.h (submask): Move macro from arm-tdep.h
	(bit): Likewise.
	(bits): Likewise.
	(sbits): Likewise.
	(BranchDest): Likewise.
	(thumb_advance_itstate): Moved declaration from arm-tdep.h
	(arm_instruction_changes_pc): Likewise.
	(thumb_instruction_changes_pc): Likewise.
	(thumb2_instruction_changes_pc): Likewise.
	(shifted_reg_val): Likewise.
	* arm-linux-tdep.c: Include arch/arm.h, arch/arm-get-next-pcs.h
	arch/arm-linux.h.
	(arm_linux_get_next_pcs_ops): New struct.
	(ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT,
	ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT,
	ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): Move stack
	layout defines to arch/arm-linux.h.
	(arm_linux_sigreturn_next_pc_offset): Move to arch/arm-linux.c.
	(arm_linux_software_single_step): Adjust for arm_get_next_pcs
	implementation.
	* arm-tdep.c: Include arch/arm-get-next-pcs.h.
	(arm_get_next_pcs_ops): New struct.
	(submask): Move macro to arm.h.
	(bit): Likewise.
	(bits): Likewise.
	(sbits): Likewise.
	(BranchDest): Likewise.
	(thumb_instruction_changes_pc): Move to arm.c
	(thumb2_instruction_changes_pc): Likewise.
	(arm_instruction_changes_pc): Likewise.
	(shifted_reg_val): Likewise.
	(thumb_advance_itstate): Likewise.
	(thumb_get_next_pc_raw): Move to arm-get-next-pcs.c.
	(arm_get_next_pc_raw): Likewise.
	(arm_get_next_pc): Likewise.
	(thumb_deal_with_atomic_sequence_raw): Likewise.
	(arm_deal_with_atomic_sequence_raw): Likewise.
	(arm_deal_with_atomic_sequence): Likewise.
	(arm_get_next_pcs_read_memory_unsigned_integer): New function.
	(arm_get_next_pcs_addr_bits_remove): Likewise.
	(arm_get_next_pcs_syscall_next_pc): Likewise.
	(arm_get_next_pcs_is_thumb): Likewise.
	(arm_software_single_step): Adjust for arm_get_next_pcs
	implementation.
	* arm-tdep.h: (arm_get_next_pc): Remove declaration.
	(arm_get_next_pcs_read_memory_unsigned_integer):
	New declaration.
	(arm_get_next_pcs_addr_bits_remove): Likewise.
	(arm_get_next_pcs_syscall_next_pc): Likewise.
	(arm_get_next_pcs_is_thumb): Likewise.
	(arm_deal_with_atomic_sequence: Remove declaration.
	* common/gdb_vecs.h: Add CORE_ADDR vector definition.
	* configure.tgt (aarch64*-*-linux): Add arm-get-next-pcs.o,
	arm-linux.o.
	(arm*-wince-pe): Add arm-get-next-pcs.o.
	(arm*-*-linux*): Add arm-get-next-pcs.o, arm-linux.o,
	arm-get-next-pcs.o
	(arm*-*-netbsd*,arm*-*-knetbsd*-gnu): Add arm-get-next-pcs.o.
	(arm*-*-openbsd*): Likewise.
	(arm*-*-symbianelf*): Likewise.
	(arm*-*-*): Likewise.
	* symtab.h: Move CORE_ADDR vector definition to gdb_vecs.h.

gdb/gdbserver/ChangeLog:

	* Makefile.in (SFILES): Append arch/arm-linux.c,
	arch/arm-get-next-pcs.c.
	(arm-linux.o): New rule.
	(arm-get-next-pcs.o): New rule.
	* configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
	arm-linux.o.
	* linux-aarch32-low.c (arm_abi_breakpoint): Remove macro.  Moved
	to linux-aarch32-low.c.
	(arm_eabi_breakpoint, arm_breakpoint): Likewise.
	(arm_breakpoint_len, thumb_breakpoint): Likewise.
	(thumb_breakpoint_len, thumb2_breakpoint): Likewise.
	(thumb2_breakpoint_len): Likewise.
	(arm_is_thumb_mode): Make non-static.
	* linux-aarch32-low.h (arm_abi_breakpoint): New macro.  Moved
	from linux-aarch32-low.c.
	(arm_eabi_breakpoint, arm_breakpoint): Likewise.
	(arm_breakpoint_len, thumb_breakpoint): Likewise.
	(thumb_breakpoint_len, thumb2_breakpoint): Likewise.
	(thumb2_breakpoint_len): Likewise.
	(arm_is_thumb_mode): New declaration.
	* linux-arm-low.c: Include arch/arm-linux.h
	aarch/arm-get-next-pcs.h, sys/syscall.h.
	(get_next_pcs_ops): New struct.
	(get_next_pcs_addr_bits_remove): New function.
	(get_next_pcs_is_thumb): New function.
	(get_next_pcs_read_memory_unsigned_integer): Likewise.
	(arm_sigreturn_next_pc): Likewise.
	(get_next_pcs_syscall_next_pc): Likewise.
	(arm_gdbserver_get_next_pcs): Likewise.
	(struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
	Initialize.
	* linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
	* server.h: Include gdb_vecs.h.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] New test gdb.arch/arm-neon.exp
@ 2015-11-27 16:37 sergiodj+buildbot
  2015-11-30 22:47 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-27 16:37 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 58b584afe6ed6949c10b3049167c66cc070e0e81 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 58b584afe6ed6949c10b3049167c66cc070e0e81

New test gdb.arch/arm-neon.exp

Both ARM and AArch64 have defined some SIMD data types in arm_neon.h,
but we don't have a test case for passing them and returning them in
inferior call.  This test also covers passing and returning
homogeneous short vector aggregate (defined by AArch64 ABI document)
in inferior call too.

gdb/testsuite:

	* gdb.arch/arm-neon.exp: New.
	* gdb.arch/arm-neon.c: New.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [AArch64] Let aliased instructions be their preferred form.
@ 2015-11-27 16:04 sergiodj+buildbot
  2015-11-30 23:43 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-27 16:04 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 35822b3812f74319dfad28876d37645589b83a80 ***

Author: Matthew Wahab <matthew.wahab@arm.com>
Branch: master
Commit: 35822b3812f74319dfad28876d37645589b83a80

[AArch64] Let aliased instructions be their preferred form.

Although the AArch64 backend supports aliased instructions, the aliasing
forms are always preferred over the real instruction. This makes it
awkward to handle instructions which have aliases but which are their
own preferred form.

This patch includes the instruction being aliased in the list of
alternatives which is searched when considering which form to use.

opcodes/
2015-11-27  Matthew Wahab  <matthew.wahab@arm.com>

	* aarch64-asm-2.c: Regenerate.
	* aarch64-dis-2.c: Regenerate.
	* aarch64-dis.c: Weaken assert.
	* aarch64-gen.c: Include the instruction in the list of its
	possible aliases.

Change-Id: I1f23eb25fccef76a64d3d732d58761bd25fad94e


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [AArch64] Only check breakpoint alignment on inserting
@ 2015-11-27 15:57 sergiodj+buildbot
  2015-11-30 23:16 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-27 15:57 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 805035d70cd8637c169caf97800accdd267d1d8e ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 805035d70cd8637c169caf97800accdd267d1d8e

[AArch64] Only check breakpoint alignment on inserting

This patch fixes the GDB internal error on AArch64 when running
watchpoint-fork.exp

 top?bt 15
 internal_error (file=file@entry=0x79d558 "../../binutils-gdb/gdb/linux-nat.c", line=line@entry=4866, fmt=0x793b20 "%s: Assertion `%s' failed.")
    at ../../binutils-gdb/gdb/common/errors.c:51
 #1  0x0000000000495bc4 in linux_nat_thread_address_space (t=<optimized out>, ptid=<error reading variable: Cannot access memory at address 0x1302>)
    at ../../binutils-gdb/gdb/linux-nat.c:4866
 #2  0x00000000005db2c8 in delegate_thread_address_space (self=<optimized out>, arg1=<error reading variable: Cannot access memory at address 0x1302>)
    at ../../binutils-gdb/gdb/target-delegates.c:2447
 #3  0x00000000005e8c7c in target_thread_address_space (ptid=<error reading variable: Cannot access memory at address 0x1302>)
    at ../../binutils-gdb/gdb/target.c:2727
 #4  0x000000000054eef8 in get_thread_arch_regcache (ptid=..., gdbarch=0xad51e0) at ../../binutils-gdb/gdb/regcache.c:529
 #5  0x000000000054efcc in get_thread_regcache (ptid=...) at ../../binutils-gdb/gdb/regcache.c:546
 #6  0x000000000054f120 in get_thread_regcache_for_ptid (ptid=...) at ../../binutils-gdb/gdb/regcache.c:560
 #7  0x00000000004a2278 in aarch64_point_is_aligned (is_watchpoint=0, addr=34168, len=2) at ../../binutils-gdb/gdb/nat/aarch64-linux-hw-point.c:122
 #8  0x00000000004a2e68 in aarch64_handle_breakpoint (type=hw_execute, addr=34168, len=2, is_insert=0, state=0xae8880)
    at ../../binutils-gdb/gdb/nat/aarch64-linux-hw-point.c:465
 #9  0x000000000048edf0 in aarch64_linux_remove_hw_breakpoint (self=<optimized out>, gdbarch=<optimized out>, bp_tgt=<optimized out>)
    at ../../binutils-gdb/gdb/aarch64-linux-nat.c:657
 #10 0x00000000005da8dc in delegate_remove_hw_breakpoint (self=<optimized out>, arg1=<optimized out>, arg2=<optimized out>)
    at ../../binutils-gdb/gdb/target-delegates.c:492
 #11 0x0000000000536a24 in bkpt_remove_location (bl=<optimized out>) at ../../binutils-gdb/gdb/breakpoint.c:13065
 #12 0x000000000053351c in remove_breakpoint_1 (bl=0xb3fe70, is=is@entry=mark_inserted) at ../../binutils-gdb/gdb/breakpoint.c:4026
 #13 0x000000000053ccc0 in detach_breakpoints (ptid=...) at ../../binutils-gdb/gdb/breakpoint.c:3930
 #14 0x00000000005a3ac0 in handle_inferior_event_1 (ecs=0x7ffffff048) at ../../binutils-gdb/gdb/infrun.c:5042

After the fork, GDB will physically remove the breakpoints from the child
process (in frame #14), but at that time, GDB doesn't create an inferior
yet for child, but inferior_ptid is set to child's ptid (in frame #13).
In aarch64_point_is_aligned, we'll get the regcache of current_lwp_ptid
to determine if the current process is 32-bit or 64-bit, so the inferior
can't be found, and the internal error is caused.

I don't find a better fix other than not checking alignment on removing
breakpoint.

gdb:

2015-11-27  Yao Qi  <yao.qi@linaro.org>

	* nat/aarch64-linux-hw-point.c (aarch64_dr_state_remove_one_point):
	Don't assert on alignment.
	(aarch64_handle_breakpoint): Only check alignment when IS_INSERT
	is true.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Use multi_line to make pattern more human readable
@ 2015-11-27 15:24 sergiodj+buildbot
  2015-11-30 21:25 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-27 15:24 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT dfcb77a8d78462af49ebc42b41d6fc504f4c2cf0 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: dfcb77a8d78462af49ebc42b41d6fc504f4c2cf0

Use multi_line to make pattern more human readable

gdb/testsuite:

2015-11-27  Yao Qi  <yao.qi@linaro.org>

	* gdb.cp/annota2.exp: Rewrite the pattern using multi_line.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [AArch64] Handle HFA and HVA together
@ 2015-11-27 15:08 sergiodj+buildbot
  2015-11-30 22:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-27 15:08 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT cd635f74a3b71043d35501db31b3acac956018cd ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: cd635f74a3b71043d35501db31b3acac956018cd

[AArch64] Handle HFA and HVA together

AArch64 AAPCS defined HFA (homogeneous floating-point aggregate)
and HVF (homogeneous short vector aggregate), bug GDB only handles the
former.  In the AAPCS doc, both types are treated exactly the same
in terms of alignment and passing locations (on registers or stack).
This patch is to extend is_hfa to handle both HFA and HVA.

gdb:

2015-11-27  Yao Qi  <yao.qi@linaro.org>

	* aarch64-tdep.c (is_hfa): Rename to ...
	(is_hfa_or_hva): ... this.  Handle vector type.  All callers
	updated.
	(aarch64_extract_return_value): Update debugging message.
	(aarch64_store_return_value): Likewise.
	(aarch64_return_in_memory): Update comments.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [AArch64] Support gnu vector in inferior call
@ 2015-11-27 15:00 sergiodj+buildbot
  2015-11-30 21:53 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-27 15:00 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 238f2452e6d94f7b227a9d132f5ae887299d96c6 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 238f2452e6d94f7b227a9d132f5ae887299d96c6

[AArch64] Support gnu vector in inferior call

As defined in AArch64 AAPCS, short vectors are passed through V
registers, and its maximum alignment is 16-byte.  This patch is
to reflect these rules in GDB.  This patch fixes some fails in
gdb.base/gnu_vector.exp.

gdb:

2015-11-27  Yao Qi  <yao.qi@linaro.org>

	* aarch64-tdep.c (aarch64_type_align): For vector type, return
	its length, but with the maximum of 16 bytes.
	(is_hfa): Return zero for vector type.
	(aarch64_push_dummy_call): Handle short vectors.
	(aarch64_extract_return_value): Likewise.
	(aarch64_store_return_value): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Allow multiple occurrences of the frames-invalid annotation in gdb.cp/annota2.exp
@ 2015-11-27 14:44 sergiodj+buildbot
  2015-11-30 20:58 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-27 14:44 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 88e8ec1b3e372dc1ea1cd0be44c59ca7760e9008 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 88e8ec1b3e372dc1ea1cd0be44c59ca7760e9008

Allow multiple occurrences of the frames-invalid annotation in gdb.cp/annota2.exp

Hi,
I see one fail on aarch64-linux testing,

  FAIL: gdb.cp/annota2.exp: watch triggered on a.x (timeout)

because GDB prints two frames-invalid annotation but the test expects
only one.

next^M
^M
^Z^Zpost-prompt^M
^M
^Z^Zstarting^M
^M
^Z^Zframes-invalid^M
^M
^Z^Zframes-invalid^M
^M
Note I also see the fail on Debian-s390x-m64 too.
https://sourceware.org/ml/gdb-testers/2015-q4/msg07291.html

The test shouldn't only expect one frames-invalid annotation, because
there can be multiple times of stop/resume before the user visible
stop.  Ulrich did something similar before
https://www.sourceware.org/ml/gdb-patches/2009-06/msg00118.html

This patch only changes ${frames_invalid} to \(${frames_invalid}\)*
in the regexp pattern.

The patch below fixes the fail on aarch64-linux.

gdb/testsuite:

2015-11-27  Yao Qi  <yao.qi@linaro.org>

	* gdb.cp/annota2.exp: Allow multiple occurrences of the
	frames-invalid annotation.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Use ${frames_invalid} in gdb.cp/annota2.exp
@ 2015-11-27 14:32 sergiodj+buildbot
  2015-11-30 20:28 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-27 14:32 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT bfde72c275bff9d5be21cf51ba790cf38ecd0d59 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: bfde72c275bff9d5be21cf51ba790cf38ecd0d59

Use ${frames_invalid} in gdb.cp/annota2.exp

Variable frames_invalid was defined, but wasn't used much.  This patch
is to replace the literals in the regexp with ${frames_invalid}.

gdb/testsuite:

2015-11-27  Yao Qi  <yao.qi@linaro.org>

	* gdb.cp/annota2.exp: Use ${frames_invalid}.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [Aarch64] Support an ARMv8.2 system register.
@ 2015-11-27 13:56 sergiodj+buildbot
  2015-11-30 20:05 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-27 13:56 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 1a04d1a7e1e0ab4456c8f729375b9415a8cf7c61 ***

Author: Matthew Wahab <matthew.wahab@arm.com>
Branch: master
Commit: 1a04d1a7e1e0ab4456c8f729375b9415a8cf7c61

[Aarch64] Support an ARMv8.2 system register.

ARMv8.2 adds a new system register id_aa64mmfr2_el1. This patch adds
support for the register to binutils, making it available when
-march=armv8.2-a is selected.

opcodes/
2015-11-27  Matthew Wahab  <matthew.wahab@arm.com>

	* aarch64-opc.c (aarch64_sys_regs): Add "id_aa64mmfr2_el1".
	(aarch64_sys_reg_supported_p): Add ARMv8.2 system register
	feature test.

gas/testsuite/
2015-11-27  Matthew Wahab  <matthew.wahab@arm.com>

	* gas/aarch64/sysreg-2.d: New.
	* gas/aarch64/sysreg-2.s: New.

Change-Id: I767f18a60e2bd70ce74c89f6abfe07afdc9e601f


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [AArch64] Add feature flags and command line for ARMv8.2 FP16 support.
@ 2015-11-27 13:32 sergiodj+buildbot
  2015-11-30 19:37 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-27 13:32 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 870181955b565b4fbbf4efcbec4a43d687703d1a ***

Author: Matthew Wahab <matthew.wahab@arm.com>
Branch: master
Commit: 870181955b565b4fbbf4efcbec4a43d687703d1a

[AArch64] Add feature flags and command line for ARMv8.2 FP16 support.

ARMv8.2 adds optional support for 16-bit operations to the FP and
Adv.SIMD instructions. This patch adds a feature macro for this support
with a new command line option "+fp16" to enable/disable it.

Although the command line option is added as an architecture extension,
it only affects instructions available with when +fp or +simd is
enabled. If +fp16 is specified then it will also enable +fp.

There are currently no FP16 instructions implemented in binutils, this
patch is to enable subsequent work on supporting the extension.

gas/
2015-11-27  Matthew Wahab  <matthew.wahab@arm.com>

	* config/tc-aarch64.c (aarch64_features): Add "fp16".
	* doc/c-aarch64.texi (Architecture Extensions): Add "fp16".

include/opcode/
2015-11-27  Matthew Wahab  <matthew.wahab@arm.com>

	* aarch64.h (AARCH64_FEATURE_F16): New.
	(AARCH64_ARCH_V8_2): Add AARCH64_FEATURE_F16 to ARMv8.2
	features.

Change-Id: Id2021e0513946e16d0935c2a5b9605574cdff95a


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add test for thread names
@ 2015-11-26 18:28 sergiodj+buildbot
  2015-11-26 19:15 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-26 18:28 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT f6512a69cd414a31e302daf107f5959ef06bcbec ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: f6512a69cd414a31e302daf107f5959ef06bcbec

Add test for thread names

I couldn't find a test that verified the thread name functionality, so I
created a new one.

A target board can define gdb,no_thread_names if it doesn't support thread
names and wants to skip the tests that uses them.

This test has been made with Linux in mind.  Not all platforms use
pthread_setname_np to set the thread name, but some #ifdefs can be added
later in order to support other platforms.

Tested on x86-64 Ubuntu 14.04, native and remote.

gdb/testsuite/ChangeLog:

	* gdb.threads/names.exp: New file.
	* gdb.threads/names.c: New file.
	* README: Mention gdb,no_thread_names.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Display names of remote threads
@ 2015-11-26 16:04 sergiodj+buildbot
  2015-11-26 17:29 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-26 16:04 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 79efa585c51f0657b319beb1e213d5721eaacdcc ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 79efa585c51f0657b319beb1e213d5721eaacdcc

Display names of remote threads

This patch adds support for thread names in the remote protocol, and
updates gdb/gdbserver to use it.  The information is added to the XML
description sent in response to the qXfer:threads:read packet.

gdb/ChangeLog:

	* linux-nat.c (linux_nat_thread_name): Replace implementation by call
	to linux_proc_tid_get_name.
	* nat/linux-procfs.c (linux_proc_tid_get_name): New function,
	implementation inspired by linux_nat_thread_name.
	* nat/linux-procfs.h (linux_proc_tid_get_name): New declaration.
	* remote.c (struct private_thread_info) <name>: New field.
	(free_private_thread_info): Free name field.
	(remote_thread_name): New function.
	(thread_item_t) <name>: New field.
	(clear_threads_listing_context): Free name field.
	(start_thread): Get name xml attribute.
	(thread_attributes): Add "name" attribute.
	(remote_update_thread_list): Copy name field.
	(init_remote_ops): Assign remote_thread_name callback.
	* target.h (target_thread_name): Update comment.
	* NEWS: Mention remote thread name support.

gdb/gdbserver/ChangeLog:

	* linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
	* server.c (handle_qxfer_threads_worker): Refactor to include thread
	name in reply.
	* target.h (struct target_ops) <thread_name>: New field.
	(target_thread_name): New macro.

gdb/doc/ChangeLog:

	* gdb.texinfo (Thread List Format): Mention thread names.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] binutils: add support for arm-*-darwin and aarch64-*-darwin.
@ 2015-11-20 14:07 sergiodj+buildbot
  2015-11-20 14:43 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-20 14:07 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT f075eb5e6b0dd850304f78cf4d5c94df7b44c7a3 ***

Author: Tristan Gingold <gingold@adacore.com>
Branch: master
Commit: f075eb5e6b0dd850304f78cf4d5c94df7b44c7a3

binutils: add support for arm-*-darwin and aarch64-*-darwin.

Currently only in bfd and binutils.

ChangeLog/
	* configure.ac: Add aarch64-*-darwin* and arm-*-darwin*.
	* configure: Regenerate.

bfd/ChangeLog/
	* targets.c (aarch64_mach_o_vec, arm_mach_o_vec): Declare.
	(_bfd_target_vector): Add new vectors.
	* reloc.c (BFD_RELOC_MACH_O_SUBTRACTOR32)
	(BFD_RELOC_MACH_O_SUBTRACTOR64, BFD_RELOC_MACH_O_ARM64_ADDEND)
	(BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGE21)
	(BFD_RELOC_MACH_O_ARM64_GOT_LOAD_PAGEOFF12)
	(BFD_RELOC_MACH_O_ARM64_POINTER_TO_GOT): New relocations.
	(BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32)
	(BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64): Remove.
	* mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Change
	name of subtractor relocations.
	* config.bfd: Handle aarch64-*-darwin*, arm-*-darwin*.
	* Makefile.am (BFD32_BACKENDS): Add mach-o-arm.lo.
	(BFD32_BACKENDS_CFILES): Add mach-o-arm.c.
	(BFD64_BACKENDS): Add mach-o-aarch64.lo.
	(BFD64_BACKENDS_CFILES): Add mach-o-aarch64.c.
	* configure.ac: Handle aarch64_mach_o_vec and arm_mach_o_vec.
	* mach-o-aarch64.c: New file.
	* mach-o-arm.c: New file.
	* Makefile.in: Regenerate.
	* bfd-in2.h: Regenerate.
	* configure: Regenerate.
	* libbfd.h: Regenerate.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix out of boundary access in pass_in_v
@ 2015-11-18 12:02 sergiodj+buildbot
  2015-11-18 12:31 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-18 12:02 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 0735fdddbc086291f6d2357e8fa57e5df6095e89 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 0735fdddbc086291f6d2357e8fa57e5df6095e89

Fix out of boundary access in pass_in_v

Hi,
I build GDB with -fsanitize=address, and run testsuite.  In
gdb.base/callfuncs.exp, I see the following error,

p t_float_values(0.0,0.0)
=================================================================
==8088==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000cb650 at pc 0x6e195c bp 0x7fff164f9770 sp 0x7fff164f9768
READ of size 16 at 0x6020000cb650 thread T0^
    #0 0x6e195b in regcache_raw_write /home/yao/SourceCode/gnu/gdb/git/gdb/regcache.c:912
    #1 0x6e1e52 in regcache_cooked_write /home/yao/SourceCode/gnu/gdb/git/gdb/regcache.c:945
    #2 0x466d69 in pass_in_v /home/yao/SourceCode/gnu/gdb/git/gdb/aarch64-tdep.c:1101
    #3 0x467512 in pass_in_v_or_stack /home/yao/SourceCode/gnu/gdb/git/gdb/aarch64-tdep.c:1196
    #4 0x467d7d in aarch64_push_dummy_call /home/yao/SourceCode/gnu/gdb/git/gdb/aarch64-tdep.c:1335

The code in pass_in_v read contents from V registers (128 bit), but the
data passed through V registers can be less than 128 bit.  In this case,
float is passed.  So writing V registers contents into contents buff
will cause overflow.  In this patch, we add an array reg[V_REGISTER_SIZE],
which is to hold the contents from V registers, and then copy useful
bits to buf.

gdb:

2015-11-18  Yao Qi  <yao.qi@linaro.org>

	* aarch64-tdep.c (pass_in_v): Add argument len.  Add local array
	reg.  Callers updated.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Prevent looping in archives
@ 2015-11-18 11:52 sergiodj+buildbot
  2015-11-18 12:11 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-18 11:52 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 4978e369fb75a8b7756bf4201668b2a9d9556286 ***

Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 4978e369fb75a8b7756bf4201668b2a9d9556286

Prevent looping in archives

	PR 19256
	* archive.c (bfd_generic_openr_next_archived_file): Don't allow
	backward file movement via "negative" sizes.
	* coff-alpha.c (alpha_ecoff_openr_next_archived_file): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] mach-o cleanup: remove useless calls to bfd_seek.
@ 2015-11-18 11:42 sergiodj+buildbot
  2015-11-18 11:55 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-18 11:42 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 47daa70fe08c57aaafa6fe1a7e762072909d0f8f ***

Author: Tristan Gingold <gingold@adacore.com>
Branch: master
Commit: 47daa70fe08c57aaafa6fe1a7e762072909d0f8f

mach-o cleanup: remove useless calls to bfd_seek.

Also support new commands.

bfd/
	* mach-o.h (struct mach_o_data_struct): Add hdr_offset field.
	(bfd_mach_o_fat_archive_p): Renames prototype.
	(bfd_mach_o_fat_openr_next_archived_file): Renames.
	(bfd_mach_o_header_p): Add argument.
	* mach-o.c (bfd_mach_o_read_header): Add hdr_off argument and
	use it.
	(bfd_mach_o_read_section_32, bfd_mach_o_read_section_64)
	(bfd_mach_o_read_section): Remove offset argument.
	(bfd_mach_o_read_dylinker): Remove bfd_seek call.
	(bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib)
	(bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints)
	(bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab)
	(bfd_mach_o_read_symtab, bfd_mach_o_read_uuid)
	(bfd_mach_o_read_linkedit, bfd_mach_o_read_str)
	(bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min)
	(bfd_mach_o_read_encryption_info): Likewise.
	(bfd_mach_o_read_encryption_info_64): New function.
	(bfd_mach_o_read_main, bfd_mach_o_read_source_version)
	(bfd_mach_o_read_segment): Remove call to bfd_seek.
	(bfd_mach_o_read_command): Use hdr_offset in bfd_seek.
	Handle BFD_MACH_O_LC_LINKER_OPTIMIZATION_HINT,
	BFD_MACH_O_LC_ENCRYPTION_INFO_64, BFD_MACH_O_LC_VERSION_MIN_WATCHOS.
	(bfd_mach_o_header_p): Add hdr_off argument.
	(bfd_mach_o_gen_object_p, bfd_mach_o_gen_core_p): Adjust calls.
	(bfd_mach_o_fat_archive_p): Renames.
	(bfd_mach_o_fat_openr_next_archived_file): Renames.
	(bfd_mach_o_close_and_cleanup): Remove useless code.
	(bfd_mach_o_close_and_cleanup): Define.
	* mach-o-x86-64.c (bfd_mach_o_x86_64_object_p)
	(bfd_mach_o_x86_64_core_p): Adjust calls.
	* mach-o-target.c: Move defines for archive from mach-o.c.
	Remove check on TARGET_ARCHIVE.
	* mach-o-i386.c (bfd_mach_o_i386_object_p)
	(bfd_mach_o_i386_core_p): Adjust calls.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] sim: mn10300/v850: drop unused WITH_CORE define
@ 2015-11-18  4:25 sergiodj+buildbot
  2015-11-18  4:34 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-18  4:25 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT c389945b7a470aa328972026fe4a836c57ccb7ae ***

Author: Mike Frysinger <vapier@gentoo.org>
Branch: master
Commit: c389945b7a470aa328972026fe4a836c57ccb7ae

sim: mn10300/v850: drop unused WITH_CORE define

This was dropped from the sim core in 1997, so no point in having these
sim ports continue to define it.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] sim: always enable modulo memory
@ 2015-11-18  4:18 sergiodj+buildbot
  2015-11-18  4:24 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-18  4:18 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT cdf850e9d953f765f600e1ecae61664eab5ae7f1 ***

Author: Mike Frysinger <vapier@gentoo.org>
Branch: master
Commit: cdf850e9d953f765f600e1ecae61664eab5ae7f1

sim: always enable modulo memory

Having this be a config option doesn't make sense: the code size is
pretty much the same (as all the logic is still active), and if it's
disabled, the sim throws an error if you try to use it.  That means
we can't break sims that weren't using it before by enabling it all
the time.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [sim/ppc] Fix printf_filtered reference
@ 2015-11-17 21:29 sergiodj+buildbot
  2015-11-17 21:34 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-17 21:29 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT a6760b615451518704601cae9327d333fe4bec57 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: a6760b615451518704601cae9327d333fe4bec57

[sim/ppc] Fix printf_filtered reference

Building a gdb that includes the PPC sim in C++ mode fails to link with:

(...)s.o compile-object-load.o compile-object-run.o compile-loc2c.o compile-c-support.o inflow.o    init.o \
          ../sim/ppc/libsim.a ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a -lz  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -ldl -ldl -lncurses -lm -ldl  -lguile-2.0 -lgc  -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic -lexpat -llzma -lbabeltrace -lbabeltrace-ctf  ../libiberty/libiberty.a  build-gnulib/import/libgnu.a
../sim/ppc/libsim.a(sim_calls.o): In function `sim_open':
/home/pedro/gdb/mygit/cxx-convertion/src/sim/ppc/sim_calls.c:73: undefined reference to `printf_filtered'
/home/pedro/gdb/mygit/cxx-convertion/src/sim/ppc/sim_calls.c:73: undefined reference to `printf_filtered'
../sim/ppc/libsim.a(sim_calls.o): In function `sim_close':
/home/pedro/gdb/mygit/cxx-convertion/src/sim/ppc/sim_calls.c:93: undefined reference to `printf_filtered'
/home/pedro/gdb/mygit/cxx-convertion/src/sim/ppc/sim_calls.c:93: undefined reference to `printf_filtered'
../sim/ppc/libsim.a(sim_calls.o): In function `sim_load':
/home/pedro/gdb/mygit/cxx-convertion/src/sim/ppc/sim_calls.c:102: undefined reference to `printf_filtered'
../sim/ppc/libsim.a(sim_calls.o):/home/pedro/gdb/mygit/cxx-convertion/src/sim/ppc/sim_calls.c:102: more undefined references to `printf_filtered' follow
collect2: error: ld returned 1 exit status

The undefined references come from TRACE macro calls, which expand to
calls to printf_filtered.

But note that the sim's 'printf_filtered' is actually a #define to
'sim_io_printf_filtered', in sim_callbacks.h :

 #define printf_filtered sim_io_printf_filtered

AFAICS, this is not meant to call gdb's printf_filtered function.  The
ChangeLog entry that added the printf_filtered macro reads:

 Tue Jul 30 21:12:24 1996  Andrew Cagney  <cagney@kremvax.highland.com.au>

	 * sim_callbacks.h (sim_io_printf_filtered): Replace
	 printf_filtered with a local simulator specific version.  Add
	 #define printf_filtered to simplify updating of existing code.

That is, just another incomplete/partial transition.  Maybe prior to
1996 this was really meant to call gdb's printf_filtered version.

The reference to printf_filtered appears because sim_calls.c, the
compilation unit that fails to link, has this at the top:

 #undef printf_filtered /* blow away the mapping */

presumably so that this further below:

 void
 sim_io_printf_filtered(const char *fmt,
			...)
 {
   (...)
   callbacks->printf_filtered(callbacks, "%s", message);
 }

works.  So those TRACE macros instances in sim_calls.c just happen to
work because gdb is linked in, which satisfies the 'printf_filtered'
reference, when GDB is built in C mode.  When built in C++ mode, the
problem is exposed, as GDB's printf_filtered is mangled.

The fix here is to make the TRACE macro call sim_io_printf_filtered
directly.

(Standalone "run" doesn't fail to link simply because the offending
routines are not part of its link.)

sim/ppc/ChangeLog
2015-11-17  Pedro Alves  <palves@redhat.com>

	* debug.h (TRACE, ITRACE, DTRACE, DITRACE, PTRACE): Call
	sim_io_printf_filtered instead of printf_filtered.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix gdb.threads/multiple-step-overs.exp fails on arm
@ 2015-11-17 17:26 sergiodj+buildbot
  2015-11-17 21:26 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-17 17:26 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 1946c4ccca04e374acc040fc30c8b44d2c9ca0a8 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 1946c4ccca04e374acc040fc30c8b44d2c9ca0a8

Fix gdb.threads/multiple-step-overs.exp fails on arm

Hi,
Some tests in gdb.threads/multiple-step-overs.exp fail on arm target
when the displaced stepping on, but they pass when displaced stepping
is off.

 FAIL: gdb.threads/multiple-step-overs.exp: displaced=on: step: step
 FAIL: gdb.threads/multiple-step-overs.exp: displaced=on: next: next
 FAIL: gdb.threads/multiple-step-overs.exp: displaced=on: continue: continue
 FAIL: gdb.threads/multiple-step-overs.exp: displaced=on: signal thr1: continue to sigusr1_handler

when displaced stepping is on,

Sending packet: $vCont;c#a8...infrun: infrun_async(1)^M <--- [1]
infrun: prepare_to_wait^M
infrun: target_wait (-1.0.0, status) =^M
infrun:   -1.0.0 [Thread 0],^M
infrun:   status->kind = ignore^M
infrun: TARGET_WAITKIND_IGNORE^M
infrun: prepare_to_wait^M
Packet received: T05swbreak:;0b:f8faffbe;0d:409ee7b6;0f:d0880000;thread:p635.636;core:0;^M
infrun: target_wait (-1.0.0, status) =^M
infrun:   1589.1590.0 [Thread 1590],^M
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP^M
infrun: TARGET_WAITKIND_STOPPED^M
infrun: stop_pc = 0x88d0^M
infrun: context switch^M
infrun: Switching context from Thread 1591 to Thread 1590^

GDB resumes the whole process (all threads) rather than the specific
thread for which GDB wants to step over the breakpoint (as shown in [1]).
That is wrong because we resume a single thread and leave others stopped
when doing a normal step over where we temporarily remove the breakpoint,
single-step, reinsert the breakpoint, is that if we let other threads run
in the period while the breakpoint is removed, then these other threads
could miss the breakpoint.  Since with displaced stepping, we don't ever
remove the breakpoint, it should be fine to let other threads run.  However,
there's another reason that we should not let other threads run: that is
the case where some of those threads are also stopped for a breakpoint that
itself needs to be stepped over.  If we just let those threads run, then
they immediately re-trap their breakpoint again.

when displaced stepping is off, GDB behaves correctly, only resumes
the specific thread (as shown in [2]).

Sending packet: $vCont;c:p611.613#b2...infrun: infrun_async(1)^M <-- [2]
infrun: prepare_to_wait^M
infrun: target_wait (-1.0.0, status) =^M
infrun:   -1.0.0 [Thread 0],^M
infrun:   status->kind = ignore^M
infrun: TARGET_WAITKIND_IGNORE^M
infrun: prepare_to_wait^M
Packet received: T05swbreak:;0b:f8faffbe;0d:409e67b6;0f:48880000;thread:p611.613;core:1;^M
infrun: target_wait (-1.0.0, status) =^M
infrun:   1553.1555.0 [Thread 1555],^M
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP^M
infrun: TARGET_WAITKIND_STOPPED^M
infrun: clear_step_over_info^M
infrun: stop_pc = 0x8848

The current logic in GDB on deciding the set of threads to resume is:

  /* Decide the set of threads to ask the target to resume.  */
  if ((step || thread_has_single_step_breakpoints_set (tp))
      && tp->control.trap_expected)
    {
      /* We're allowing a thread to run past a breakpoint it has
	 hit, by single-stepping the thread with the breakpoint
	 removed.  In which case, we need to single-step only this
	 thread, and keep others stopped, as they can miss this
	 breakpoint if allowed to run.  */
      resume_ptid = inferior_ptid;
    }
  else
    resume_ptid = internal_resume_ptid (user_step);

it doesn't handle the case correctly that GDB continue (instead of
single step) the thread for displaced stepping.

I also update the comment below to reflect the code.  I remove the
"with the breakpoint removed" comment, because GDB doesn't remove
breakpoints in displaced stepping, so we don't have to worry that
other threads may miss the breakpoint.

Patch is regression tested on both x86_64-linux and arm-linux.

gdb:

2015-11-17  Yao Qi  <yao.qi@linaro.org>

	* infrun.c (resume): Check control.trap_expected only
	when deciding the set of threads to resume.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Introduce null_block_symbol
@ 2015-11-17 17:18 sergiodj+buildbot
  2015-11-17 21:17 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-17 17:18 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT b6b806729dd5c4c46981d59f351460b4d7989548 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: b6b806729dd5c4c46981d59f351460b4d7989548

Introduce null_block_symbol

... in the spirit of null_ptid, null_frame_id, etc.

Fixes two instances of:

  /root/binutils-gdb/gdb/cp-namespace.c: In function 'block_symbol cp_lookup_nested_symbol(type*, const char*, const block*, domain_enum)':
  /root/binutils-gdb/gdb/cp-namespace.c:1010: warning: jump to case label
  /root/binutils-gdb/gdb/cp-namespace.c:1008: error:   crosses initialization of 'block_symbol <anonymous>'

Compiler info:

  Reading specs from /usr/lib/gcc-lib/amd64-unknown-openbsd5.8/4.2.1/specs
  Target: amd64-unknown-openbsd5.8
  Configured with: OpenBSD/amd64 system compiler
  Thread model: posix
  gcc version 4.2.1 20070719

gdb/ChangeLog:
2015-11-17  Pedro Alves  <palves@redhat.com>

	* cp-namespace.c (cp_lookup_bare_symbol)
	(cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
	(cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
	(cp_lookup_nested_symbol): Use null_block_symbol.
	* d-namespace.c (d_lookup_symbol, d_lookup_nested_symbol)
	(d_lookup_symbol_imports, d_lookup_symbol_module): Use
	null_block_symbol.
	* symtab.c (null_block_symbol): New global.
	* symtab.h (null_block_symbol): Declare.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [C++] Always use setjmp/longjmp for exceptions
@ 2015-11-17 17:09 sergiodj+buildbot
  2015-11-17 21:07 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-17 17:09 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT eec461d0a8e7ae14c7fe8f0196ab8d0e30285d83 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: eec461d0a8e7ae14c7fe8f0196ab8d0e30285d83

[C++] Always use setjmp/longjmp for exceptions

We currently throw exceptions from signal handlers (e.g., for
Quit/ctrl-c).  But throwing C++ exceptions from signal handlers is
undefined.  (That doesn't restore signal masks, like siglongjmp does,
and, because asynchronous signals can arrive at any instruction, we'd
have to build _everything_ with -fasync-unwind-tables to make it
reliable.)  It happens to work on x86_64 GNU/Linux at least, but it's
likely broken on other ports.

Until we stop throwing from signal handlers, use setjmp/longjmp based
exceptions in C++ mode as well.

gdb/ChangeLog:
2015-11-17  Pedro Alves  <palves@redhat.com>

	* common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
	(GDB_XCPT_RAW_TRY, GDB_XCPT): Define.
	Replace __cplusplus checks with GDB_XCPT checks throughout.
	* common/common-exceptions.c: Replace __cplusplus checks with
	GDB_XCPT checks throughout.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] MinGW and attribute format(printf/gnu_printf)
@ 2015-11-17 17:01 sergiodj+buildbot
  2015-11-17 20:58 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-17 17:01 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 91ee7171d0886731900ab0238ce3795241d877a4 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 91ee7171d0886731900ab0238ce3795241d877a4

MinGW and attribute format(printf/gnu_printf)

Cross building gdbserver for --host=x86_64-w64-mingw32 with gcc 4.8.4
20141219 (Fedora MinGW 4.8.4-1.fc20), I get:

  src/gdb/gdbserver/tracepoint.c: In function 'cmd_qtdp':
  src/gdb/gdbserver/tracepoint.c:2577:7: error: unknown conversion type character 'l' in format [-Werror=format=]
	 trace_debug ("Defined %stracepoint %d at 0x%s, "
	 ^
  src/gdb/gdbserver/tracepoint.c:2577:7: error: unknown conversion type character 'l' in format [-Werror=format=]
  src/gdb/gdbserver/tracepoint.c:2577:7: error: too many arguments for format [-Werror=format-extra-args]
  src/gdb/gdbserver/tracepoint.c: In function 'stop_tracing':
  src/gdb/gdbserver/tracepoint.c:3447:7: error: unknown conversion type character 'l' in format [-Werror=format=]
	 trace_debug ("Stopping the trace because "
	 ^
  src/gdb/gdbserver/tracepoint.c:3447:7: error: too many arguments for format [-Werror=format-extra-args]
  src/gdb/gdbserver/tracepoint.c: In function 'collect_data_at_tracepoint':
  src/gdb/gdbserver/tracepoint.c:4651:3: error: unknown conversion type character 'l' in format [-Werror=format=]
     trace_debug ("Making new traceframe for tracepoint %d at 0x%s, hit %" PRIu64,
     ^
  src/gdb/gdbserver/tracepoint.c:4651:3: error: too many arguments for format [-Werror=format-extra-args]
  src/gdb/gdbserver/tracepoint.c: In function 'collect_data_at_step':
  src/gdb/gdbserver/tracepoint.c:4687:3: error: unknown conversion type character 'l' in format [-Werror=format=]
     trace_debug ("Making new step traceframe for "
     ^

trace_debug is a macro that calls:

  static void trace_vdebug (const char *, ...) ATTRIBUTE_PRINTF (1, 2);

The calls that fail checking use PRIu64, etc., like:

      trace_debug ("Defined %stracepoint %d at 0x%s, "
		   "enabled %d step %" PRIu64 " pass %" PRIu64,
		   tpoint->type == fast_tracepoint ? "fast "
		   : tpoint->type == static_tracepoint ? "static " : "",
		   tpoint->number, paddress (tpoint->address), tpoint->enabled,
		   tpoint->step_count, tpoint->pass_count);

gnulib's stdio/printf module replacements may make %llu, etc. work on
mingw, instead of the MS-specific %I64u, and thus may make PRIu64
expand to %llu.  However, gcc isn't aware of that, because libiberty's
ansidecl.h defines ATTRIBUTE_PRINTF as using attribute format(printf).
But, with that format, gcc checks for MS-style format strings (%I64u).
In order to have gcc expect gnu/standard formats, we need to use
gnu_printf format instead.  Which version to use (printf/gnu_printf)
depends on msvcrt and mingw version, and so gnulib has a
configure-time check, and defines _GL_ATTRIBUTE_FORMAT_PRINTF
accordingly.

Since _GL_ATTRIBUTE_FORMAT_PRINTF is compatible with ATTRIBUTE_PRINTF,
the fix is simply to make use of the former.

gdb/ChangeLog:
2015-11-17  Pedro Alves  <palves@redhat.com>

	* common/common-defs.h (ATTRIBUTE_PRINTF): Redefine in terms of
	_GL_ATTRIBUTE_FORMAT_PRINTF after including ansidecl.h.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Copy gnulib obstack files
@ 2015-11-09  5:01 sergiodj+buildbot
  2015-11-09  5:47 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-09  5:01 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 314dee8ea9be79a450d9f0b451619b67ebe0e017 ***

Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 314dee8ea9be79a450d9f0b451619b67ebe0e017

Copy gnulib obstack files

This copies obstack.[ch] from gnulib, and updates the docs.  The next
patch should be applied if someone repeats the import at a later date.

include/
	PR gdb/17133
	* obstack.h: Import current gnulib file.
libiberty/
	PR gdb/17133
	* obstack.c: Import current gnulib file.
	* obstacks.texi: Updated doc, from glibc's manual/memory.texi.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Use aarch64_decode_insn in aarch64_analyze_prologue
@ 2015-11-05  9:59 sergiodj+buildbot
  2015-11-05 10:30 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-11-05  9:59 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT d9ebcbce29f3621a687872270cc8952ba1501e56 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: d9ebcbce29f3621a687872270cc8952ba1501e56

Use aarch64_decode_insn in aarch64_analyze_prologue

This patch convert aarch64_analyze_prologue to using aarch64_decode_insn
to decode instructions.  After this change, aarch64_analyze_prologue
looks much simple, and some aarch64_decode_* functions are removed
accordingly.

gdb:

2015-11-05  Yao Qi  <yao.qi@linaro.org>

	* aarch64-tdep.c (extract_signed_bitfield): Remove.
	(decode_masked_match): Remove.
	(aarch64_decode_add_sub_imm): Remove.
	(aarch64_decode_br): Remove.
	(aarch64_decode_eret): Remove.
	(aarch64_decode_movz): Remove.
	(aarch64_decode_orr_shifted_register_x): Remove.
	(aarch64_decode_ret): Remove.
	(aarch64_decode_stp_offset): Remove.
	(aarch64_decode_stur): Remove.
	(aarch64_analyze_prologue): Call aarch64_decode_insn
	and use aarch64_inst to decode instructions.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Recognize a few more AIX XCOFF DWARF sections.
@ 2015-10-13 22:55 sergiodj+buildbot
  2015-10-13 23:04 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-13 22:55 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 33f914a197fa8cd4338396e7d62a5f26621f183c ***

Author: David Edelsohn <dje.gcc@gmail.com>
Branch: master
Commit: 33f914a197fa8cd4338396e7d62a5f26621f183c

Recognize a few more AIX XCOFF DWARF sections.

gdb/ChangeLog:

        * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.


^ permalink raw reply	[flat|nested] 215+ messages in thread
[parent not found: <e6a959d68b8181c816851dcfc91ae0b2b9296df3@gdb-build>]
[parent not found: <170742de5dd5be2156f938e00e2451526ef57d5c@gdb-build>]
* [binutils-gdb] ada-lang.c:ada_value_primitive_packed_val: const correctness
@ 2015-10-13 18:58 sergiodj+buildbot
  2015-10-13 20:08 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-13 18:58 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT bfb1c7963b15b31073c9adf2d97ff1cf953ec99c ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: bfb1c7963b15b31073c9adf2d97ff1cf953ec99c

ada-lang.c:ada_value_primitive_packed_val: const correctness

gdb/ChangeLog:
2015-10-13  Pedro Alves  <palves@redhat.com>

	* ada-lang.c (ada_value_primitive_packed_val): Constify
	locals.  Use value_contents_writeable.  Remove casts.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] ada-lang.c: malloc/alloca casts for C++
@ 2015-10-13 18:50 sergiodj+buildbot
  2015-10-13 19:21 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-13 18:50 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT aa5c10ce9b1bd04a7f4a619d5e956c977fcd60d3 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: aa5c10ce9b1bd04a7f4a619d5e956c977fcd60d3

ada-lang.c: malloc/alloca casts for C++

gdb/ChangeLog:
2015-10-13  Pedro Alves  <palves@redhat.com>

	* ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
	and alloca calls.


^ permalink raw reply	[flat|nested] 215+ messages in thread
[parent not found: <4666fec3b414c7880e9629f3c9b0a5b584235c6d@gdb-build>]
[parent not found: <3953f15ce4b4154e9fd7951424fedac0170ab59c@gdb-build>]
* [binutils-gdb] Tidy code setting PT_GNU_RELRO p_flags
@ 2015-10-13  6:14 sergiodj+buildbot
  2015-10-13  6:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-13  6:14 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 341b8ee719163f7ae8528f2a7832381887fbf8d8 ***

Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 341b8ee719163f7ae8528f2a7832381887fbf8d8

Tidy code setting PT_GNU_RELRO p_flags

No functional changes here.

	* elf.c (_bfd_elf_map_sections_to_segments): Don't set
	PT_GNU_RELRO p_flags.
	(assign_file_positions_for_non_load_sections): Set PT_GNU_RELRO
	flags to PF_R here.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] sim: ft32: test coverage for link parameters and PM write port
@ 2015-10-13  0:32 sergiodj+buildbot
  2015-10-13  3:25 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-13  0:32 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 8173c2a3c46efd8b12983b6095ff7bed4cda1c90 ***

Author: James Bowman <james.bowman@ftdichip.com>
Branch: master
Commit: 8173c2a3c46efd8b12983b6095ff7bed4cda1c90

sim: ft32: test coverage for link parameters and PM write port

Adds test coverage for recent features.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] gdb: Simplify parse_frame_specification.
@ 2015-10-12 22:05 sergiodj+buildbot
  2015-10-13  2:39 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 22:05 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT a0d34a3956f504e755638cadb2bac2b03e4e37e7 ***

Author: Andrew Burgess <andrew.burgess@embecosm.com>
Branch: master
Commit: a0d34a3956f504e755638cadb2bac2b03e4e37e7

gdb: Simplify parse_frame_specification.

Remove an unneeded parameter from parse_frame_specification, replace
with a fixed string within parse_frame_specification.  The message was
the same in every place that parse_frame_specification was used anyway.

gdb/ChangeLog:

	* stack.c (parse_frame_specification): Remove message parameter,
	replace with fixed string in function body, update function
	comment.
	(frame_info): Remove message to parse_frame_specification.
	(select_frame_command): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
[parent not found: <1f713e48f024e964f5a4f5468bc9506dac262763@gdb-build>]
* [binutils-gdb] gdb: Avoid unneeded calls to parse_frame_specification.
@ 2015-10-12 21:57 sergiodj+buildbot
  2015-10-13  1:53 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 21:57 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT edbbff4a22154a4b155ac987436c6498947cf8b4 ***

Author: Andrew Burgess <andrew.burgess@embecosm.com>
Branch: master
Commit: edbbff4a22154a4b155ac987436c6498947cf8b4

gdb: Avoid unneeded calls to parse_frame_specification.

Within the stack command there are a couple of places where fixed
strings are passed into functions that are really intended for
processing user input.  These fixed strings are then processed and the
result returned.

Given that the input strings in these cases are fixed, and are always
"0", then the result will always be the same, the current frame.  By
switching to using get_current_frame instead the code can be simplified,
and the intention of the code is clearer.

gdb/ChangeLog:

	* stack.c (parse_frame_specification): Delete.
	(parse_frame_specification_1): Rename to
	parse_frame_specification.
	(frame_info): Use parse_frame_specification.
	(select_frame_command): Likewise.
	(return_command): Use select_frame and print_stack_frame rather
	than frame_command and select_frame_command.
	(func_command): Use get_current_frame rather than
	parse_frame_specification.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] gdb: Fix bug with dbx style func command.
@ 2015-10-12 21:49 sergiodj+buildbot
  2015-10-13  1:06 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 21:49 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 9d622bda566a4980b045631f500c29717ede8186 ***

Author: Andrew Burgess <andrew.burgess@embecosm.com>
Branch: master
Commit: 9d622bda566a4980b045631f500c29717ede8186

gdb: Fix bug with dbx style func command.

The func command, available when starting gdb in dbx mode, is supposed
to take a function name and locate the frame for that function in the
stack.  This has been broken for a while due to an invalid check of the
arguments within the worker function.  Fixed in this commit.

gdb/ChangeLog:

	* stack.c (func_command): Return early when there is no ARG
	string.

gdb/testsuite/ChangeLog:

	* gdb.base/dbx.exp (test_func): Remove xfails, update expected
	results.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] gdb: Make use of safe-ctype.h header.
@ 2015-10-12 21:41 sergiodj+buildbot
  2015-10-13  0:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 21:41 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 8d3fea161a8e1d280d207406ba3fee0d44776ce6 ***

Author: Andrew Burgess <andrew.burgess@embecosm.com>
Branch: master
Commit: 8d3fea161a8e1d280d207406ba3fee0d44776ce6

gdb: Make use of safe-ctype.h header.

In stack.c switch to using safe-ctype.h instead of ctype.h, update code
as required.

gdb/ChangeLog:

	* stack.c: Include safe-ctype.h not ctype.h.
	(parse_frame_specification): Use ISSPACE not isspace.
	(backtrace_command): Use TOLOWER not tolower.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] mep: Add cast for int to enum conversion
@ 2015-10-12 17:48 sergiodj+buildbot
  2015-10-12 23:33 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 17:48 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT f54b226fb0c350b98a9d7afb09d84564089a5bed ***

Author: Simon Marchi <simon.marchi@polymtl.ca>
Branch: master
Commit: f54b226fb0c350b98a9d7afb09d84564089a5bed

mep: Add cast for int to enum conversion

Taken directly from Pedro's branch.

gdb/ChangeLog:

	* mep-tdep.c (current_me_module): Add cast.
	(mep_gdbarch_init): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] m32c: Split m32c_move_reg_t in read/write variants
@ 2015-10-12 17:23 sergiodj+buildbot
  2015-10-12 22:46 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 17:23 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 6da660c76dd7c2998d847d2c978a293f13105eea ***

Author: Simon Marchi <simon.marchi@polymtl.ca>
Branch: master
Commit: 6da660c76dd7c2998d847d2c978a293f13105eea

m32c: Split m32c_move_reg_t in read/write variants

This allows to avoid casting away the const qualification in
m32c_pseudo_register_write (which is the entry points for all other
register read/write functions).

Also, use gdb_byte* instead of void* to avoid casts when calling gdb
common memory functions.  It also allows to remove those "For adderss
arithmetic" local variables.

gdb/ChangeLog:

	* m32c-tdep.c (m32c_move_reg_t): Replace with...
	(m32c_write_reg_t): ...this and...
	(m32c_read_reg_t): ...this.
	(struct m32c_reg): Update types of read and write.
	(m32c_raw_read): Change declaration type to m32c_read_reg_t and
	adjust definition.
	(m32c_banked_read): Likewise.
	(m32c_sb_read): Likewise.
	(m32c_part_read): Likewise.
	(m32c_cat_read): Likewise.
	(m32c_r3r2r1r0_read): Likewise.
	(m32c_raw_write): Change declaration type to m32c_write_reg_t
	and adjust definition.
	(m32c_banked_write): Likewise.
	(m32c_sb_write): Likewise.
	(m32c_part_write): Likewise.
	(m32c_cat_write): Likewise.
	(m32c_r3r2r1r0_write): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] aarch64: Use gdb_sys_no_syscall enum instead of -1
@ 2015-10-12 16:35 sergiodj+buildbot
  2015-10-12 21:12 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 16:35 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT cb65d272fd09b79b7911cc00b5262d4fe14a40d7 ***

Author: Simon Marchi <simon.marchi@polymtl.ca>
Branch: master
Commit: cb65d272fd09b79b7911cc00b5262d4fe14a40d7

aarch64: Use gdb_sys_no_syscall enum instead of -1

Fixes:

/home/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c: In function "gdb_syscall aarch64_canonicalize_syscall(aarch64_syscall)":
/home/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c:874:13: error: invalid conversion from "int" to "gdb_syscall" [-fpermissive]
     return -1;
             ^

gdb/ChangeLog:

	* aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
	gdb_sys_no_syscall instead of -1.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Skip the unversioned definition after the default version
@ 2015-10-12 15:35 sergiodj+buildbot
  2015-10-12 20:25 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 15:35 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 4373f8af3ddbc301227e883d5cbed8302c107e59 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 4373f8af3ddbc301227e883d5cbed8302c107e59

Skip the unversioned definition after the default version

We may see an unversioned definition after the default version.  We
should skip the unversioned definition in this case.

bfd/

	PR ld/19073
	* elflink.c (_bfd_elf_add_default_symbol): Skip the unversioned
	definition after the default version.

ld/testsuite/

	PR ld/19073
	* ld-elf/pr19073.map: New file.
	* ld-elf/pr19073.rd: Likewise.
	* ld-elf/pr19073.s: Likewise.
	* ld-elf/shared.exp (build_tests): Add tests for PR ld/19073.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Support displaced stepping in aarch64-linux
@ 2015-10-12 13:05 sergiodj+buildbot
  2015-10-12 15:46 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 13:05 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT b6542f81d0894d69e7f12a73b94bf4adead75a5c ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: b6542f81d0894d69e7f12a73b94bf4adead75a5c

Support displaced stepping in aarch64-linux

This patch is to support displaced stepping in aarch64-linux.  A
visitor is implemented for displaced stepping, and used to record
information to fixup pc after displaced stepping if needed.  Some
emit_* functions are converted to macros, and moved to
arch/aarch64-insn.{c,h} so that they can be shared.

gdb:

2015-10-12  Yao Qi  <yao.qi@linaro.org>

	* aarch64-linux-tdep.c: Include arch-utils.h.
	(aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
	set_gdbarch_displaced_step_copy_insn,
	set_gdbarch_displaced_step_fixup,
	set_gdbarch_displaced_step_free_closure,
	set_gdbarch_displaced_step_location,
	and set_gdbarch_displaced_step_hw_singlestep.
	* aarch64-tdep.c (struct displaced_step_closure): New.
	(struct aarch64_displaced_step_data): New.
	(aarch64_displaced_step_b): New function.
	(aarch64_displaced_step_b_cond): Likewise.
	(aarch64_register): Likewise.
	(aarch64_displaced_step_cb): Likewise.
	(aarch64_displaced_step_tb): Likewise.
	(aarch64_displaced_step_adr): Likewise.
	(aarch64_displaced_step_ldr_literal): Likewise.
	(aarch64_displaced_step_others): Likewise.
	(aarch64_displaced_step_copy_insn): Likewise.
	(aarch64_displaced_step_fixup): Likewise.
	(aarch64_displaced_step_hw_singlestep): Likewise.
	* aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
	(aarch64_displaced_step_copy_insn): Declare.
	(aarch64_displaced_step_fixup): Declare.
	(aarch64_displaced_step_hw_singlestep): Declare.
	* arch/aarch64-insn.c (emit_insn): Moved from
	gdbserver/linux-aarch64-low.c.
	(emit_load_store): Likewise.
	* arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
	gdbserver/linux-aarch64-low.c.
	(struct aarch64_register): Likewise.
	(struct aarch64_memory_operand): Likewise.
	(ENCODE): Likewise.
	(can_encode_int32): New macro.
	(emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
	(emit_tb, emit_nop): Likewise.
	(emit_insn): Declare.
	(emit_load_store): Declare.

gdb/gdbserver:

2015-10-12  Yao Qi  <yao.qi@linaro.org>

	* linux-aarch64-low.c (enum aarch64_opcodes): Move to
	arch/aarch64-insn.h.
	(struct aarch64_memory_operand): Likewise.
	(ENCODE): Likewise.
	(emit_insn): Move to arch/aarch64-insn.c.
	(emit_b, emit_bcond, emit_cb, emit_tb): Remove.
	(emit_load_store): Move to arch/aarch64-insn.c.
	(emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
	(can_encode_int32): Remove.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Mention the change in NEWS
@ 2015-10-12 12:01 sergiodj+buildbot
  2015-10-12 19:39 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 12:01 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT eda14cf2590aaab147d298418a3b7773b8d63ce5 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: eda14cf2590aaab147d298418a3b7773b8d63ce5

Mention the change in NEWS

gdb:

2015-10-12  Yao Qi  <yao.qi@linaro.org>

	* NEWS: Mention the change.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Rename emit_load_store to  aarch64_emit_load_store
@ 2015-10-12 11:53 sergiodj+buildbot
  2015-10-12 18:52 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 11:53 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 1c2e1515c45af104fc9b2aea6bd6b1471238dd98 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 1c2e1515c45af104fc9b2aea6bd6b1471238dd98

Rename emit_load_store to  aarch64_emit_load_store

Likewise, this patch renames emit_load_store to
aarch64_emit_load_store.

gdb:

2015-10-12  Yao Qi  <yao.qi@linaro.org>

	* arch/aarch64-insn.c (emit_load_store): Rename to ...
	(aarch64_emit_load_store): ... it.  All callers updated.

gdb/gdbserver:

2015-10-12  Yao Qi  <yao.qi@linaro.org>

	* linux-aarch64-low.c: Update all callers as emit_load_store
	is renamed to aarch64_emit_load_store.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Rename emit_insn to aarch64_emit_insn
@ 2015-10-12 11:44 sergiodj+buildbot
  2015-10-12 18:06 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 11:44 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT e1c587c312c6347d8f14a019b79e4de0181de599 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: e1c587c312c6347d8f14a019b79e4de0181de599

Rename emit_insn to aarch64_emit_insn

As emit_insn becomes extern, the prefix "aarch64_" is needed.  This
patch renames emit_insn to aarch64_emit_insn.

gdb:

2015-10-12  Yao Qi  <yao.qi@linaro.org>

	* arch/aarch64-insn.c (emit_insn): Rename to ...
	(aarch64_emit_insn): ... it.  All callers updated.

gdb/gdbserver:

2015-10-12  Yao Qi  <yao.qi@linaro.org>

	* linux-aarch64-low.c: Update all callers of function renaming
	from emit_insn to aarch64_emit_insn.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] New test case gdb.arch/disp-step-insn-reloc.exp
@ 2015-10-12 11:36 sergiodj+buildbot
  2015-10-12 17:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 11:36 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 0fd8ac1c450d340d0b11823107d9e990341e7e11 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 0fd8ac1c450d340d0b11823107d9e990341e7e11

New test case gdb.arch/disp-step-insn-reloc.exp

This patch adds a new test case which uses gdb.arch/insn-reloc.c too
to test displaced stepping.  Nowadays, tests are for x86, x86_64 and
aarch64.

gdb/testsuite:

2015-10-12  Yao Qi  <yao.qi@linaro.org>

	* gdb.arch/disp-step-insn-reloc.exp: New test case.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Support displaced stepping in support_displaced_stepping for aarch64*-*-linux*
@ 2015-10-12 11:28 sergiodj+buildbot
  2015-10-12 16:33 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-12 11:28 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 34240514b58b7e8d2b444b69345d13db2695fef6 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 34240514b58b7e8d2b444b69345d13db2695fef6

Support displaced stepping in support_displaced_stepping for aarch64*-*-linux*

gdb/testsuite:

2015-10-12  Yao Qi  <yao.qi@linaro.org>

	* lib/gdb.exp (support_displaced_stepping): Return 1 if target
	is aarch64*-*-linux*.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Wrap include/opcode/aarch64.h in extern "C" for C++
@ 2015-10-07 14:11 sergiodj+buildbot
  2015-10-07 14:49 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-07 14:11 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT d3e12b29aef25bc9d1830b0a05643b11296f1b8f ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: d3e12b29aef25bc9d1830b0a05643b11296f1b8f

Wrap include/opcode/aarch64.h in extern "C" for C++

This is sufficient to link an aarch64 GDB built in C++ mode.  Pedro
did something similar in Feb
https://sourceware.org/ml/binutils/2015-02/msg00176.html

include/opcode/

2015-10-07  Yao Qi  <yao.qi@linaro.org>

	* aarch64.h [__cplusplus]: Wrap in extern "C".


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] New ARC implementation.
@ 2015-10-07 13:26 sergiodj+buildbot
  2015-10-07 14:03 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-07 13:26 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 886a250647ac0c608f20a7007fc2167a70f64e20 ***

Author: Nick Clifton <nickc@redhat.com>
Branch: master
Commit: 886a250647ac0c608f20a7007fc2167a70f64e20

New ARC implementation.

bfd	* archures.c: Remove support for older ARC. Added support for new
	ARC cpus (ARC600, ARC601, ARC700, ARCV2).
	* bfd-in2.h: Likewise.
	* config.bfd: Likewise.
	* cpu-arc.c: Likewise.
	* elf32-arc.c: Totally changed file with a refactored
	inplementation of the ARC port.
	* libbfd.h: Added ARC specific relocation types.
	* reloc.c: Likewise.

gas     * config/tc-arc.c: Revamped file for ARC support.
        * config/tc-arc.h: Likewise.
        * doc/as.texinfo: Add new ARC options.
        * doc/c-arc.texi: Likewise.

ld	* configure.tgt: Added target arc-*-elf* and arc*-*-linux-uclibc*.
	* emulparams/arcebelf_prof.sh: New file
	* emulparams/arcebelf.sh: Likewise.
	* emulparams/arceblinux_prof.sh: Likewise.
	* emulparams/arceblinux.sh: Likewise.
	* emulparams/arcelf_prof.sh: Likewise.
	* emulparams/arcelf.sh: Likewise.
	* emulparams/arclinux_prof.sh: Likewise.
	* emulparams/arclinux.sh: Likewise.
	* emulparams/arcv2elfx.sh: Likewise.
	* emulparams/arcv2elf.sh: Likewise.
	* emultempl/arclinux.em: Likewise.
	* scripttempl/arclinux.sc: Likewise.
	* scripttempl/elfarc.sc: Likewise.
	* scripttempl/elfarcv2.sc: Likewise
	* Makefile.am: Add new ARC emulations.
	* Makefile.in: Regenerate.
	* NEWS: Mention the new feature.

opcodes * arc-dis.c: Revamped file for ARC support
	* arc-dis.h: Likewise.
	* arc-ext.c: Likewise.
	* arc-ext.h: Likewise.
	* arc-opc.c: Likewise.
	* arc-fxi.h: New file.
	* arc-regs.h: Likewise.
	* arc-tbl.h: Likewise.

binutils * readelf.c (get_machine_name): Remove A5 reference. Add ARCompact
	and ARCv2.
	(get_machine_flags): Handle EM_ARCV2 and EM_ARCOMPACT.
	(guess_is_rela): Likewise.
	(dump_relocations): Likewise.
	(is_32bit_abs_reloc): Likewise.
	(is_16bit_abs_reloc): Likewise.
	(is_none_reloc): Likewise.
	* NEWS: Mention the new feature.

include	* dis-asm.h (arc_get_disassembler): Correct declaration.
	* arc-reloc.def: Macro file with definition of all relocation
	types.
	* arc.h: Changed macros for the newly supported ARC cpus.  Altered
	enum defining the supported relocations.
	* common.h: Changed EM_ARC_A5 definition to EM_ARC_COMPACT. Added
	macro for EM_ARC_COMPACT2.
        * arc-func.h: New file.
        * arc.h: Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [aarch64] use aarch64_decode_insn to decode instructions in GDB
@ 2015-10-07  9:05 sergiodj+buildbot
  2015-10-07  9:35 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-10-07  9:05 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT f77ee8026d6c46ebb4463548b3b923ace978aa41 ***

Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: f77ee8026d6c46ebb4463548b3b923ace978aa41

[aarch64] use aarch64_decode_insn to decode instructions in GDB

In this patch, we start to use aarch64_decode_insn to decode instructions
in aarch64_software_single_step.

gdb:

2015-10-07  Yao Qi  <yao.qi@linaro.org>

	* aarch64-tdep.c: Include opcode/aarch64.h.
	(submask): Move it above.
	(bit): Likewise.
	(bits): Likewise.
	(aarch64_software_single_step): Call aarch64_decode_insn.
	Decode instruction by aarch64_inst instead of using
	aarch64_decode_bcond and decode_masked_match.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Replace some xmalloc-family functions with XNEW-family ones
@ 2015-08-26 21:30 sergiodj+buildbot
  2015-08-26 22:15 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-26 21:30 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 8d7493201cf01c9836403695f67f7e157341bfd5 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 8d7493201cf01c9836403695f67f7e157341bfd5

Replace some xmalloc-family functions with XNEW-family ones

This patch is part of the make-gdb-buildable-in-C++ effort.  The idea is
to change some calls to the xmalloc family of functions to calls to the
equivalents in the XNEW family.  This avoids adding an explicit cast, so
it keeps the code a bit more readable.  Some of them also map relatively
well to a C++ equivalent (XNEW (struct foo) -> new foo), so it will be
possible to do scripted replacements if needed.

I only changed calls that were obviously allocating memory for one or
multiple "objects".  Allocation of variable sizes (such as strings or
buffer handling) will be for later (and won't use XNEW).

  - xmalloc (sizeof (struct foo)) -> XNEW (struct foo)
  - xmalloc (num * sizeof (struct foo)) -> XNEWVEC (struct foo, num)
  - xcalloc (1, sizeof (struct foo)) -> XCNEW (struct foo)
  - xcalloc (num, sizeof (struct foo)) -> XCNEWVEC (struct foo, num)
  - xrealloc (p, num * sizeof (struct foo) -> XRESIZEVEC (struct foo, p, num)
  - obstack_alloc (ob, sizeof (struct foo)) -> XOBNEW (ob, struct foo)
  - obstack_alloc (ob, num * sizeof (struct foo)) -> XOBNEWVEC (ob, struct foo, num)
  - alloca (sizeof (struct foo)) -> XALLOCA (struct foo)
  - alloca (num * sizeof (struct foo)) -> XALLOCAVEC (struct foo, num)

Some instances of xmalloc followed by memset to zero the buffer were
replaced by XCNEW or XCNEWVEC.

I regtested on x86-64, Ubuntu 14.04, but the patch touches many
architecture-specific files.  For those I'll have to rely on the
buildbot or people complaining that I broke their gdb.

gdb/ChangeLog:

	* aarch64-linux-nat.c (aarch64_add_process): Likewise.
	* aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
	* ada-exp.y (write_ambiguous_var): Likewise.
	* ada-lang.c (resolve_subexp): Likewise.
	(user_select_syms): Likewise.
	(assign_aggregate): Likewise.
	(ada_evaluate_subexp): Likewise.
	(cache_symbol): Likewise.
	* addrmap.c (allocate_key): Likewise.
	(addrmap_create_mutable): Likewise.
	* aix-thread.c (sync_threadlists): Likewise.
	* alpha-tdep.c (alpha_push_dummy_call): Likewise.
	(alpha_gdbarch_init): Likewise.
	* amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
	* arm-linux-nat.c (arm_linux_add_process): Likewise.
	* arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
	* arm-tdep.c (push_stack_item): Likewise.
	(arm_displaced_step_copy_insn): Likewise.
	(arm_gdbarch_init): Likewise.
	(_initialize_arm_tdep): Likewise.
	* avr-tdep.c (push_stack_item): Likewise.
	* ax-general.c (new_agent_expr): Likewise.
	* block.c (block_initialize_namespace): Likewise.
	* breakpoint.c (alloc_counted_command_line): Likewise.
	(update_dprintf_command_list): Likewise.
	(parse_breakpoint_sals): Likewise.
	(decode_static_tracepoint_spec): Likewise.
	(until_break_command): Likewise.
	(clear_command): Likewise.
	(update_global_location_list): Likewise.
	(get_breakpoint_objfile_data) Likewise.
	* btrace.c (ftrace_new_function): Likewise.
	(btrace_set_insn_history): Likewise.
	(btrace_set_call_history): Likewise.
	* buildsym.c (add_symbol_to_list): Likewise.
	(record_pending_block): Likewise.
	(start_subfile): Likewise.
	(start_buildsym_compunit): Likewise.
	(push_subfile): Likewise.
	(end_symtab_get_static_block): Likewise.
	(buildsym_init): Likewise.
	* cli/cli-cmds.c (source_command): Likewise.
	* cli/cli-decode.c (add_cmd): Likewise.
	* cli/cli-script.c (build_command_line): Likewise.
	(setup_user_args): Likewise.
	(realloc_body_list): Likewise.
	(process_next_line): Likewise.
	(copy_command_lines): Likewise.
	* cli/cli-setshow.c (do_set_command): Likewise.
	* coff-pe-read.c (read_pe_exported_syms): Likewise.
	* coffread.c (coff_locate_sections): Likewise.
	(coff_symtab_read): Likewise.
	(coff_read_struct_type): Likewise.
	* common/cleanups.c (make_my_cleanup2): Likewise.
	* common/common-exceptions.c (throw_it): Likewise.
	* common/filestuff.c (make_cleanup_close): Likewise.
	* common/format.c (parse_format_string): Likewise.
	* common/queue.h (DEFINE_QUEUE_P): Likewise.
	* compile/compile-object-load.c (munmap_list_add): Likewise.
	(compile_object_load): Likewise.
	* compile/compile-object-run.c (compile_object_run): Likewise.
	* compile/compile.c (append_args): Likewise.
	* corefile.c (specify_exec_file_hook): Likewise.
	* cp-support.c (make_symbol_overload_list): Likewise.
	* cris-tdep.c (push_stack_item): Likewise.
	(cris_gdbarch_init): Likewise.
	* ctf.c (ctf_trace_file_writer_new): Likewise.
	* dbxread.c (init_header_files): Likewise.
	(add_new_header_file): Likewise.
	(init_bincl_list): Likewise.
	(dbx_end_psymtab): Likewise.
	(start_psymtab): Likewise.
	(dbx_end_psymtab): Likewise.
	* dcache.c (dcache_init): Likewise.
	* dictionary.c (dict_create_hashed): Likewise.
	(dict_create_hashed_expandable): Likewise.
	(dict_create_linear): Likewise.
	(dict_create_linear_expandable): Likewise.
	* dtrace-probe.c (dtrace_process_dof_probe): Likewise.
	* dummy-frame.c (register_dummy_frame_dtor): Likewise.
	* dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
	* dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
	(decode_frame_entry_1): Likewise.
	* dwarf2expr.c (new_dwarf_expr_context): Likewise.
	* dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
	* dwarf2read.c (dwarf2_has_info): Likewise.
	(create_signatured_type_table_from_index): Likewise.
	(dwarf2_read_index): Likewise.
	(dw2_get_file_names_reader): Likewise.
	(create_all_type_units): Likewise.
	(read_cutu_die_from_dwo): Likewise.
	(init_tu_and_read_dwo_dies): Likewise.
	(init_cutu_and_read_dies): Likewise.
	(create_all_comp_units): Likewise.
	(queue_comp_unit): Likewise.
	(inherit_abstract_dies): Likewise.
	(read_call_site_scope): Likewise.
	(dwarf2_add_field): Likewise.
	(dwarf2_add_typedef): Likewise.
	(dwarf2_add_member_fn): Likewise.
	(attr_to_dynamic_prop): Likewise.
	(abbrev_table_alloc_abbrev): Likewise.
	(abbrev_table_read_table): Likewise.
	(add_include_dir): Likewise.
	(add_file_name): Likewise.
	(dwarf_decode_line_header): Likewise.
	(dwarf2_const_value_attr): Likewise.
	(dwarf_alloc_block): Likewise.
	(parse_macro_definition): Likewise.
	(set_die_type): Likewise.
	(write_psymtabs_to_index): Likewise.
	(create_cus_from_index): Likewise.
	(dwarf2_create_include_psymtab): Likewise.
	(process_psymtab_comp_unit_reader): Likewise.
	(build_type_psymtab_dependencies): Likewise.
	(read_comp_units_from_section): Likewise.
	(compute_compunit_symtab_includes): Likewise.
	(create_dwo_unit_in_dwp_v1): Likewise.
	(create_dwo_unit_in_dwp_v2): Likewise.
	(read_func_scope): Likewise.
	(process_structure_scope): Likewise.
	(mark_common_block_symbol_computed): Likewise.
	(load_partial_dies): Likewise.
	(dwarf2_symbol_mark_computed): Likewise.
	* elfread.c (elf_symfile_segments): Likewise.
	(elf_read_minimal_symbols): Likewise.
	* environ.c (make_environ): Likewise.
	* eval.c (evaluate_subexp_standard): Likewise.
	* event-loop.c (create_file_handler): Likewise.
	(create_async_signal_handler): Likewise.
	(create_async_event_handler): Likewise.
	(create_timer): Likewise.
	* exec.c (build_section_table): Likewise.
	* fbsd-nat.c (fbsd_remember_child): Likewise.
	* fork-child.c (fork_inferior): Likewise.
	* frv-tdep.c (new_variant): Likewise.
	* gdbarch.sh (gdbarch_alloc): Likewise.
	(append_name): Likewise.
	* gdbtypes.c (rank_function): Likewise.
	(copy_type_recursive): Likewise.
	(add_dyn_prop): Likewise.
	* gnu-nat.c (make_proc): Likewise.
	(make_inf): Likewise.
	(gnu_write_inferior): Likewise.
	* gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
	(build_std_type_info_type): Likewise.
	* guile/scm-param.c (compute_enum_list): Likewise.
	* guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
	* guile/scm-value.c (gdbscm_value_call): Likewise.
	* h8300-tdep.c (h8300_gdbarch_init): Likewise.
	* hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
	(read_unwind_info): Likewise.
	* ia64-tdep.c (ia64_gdbarch_init): Likewise.
	* infcall.c (dummy_frame_context_saver_setup): Likewise.
	(call_function_by_hand_dummy): Likewise.
	* infcmd.c (step_once): Likewise.
	(finish_forward): Likewise.
	(attach_command): Likewise.
	(notice_new_inferior): Likewise.
	* inferior.c (add_inferior_silent): Likewise.
	* infrun.c (add_displaced_stepping_state): Likewise.
	(save_infcall_control_state): Likewise.
	(save_inferior_ptid): Likewise.
	(_initialize_infrun): Likewise.
	* jit.c (bfd_open_from_target_memory): Likewise.
	(jit_gdbarch_data_init): Likewise.
	* language.c (add_language): Likewise.
	* linespec.c (decode_line_2): Likewise.
	* linux-nat.c (add_to_pid_list): Likewise.
	(add_initial_lwp): Likewise.
	* linux-thread-db.c (add_thread_db_info): Likewise.
	(record_thread): Likewise.
	(info_auto_load_libthread_db): Likewise.
	* m32c-tdep.c (m32c_gdbarch_init): Likewise.
	* m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
	* m68k-tdep.c (m68k_gdbarch_init): Likewise.
	* m88k-tdep.c (m88k_analyze_prologue): Likewise.
	* macrocmd.c (macro_define_command): Likewise.
	* macroexp.c (gather_arguments): Likewise.
	* macroscope.c (sal_macro_scope): Likewise.
	* macrotab.c (new_macro_table): Likewise.
	* mdebugread.c (push_parse_stack): Likewise.
	(parse_partial_symbols): Likewise.
	(parse_symbol): Likewise.
	(psymtab_to_symtab_1): Likewise.
	(new_block): Likewise.
	(new_psymtab): Likewise.
	(mdebug_build_psymtabs): Likewise.
	(add_pending): Likewise.
	(elfmdebug_build_psymtabs): Likewise.
	* mep-tdep.c (mep_gdbarch_init): Likewise.
	* mi/mi-main.c (mi_execute_command): Likewise.
	* mi/mi-parse.c (mi_parse_argv): Likewise.
	* minidebug.c (lzma_open): Likewise.
	* minsyms.c (terminate_minimal_symbol_table): Likewise.
	* mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
	* mips-tdep.c (mips_gdbarch_init): Likewise.
	* mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
	* msp430-tdep.c (msp430_gdbarch_init): Likewise.
	* mt-tdep.c (mt_registers_info): Likewise.
	* nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
	* nat/linux-btrace.c (linux_enable_bts): Likewise.
	(linux_enable_pt): Likewise.
	* nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
	(linux_xfer_osdata_processgroups): Likewise.
	* nios2-tdep.c (nios2_gdbarch_init): Likewise.
	* nto-procfs.c (procfs_meminfo): Likewise.
	* objc-lang.c (start_msglist): Likewise.
	(selectors_info): Likewise.
	(classes_info): Likewise.
	(find_methods): Likewise.
	* objfiles.c (allocate_objfile): Likewise.
	(update_section_map): Likewise.
	* osabi.c (gdbarch_register_osabi): Likewise.
	(gdbarch_register_osabi_sniffer): Likewise.
	* parse.c (start_arglist): Likewise.
	* ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
	(hwdebug_insert_point): Likewise.
	* printcmd.c (display_command): Likewise.
	(ui_printf): Likewise.
	* procfs.c (create_procinfo): Likewise.
	(load_syscalls): Likewise.
	(proc_get_LDT_entry): Likewise.
	(proc_update_threads): Likewise.
	* prologue-value.c (make_pv_area): Likewise.
	(pv_area_store): Likewise.
	* psymtab.c (extend_psymbol_list): Likewise.
	(init_psymbol_list): Likewise.
	(allocate_psymtab): Likewise.
	* python/py-inferior.c (add_thread_object): Likewise.
	* python/py-param.c (compute_enum_values): Likewise.
	* python/py-value.c (valpy_call): Likewise.
	* python/py-varobj.c (py_varobj_iter_next): Likewise.
	* python/python.c (ensure_python_env): Likewise.
	* record-btrace.c (record_btrace_start_replaying): Likewise.
	* record-full.c (record_full_reg_alloc): Likewise.
	(record_full_mem_alloc): Likewise.
	(record_full_end_alloc): Likewise.
	(record_full_core_xfer_partial): Likewise.
	* regcache.c (get_thread_arch_aspace_regcache): Likewise.
	* remote-fileio.c (remote_fileio_init_fd_map): Likewise.
	* remote-notif.c (remote_notif_state_allocate): Likewise.
	* remote.c (demand_private_info): Likewise.
	(remote_notif_stop_alloc_reply): Likewise.
	(remote_enable_btrace): Likewise.
	* reverse.c (save_bookmark_command): Likewise.
	* rl78-tdep.c (rl78_gdbarch_init): Likewise.
	* rx-tdep.c (rx_gdbarch_init): Likewise.
	* s390-linux-nat.c (s390_insert_watchpoint): Likewise.
	* ser-go32.c (dos_get_tty_state): Likewise.
	(dos_copy_tty_state): Likewise.
	* ser-mingw.c (ser_windows_open): Likewise.
	(ser_console_wait_handle): Likewise.
	(ser_console_get_tty_state): Likewise.
	(make_pipe_state): Likewise.
	(net_windows_open): Likewise.
	* ser-unix.c (hardwire_get_tty_state): Likewise.
	(hardwire_copy_tty_state): Likewise.
	* solib-aix.c (solib_aix_new_lm_info): Likewise.
	* solib-dsbt.c (dsbt_current_sos): Likewise.
	(dsbt_relocate_main_executable): Likewise.
	* solib-frv.c (frv_current_sos): Likewise.
	(frv_relocate_main_executable): Likewise.
	* solib-spu.c (spu_bfd_fopen): Likewise.
	* solib-svr4.c (lm_info_read): Likewise.
	(svr4_copy_library_list): Likewise.
	(svr4_default_sos): Likewise.
	* source.c (find_source_lines): Likewise.
	(line_info): Likewise.
	(add_substitute_path_rule): Likewise.
	* spu-linux-nat.c (spu_bfd_open): Likewise.
	* spu-tdep.c (info_spu_dma_cmdlist): Likewise.
	* stabsread.c (dbx_lookup_type): Likewise.
	(read_type): Likewise.
	(read_member_functions): Likewise.
	(read_struct_fields): Likewise.
	(read_baseclasses): Likewise.
	(read_args): Likewise.
	(_initialize_stabsread): Likewise.
	* stack.c (func_command): Likewise.
	* stap-probe.c (handle_stap_probe): Likewise.
	* symfile.c (addrs_section_sort): Likewise.
	(addr_info_make_relative): Likewise.
	(load_section_callback): Likewise.
	(add_symbol_file_command): Likewise.
	(init_filename_language_table): Likewise.
	* symtab.c (create_filename_seen_cache): Likewise.
	(sort_search_symbols_remove_dups): Likewise.
	(search_symbols): Likewise.
	* target.c (make_cleanup_restore_target_terminal): Likewise.
	* thread.c (new_thread): Likewise.
	(enable_thread_stack_temporaries): Likewise.
	(make_cleanup_restore_current_thread): Likewise.
	(thread_apply_all_command): Likewise.
	* tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
	* top.c (gdb_readline_wrapper): Likewise.
	* tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
	* tracepoint.c (trace_find_line_command): Likewise.
	(all_tracepoint_actions_and_cleanup): Likewise.
	(make_cleanup_restore_current_traceframe): Likewise.
	(get_uploaded_tp): Likewise.
	(get_uploaded_tsv): Likewise.
	* tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
	(tui_alloc_win_info): Likewise.
	(tui_alloc_content): Likewise.
	(tui_add_content_elements): Likewise.
	* tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
	(tui_set_disassem_content): Likewise.
	* ui-file.c (ui_file_new): Likewise.
	(stdio_file_new): Likewise.
	(tee_file_new): Likewise.
	* utils.c (make_cleanup_restore_integer): Likewise.
	(add_internal_problem_command): Likewise.
	* v850-tdep.c (v850_gdbarch_init): Likewise.
	* valops.c (find_oload_champ): Likewise.
	* value.c (allocate_value_lazy): Likewise.
	(record_latest_value): Likewise.
	(create_internalvar): Likewise.
	* varobj.c (install_variable): Likewise.
	(new_variable): Likewise.
	(new_root_variable): Likewise.
	(cppush): Likewise.
	(_initialize_varobj): Likewise.
	* windows-nat.c (windows_make_so): Likewise.
	* x86-nat.c (x86_add_process): Likewise.
	* xcoffread.c (arrange_linetable): Likewise.
	(allocate_include_entry): Likewise.
	(process_linenos): Likewise.
	(SYMBOL_DUP): Likewise.
	(xcoff_start_psymtab): Likewise.
	(xcoff_end_psymtab): Likewise.
	* xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
	* xtensa-tdep.c (xtensa_register_type): Likewise.
	* gdbarch.c: Regenerate.
	* gdbarch.h: Regenerate.

gdb/gdbserver/ChangeLog:

	* ax.c (gdb_parse_agent_expr): Likewise.
	(compile_bytecodes): Likewise.
	* dll.c (loaded_dll): Likewise.
	* event-loop.c (append_callback_event): Likewise.
	(create_file_handler): Likewise.
	(create_file_event): Likewise.
	* hostio.c (handle_open): Likewise.
	* inferiors.c (add_thread): Likewise.
	(add_process): Likewise.
	* linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
	* linux-arm-low.c (arm_new_process): Likewise.
	(arm_new_thread): Likewise.
	* linux-low.c (add_to_pid_list): Likewise.
	(linux_add_process): Likewise.
	(handle_extended_wait): Likewise.
	(add_lwp): Likewise.
	(enqueue_one_deferred_signal): Likewise.
	(enqueue_pending_signal): Likewise.
	(linux_resume_one_lwp_throw): Likewise.
	(linux_resume_one_thread): Likewise.
	(linux_read_memory): Likewise.
	(linux_write_memory): Likewise.
	* linux-mips-low.c (mips_linux_new_process): Likewise.
	(mips_linux_new_thread): Likewise.
	(mips_add_watchpoint): Likewise.
	* linux-x86-low.c (initialize_low_arch): Likewise.
	* lynx-low.c (lynx_add_process): Likewise.
	* mem-break.c (set_raw_breakpoint_at): Likewise.
	(set_breakpoint): Likewise.
	(add_condition_to_breakpoint): Likewise.
	(add_commands_to_breakpoint): Likewise.
	(clone_agent_expr): Likewise.
	(clone_one_breakpoint): Likewise.
	* regcache.c (new_register_cache): Likewise.
	* remote-utils.c (look_up_one_symbol): Likewise.
	* server.c (queue_stop_reply): Likewise.
	(start_inferior): Likewise.
	(queue_stop_reply_callback): Likewise.
	(handle_target_event): Likewise.
	* spu-low.c (fetch_ppc_memory): Likewise.
	(store_ppc_memory): Likewise.
	* target.c (set_target_ops): Likewise.
	* thread-db.c (thread_db_load_search): Likewise.
	(try_thread_db_load_1): Likewise.
	* tracepoint.c (add_tracepoint): Likewise.
	(add_tracepoint_action): Likewise.
	(create_trace_state_variable): Likewise.
	(cmd_qtdpsrc): Likewise.
	(cmd_qtro): Likewise.
	(add_while_stepping_state): Likewise.
	* win32-low.c (child_add_thread): Likewise.
	(get_image_name): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Rename location accessor macro parameters to silence ARI
@ 2015-08-14 22:33 sergiodj+buildbot
  2015-08-14 22:36 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-14 22:33 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT ebdad8fc7fd12b52a2dd14cdca735728b2f7ebc7 ***

Author: Keith Seitz <keiths@redhat.com>
Branch: master
Commit: ebdad8fc7fd12b52a2dd14cdca735728b2f7ebc7

Rename location accessor macro parameters to silence ARI

The locations patch I recently committed contains macro definitions
such as:

This causes an ARI error to be emitted by the server ("Do not use PTR, ISO C
90 implies `void *'").  While this ARI error is bogus in this context,
it is just easiest to squash the error completely by renaming the macro
parameters.

gdb/ChangeLog

	* location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
	(EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
	silence ARI errors.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] mi_make_breakpoint: add "evaluated-by" option
@ 2015-08-14 21:57 sergiodj+buildbot
  2015-08-14 22:02 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-14 21:57 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 6613eb10d10ee79ef09bf4dfe696586f479c8d02 ***

Author: Keith Seitz <keiths@redhat.com>
Branch: master
Commit: 6613eb10d10ee79ef09bf4dfe696586f479c8d02

mi_make_breakpoint: add "evaluated-by" option

For some time now, GDB has permitted target-side evaluation of
breakpoint conditions.  On targets that support this feature, GDB
may output an "evaluated-by" field into the breakpoint reply.

This patch adds handling for this option, and outputs a default
pattern to optionally recognize (and ignore) this pattern in the
reply.

gdb/testsuite/ChangeLog

	* lib/mi-support.exp (mi_make_breakpoint): Add option/handling for
	"evaluated-by".


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix ARI warnings in d-exp.y
@ 2015-08-14 20:00 sergiodj+buildbot
  2015-08-14 20:04 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-14 20:00 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT c0fe2ae7064c4f927034aca87913bc28920721d9 ***

Author: Iain Buclaw <ibuclaw@gdcproject.org>
Branch: master
Commit: c0fe2ae7064c4f927034aca87913bc28920721d9

Fix ARI warnings in d-exp.y

This fixes four ARI warnings found in d-exp.y.

This is comprised of three uses of the && or || at the end of a line, and one
use of sprintf.

gdb/ChangeLog

	* d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
	xstrprintf instead of malloc and sprintf.
	(PrimaryExpression : IdentifierExp): Avoid operator at end of line.
	(lex_one_token): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add support for DT_MIPS_RLD_MAP_REL.
@ 2015-08-14 14:27 sergiodj+buildbot
  2015-08-14 14:30 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-14 14:27 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT a738da3abe2bc02d70521086cf1d0e23565b8fbe ***

Author: Matthew Fortune <matthew.fortune@imgtec.com>
Branch: master
Commit: a738da3abe2bc02d70521086cf1d0e23565b8fbe

Add support for DT_MIPS_RLD_MAP_REL.

This tag allows debugging of MIPS position independent executables
and provides access to shared library information.

gdb/gdbserver/

	* linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.

gdb/

	* solib-svr4.c (read_program_header): Add base_addr argument to
	report the runtime address of the segment.
	(find_program_interpreter): Update read_program_header call to pass
	a NULL pointer for the new argument.
	(scan_dyntag): Add ptr_addr argument to report the runtime address
	of the tag payload.
	(scan_dyntag_auxv): Likewise and use thew new base_addr argument of
	read_program_header to get the base address of the dynamic segment.
	(elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
	read_program_header.
	(elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add myself to gdb MAINTAINERS
@ 2015-08-14 12:24 sergiodj+buildbot
  2015-08-14 12:29 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-14 12:24 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT f8edc4ff051b4e29997681cb3bc9078d98f4d457 ***

Author: Matthew Fortune <matthew.fortune@imgtec.com>
Branch: master
Commit: f8edc4ff051b4e29997681cb3bc9078d98f4d457

Add myself to gdb MAINTAINERS

gdb/
	* MAINTAINERS (Write After Approval): Add Matthew Fortune.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Revert "Fix encoding or OpenRisk1000 PC relative relocations."
@ 2015-08-14  1:48 sergiodj+buildbot
  2015-08-14  1:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-14  1:48 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 9b57267f4ffa4f8a168f89630a4b68fb51a419de ***

Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 9b57267f4ffa4f8a168f89630a4b68fb51a419de

Revert "Fix encoding or OpenRisk1000 PC relative relocations."

This reverts commit dbac553d28887561e3f154654ec8e70195d89943.

	PR ld/18759
	* elf32-or1k.c: Revert 2015-08-11 change.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [D] Move classification of symbols from the grammar to the lexer.
@ 2015-08-13 21:02 sergiodj+buildbot
  2015-08-13 21:14 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-13 21:02 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 444c1ed8915961384af694249701fa7896e11da8 ***

Author: Iain Buclaw <ibuclaw@gdcproject.org>
Branch: master
Commit: 444c1ed8915961384af694249701fa7896e11da8

[D] Move classification of symbols from the grammar to the lexer.

This makes it so that alternating '.' and identifier tokens are resolved to
symbols as early as possible, which should all the addition of D properties -
such as EXP.sizeof and EXP.typeof - without the shift/reduce conflicts that
would occur in the current parsing strategy.

gdb/ChangeLog

	* d-exp.y (%union): Add voidval.
	(%token): Add UNKNOWN_NAME as a token to represent an unclassified
	name in the lexing stage.
	(PostfixExpression): Move symbol completion handling in grammar here
	from PrimaryExpression.
	(PrimaryExpression): Move routines to handle resolving identifier
	tokens in the grammar here from push_expression_name.
	(IdentifierExp): Remove the handling of alternating '.' and identifier
	tokens.
	(TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
	(BasicType): Remove C-style typename rules.
	(d_type_from_name, d_module_from_name, push_variable)
	(push_fieldnames, push_type_name, push_module_name)
	(push_expression_name): Remove.
	(lex_one_token): Rename from yylex.  Replace pstate with par_state.
	(token_and_value): New type.
	(token_fifo, popping, name_obstack): New globals.
	(classify_name): New function.
	(classify_inner_name): Likewise.
	(yylex): Likewise.
	(d_parse): Initialize token_fifo, popping and name_obstack.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Issue an error for read-only segment with dynamic IFUNC relocations
@ 2015-08-13 11:55 sergiodj+buildbot
  2015-08-13 11:59 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-13 11:55 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 8efa2874ab298f3923f4127340da119435f87c39 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 8efa2874ab298f3923f4127340da119435f87c39

Issue an error for read-only segment with dynamic IFUNC relocations

To load an ELF binary with DT_TEXTREL tag, the dynamic linker calls
__mprotect on the read-only segment with PROT_READ|PROT_WRITE before
applying dynamic relocation.  It leads to segfault when performing
IFUNC relocations since the read-only segment has no execute permission.
This patch changes x86 linker to issue an error for read-only segment
with dynamic IFUNC relocations.  Other backends with IFUNC support
may need a similar change.

bfd/

	PR ld/18801
	* elf32-i386.c (elf_i386_size_dynamic_sections): Issue an error
	for read-only segment with dynamic IFUNC relocations.
	* elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.

ld/testsuite/

	PR ld/18801
	* ld-i386/i386.exp: Run pr18801.
	* ld-x86-64/x86-64.exp: Likewise.
	* ld-i386/pr18801.d: New file.
	* ld-i386/pr18801.s: Likewise.
	* ld-x86-64/pr18801.d: Likewise.
	* ld-x86-64/pr18801.s: Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fixes for unpredictable nops and 26-bit versions of teq, tst, cmn, cmp.
@ 2015-08-13 10:53 sergiodj+buildbot
  2015-08-13 10:57 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-13 10:53 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 4ab90a7a90ccf8a671f139c1c6387ba8028e6011 ***

Author: Andre Vieira <andre.simoesdiasvieira@arm.com>
Branch: master
Commit: 4ab90a7a90ccf8a671f139c1c6387ba8028e6011

Fixes for unpredictable nops and 26-bit versions of teq,tst,cmn,cmp.

opcodes * arm-dis.c (print_insn_arm): Disassembling for all targets V6
	and higher with ARM instruction set will now mark the 26-bit
	versions of teq,tst,cmn and cmp as UNPREDICTABLE.
	(arm_opcodes): Fix for unpredictable nop being recognized as a teq.

test    * gas/arm/nops.d: New.
	* gas/arm/nops.s: New.
	* gas/arm/inst.d: Changed expectation file for 26-bit  teq,
	tst, cmn and cmp.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [Ada] Add support for subprogram renamings
@ 2015-08-13  7:47 sergiodj+buildbot
  2015-08-13  7:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-13  7:47 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 22cee43f9af76fc4c10c3d4018a9ada6d7c5c1a5 ***

Author: Pierre-Marie de Rodat <derodat@adacore.com>
Branch: master
Commit: 22cee43f9af76fc4c10c3d4018a9ada6d7c5c1a5

[Ada] Add support for subprogram renamings

Consider the following declaration:

    function Foo (I : Integer) return Integer renames Pack.Bar;

As Foo is not materialized as a routine whose name is derived from Foo,
GDB currently cannot use it:

    (gdb) print foo(0)
    No definition of "foo" in current context.

However, compilers can emit DW_TAG_imported_declaration in order to
materialize the fact that Foo is actually another name for Pack.Bar.
This commit enhances the DWARF reader to record global renamings (it
used to put global ones in a static block) and enhances the Ada engine
to leverage this information during symbol lookup.

gdb/ChangeLog:

	* ada-lang.c: Include namespace.h
	(aux_add_nonlocal_symbols): Fix a function name in comment.
	(ada_add_block_renamings): New.
	(add_nonlocal_symbols): Add global renamings handling.
	(ada_lookup_symbol_list_worker): Move the symbol lookup part
	to...
	(ada_add_all_symbols): ... this new function.
	(ada_add_block_symbols): Try to match the input name against the
	"using directives list", perform a recursive symbol lookup on
	the matched declarations.
	* block.h (struct block): Move the_namespace to top-level as
	namespace_info. Remove the language_specific field.
	(BLOCK_NAMESPACE): Update access to the namespace_info field.
	* buildsym.h (using_directives): Rename into...
	(local_using_directives): ... this.
	(global_using_directives): New.
	(struct context_stack): Rename the using_directives field into
	local_using_directives.
	* buildsym.c (finish_block_internal): Deal with the proper
	using directives repository (local or global).
	(prepare_for_building): Reset local_using_directives. Assert
	that there is no pending global using directive.
	(reset_symtab_globals): Reset global_using_directives and
	local_using_directives.
	(end_symtab_get_static_block): Don't ignore symtabs that have
	only using directives.
	(push_context): Update references to local_using_directives.
	(buildsym_init): Do not reset using_directives.
	* cp-support.c: Include namespace.h.
	* cp-support.h (struct using_direct): Move to namespace.h.
	(cp_add_using_directives): Move to namespace.h.
	* cp-namespace.c: Include namespace.h
	(cp_add_using_directive): Move to namespace.c, rename it to
	add_using_directive, add a "using_directives" argument and use
	it as the pending using directives repository.  All callers
	updated.
	* dwarf2read.c (using_directives): New.
	(read_import_statement): Call using_directives.
	(read_func_scope): Update references to local_using_directives.
	(read_lexical_block_scope): Likewise.
	(read_namespace): Update the heading comment, call
	using_directives.
	* namespace.h: New file.
	* namespace.c: New file.
	* Makefile.in (SFILES): Add namespace.c.
	(COMMON_OBS): Add namespace.o

gdb/testsuite/ChangeLog:

	* gdb.ada/fun_renaming.exp: New testcase.
	* gdb.ada/fun_renaming/fun_renaming.adb: New file.
	* gdb.ada/fun_renaming/pack.adb: New file.
	* gdb.ada/fun_renaming/pack.ads: New file.

Tested on x86_64-linux.  Support for this in GCC is in the pipeline: see
<https://gcc.gnu.org/ml/gcc-patches/2015-07/msg02166.html>.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] gdb.base/dso2dso.exp sometimes broken
@ 2015-08-13  2:02 sergiodj+buildbot
  2015-08-13  2:06 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-13  2:02 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT ea8812bceab054cab438bb51916f1d81118811b3 ***

Author: Keith Seitz <keiths@redhat.com>
Branch: master
Commit: ea8812bceab054cab438bb51916f1d81118811b3

gdb.base/dso2dso.exp sometimes broken

Keith reported that gdb.base/dso2dso.exp is broken, with the following
error:

| $ make check RUNTESTFLAGS=dso2dso.exp
| [snip]
| Running ../../../src/gdb/testsuite/gdb.base/dso2dso.exp ...
| ERROR: tcl error sourcing ../../../src/gdb/testsuite/gdb.base/dso2dso.exp.
| ERROR: couldn't open
| "../../../src/gdb/testsuite/gdb.base/../../../src/gdb/testsuite/gdb.base/dso2dso-dso1.c":
| no such file or directory
|     while executing
| "error "$message""
|     (procedure "gdb_get_line_number" line 14)
|     invoked from within
| "gdb_get_line_number "STOP HERE" $srcfile_libdso1"
|     (file "../../../src/gdb/testsuite/gdb.base/dso2dso.exp" line 60)
|     invoked from within
| "source ../../../src/gdb/testsuite/gdb.base/dso2dso.exp"
|     ("uplevel" body line 1)
|     invoked from within
| "uplevel #0 source ../../../src/gdb/testsuite/gdb.base/dso2dso.exp"
|     invoked from within
| "catch "uplevel #0 source $test_file_name""

This happens because gdb_get_line_number will prepend $srcdir/$subdir
if the given filename does not start with "/", and this happens when
GDB was configured using a relative path to the configure script.
When using an absolute path like I do, we avoid the pre-pending that
Keith is seeing.

gdb/testsuite/ChangeLog:

        Keith Seitz  <keiths@redhat.com>:
        * gdb.base/dso2dso.exp: Pass basename of source file in call
        to gdb_get_line_number.

Tested on x86_64-linux with both scenarios.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Set EI_OSABI to ELFOSABI_GNU for local IFUNC symbols
@ 2015-08-12 21:03 sergiodj+buildbot
  2015-08-12 21:08 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12 21:03 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 13a2df29c930eda49837741902b67021ab004990 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 13a2df29c930eda49837741902b67021ab004990

Set EI_OSABI to ELFOSABI_GNU for local IFUNC symbols

Since the backend elf_add_symbol_hook isn't called on local symbols,
the EI_OSABI field isn't to ELFOSABI_GNU where are local IFUNC symbols.
This patch changes the x86 backends to set has_gnu_symbols if there are
relocations against IFUNC symbols.  Other backends with IFUNC support
may need a similar change.

This patch also changes the type of has_gnu_symbols from bfd_boolean to
enum elf_gnu_symbols.

bfd/

	PR ld/18815
	* elf-bfd.h (elf_gnu_symbols): New enum.
	(elf_obj_tdata): Use elf_gnu_symbols on has_gnu_symbols.
	* elf-s390-common.c (elf_s390_add_symbol_hook): Set
	has_gnu_symbols to elf_gnu_symbol_any.
	* elf32-arm.c (elf32_arm_add_symbol_hook): Likewise.
	* elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
	* elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
	* elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
	* elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
	* elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
	* lfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
	* elf32-i386.c (elf_i386_check_relocs): Update has_gnu_symbols
	if there are relocations against IFUNC symbols.
	(elf_i386_add_symbol_hook): Don't check STT_GNU_IFUNC here.
	* elf64-x86-64. (elf_x86_64_check_relocs): Update has_gnu_symbols
	if there are relocations against IFUNC symbols.
	(elf_x86_64_add_symbol_hook): Don't check STT_GNU_IFUNC here.

ld/testsuite/

	PR ld/18815
	* ld-i386/i386.exp: Run pr18815.
	* ld-x86-64/x86-64.exp: Likewise.
	* ld-i386/pr18815.d: New file.
	* ld-i386/pr18815.s: Likewise.
	* ld-x86-64/pr18815.d: Likewise.
	* ld-x86-64/pr18815.s: Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [amd64] Invalid return address after displaced stepping
@ 2015-08-12 20:32 sergiodj+buildbot
  2015-08-12 20:37 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12 20:32 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 4dafcdeb1341c4dd1a4641373bc17aab3ef2e788 ***

Author: Joel Brobecker <brobecker@adacore.com>
Branch: master
Commit: 4dafcdeb1341c4dd1a4641373bc17aab3ef2e788

[amd64] Invalid return address after displaced stepping

Making all-stop run on top of non-stop caused a small regression
in behavior. This was observed on x86_64-linux. The attached testcase
is in C whereas the investigation was done with an Ada program,
but it's the same scenario, and using a C testcase allows wider testing.
Basically: I am debugging a single-threaded program, and currently
stopped inside a function provided by a shared-library, at a line
calling a subprogram provided by a second shared library, and trying
to "next" over that function call.

Before we changed the default all-stop behavior, we had:

    7             Impl_Initialize;  -- Stop here and try "next" over this line
    (gdb) n
    8             return 5;  <<-- OK

But now, "next" just stops much earlier:

    (gdb) n
    0x00007ffff7bd8560 in impl.initialize@plt () from /[...]/lib/libpck.so

What happens is that next stops at a call instruction, which calls
the function's PLT, and GDB fails to notice that the inferior stepped
into a subroutine, and so decides that we're done. We can see another
symptom of the same issue by looking at the backtrace at the point
GDB stopped:

    (gdb) bt
    #0  0x00007ffff7bd8560 in impl.initialize@plt ()
       from /[...]/lib/libpck.so
    #1  0x00000000f7bd86f9 in ?? ()
    #2  0x00007fffffffdf50 in ?? ()
    #3  0x0000000000401893 in a () at /[...]/a.adb:7
    Backtrace stopped: frame did not save the PC

With a functioning GDB, the backtrace looks like the following instead:

    #0  0x00007ffff7bd8560 in impl.initialize@plt ()
       from /[...]/lib/libpck.so
    #1  0x00007ffff7bd86f9 in sub () at /[...]/pck.adb:7
    #2  0x0000000000401893 in a () at /[...]/a.adb:7

Note how, for frame #1, the address looks quite similar, except
for the high-order bits not being set:

    #1  0x00007ffff7bd86f9 in sub () at /[...]/pck.adb:7   <<<--  OK
    #1  0x00000000f7bd86f9 in ?? ()                        <<<--  WRONG
              ^^^^
              ||||
              Wrong

Investigating this further led me to displaced stepping.
As we are "next"-ing from a location where a breakpoint is inserted,
we need to step out of it, and since we're on non-stop mode, we need
to do it using displaced stepping. And looking at
amd64-tdep.c:amd64_displaced_step_fixup, I found the code that handles
the return address:

    regcache_cooked_read_unsigned (regs, AMD64_RSP_REGNUM, &rsp);
    retaddr = read_memory_unsigned_integer (rsp, retaddr_len, byte_order);
    retaddr = (retaddr - insn_offset) & 0xffffffffUL;

The mask used to compute retaddr looks wrong to me, keeping only
4 bytes instead of 8, and explains why the high order bits of
the backtrace are unset. What happens is that, after the displaced
stepping has completed, GDB restores that return address at the location
where the program expects it.  But because the top half bits of
the address have been masked out, the return address is now invalid.
The incorrect behavior of the "next" command and the backtrace at
that location are the first symptoms of that.  Another symptom is
that this actually alters the behavior of the program, where a "cont"
from there soon leads to a SEGV when the inferior tries to jump back
to that incorrect return address:

    (gdb) c
    Continuing.

    Program received signal SIGSEGV, Segmentation fault.
    0x00000000f7bd86f9 in ?? ()
    ^^^^^^^^^^^^^^^^^^

This patch fixes the issue by using a mask that seems more appropriate
for this architecture.

gdb/ChangeLog:

        * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
        compute RETADDR.

gdb/testsuite/ChangeLog:

        * gdb.base/dso2dso-dso2.c, gdb.base/dso2dso-dso2.h,
        gdb.base/dso2dso-dso1.c, gdb.base/dso2dso-dso1.h, gdb.base/dso2dso.c,
        gdb.base/dso2dso.exp: New files.

Tested on x86_64-linux, no regression.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Initialize `location' in gdbpy_decode_line
@ 2015-08-12 18:48 sergiodj+buildbot
  2015-08-12 18:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12 18:48 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 59ecaff36145add82c315ba7a008c4a5db4a6f51 ***

Author: Keith Seitz <keiths@redhat.com>
Branch: master
Commit: 59ecaff36145add82c315ba7a008c4a5db4a6f51

Initialize `location' in gdbpy_decode_line

BuildBot flagged an uninitialized variable coming from one of the patches
in my recently committed locations/explicit patchset.

The following patch fixes this.

gdb/ChangeLog

	* python/python.c (gdbpy_decode_line): Initialize `location' to NULL
	and only call decode_line_1 when it is non-NULL.

diff --git a/gdb/python/python.c b/gdb/python/python.c
index c28f98b..14da62c 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -730,7 +730,7 @@ gdbpy_decode_line (PyObject *self, PyObject *args)
   PyObject *result = NULL;
   PyObject *return_result = NULL;
   PyObject *unparsed = NULL;
-  struct event_location *location;
+  struct event_location *location = NULL;

   if (! PyArg_ParseTuple (args, "|s", &arg))
     return NULL;
@@ -747,7 +747,7 @@ gdbpy_decode_line (PyObject *self, PyObject *args)

   TRY
     {
-      if (arg)
+      if (location != NULL)
 	sals = decode_line_1 (location, 0, 0, 0);
       else
 	{


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Guarantee save-and-restore of GDBFLAGS on gdb.base/checkpoint-ns.exp
@ 2015-08-12 16:46 sergiodj+buildbot
  2015-08-12 16:53 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12 16:46 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 5ba325978c354b9f0e238864e3afb4f9b528c04e ***

Author: Sergio Durigan Junior <sergiodj@redhat.com>
Branch: master
Commit: 5ba325978c354b9f0e238864e3afb4f9b528c04e

Guarantee save-and-restore of GDBFLAGS on gdb.base/checkpoint-ns.exp

Keith found out that several tests were failing when testing the
native-gdbserver board on Fedora (x86_64).  Strangely, these failures
had not been reported by our BuildBot.  Later, he found that the reason
for this was because the failures only happened when running the
testsuite without FORCE_PARALLEL (i.e., on serial mode; maybe it would
be worth having a builder testing things on serial...).  Then, he
decided to start bisecting the changes to see which one introduced the
failure (it was not trivial to know this only by looking at gdb.log).

After a lot of time, he found that Pedro's commit
e1316e60d4d1fe406efc6e7536b2bdb43733e9d2 was the culprit.  There was
nothing wrong in the code, but the new gdb.base/checkpoint-ns.exp
testcase did something that left the GDBFLAGS variable in an
inconsistent state.  This test works by modifying this variable to set
non-stop on, sourcing gdb.base/checkpoint.exp (which does the hard
work), and then restoring the old value on GDBFLAGS.  However, this was
not working because gdb.base/checkpoint.exp bails out if it is being
tested on gdbserver, and when it calls "continue" the control goes back
to the function calling the tests, and not to
gdb.base/checkpoint-ns.exp.

The fix is simple: just wrap the "source" call, and make
gdb.base/checkpoint-ns.exp aware of the "continue"/"return" calls made
by gdb.base/checkpoint.exp.

gdb/testsuite/ChangeLog:
2015-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
	    Pedro Alves  <palves@redhat.com>
	    Keith Seitz  <keiths@redhat.com>

	* gdb.base/checkpoint-ns.exp: Use save_vars to save and restore
	GDBFLAGS.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [MIPS] Map 'move' to 'or'.
@ 2015-08-12 16:23 sergiodj+buildbot
  2015-08-12 16:29 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12 16:23 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 40fc1451c63d21a1448bb21e39a7b70ecb959213 ***

Author: Simon Dardis <simon.dardis@imgtec.com>
Branch: master
Commit: 40fc1451c63d21a1448bb21e39a7b70ecb959213

[MIPS] Map 'move' to 'or'.

The MIPS assembly idiom 'move' now maps to the 'or' machine instruction. This
change affects microMIPS, MIPS32, MIPS64.

2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>

opcodes/

	* micromips-opc.c (micromips_opcodes): Re-order table so that move
	based on 'or' is first.
	* mips-opc.c (mips_builtin_opcodes): Ditto.

bfd/

	* elfxx-mips.c (STUB_MOVE): Change to use 'or' only.
	(mips_o32_exec_plt0_entry, mips_n32_exec_plt0_entry,
	mips_n64_exec_plt0_entry, micromips_insn32_o32_exec_plt0_entry):
	Update to use 'or' instead of 'addu/daddu'.
	(_bfd_mips_elf_finish_dynamic_symbol): Update usage of STUB_MOVE.
	(move_insns_32): Reorder table.

gas/

	* config/tc-mips.c (move_register): Change to use 'or' only.
	(s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Update to
	use or for move.

gas/testsuite/

	* gas/mips/elf-rel23.d: Update test.
	* gas/mips/elf-rel23.d: Ditto.
	* gas/mips/elf-rel23a.d: Ditto.
	* gas/mips/elf-rel23b.d: Ditto.
	* gas/mips/elf_e_flags1.d: Ditto.
	* gas/mips/elf_e_flags2.d: Ditto.
	* gas/mips/elf_e_flags3.d: Ditto.
	* gas/mips/elf_e_flags4.d: Ditto.
	* gas/mips/loc-swap-dis.d: Ditto.
	* gas/mips/micromips-insn32.d: Ditto.
	* gas/mips/micromips-noinsn32.d: Ditto.
	* gas/mips/micromips-trap.d: Ditto.
	* gas/mips/micromips.d: Ditto.
	* gas/mips/mips-abi32-pic.d: Ditto.
	* gas/mips/mips-abi32.d: Ditto.
	* gas/mips/mips-gp32-fp32-pic.d: Ditto.
	* gas/mips/mips-gp32-fp32.d: Ditto.
	* gas/mips/mips-gp32-fp64-pic.d: Ditto.
	* gas/mips/mips-gp32-fp64.d: Ditto.
	* gas/mips/mips-gp64-fp32-pic.d: Ditto.
	* gas/mips/mips-gp64-fp32.d: Ditto.
	* gas/mips/mips-gp64-fp64-pic.d: Ditto.
	* gas/mips/mips-gp64-fp64.d: Ditto.
	* gas/mips/mipsr6@loc-swap-dis.d: Ditto.
	* gas/mips/tls-o32.d: Ditto.
	* gas/mips/uld2-eb.d: Ditto.
	* gas/mips/uld2-el.d: Ditto.
	* gas/mips/ulw2-eb-ilocks.d: Ditto.
	* gas/mips/ulw2-eb.d: Ditto.
	* gas/mips/ulw2-el-ilocks.d: Ditto.
	* gas/mips/ulw2-el.d: Ditto.
	* gas/mips/move.d: New test.
	* gas/mips/move.s: Ditto.
	* gas/mips/micromips32-move.d: Ditto.
	* gas/mips/micromips32-move.s: Ditto.
	* gas/mips/mips.exp: Run the new tests.

gold/

	* mips.cc (plt0_entry_o32, plt0_entry_n32, plt0_entry_n64,
	lazy_stub_normal_1, lazy_stub_normal_1_n64,
	lazy_stub_normal_2, lazy_stub_normal_2_n64, lazy_stub_big,
	lazy_stub_big_n64, lazy_stub_micromips32_normal_1_n64,
	lazy_stub_micromips32_normal_2_n64, lazy_stub_micromips32_big,
	lazy_stub_micromips32_big_n64): Update to use 'or' for move instead
	of 'addu/daddu'.

ld/testsuite/

	* ld-mips-elf/compressed-plt-1-n32-mips16.od: Update test.
	* ld-mips-elf/compressed-plt-1-n32-umips.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-mips16-got.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-mips16-only.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-mips16-word.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-mips16.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-se.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-umips-got.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-umips-word.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-umips.od: Ditto.
	* ld-mips-elf/jalx-2.dd: Ditto.
	* ld-mips-elf/mips16-pic-3.dd: Ditto.
	* ld-mips-elf/pic-and-nonpic-3a.dd: Ditto.
	* ld-mips-elf/pic-and-nonpic-3b.dd: Ditto.
	* ld-mips-elf/pic-and-nonpic-5b.dd: Ditto.
	* ld-mips-elf/pic-and-nonpic-6-n32.dd: Ditto.
	* ld-mips-elf/pic-and-nonpic-6-o32.dd: Ditto.
	* ld-mips-elf/stub-dynsym-1-10000.d: Ditto.
	* ld-mips-elf/stub-dynsym-1-2fe80.d: Ditto.
	* ld-mips-elf/stub-dynsym-1-7fff.d: Ditto.
	* ld-mips-elf/stub-dynsym-1-8000.d: Ditto.
	* ld-mips-elf/stub-dynsym-1-fff0.d: Ditto.
	* ld-mips-elf/tlsbin-o32.d: Ditto.
	* ld-mips-elf/tlsdyn-o32-1.d: Ditto.
	* ld-mips-elf/tlsdyn-o32-2.d: Ditto.
	* ld-mips-elf/tlsdyn-o32-3.d: Ditto.
	* ld-mips-elf/tlsdyn-o32.d: Ditto.
	* ld-mips-elf/tlslib-o32.d: Ditto.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Use save_vars to replace existing manipulation of globals in tests
@ 2015-08-12 15:57 sergiodj+buildbot
  2015-08-12 16:01 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12 15:57 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT b6dafabfb18e3ab207a1818ebe68e30337b5515d ***

Author: Patrick Palka <patrick@parcs.ath.cx>
Branch: master
Commit: b6dafabfb18e3ab207a1818ebe68e30337b5515d

Use save_vars to replace existing manipulation of globals in tests

gdb/testsuite/ChangeLog:

	* gdb.base/gdbhistsize-history.exp
	(test_histsize_history_setting): Use save_vars.
	* gdb.base/gdbinit-history.exp (test_gdbinit_history_setting):
	Use save_vars.
	(test_no_truncation_of_unlimited_history_file): Use save_vars.
	* gdb.base/readline.exp: Use save_vars.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Introduce save_vars, a testsuite proc for safely manipulating globals
@ 2015-08-12 13:24 sergiodj+buildbot
  2015-08-12 13:27 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12 13:24 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT abe8e6075bac6596f9105bbc9607038543ac849e ***

Author: Patrick Palka <patrick@parcs.ath.cx>
Branch: master
Commit: abe8e6075bac6596f9105bbc9607038543ac849e

Introduce save_vars, a testsuite proc for safely manipulating globals

gdb/testsuite/ChangeLog:

	* lib/gdb.exp (save_vars): New proc.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Sync ansidecl.h with GCC
@ 2015-08-12 12:58 sergiodj+buildbot
  2015-08-12 12:58 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12 12:58 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT dd419f3aac048176e4e760dc8f29d3429c4f07ce ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: dd419f3aac048176e4e760dc8f29d3429c4f07ce

Sync ansidecl.h with GCC

	Sync with GCC
	2015-08-11  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* ansidecl.h (GCC_FINAL): New macro.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Remove trailing spaces in opcodes
@ 2015-08-12 12:26 sergiodj+buildbot
  2015-08-12 12:30 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12 12:26 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 43e65147c07b1400ae0dbb6694882eceb2363713 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 43e65147c07b1400ae0dbb6694882eceb2363713

Remove trailing spaces in opcodes


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Remove trailing spaces in bfd
@ 2015-08-12 11:58 sergiodj+buildbot
  2015-08-12 12:05 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12 11:58 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 1b7868733d45220e63b72a1814f30e090f761821 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 1b7868733d45220e63b72a1814f30e090f761821

Remove trailing spaces in bfd


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [regression] Do not read from catchpoint/watchpoint locations' addresses when checking for a permanent breakpoint
@ 2015-08-12  8:50 sergiodj+buildbot
  2015-08-12  8:54 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12  8:50 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 244558af868d5427903c35c5105bf5499639f81f ***

Author: Luis Machado <lgustavo@codesourcery.com>
Branch: master
Commit: 244558af868d5427903c35c5105bf5499639f81f

[regression] Do not read from catchpoint/watchpoint locations' addresses when checking for a permanent breakpoint

While running bare-metal tests with GDB i noticed some failures in
gdb.base/break.exp, related to the use of the catch commands.

It turns out GDB tries to access memory address 0x0 whenever one tries
to insert a catchpoint, which should obviously not happen.

This was introduced with the changes for permanent breakpoints. In special,
bp_loc_is_permanent tries to check if there is a breakpoint inserted at
the same address as the current breakpoint's location's address. In the
case of catchpoints, this is 0x0.

(top-gdb) catch fork
Sending packet: $m0,1#fa...Packet received: E01
Catchpoint 4 (fork)

(top-gdb) catch vfork
Sending packet: $m0,1#fa...Packet received: E01
Catchpoint 5 (vfork)

It is not obvious to detect because this fails silently for Linux. For our
bare-metal testing, though, this fails with a clear error message from the
target about not being able to read such address.

The attached patch addresses this by bailing out of bp_loc_is_permanent (...)
if the location address is not meaningful. I also took the opportunity to
update the comment for breakpoint_address_is_meaningful, which mentioned
breakpoint addresses as opposed to their locations' addresses.

gdb/ChangeLog:

2015-08-11  Luis Machado  <lgustavo@codesourcery.com>

	* breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
	location address is not meaningful.
	(breakpoint_address_is_meaningful): Update comment.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Properly skip IFUNC relocations in debug sections
@ 2015-08-12  5:48 sergiodj+buildbot
  2015-08-12  6:00 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12  5:48 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 0eace2105dc6c005fdc908414ad564d318b71540 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 0eace2105dc6c005fdc908414ad564d318b71540

Properly skip IFUNC relocations in debug sections

Use "continue" instead of "break" to skip IFUNC relocations in debug
sections.

	* elf32-i386.c (elf_i386_relocate_section): Properly skip IFUNC
	relocations in debug sections.
	* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Explicit locations: documentation updates
@ 2015-08-12  5:23 sergiodj+buildbot
  2015-08-12  5:36 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12  5:23 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 629500fae69737a6230a564e8fef1f42c3ef1116 ***

Author: Keith Seitz <keiths@redhat.com>
Branch: master
Commit: 629500fae69737a6230a564e8fef1f42c3ef1116

Explicit locations: documentation updates

This patch adds documentation for explicit locations to both the
User Manual and gdb's online help system.

gdb/ChangeLog:

	* NEWS: Mention explicit locations.
	* breakpoint.c [LOCATION_HELP_STRING]: New macro.
	[BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
	(_initialize_breakpoint): Update documentation for
	"clear", "break", "trace", "strace", "ftrace", and "dprintf".

gdb/doc/ChangeLog:

	* gdb.texinfo (Thread-Specific Breakpoints, Printing Source Lines):
	Use "location(s)"instead of "linespec(s)".
	(Specifying a Location): Rewrite.
	Add subsections describing linespec, address, and explicit locations.
	Add node/menu for each subsection.
	(Source and Machine Code, C Preprocessor Macros)
	(Create and Delete Trace points)
	(Extensions for Ada Tasks): Use "location(s)" instead of "linespec(s)".
	(Continuing at a Different Address): Remove "linespec" examples.
	Add reference to "Specify a Location"
	(The -break-insert Command): Rewrite.  Add anchor.
	Add reference to appropriate manual section discussing locations.
	(The -dprintf-insert Command): Refer to -break-insert for
	specification of 'location'.

gdb/testsuite/ChangeLog:

	* gdb.base/help.exp: Update help_breakpoint_text.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Explicit locations: MI support for explicit locations
@ 2015-08-12  4:59 sergiodj+buildbot
  2015-08-12  5:09 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12  4:59 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT eb8c4e2e66329dc7bf2024d55991efe8587075c0 ***

Author: Keith Seitz <keiths@redhat.com>
Branch: master
Commit: eb8c4e2e66329dc7bf2024d55991efe8587075c0

Explicit locations: MI support for explicit locations

This patch adds support for explicit locations to MI's -break-insert
command. The new options, documented in the User Manual, are
--source, --line, --function, and --label.

gdb/ChangeLog:

	* mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
	explicit locations, options "--source", "--function",
	"--label", and "--line".

gdb/testsuite/ChangeLog:

	* gdb.mi/mi-break.exp (test_explicit_breakpoints): New proc.
	(at toplevel): Call test_explicit_breakpoints.
	* gdb.mi/mi-dprintf.exp: Add tests for explicit dprintf
	breakpoints.
	* lib/mi-support.exp (mi_make_breakpoint): Add support for
	breakpoint conditions, "-cond".


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Explicit locations: add UI features for CLI
@ 2015-08-12  4:30 sergiodj+buildbot
  2015-08-12  4:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12  4:30 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 87f0e7204722a986f79f245eee716f0870832d47 ***

Author: Keith Seitz <keiths@redhat.com>
Branch: master
Commit: 87f0e7204722a986f79f245eee716f0870832d47

Explicit locations: add UI features for CLI

This patch exposes explicit locations to the CLI user.  This enables
users to "explicitly" specify attributes of the breakpoint location
to avoid any ambiguity that might otherwise exist with linespecs.

The general syntax of explicit locations is:
-source SOURCE_FILENAME -line {+-}LINE -function FUNCTION_NAME
-label LABEL_NAME

Option names may be abbreviated, e.g., "-s SOURCE_FILENAME -li 3" and users
may use the completer with either options or values.

gdb/ChangeLog:

	* completer.c: Include location.h.
	(enum match_type): New enum.
	(location_completer): Rename to ...
	(linespec_completer): ... this.
	(collect_explicit_location_matches, backup_text_ptr)
	(explicit_location_completer): New functions.
	(location_completer): "New" function; handle linespec
	and explicit location completions.
	(complete_line_internal): Remove all location completer-specific
	handling.
	* linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
	(find_toplevel_char): Export.
	(linespec_parse_line_offset): Export.
	Issue error if STRING is not numerical.
	(gdb_get_linespec_parser_quote_characters): New function.
	* linespec.h (linespec_parse_line_offset): Declare.
	(get_gdb_linespec_parser_quote_characters): Declare.
	(is_ada_operator): Declare.
	(find_toplevel_char): Declare.
	(linespec_lexer_lex_keyword): Declare.
	* location.c (explicit_to_event_location): New function.
	(explicit_location_lex_one): New function.
	(string_to_explicit_location): New function.
	(string_to_event_location): Handle explicit locations.
	* location.h (explicit_to_event_location): Declare.
	(string_to_explicit_location): Declare.

gdb/testsuite/ChangeLog:

	* gdb.linespec/3explicit.c: New file.
	* gdb.linespec/cpexplicit.cc: New file.
	* gdb.linespec/cpexplicit.exp: New file.
	* gdb.linespec/explicit.c: New file.
	* gdb.linespec/explicit.exp: New file.
	* gdb.linespec/explicit2.c: New file.
	* gdb.linespec/ls-errs.exp: Add explicit location tests.
	* lib/gdb.exp (capture_command_output): Regexp-escape `command'
	before using in the matching pattern.
	Clarify that `prefix' is a regular expression.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Explicit locations: introduce explicit locations
@ 2015-08-12  4:04 sergiodj+buildbot
  2015-08-12  4:19 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-12  4:04 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 00e52e5376c7ec604a739e6242e6be36221162d7 ***

Author: Keith Seitz <keiths@redhat.com>
Branch: master
Commit: 00e52e5376c7ec604a739e6242e6be36221162d7

Explicit locations: introduce explicit locations

This patch add support for explicit locations and switches many linespec
locations to this new location type.  This patch also converts all
linespec locations entered by the user to an explicit representation
internally (thus bypassing the linespec parser when resetting the
breakpoint).

This patch does not introduce any user-visible changes.


gdb/ChangeLog:

	* break-catch-throw.c (re_set_exception_catchpoint): Convert
	linespec into explicit location.
	* breakpoint.c (create_overlay_breakpoint)
	(create_longjmp_master_breakpoint)
	(create_std_terminate_master_breakpoint)
	(create_exception_master_breakpoint): Convert linespec into explicit
	location.
	(update_static_tracepoint): Convert linespec into explicit location.
	* linespec.c (enum offset_relative_sign, struct line_offset): Move
	location.h.
	(struct linespec) <expression, expr_pc, source_filename>
	<function_name, label_name, line_offset>: Replace with ...
	<explicit>: ... this.
	<is_linespec>: New member.
	(PARSER_EXPLICIT): New accessor macro.
	(undefined_label_error): New function.
	(source_file_not_found_error): New function.
	(linespec_parse_basic): The parser result is now an explicit location.
	Use PARSER_EXPLICIT to access it.
	Use undefined_label_error.
	(canonicalize_linespec): Convert canonical linespec into explicit
	location.
	Move string representation of location to explicit_location_to_linespec
	and use it and explicit_location_to_string to save string
	representations of the canonical location.
	(create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
	explicit location.  Update all references.
	(convert_explicit_location_to_sals): New function.
	(parse_linespec): Use PARSER_EXPLICIT to access the parser
	result's explicit location.
	(linespec_state_constructor): Initialize is_linespec.
	Use PARSER_EXPLICIT.
	(linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
	result.
	(event_location_to_sals): For linespec locations, set is_linespec.
	Handle explicit locations.
	(decode_objc): 'ls' contains an explicit location now. Update all
	references.
	(symtabs_from_filename): Use source_file_not_found_error.
	* location.c (struct event_location.u) <explicit>: New member.
	(initialize_explicit_location): New function.
	(initialize_event_location): Initialize explicit locations.
	(new_explicit_location, get_explicit_location)
	(get_explicit_location_const): New functions.
	(explicit_to_string_internal): New function; most of contents moved
	from canonicalize_linespec.
	(explicit_location_to_string): New function.
	(explicit_location_to_linespec): New function.
	(copy_event_location, delete_event_location)
	(event_location_to_string_const, event_location_empty_p): Handle
	explicit locations.
	* location.h (enum offset_relative_sign, struct line_offset): Move
	here from linespec.h.
	(enum event_location_type): Add EXPLICIT_LOCATION.
	(struct explicit_location): New structure.
	(explicit_location_to_string): Declare.
	(explicit_location_to_linespec): Declare.
	(new_explicit_location, get_explicit_locationp
	(get_explicit_location_const, initialize_explicit_location): Declare.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Replace the block_found global with explicit data-flow
@ 2015-08-01  9:01 sergiodj+buildbot
  2015-08-01  9:05 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-08-01  9:01 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT d12307c199dfdb9cad1ea79d2626224e705089a3 ***

Author: Pierre-Marie de Rodat <derodat@adacore.com>
Branch: master
Commit: d12307c199dfdb9cad1ea79d2626224e705089a3

Replace the block_found global with explicit data-flow
As Pedro suggested on gdb-patches@ (see
https://sourceware.org/ml/gdb-patches/2015-05/msg00714.html), this
change makes symbol lookup functions return a structure that includes
both the symbol found and the block in which it was found.  This makes
it possible to get rid of the block_found global variable and thus makes
block hunting explicit.

gdb/

	* ada-exp.y (write_object_renaming): Replace struct
	ada_symbol_info with struct block_symbol.  Update field
	references accordingly.
	(block_lookup, select_possible_type_sym): Likewise.
	(find_primitive_type): Likewise.  Also update call to
	ada_lookup_symbol to extract the symbol itself.
	(write_var_or_type, write_name_assoc): Likewise.
	* ada-lang.h (struct ada_symbol_info): Remove.
	(ada_lookup_symbol_list): Replace struct ada_symbol_info with
	struct block_symbol.
	(ada_lookup_encoded_symbol, user_select_syms): Likewise.
	(ada_lookup_symbol): Return struct block_symbol instead of a
	mere symbol.
	* ada-lang.c (defns_collected): Replace struct ada_symbol_info
	with struct block_symbol.
	(resolve_subexp, ada_resolve_function, sort_choices,
	user_select_syms, is_nonfunction, add_defn_to_vec,
	num_defns_collected, defns_collected,
	symbols_are_identical_enums, remove_extra_symbols,
	remove_irrelevant_renamings, add_lookup_symbol_list_worker,
	ada_lookup_symbol_list, ada_iterate_over_symbols,
	ada_lookup_encoded_symbol, get_var_value): Likewise.
	(ada_lookup_symbol): Return a block_symbol instead of a mere
	symbol.  Replace struct ada_symbol_info with struct
	block_symbol.
	(ada_lookup_symbol_nonlocal): Likewise.
	(standard_lookup): Make block passing explicit through
	lookup_symbol_in_language.
	* ada-tasks.c (get_tcb_types_info): Update the calls to
	lookup_symbol_in_language to extract the mere symbol out of the
	returned value.
	(ada_tasks_inferior_data_sniffer): Likewise.
	* ax-gdb.c (gen_static_field): Likewise for the call to
	lookup_symbol.
	(gen_maybe_namespace_elt): Deal with struct symbol_in_block from
	lookup functions.
	(gen_expr): Likewise.
	* c-exp.y: Likewise.  Remove uses of block_found.
	(lex_one_token, classify_inner_name, c_print_token): Likewise.
	(classify_name): Likewise.  Rename the "sym" local variable to
	"bsym".
	* c-valprint.c (print_unpacked_pointer): Likewise.
	* compile/compile-c-symbols.c (convert_symbol_sym): Promote the
	"sym" parameter from struct symbol * to struct block_symbol.
	Use it to remove uses of block_found.  Deal with struct
	symbol_in_block from lookup functions.
	(gcc_convert_symbol): Likewise.  Update the call to
	convert_symbol_sym.
	* compile/compile-object-load.c (compile_object_load): Deal with
	struct symbol_in_block from lookup functions.
	* cp-namespace.c (cp_lookup_nested_symbol_1,
	cp_lookup_nested_symbol, cp_lookup_bare_symbol,
	cp_search_static_and_baseclasses,
	cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
	cp_lookup_symbol_imports_or_template,
	cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
	lookup_namespace_scope, cp_lookup_nonlocal,
	find_symbol_in_baseclass): Return struct symbol_in_block instead
	of mere symbols and deal with struct symbol_in_block from lookup
	functions.
	* cp-support.c (inspect_type, replace_typedefs,
	cp_lookup_rtti_type): Deal with struct symbol_in_block from
	lookup functions.
	* cp-support.h (cp_lookup_symbol_nonlocal,
	cp_lookup_symbol_from_namespace,
	cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
	Return struct symbol_in_block instead of mere symbols.
	* d-exp.y (d_type_from_name, d_module_from_name, push_variable,
	push_module_name):
	Deal with struct symbol_in_block from lookup functions.  Remove
	uses of block_found.
	* eval.c (evaluate_subexp_standard): Update call to
	cp_lookup_symbol_namespace.
	* f-exp.y: Deal with struct symbol_in_block from lookup
	functions.  Remove uses of block_found.
	(yylex): Likewise.
	* gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
	lookup_enum, lookup_template_type, check_typedef): Deal with
	struct symbol_in_block from lookup functions.
	* guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
	* guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
	(gdbscm_lookup_global_symbol): Likewise.
	* gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
	* go-exp.y: Likewise.  Remove uses of block_found.
	(package_name_p, classify_packaged_name, classify_name):
	Likewise.
	* infrun.c (insert_exception_resume_breakpoint): Likewise.
	* jv-exp.y (push_variable): Likewise.
	* jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
	* language.c (language_bool_type): Likewise.
	* language.h (struct language_defn): Update
	la_lookup_symbol_nonlocal to return a struct symbol_in_block
	rather than a mere symbol.
	* linespec.c (find_label_symbols): Deal with struct
	symbol_in_block from lookup functions.
	* m2-exp.y: Likewise.  Remove uses of block_found.
	(yylex): Likewise.
	* mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
	* objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
	* p-exp.y: Likewise.  Remove uses of block_found.
	(yylex): Likewise.
	* p-valprint.c (pascal_val_print): Likewise.
	* parse.c (write_dollar_variable): Likewise.  Remove uses of
	block_found.
	* parser-defs.h (struct symtoken): Turn the SYM field into a
	struct symbol_in_block.
	* printcmd.c (address_info): Deal with struct symbol_in_block
	from lookup functions.
	* python/py-frame.c (frapy_read_var): Likewise.
	* python/py-symbol.c (gdbpy_lookup_symbol,
	gdbpy_lookup_global_symbol): Likewise.
	* skip.c (skip_function_command): Likewise.
	* solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
	symbol_in_block instead of a mere symbol.
	* solib-spu.c (spu_lookup_lib_symbol): Likewise.
	* solib-svr4.c (elf_lookup_lib_symbol): Likewise.
	* solib.c (solib_global_lookup): Likewise.
	* solist.h (solib_global_lookup): Likewise.
	(struct target_so_ops): Update lookup_lib_global_symbol to
	return a struct symbol_in_block rather than a mere symbol.
	* source.c (select_source_symtab): Deal with struct
	symbol_in_block from lookup functions.
	* stack.c (print_frame_args, iterate_over_block_arg_vars):
	Likewise.
	* symfile.c (set_initial_language): Likewise.
	* symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
	symbol_in_block.
	(SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
	(struct symbol_cache_slot): Turn the FOUND field into a struct
	symbol_in_block.
	(block_found): Remove.
	(eq_symbol_entry): Update to deal with struct symbol_in_block in
	cache slots.
	(symbol_cache_lookup): Return a struct symbol_in_block rather
	than a mere symbol.
	(symbol_cache_mark_found): Add a BLOCK parameter to fill
	appropriately the cache slots.  Update callers.
	(symbol_cache_dump): Update cache slots handling to the type
	change.
	(lookup_symbol_in_language, lookup_symbol, lookup_language_this,
	lookup_symbol_aux, lookup_local_symbol,
	lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
	lookup_symbol_in_objfile_symtabs,
	lookup_symbol_in_objfile_from_linkage_name,
	lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
	lookup_symbol_in_static_block, lookup_static_symbol,
	lookup_global_symbol):
	Return a struct symbol_in_block rather than a mere symbol.  Deal
	with struct symbol_in_block from other lookup functions.  Remove
	uses of block_found.
	(lookup_symbol_in_block): Remove uses of block_found.
	(struct global_sym_lookup_data): Turn the RESULT field into a
	struct symbol_in_block.
	(lookup_symbol_global_iterator_cb): Update references to the
	RESULT field.
	(search_symbols): Deal with struct symbol_in_block from lookup
	functions.
	* symtab.h (struct symbol_in_block): New structure.
	(block_found): Remove.
	(lookup_symbol_in_language, lookup_symbol,
	basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
	looku_static_symbol, lookup_global_symbol,
	lookup_symbol_in_block, lookup_language_this,
	lookup_global_symbol_from_objfile): Return a struct
	symbol_in_block rather than just a mere symbol.  Update comments
	to remove mentions of block_found.
	* valops.c (find_function_in_inferior,
	value_struct_elt_for_reference, value_maybe_namespace_elt,
	value_of_this):  Deal with struct symbol_in_block from lookup
	functions.
	* value.c (value_static_field, value_fn_field): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Remove CHECK_TYPEDEF, use check_typedef instead
@ 2015-07-14 21:08 sergiodj+buildbot
  2015-07-14 23:02 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-07-14 21:08 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT f168693bc9d109c387e442119354bd57ecec8267 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: f168693bc9d109c387e442119354bd57ecec8267

Remove CHECK_TYPEDEF, use check_typedef instead
I think that the CHECK_TYPEDEF macro is not necessary, and even a bit
annoying.  It makes unclear the fact that the "type" variables gets
overwritten.  It has actually bitten me a few times.  I think the
following, explicit form, is better.

  type = check_typedef (type);

This patches changes all instances of CHECK_TYPEDEF for an equivalent
call to check_typedef.  The bulk of the change was done with this sed:

  sed -i 's/CHECK_TYPEDEF (\([^)]*\));/\1 = check_typedef (\1);/' <file>.c

The ChangeLog was generated using David Malcom's generate_changelog.py.
I manually fixed those places where it gets the wrong function name,
hopefully all of them.

The patch was built-tested, and I ran a few smoke tests.

gdb/ChangeLog:
	* gdbtypes.h (CHECK_TYPEDEF): Remove.
	* aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
        with check_typedef.
	* ada-lang.c (decode_constrained_packed_array_type): Likewise.
	(ada_array_length): Likewise.
	(find_parallel_type_by_descriptive_type): Likewise.
	(ada_check_typedef): Likewise.
	* arm-tdep.c (arm_return_in_memory): Likewise.
	* ax-gdb.c (gen_trace_static_fields): Likewise.
	(gen_struct_ref_recursive): Likewise.
	* c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
	(variable: block COLONCOLON name): Likewise.
	(qualified_name: TYPENAME COLONCOLON name): Likewise.
	* c-lang.c (classify_type): Likewise.
	* c-typeprint.c (c_print_type): Likewise.
	(c_print_typedef): Likewise.
	(c_type_print_base): Likewise.
	* c-valprint.c (c_val_print): Likewise.
	* compile/compile-c-types.c (convert_type): Likewise.
	* compile/compile-object-load.c (get_out_value_type): Likewise.
	* completer.c (add_struct_fields): Likewise.
	(expression_completer): Likewise.
	* cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
	(cp_lookup_nested_symbol_1): Likewise.
	(cp_lookup_nested_symbol): Likewise.
	* cp-valprint.c (cp_print_value_fields): Likewise.
	(cp_print_static_field): Likewise.
	* d-valprint.c (d_val_print): Likewise.
	* eval.c (evaluate_subexp_standard): Likewise.
	(evaluate_subexp_for_sizeof): Likewise.
	* f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
	* f-typeprint.c (f_type_print_base): Likewise.
	* f-valprint.c (f_val_print): Likewise.
	* gdbtypes.c (get_discrete_bounds): Likewise.
	(create_array_type_with_stride): Likewise.
	(type_name_no_tag_or_error): Likewise.
	(lookup_struct_elt_type): Likewise.
	(get_unsigned_type_max): Likewise.
	(internal_type_vptr_fieldno): Likewise.
	(set_type_vptr_fieldno): Likewise.
	(internal_type_vptr_basetype): Likewise.
	(set_type_vptr_basetype): Likewise.
        (get_vptr_fieldno): Likewise.
	(is_integral_type): Likewise.
	(is_scalar_type): Likewise.
        (is_scalar_type_recursive): Likewise.
	(distance_to_ancestor): Likewise.
	(is_unique_ancestor_worker): Likewise.
	(check_types_equal): Likewise.
	* gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
	* gnu-v3-abi.c (gnuv3_dynamic_class): Likewise.
	(gnuv3_get_vtable): Likewise.
	(gnuv3_pass_by_reference): Likewise.
	* go-exp.y (exp : SIZEOF_KEYWORD '(' type ')' %prec UNARY): Likewise.
	* go-lang.c (gccgo_string_p): Likewise.
	(go_classify_struct_type): Likewise.
	* go-typeprint.c (go_print_type): Likewise.
	* go-valprint.c (go_val_print): Likewise.
	* guile/scm-math.c (vlscm_binop): Likewise.
	* guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
	(gdbscm_value_to_bytevector): Likewise.
	(gdbscm_value_to_bool): Likewise.
	(gdbscm_value_to_integer): Likewise.
	(gdbscm_value_to_real): Likewise.
	* infcall.c (call_function_by_hand_dummy): Likewise.
	* infcmd.c (get_return_value): Likewise.
	* jv-lang.c (is_object_type): Likewise.
	* jv-typeprint.c (java_type_print_base): Likewise.
	* jv-valprint.c (java_print_value_fields): Likewise.
	(java_val_print): Likewise.
	* linespec.c (find_methods): Likewise.
	(collect_one_symbol): Likewise.
	* m2-typeprint.c (m2_print_type): Likewise.
	(m2_print_typedef): Likewise.
	(m2_get_discrete_bounds): Likewise.
	* m2-valprint.c (m2_print_long_set): Likewise.
	(m2_print_unbounded_array): Likewise.
	(m2_print_array_contents): Likewise.
	(m2_val_print): Likewise.
	* opencl-lang.c (opencl_print_type): Likewise.
	* p-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
	* p-typeprint.c (pascal_print_type): Likewise.
	(pascal_print_typedef): Likewise.
	(pascal_type_print_base): Likewise.
	* p-valprint.c (pascal_val_print): Likewise.
	(pascal_object_print_value_fields): Likewise.
	(pascal_object_print_static_field): Likewise.
	* python/py-type.c (typy_fields_items): Likewise.
	(typy_get_composite): Likewise.
	* python/py-value.c (valpy_get_dynamic_type): Likewise.
	(valpy_binop): Likewise.
	(valpy_long): Likewise.
	(valpy_float): Likewise.
	* stack.c (return_command): Likewise.
	* symtab.c (check_field): Likewise.
	(lookup_symbol_aux): Likewise.
	* tic6x-tdep.c (tic6x_return_value): Likewise.
	* typeprint.c (print_type_scalar): Likewise.
	* valarith.c (value_vector_widen): Likewise.
	* valops.c (value_cast): Likewise.
	(value_assign): Likewise.
	(do_search_struct_field): Likewise.
	(search_struct_method): Likewise.
	(find_method_list): Likewise.
	* valprint.c (val_print_scalar_type_p): Likewise.
	(valprint_check_validity): Likewise.
	(generic_val_print): Likewise.
	* value.c (unpack_double): Likewise.
	(value_primitive_field): Likewise.
	(unpack_bits_as_long): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add support reading D modules from DWARF
@ 2015-07-14 19:13 sergiodj+buildbot
  2015-07-14 22:59 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-07-14 19:13 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 452802827f0870df0c8ece81a7e098d94cee4536 ***

Author: Iain Buclaw <ibuclaw@gdcproject.org>
Branch: master
Commit: 452802827f0870df0c8ece81a7e098d94cee4536

Add support reading D modules from DWARF
Extends existing support for namespaces/modules in C++/Fortran/Java to
include language_d too.  However unlike Fortran/C++, the separator for
qualified names is a single dot.

2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>

	* dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
	also test for language_d.
	(dwarf2_compute_name): Likewise.
	(read_func_scope): Likewise.
	(read_structure_type): Likewise.
	(determine_prefix): Likewise.
	(read_import_statement): Use dot as the separator for language_d.
	(typename_concat): Likewise, but don't prefix the D main function.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] i386-biarch-core.exp: Fix comment typo
@ 2015-07-14 18:50 sergiodj+buildbot
  2015-07-14 22:57 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-07-14 18:50 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT cfa68bae4271a51a4402f8ca7ccdc014be95d79d ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: cfa68bae4271a51a4402f8ca7ccdc014be95d79d

i386-biarch-core.exp: Fix comment typo
gdb/testsuite/ChangeLog
2015-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* gdb.arch/i386-biarch-core.exp: Fix comment typo.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Sync Makefile.tpl with GCC
@ 2015-07-14 18:28 sergiodj+buildbot
  2015-07-14 22:55 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-07-14 18:28 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 22121df01ff9247b3cb272f52632848f9631f80f ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 22121df01ff9247b3cb272f52632848f9631f80f

Sync Makefile.tpl with GCC
	* Makefile.in: Regenerated.

	Sync with GCC
	2015-05-21  Jason Merrill  <jason@redhat.com>

	* Makefile.tpl: Update comments.

	2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	* Makefile.tpl: Remove surplus whitespace throughout.

	2015-03-25  Martin Liska  <mliska@suse.cz>
		    Yury Gribov  <y.gribov@samsung.com>

	* Makefile.tpl: Fix ln source location for vimrc file.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Sync longlong.h with GCC
@ 2015-07-14 18:08 sergiodj+buildbot
  2015-07-14 22:53 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-07-14 18:08 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT dc2edb520a534fd0c2af169d46b4d892208e8f42 ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: dc2edb520a534fd0c2af169d46b4d892208e8f42

Sync longlong.h with GCC
	Sync with GCC
	2014-10-28  Richard Henderson  <rth@redhat.com>

	* longlong.h [__alpha] (umul_ppmm): Disable for c++.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Delete program spaces directly when removing inferiors
@ 2015-07-08 15:32 sergiodj+buildbot
  2015-07-09  6:18 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-07-08 15:32 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 0560c645c02eba2828a053039dcfdf676cdd1d00 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 0560c645c02eba2828a053039dcfdf676cdd1d00

Delete program spaces directly when removing inferiors
When deleting an inferior, delete the associated program space as well
if it becomes unused. This replaces the "pruning" approach, with which
you could forget to call prune_program_spaces (as seen, with the
-remove-inferior command, see [1]).

This allows to remove the prune_program_spaces function. At the same
time, I was able to clean up the delete_inferior* family.
delete_inferior_silent and delete_inferior were unused, which allowed
renaming delete_inferior_1 to delete_inferior. Also, since all calls to
it were with silent=1, I removed that parameter completely.

I renamed pspace_empty_p to program_space_empty_p. I prefer if the
"exported" functions have a more explicit and standard name.

Tested on Ubuntu 14.10.

This obsoletes my previous patch "Add call to prune_program_spaces in
mi_cmd_remove_inferior" [1].

[1] https://sourceware.org/ml/gdb-patches/2014-09/msg00717.html

gdb/Changelog:

	* inferior.c (delete_inferior_1): Rename to ...
	(delete_inferior): ..., remove 'silent' parameter, delete
	program space when unused and remove call to prune_program_spaces.
	Remove the old, unused, delete_inferior.
	(delete_inferior_silent): Remove.
	(prune_inferiors): Change call from delete_inferior_1 to
	delete_inferior and remove 'silent' parameter. Remove call to
	prune_program_spaces.
	(remove_inferior_command): Idem.
	* inferior.h (delete_inferior_1): Rename to...
	(delete_inferior): ..., remove 'silent' parameter and remove the
	original delete_inferior.
	(delete_inferior_silent): Remove.
	* mi/mi-main.c (mi_cmd_remove_inferior): Change call from
	delete_inferior_1 to delete_inferior and remove 'silent'
	parameter.
	* progspace.c (prune_program_spaces): Remove.
	(pspace_empty_p): Rename to...
	(program_space_empty_p): ... and make non-static.
	(delete_program_space): New.
	* progspace.h (prune_program_spaces): Remove declaration.
	(program_space_empty_p): New declaration.
	(delete_program_space): New declaration.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [AArch64] BFD_RELOC_AARCH64_TLSLE_ADD_LO12 should enable overflow check
@ 2015-06-01  9:39 sergiodj+buildbot
  2015-06-01 11:07 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-06-01  9:39 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 36e6c1400b94b9da7ba0dff5b3900a8d3e3b0c75 ***

Author: Jiong Wang <jiong.wang@arm.com>
Branch: master
Commit: 36e6c1400b94b9da7ba0dff5b3900a8d3e3b0c75

[AArch64] BFD_RELOC_AARCH64_TLSLE_ADD_LO12 should enable overflow check
BFD_RELOC_AARCH64_TLSLE_ADD_LO12 is used to generate simplest
one-instruction addressing for TLS LE model when tls size is smaller
4K. Linker need to make sure there is no TLS offset overflow.

2015-06-01  Jiong Wang  <jiong.wang@arm.com>

bfd/
  * elfnn-aarch64.c (elfNN_aarch64_howto_table): Set overflow type to
  complain_overflow_unsigned for BFD_RELOC_AARCH64_TLSLE_ADD_LO12.
  * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Don't use
  PGOFF for BFD_RELOC_AARCH64_TLSLE_ADD_LO12, that will mask off all
  potential high overflowed bits.

ld/testsuite/
  * ld-aarch64/tprel_add_lo12_overflow.s: New testcase.
  * ld-aarch64/tprel_add_lo12_overflow.d: Nex expectation file.
  * ld-aarch64/aarch64-elf.exp: Run new testcase.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [AArch64] BFD Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15
@ 2015-06-01  9:32 sergiodj+buildbot
  2015-06-01 10:40 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-06-01  9:32 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 99ad26cb0d4f9152dbe5ed03b74020cc52d84d94 ***

Author: Jiong Wang <jiong.wang@arm.com>
Branch: master
Commit: 99ad26cb0d4f9152dbe5ed03b74020cc52d84d94

[AArch64] BFD Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15
2015-06-01  Jiong Wang  <jiong.wang@arm.com>
bfd/
	* elfnn-aarch64.c (aarch64_reloc_got_type): Support
	BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
	(elfNN_aarch64_final_link_relocate): Ditto.
	(elfNN_aarch64_gc_swap_hook): Ditto.
	(elfNN_aarch64_check_relocs): Ditto.
	* elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.

ld/testsuite/
	* ld-aarch64/emit-relocs-313.s: New test file.
	* ld-aarch64/emit-relocs-313.d: Ditto.
	* ld-aarch64/aarch64-elf.exp: Run new test.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [AArch64] GAS Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15
@ 2015-06-01  9:26 sergiodj+buildbot
  2015-06-01  9:55 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-06-01  9:26 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT a921b5bd708cc6e8afa3cf33443cda54b4e8cae6 ***

Author: Jiong Wang <jiong.wang@arm.com>
Branch: master
Commit: a921b5bd708cc6e8afa3cf33443cda54b4e8cae6

[AArch64] GAS Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15
2015-06-01 Jiong.Wang <jiong.wang@arm.com>

bfd/
  * reloc.c (BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15): New entry.
  * bfd-in2.h: Regenerate.
  * libbfd.h: Regenerate.
  * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
  BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.

gas/
  * config/tc-aarch64.c (reloc_table): New relocation modifiers.
  (md_apply_fix): Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
  (aarch64_force_relocation): Ditto.

gas/testsuite/
  * gas/aarch64/reloc-insn.s: New testcase.
  * gas/aarch64/reloc-insn.d: Ditto.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] x86/Intel: disassemble vcvt{, u}si2s{d, s} with correct operand order
@ 2015-06-01  8:05 sergiodj+buildbot
  2015-06-01  9:18 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-06-01  8:05 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 3a8547d2fb5319890dda877fb313822053083c3a ***

Author: Jan Beulich <jbeulich@novell.com>
Branch: master
Commit: 3a8547d2fb5319890dda877fb313822053083c3a

x86/Intel: disassemble vcvt{,u}si2s{d,s} with correct operand order
As pointed out before, the documentation mandates the rounding mode to
follow the GPR, so disassembler should produce output accordingly.

gas/testsuite/
2015-06-01  Jan Beulich  <jbeulich@suse.com>

	* gas/i386/avx512f.s: Adjust operand order for Intel syntax
	vcvt{,u}si2ss.
	* gas/i386/x86-64-avx512f.s: Adjust operand order for Intel
	syntax vcvt{,u}si2s{d,s}.

opcodes/
2015-06-01  Jan Beulich  <jbeulich@suse.com>

	* i386-dis.c (print_insn): Swap rounding mode specifier and
	general purpose register in Intel mode.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] x86/Intel: accept mandated operand order for vcvt{, u}si2s{d, s}
@ 2015-06-01  8:00 sergiodj+buildbot
  2015-06-01  8:37 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-06-01  8:00 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 015c54d5a6a052f074fab168bc70296131276e80 ***

Author: Jan Beulich <jbeulich@novell.com>
Branch: master
Commit: 015c54d5a6a052f074fab168bc70296131276e80

x86/Intel: accept mandated operand order for vcvt{,u}si2s{d,s}
As pointed out before, the documentation mandates the rounding mode to
follow the GPR, so gas should accept such input. As the brojen code got
released already we sadly will need to continue to also accept the
badly ordered operands.

gas/testsuite/
2015-06-01  Jan Beulich  <jbeulich@suse.com>

	* gas/i386/avx512f-intel.d: Adjust expectations on operand order.
	* gas/i386/evex-lig256-intel.d: Likewise.
	* gas/i386/evex-lig512-intel.d: Likewise.
	* gas/i386/x86-64-avx512f-intel.d: Likewise.
	* gas/i386/x86-64-evex-lig256-intel.d: Likewise.
	* gas/i386/x86-64-evex-lig512-intel.d: Likewise.

opcodes/
2015-06-01  Jan Beulich  <jbeulich@suse.com>

	* i386-opc.tbl: New IntelSyntax entries for vcvt{,u}si2s{d,s}.
	* i386-tbl.h: Regenerate.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] compile: Fix ASAN crash for gdb.compile/compile.exp
@ 2015-05-19 14:37 sergiodj+buildbot
  2015-05-19 16:32 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-19 14:37 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 5fe75eec33c0f55536f09b2f3d692fb688a2c423 ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: 5fe75eec33c0f55536f09b2f3d692fb688a2c423

compile: Fix ASAN crash for gdb.compile/compile.exp
(gdb) PASS: gdb.compile/compile.exp: set unwindonsignal on
compile code *(volatile int *) 0 = 0;
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7fba426 in _gdb_expr (__regs=0x7ffff7fb8000) at gdb command line:1
1	gdb command line: No such file or directory.
=================================================================
==10462==ERROR: AddressSanitizer: heap-use-after-free on address 0x621000cf7a3d at pc 0x0000004e46b9 bp 0x7ffdeb0f7a40 sp 0x7ffdeb0f71b8
READ of size 10 at 0x621000cf7a3d thread T0
    #0 0x4e46b8 in printf_common(void*, char const*, __va_list_tag*) [clone .isra.6] (/home/jkratoch/redhat/gdb-clean-asan/gdb/gdb+0x4e46
b8)
    #1 0x4f645e in vasprintf (/home/jkratoch/redhat/gdb-clean-asan/gdb/gdb+0x4f645e)
    #2 0xe5cf00 in xstrvprintf common/common-utils.c:120
    #3 0xe74192 in throw_it common/common-exceptions.c:332
    #4 0xe742f6 in throw_verror common/common-exceptions.c:361
    #5 0xddc89e in verror /home/jkratoch/redhat/gdb-clean-asan/gdb/utils.c:541
    #6 0xe734bd in error common/errors.c:43
    #7 0xafa1d6 in call_function_by_hand_dummy /home/jkratoch/redhat/gdb-clean-asan/gdb/infcall.c:1031
    #8 0xe81858 in compile_object_run compile/compile-object-run.c:119
    #9 0xe7733c in eval_compile_command compile/compile.c:577
    #10 0xe7541e in compile_code_command compile/compile.c:153

It is obvious why that happens, dummy_frame_pop() will call compile objfile
cleanup which will free that objfile and NAME then becomes a stale pointer.

> Is there any reason we release OBJFILE in the dummy frame dtor?  Why
> don't we register a cleanup to release in OBJFILE in compile_object_run?
> together with releasing compile_module?  'struct compile_module' has a
> field objfile, which should be released together with
> 'struct compile_module' instead of dummy_frame.

(gdb) break puts
Breakpoint 2 at 0x3830c6fd30: file ioputs.c, line 34.
(gdb) compile code puts("hello")
Breakpoint 2, _IO_puts (str=0x7ffff7ff8000 "hello") at ioputs.c:34
34      {
The program being debugged stopped while in a function called from GDB.
Evaluation of the expression containing the function
(_gdb_expr) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb) bt
(gdb) _

Now compile_object_run() called from line
	(gdb) compile code puts("hello")
has finished for a long time.  But we still need to have that injected code
OBJFILE valid when GDB is executing it.  Therefore OBJFILE is freed only from
destructor of the frame #1.

At the patched line of call_function_by_hand_dummy() the dummy frame
destructor has not yet been run but it will be run before the fetched NAME
will get used.

gdb/ChangeLog
2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Fix ASAN crash for gdb.compile/compile.exp.
	* infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] compile: gdb_stdout -> gdb_stdlog
@ 2015-05-19 12:47 sergiodj+buildbot
  2015-05-19 14:16 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-19 12:47 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT a40635885c50f14782d80251a8966bf4dd271f76 ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: a40635885c50f14782d80251a8966bf4dd271f76

compile: gdb_stdout -> gdb_stdlog
Please send debug output to gdb_stdlog.

OK but gdb/compile/ is using now only gdb_stdout; the error above is due to
a copy-paste.  So I will send a follow-up patch to change all the other
gdb/compile/ gdb_stdout strings to gdb_stdlog.

gdb/ChangeLog
2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
	(gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
	* compile/compile-object-load.c (setup_sections, compile_object_load):
	Likewise.
	* compile/compile.c (compile_to_object): Likewise.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Fix gdb.base/gdbinit-history.exp when HISTSIZE is set in the environment
@ 2015-05-19 10:23 sergiodj+buildbot
  2015-05-19 11:42 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-19 10:23 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 84204ed7c0ccaa790dff8e124e710277d9a8abc9 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 84204ed7c0ccaa790dff8e124e710277d9a8abc9

Fix gdb.base/gdbinit-history.exp when HISTSIZE is set in the environment
Some buildslaves are showing that this test is failing.  E.g.,:

 https://sourceware.org/ml/gdb-testers/2015-q2/msg04164.html

The issue is that HISTSIZE is set to 1000 in the environment that runs
the tests (that's the default in Fedora, set in /etc/profile).

We can trivially reproduce it with:

 $ HISTSIZE=1000 make check RUNTESTFLAGS="gdbinit-history.exp"
 (...)
 Running /home/pedro/gdb/mygit/src/gdb/testsuite/gdb.base/gdbinit-history.exp ...
 FAIL: gdb.base/gdbinit-history.exp: show history size
 FAIL: gdb.base/gdbinit-history.exp: show history size
 FAIL: gdb.base/gdbinit-history.exp: show commands

gdb.log shows:
 ...
 (gdb) set height 0
 (gdb) set width 0
 (gdb) show history size
 The size of the command history is 1000.
 (gdb) FAIL: gdb.base/gdbinit-history.exp: show history size

gdb/testsuite/ChangeLog:
2015-05-19  Pedro Alves  <palves@redhat.com>

	* gdb.base/gdbinit-history.exp (test_gdbinit_history_setting):
	Save the whole env array instead of just HOME.  Unset HISTSIZE in
	the environment while testing.  Restore whole environment
	afterwards.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Remove Disp32 from AMD64 direct call/jmp
@ 2015-05-18 11:31 sergiodj+buildbot
  2015-05-18 13:39 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-18 11:31 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 071f0063b422ed1f51a673c817a7656bab3e152f ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 071f0063b422ed1f51a673c817a7656bab3e152f

Remove Disp32 from AMD64 direct call/jmp
	* i386-opc.tbl: Remove Disp32 from AMD64 direct call/jmp.
	* i386-init.h: Regenerated.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] [AArch64] Remove X86-64 comments
@ 2015-05-18 10:01 sergiodj+buildbot
  2015-05-18 11:32 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-18 10:01 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 80de0c6d618be3656fa5a82bf445e0cd1b4b16d3 ***

Author: Jiong Wang <jiong.wang@arm.com>
Branch: master
Commit: 80de0c6d618be3656fa5a82bf445e0cd1b4b16d3

[AArch64] Remove X86-64 comments
bfd/
  * elfnn-aarch64.c (elfNN_aarch64_adjust_dynamic_symbol): Rewrite comments.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add myself to write-after-approval list
@ 2015-05-17 23:22 sergiodj+buildbot
  2015-05-18  0:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-17 23:22 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 4412c033caac38b5bad1bddffc40173a9de694cf ***

Author: Max Filippov <jcmvbkbc@gmail.com>
Branch: master
Commit: 4412c033caac38b5bad1bddffc40173a9de694cf

Add myself to write-after-approval list
gdb/
	* MAINTAINERS (Write After Approval): Add Max Filippov.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] sim: erc32: restore attribution
@ 2015-05-17  9:35 sergiodj+buildbot
  2015-05-17 10:59 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-17  9:35 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 296730a52b06fe7dd658924acae1269a54015d52 ***

Author: Mike Frysinger <vapier@gentoo.org>
Branch: master
Commit: 296730a52b06fe7dd658924acae1269a54015d52

sim: erc32: restore attribution


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] compile: Fix uninitialized variable compiler warnings
@ 2015-05-16 20:42 sergiodj+buildbot
  2015-05-17  3:15 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-16 20:42 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT d976bace1c68aed43311651c1033c23b3c983094 ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: d976bace1c68aed43311651c1033c23b3c983094

compile: Fix uninitialized variable compiler warnings
gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* compile/compile-object-load.c (get_out_value_type): Fix uninitialized
	variable compiler warnings.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Add support for unbuffered and zero sized Guile ports.
@ 2015-05-16 19:57 sergiodj+buildbot
  2015-05-17  5:18 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-16 19:57 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 37442ce10aaa2f84d245631d38e25ee47e5057aa ***

Author: Doug Evans <xdje42@gmail.com>
Branch: master
Commit: 37442ce10aaa2f84d245631d38e25ee47e5057aa

Add support for unbuffered and zero sized Guile ports.
gdb/ChangeLog

	* NEWS: Mention support for unbuffered Guile memory ports.
	* scm-ports.c (ioscm_memory_port): Update comments on end, size.
	(ioscm_lseek_address): Improve overflow calculation.
	(gdbscm_memory_port_fill_input): Add assert.
	(gdbscm_memory_port_write): Handle unbuffered ports.
	Handle large writes identical to Guile's fport_write.
	(gdbscm_memory_port_seek): Fix seeking past end check.
	(gdbscm_memory_port_close): Handle closing unbuffered port.
	(ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
	(ioscm_init_memory_port): Handle unbuffered ports.
	(ioscm_reinit_memory_port): Ditto.
	(ioscm_init_memory_port): Update size calculation.
	(gdbscm_open_memory): Support zero sized ports.

gdb/testsuite/ChangeLog

	* gdb.guile/scm-ports.c: New file.
	* gdb.guile/scm-ports.exp: Add memory port tests.

gdb/doc/ChangeLog

	* guile.texi (Memory Ports in Guile): Document support for unbuffered
	memory ports.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Code cleanup: compile: func_addr -> func_sym
@ 2015-05-16 16:31 sergiodj+buildbot
  2015-05-16 22:11 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-16 16:31 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 83d3415ef530c41af7e1ae98a7add97adb0cf5e0 ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: 83d3415ef530c41af7e1ae98a7add97adb0cf5e0

Code cleanup: compile: func_addr -> func_sym
Currently the code fetches _gdb_expr address/types at multiple places, guessing
its parameters at multiple places etc.

Fetch it once, verify it has expected type and then rely on it.

While the patch tries to clean up the code it is still horrible due to the
missing C++ sub-classing.


gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
	Rely on its parameter count.
	(compile_object_load): Replace lookup_minimal_symbol_text by
	lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
	return value.
	* compile/compile-object-load.h (struct compile_module): Replace
	func_addr by func_sym.
	* compile/compile-object-run.c: Include block.h.
	(compile_object_run): Reset module variable after it is freed.  Use
	FUNC_SYM instead of FUNC_ADDR.  Rely on it.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Don't generate PLT relocations for now binding
@ 2015-05-16 15:35 sergiodj+buildbot
  2015-05-17  1:36 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-16 15:35 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 25070364b0ce33eed46aa5d78ebebbec6accec7e ***

Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 25070364b0ce33eed46aa5d78ebebbec6accec7e

Don't generate PLT relocations for now binding
There is no need for PLT relocations with -z now. We can use GOT
relocations, which take less space, instead and replace 16-byte .plt
entres with 8-byte .plt.got entries.

bfd/

	* elf32-i386.c (elf_i386_check_relocs): Create .plt.got section
	for now binding.
	(elf_i386_allocate_dynrelocs): Use .plt.got section for now
	binding.
	* elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got
	section for now binding.
	(elf_x86_64_allocate_dynrelocs): Use .plt.got section for now
	binding.

ld/testsuite/

	* ld-i386/i386.exp: Run PR ld/17689 tests with -z now.
	* ld-x86-64/x86-64.exp: Likewise
	* ld-i386/pr17689now.rd: New file.
	* ld-x86-64/pr17689now.rd: Likewise


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] compile: Fix detected inferior type
@ 2015-05-16 15:20 sergiodj+buildbot
  2015-05-17  0:37 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-16 15:20 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 4d18dfad9edf822df205edc2c1fe3fe9f1e467b8 ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: 4d18dfad9edf822df205edc2c1fe3fe9f1e467b8

compile: Fix detected inferior type
gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* compile/compile-object-load.c (get_out_value_type): Fix returned type.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] compile: New 'compile print'
@ 2015-05-16 15:07 sergiodj+buildbot
  2015-05-16 23:32 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-16 15:07 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 36de76f9cc2eea0bd5f1b7ce74ef60e1aa0b27c2 ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: 36de76f9cc2eea0bd5f1b7ce74ef60e1aa0b27c2

compile: New 'compile print'
It is planned the existing GDB command 'print' will be able to evaluate its
expressions using the compiler.  There will be some option to choose between
the existing GDB evaluation and the compiler evaluation.  But as an
intermediate step this patch provides the expression printing feature as a new
command.

I can imagine it could be also called 'maintenance compile print' as in the
future one should be able to use its functionality by the normal 'print'
command.

There was a discussion with Eli about the command name:
	https://sourceware.org/ml/gdb-patches/2015-03/msg00880.html
As there were no other comments yet I haven't renamed it yet, before there is
some confirmation about settlement on the final name.

Support for the GDB '@' operator to create arrays has been submitted for GCC:
	[gcc patch] libcc1: '@' GDB array operator
	https://gcc.gnu.org/ml/gcc-patches/2015-03/msg01451.html


gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
	    Phil Muldoon  <pmuldoon@redhat.com>

	* NEWS (Changes since GDB 7.9): Add compile print.
	* compile/compile-c-support.c (add_code_header, add_code_footer)
	(c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
	COMPILE_I_PRINT_VALUE_SCOPE.
	* compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
	(COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
	New.
	* compile/compile-object-load.c: Include block.h.
	(get_out_value_type): New function.
	(compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
	COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
	OUT_VALUE_TYPE.
	* compile/compile-object-load.h (struct compile_module): Add fields
	out_value_addr and out_value_type.
	* compile/compile-object-run.c: Include valprint.h and compile.h.
	(struct do_module_cleanup): Add fields out_value_addr and
	out_value_type.
	(do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
	COMPILE_I_PRINT_VALUE_SCOPE.
	(compile_object_run): Propagate out_value_addr and out_value_type.
	Pass OUT_VALUE_ADDR.
	* compile/compile.c: Include valprint.h.
	(compile_print_value, compile_print_command): New functions.
	(eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
	(_initialize_compile): Update compile code help text.  Install
	compile_print_command.
	* compile/compile.h (compile_print_value): New prototype.
	* defs.h (enum compile_i_scope_types): Add
	COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.

gdb/doc/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* gdb.texinfo (Compiling and Injecting Code): Add compile print.

gdb/testsuite/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* gdb.compile/compile-print.c: New file.
	* gdb.compile/compile-print.exp: New file.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] compile: Distribute scope, add scope_data
@ 2015-05-16 14:35 sergiodj+buildbot
  2015-05-16 18:12 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-16 14:35 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 5c65b58a58a4c77b1ec38b4e31549aaa090b4845 ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: 5c65b58a58a4c77b1ec38b4e31549aaa090b4845

compile: Distribute scope, add scope_data
Provide a way to access current 'scope' during the do_module_cleanup stage and
associate more data with it.

gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* cli/cli-script.c (execute_control_command): Update
	eval_compile_command caller.
	* compile/compile-object-load.c (compile_object_load): Add parameters
	scope and scope_data.  Set them.
	* compile/compile-object-load.h (struct compile_module): Add fields
	scope and scope_data.
	(compile_object_load): Add parameters scope and scope_data.
	* compile/compile-object-run.c (struct do_module_cleanup): Add fields
	scope and scope_data.
	(compile_object_run): Propagate the fields scope and scope_data.
	* compile/compile.c (compile_file_command, compile_code_command):
	Update eval_compile_command callers.
	(eval_compile_command): Add parameter scope_data.  Pass it plus scope.
	* compile/compile.h (eval_compile_command): Add parameter scope_data.
	* defs.h (struct command_line): Add field scope_data.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] compile: Use -Wall, not -w
@ 2015-05-16 14:20 sergiodj+buildbot
  2015-05-16 20:13 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-16 14:20 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 3a9558c494e9b461f752ce26382701d4446f0958 ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: 3a9558c494e9b461f752ce26382701d4446f0958

compile: Use -Wall, not -w
For a reason unknown to me GDB was using -w instead of -Wall for 'compile code'.
The problem is later patch for 'compile printf' really needs some warnings to
be able to catch for example missing format string parameters:
	(gdb) compile printf "%d\n"
GCC does not seem to be able to cancel -w (there is nothing like -no-w).

Besides that I think even 'compile code' can benefit from -Wall.

That #ifndef change in print_one_macro() is needed otherwise we get
macro-redefinition warnings for the GCC built-in macros (as -w is no
longer in effect).  For example, without the #ifndef/#endif one gets:

	compile -r -- void _gdb_expr(){int i = 5;}^M
	/tmp/gdbobj-xpU1yB/out4.c:4:0: warning: "__FILE__" redefined [-Wbuiltin-macro-redefined]^M
	/tmp/gdbobj-xpU1yB/out4.c:5:0: warning: "__LINE__" redefined^M
	...

It makes more sense to pick the inferior's version of the macros, hence
#ifndef instead of #undef.

That new testsuite XFAIL is there as if one changes the struct definition to be
compliant with cv-qualifiers (to prevent the warnings):
struct struct_type {
-  struct struct_type *selffield;
+  volatile struct struct_type *selffield;
only then GCC/GDB will hit the crash, described in that GDB PR 18202.


gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* compile/compile-c-support.c (print_one_macro): Use #ifndef.
	(generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
	(c_compute_program): Call generate_register_struct after typedefs.
	* compile/compile-loc2c.c (push, pushf_register_address)
	(pushf_register): Cast to GCC_UINTPTR.
	(do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
	type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
	(compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
	* compile/compile.c (_initialize_compile): Enable warnings for
	COMPILE_ARGS.

gdb/testsuite/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* gdb.compile/compile-ops.exp: Cast param to void.
	* gdb.compile/compile.exp: Complete type for _gdb_expr.
	(compile code struct_object.selffield = &struct_object): Add xfail.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Code cleanup: Make parts of print_command_1 public
@ 2015-05-16 13:22 sergiodj+buildbot
  2015-05-16 16:09 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-16 13:22 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 1c88ceb1bedc81dbfd1d076e4a49bbf533b4e238 ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: 1c88ceb1bedc81dbfd1d076e4a49bbf533b4e238

Code cleanup: Make parts of print_command_1 public
The later 'compile print' command should share its behavior with the existing
'print' command.  Make the needed existing parts of print_command_1 public.

gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* printcmd.c (struct format_data): Move it to valprint.h.
	(print_command_parse_format, print_value): New functions from ...
	(print_command_1): ... here.  Call them.
	* valprint.h (struct format_data): Move it here from printcmd.c.
	(print_command_parse_format, print_value): New declarations.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] compile: Add one debug message
@ 2015-05-16 12:38 sergiodj+buildbot
  2015-05-16 14:02 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-16 12:38 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT b6de3f9642c58439c31690255c3a4326728da88d ***

Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Branch: master
Commit: b6de3f9642c58439c31690255c3a4326728da88d

compile: Add one debug message
gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* compile/compile-object-load.c (compile_object_load): Add
	COMPILE_DEBUG message.


^ permalink raw reply	[flat|nested] 215+ messages in thread
* [binutils-gdb] Array indexed by non-contiguous enumeration types
@ 2015-05-15 22:25 sergiodj+buildbot
  2015-05-16  7:09 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
  0 siblings, 1 reply; 215+ messages in thread
From: sergiodj+buildbot @ 2015-05-15 22:25 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT aa7151351ed16c5a4eb1334c9a1af1b06dbb7a99 ***

Author: Jerome Guitton <guitton@adacore.com>
Branch: master
Commit: aa7151351ed16c5a4eb1334c9a1af1b06dbb7a99

Array indexed by non-contiguous enumeration types
In Ada, index types of arrays can be enumeration types, and enumeration
types can be non-contiguous. In which case the address of elements is
not given by the value of the index, but by its position in the enumeration
type.

In other words, in this example:

 type Color is (Blue, Red);
 for Color use (Blue => 8, Red => 12, Green => 16);

 type A is array (Color) of Integer;
 type B is array (1 .. 3) of Integer;

Arrays of type A and B will have the same layout in memory, even if
the enumeration Color has a hole in its set of integer value.

Since recently support for such a feature was in ada-lang.c, where the
array was casted to a regular continuous index range. We were losing
the information of index type. And this was not quite working for
subranges in variable-length fields; their bounds are expressed using
the integer value of the bounds, not its position in the enumeration,
and there was some confusion all over ada-lang.c as to whether we had
the position or the integer value was used for indexes.

The idea behind this patch is to clean this up by keeping the real
representation of these array index types and bounds when representing
the value, and only use the position when accessing the elements or
computing the length. This first patch fixes the printing of such
an array.

To the best of my knowledge, this feature only exists in Ada so it
should only affect this language.

gdb/ChangeLog:

        Jerome Guitton  <guitton@adacore.com>:
        * ada-lang.c (ada_value_ptr_subscript): Use enum position of
        index to get element instead of enum value.
        (ada_value_slice_from_ptr, ada_value_slice): Use enum position
        of index to compute length, but enum values to compute bounds.
        (ada_array_length): Use enum position of index instead of enum value.
        (pos_atr): Move position computation to...
        (ada_evaluate_subexp): Use enum values to compute bounds.
        * gdbtypes.c (discrete_position): ...this new function.
        * gdbtypes.h (discrete_position): New function declaration.
        * valprint.c (val_print_array_elements): Call discrete_position
        to handle array indexed by non-contiguous enumeration types.

gdb/testsuite/ChangeLog:

        * gdb.ada/arr_enum_with_gap: New testcase.


^ permalink raw reply	[flat|nested] 215+ messages in thread

end of thread, other threads:[~2016-02-26 20:58 UTC | newest]

Thread overview: 215+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-25 17:42 [binutils-gdb] avoid compiler warnings in remote-m32r-sdi.c sergiodj+buildbot
2016-02-25 17:43 ` Failures on RHEL-s390x-m64, branch master sergiodj+buildbot
2016-02-25 18:22 ` Failures on AIX-POWER7-plain, " sergiodj+buildbot
2016-02-25 18:25 ` Failures on Fedora-x86_64-cxx-build-m64, " sergiodj+buildbot
2016-02-25 18:29 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " sergiodj+buildbot
2016-02-25 18:36 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " sergiodj+buildbot
2016-02-25 18:55 ` Failures on Fedora-x86_64-native-gdbserver-m32, " sergiodj+buildbot
2016-02-25 20:43 ` Failures on Debian-s390x-native-gdbserver-m64, " sergiodj+buildbot
2016-02-25 20:53 ` Failures on Debian-s390x-m64, " sergiodj+buildbot
2016-02-25 21:32 ` Failures on Debian-s390x-native-extended-gdbserver-m64, " sergiodj+buildbot
2016-02-25 22:44 ` Failures on Debian-i686, " sergiodj+buildbot
2016-02-25 23:25 ` Failures on Debian-i686-native-gdbserver, " sergiodj+buildbot
2016-02-25 23:42 ` Failures on Fedora-ppc64be-m64, " sergiodj+buildbot
2016-02-26  0:00 ` Failures on Fedora-ppc64be-native-gdbserver-m64, " sergiodj+buildbot
2016-02-26  0:02 ` Failures on Debian-i686-native-extended-gdbserver, " sergiodj+buildbot
2016-02-26  0:13 ` Failures on Fedora-ppc64be-native-extended-gdbserver-m64, " sergiodj+buildbot
2016-02-26  0:18 ` Failures on Debian-x86_64-native-gdbserver-m64, " sergiodj+buildbot
2016-02-26  2:11 ` Failures on Fedora-ppc64le-native-extended-gdbserver-m64, " sergiodj+buildbot
2016-02-26  2:32 ` Failures on Fedora-ppc64le-cc-with-index, " sergiodj+buildbot
2016-02-26  2:51 ` Failures on Fedora-ppc64le-native-gdbserver-m64, " sergiodj+buildbot
2016-02-26  3:37 ` Failures on Fedora-ppc64le-m64, " sergiodj+buildbot
  -- strict thread matches above, loose matches on Subject: below --
2016-02-26 20:30 [binutils-gdb] Add aarch64-*-rtems* target sergiodj+buildbot
2016-02-26 20:58 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-26 20:20 [binutils-gdb] Add x86_64-*-rtems* target sergiodj+buildbot
2016-02-26 20:26 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-26 18:19 [binutils-gdb] [BFD][AARCH64]Fix MOVW_SABS_G(0, 1, 2) relocation overflow check sergiodj+buildbot
2016-02-26 18:38 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-26 17:52 [binutils-gdb] Optimize x86 GOT32X/GOTPCRELX relocations sergiodj+buildbot
2016-02-26 18:00 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-26 16:01 [binutils-gdb] Rename gdb.reverse/aarch64.{exp, c} to gdb.reverse/insn-reverse.{exp, c} sergiodj+buildbot
2016-02-26 16:02 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-26 16:00 [binutils-gdb] Fix various bugs in arm_record_exreg_ld_st_insn sergiodj+buildbot
2016-02-26 17:11 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-26 15:51 [binutils-gdb] Record right reg num of thumb special data instructions sergiodj+buildbot
2016-02-26 16:39 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-26 15:15 [binutils-gdb] Generalize gdb.reverse/aarch64.exp sergiodj+buildbot
2016-02-26 15:29 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-26 14:51 [binutils-gdb] Properly implement STT_COMMON sergiodj+buildbot
2016-02-26 14:58 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-26 13:10 [binutils-gdb] [x86] Resolve non-PIC undefweak symbols in executable sergiodj+buildbot
2016-02-26 13:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-26 13:00 [binutils-gdb] Fix powerpc64 -r --save-restore-funcs sergiodj+buildbot
2016-02-26 13:10 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
     [not found] <ab50308758bfde9ab7b50e6def65e20f0b560702@gdb-build>
2016-02-25 19:29 ` sergiodj+buildbot
2016-02-25 17:22 [binutils-gdb] Remove gdb.base/branches.c sergiodj+buildbot
2016-02-25 17:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
     [not found] <ae91f6253926e4dadebcae90772f4f5a5bd06056@gdb-build>
2016-02-25 17:17 ` sergiodj+buildbot
     [not found] <166616ce00e0c27fa3f556bcdeb908d4c0212393@gdb-build>
2016-02-25 16:38 ` sergiodj+buildbot
     [not found] <678b48b7cf0bd518ebc234bda98229cc602c2a45@gdb-build>
2016-02-25 16:06 ` sergiodj+buildbot
     [not found] <7337a6f2297cdd91bb852b479b284e5796d62cc9@gdb-build>
2016-02-25 15:42 ` sergiodj+buildbot
2016-02-25 14:46 [binutils-gdb] Map registers to remote numbers when encoding an ax_reg or ax_reg_mask operation sergiodj+buildbot
2016-02-25 14:57 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-25 12:24 [binutils-gdb] Add elf_x86_64_need_pic sergiodj+buildbot
2016-02-25 12:36 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 23:37 [binutils-gdb] Update symbol version for symbol from linker script sergiodj+buildbot
2016-02-24 23:42 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 23:11 [binutils-gdb] Handle MIPS Linux SIGTRAP siginfo.si_code values sergiodj+buildbot
2016-02-24 23:19 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
     [not found] <338435ef105ff51e967571ad073830ec1eb5a4ab@gdb-build>
2016-02-24 21:22 ` sergiodj+buildbot
2016-02-24 19:30 [binutils-gdb] Move tfile-avx.exp to tracefile-pseudo-reg.exp sergiodj+buildbot
2016-02-24 19:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 18:24 [binutils-gdb] Move new skip features to proper section (post 7.11) sergiodj+buildbot
2016-02-24 19:05 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 17:45 [binutils-gdb] powerpc: Support z-point type in gdbserver sergiodj+buildbot
2016-02-24 18:08 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 15:09 [binutils-gdb] Revert "ABS32" sergiodj+buildbot
2016-02-24 16:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 14:22 [binutils-gdb] [OPCODES][ARM][1/3]Add armv8.2 fp16 instruction dissembler support sergiodj+buildbot
2016-02-24 15:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 14:12 [binutils-gdb] [OPCODES][ARM]Fix mask for a few coprocessor opcodes sergiodj+buildbot
2016-02-24 15:29 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 14:09 [binutils-gdb] [OPCODE][ARM]Correct disassembler for cdp/cdp2, mcr/mcr2, mrc/mrc2, ldc/ldc2, stc/stc2 sergiodj+buildbot
2016-02-24 15:01 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 14:07 [binutils-gdb] ABS32 sergiodj+buildbot
2016-02-24 14:35 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 13:54 [binutils-gdb] Set plt_got.offset to (bfd_vma) -1 sergiodj+buildbot
2016-02-24 14:09 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24 12:00 [binutils-gdb] Fix logic in exec_file_locate_attach sergiodj+buildbot
2016-02-24 12:13 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-24  3:22 [binutils-gdb] Build unavailable-stack frames for tracepoint sergiodj+buildbot
2016-02-24  3:34 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-21 20:46 [binutils-gdb] Remove search_parents parameter from d_lookup_symbol_imports sergiodj+buildbot
2016-02-21 20:54 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-09 11:06 [binutils-gdb] Add a more helpful warning message to explain why some AArch64 relocations can overflow sergiodj+buildbot
2016-02-09 12:06 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-09 10:57 [binutils-gdb] Revert "Fix build breakage" sergiodj+buildbot
2016-02-09 11:40 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-09 10:10 [binutils-gdb] Add a more helpful warning message to explain why some AArch64 relocations can overflow sergiodj+buildbot
2016-02-09 10:15 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-09  5:24 [binutils-gdb] Fix macro redefinition error on Solaris sergiodj+buildbot
2016-02-09  5:31 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-08 19:40 [binutils-gdb] Always organize test artifacts in a directory hierarchy sergiodj+buildbot
2016-02-08 19:47 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-08 19:12 [binutils-gdb] Fix in-tree, parallel running of Ada tests sergiodj+buildbot
2016-02-08 19:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-08 18:12 [binutils-gdb] remote.c: Cleanup unused variables sergiodj+buildbot
2016-02-08 18:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-07 14:56 [binutils-gdb] varobj: Cleanup dead code sergiodj+buildbot
2016-02-07 15:04 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-06  1:39 [binutils-gdb] sim: mips: fix prog_bfd usage sergiodj+buildbot
2016-02-06  1:46 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-05 10:26 [binutils-gdb] Fix formatting of pe-mips.c file sergiodj+buildbot
2016-02-05 10:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-05 10:11 [binutils-gdb] Change the default architecture value for ARC bfds so that they have the lowest possible value, and hence can be merged with other ARC binaries wihtout changing their architecture value sergiodj+buildbot
2016-02-05 10:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-04 16:40 [binutils-gdb] Prevent possible undefined behaviour computing the size of the scache by usingunsigned integers instead of signed integers sergiodj+buildbot
2016-02-04 16:46 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-04 15:57 [binutils-gdb] [testsuite] Remove BASEDIR sergiodj+buildbot
2016-02-04 16:03 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-04 15:22 [binutils-gdb] waiting_for_stop_reply around remote_fileio_request sergiodj+buildbot
2016-02-04 15:28 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-04 10:06 [binutils-gdb] Fix the encoding of the MSP430's RRUX instruction sergiodj+buildbot
2016-02-04 10:13 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-03 22:03 [binutils-gdb] MAINTAINERS: Add Thiemo Seufer back, as a past maintainer sergiodj+buildbot
2016-02-03 22:09 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-03 14:16 [binutils-gdb] Fix "PowerPC64 ELFv2 entry code" for big-endian sergiodj+buildbot
2016-02-03 14:22 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 21:51 [binutils-gdb] ui-out.c: Remove unused enum sergiodj+buildbot
2016-02-02 21:57 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 21:21 [binutils-gdb] Fix typos in bfd/ChangeLog and bfd/elf64-x86-64.c sergiodj+buildbot
2016-02-02 21:27 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 16:34 [binutils-gdb] Store estimated istrances in compressed_size sergiodj+buildbot
2016-02-02 16:41 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 13:44 [binutils-gdb] PowerPC64 ELFv2 entry code sergiodj+buildbot
2016-02-02 14:14 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 12:31 [binutils-gdb] Clear HAS_RELOC if there are no relocations sergiodj+buildbot
2016-02-02 13:48 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 12:26 [binutils-gdb] Adaptation of siginfo fixup for the new bnd fields sergiodj+buildbot
2016-02-02 12:40 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 12:04 [binutils-gdb] opcodes/cgen: Rework calculation of shift when inserting fields sergiodj+buildbot
2016-02-02 13:26 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 11:38 [binutils-gdb] epiphany/disassembler: Improve alignment of output sergiodj+buildbot
2016-02-02 13:02 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 11:21 [binutils-gdb] Add bound related fields to the siginfo structure sergiodj+buildbot
2016-02-02 12:17 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 11:13 [binutils-gdb] Use linux_get_siginfo_type_with_fields for x86 sergiodj+buildbot
2016-02-02 11:53 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 11:05 [binutils-gdb] Preparation for new siginfo on Linux sergiodj+buildbot
2016-02-02 11:28 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-02-02 10:56 [binutils-gdb] Merge gdb and gdbserver implementations for siginfo sergiodj+buildbot
2016-02-02 11:05 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-25  9:41 [binutils-gdb] Fix memory corruption on Mach-O systems by suppressing a memory tidy up sergiodj+buildbot
2016-01-25  9:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-14 11:03 [binutils-gdb] [AArch64] Fix missing architecture checks for ARMv8.2 system registers sergiodj+buildbot
2016-01-14 11:19 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-14  9:39 [binutils-gdb] [ARM] Make thumb2_breakpoint static again sergiodj+buildbot
2016-01-14  9:56 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-13 18:04 [binutils-gdb] MAINTAINERS: Add Andreas Arnez as s390 target maintainer sergiodj+buildbot
2016-01-13 18:21 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-13 16:19 [binutils-gdb] Read instruction with byte_order_for_code sergiodj+buildbot
2016-01-13 16:36 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-13 11:42 [binutils-gdb] Add $_gthread convenience variable sergiodj+buildbot
2016-01-13 14:43 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-13 11:41 [binutils-gdb] Implement "info threads -gid" sergiodj+buildbot
2016-01-13 14:15 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-13 11:40 [binutils-gdb] Add Python InferiorThread.global_num attribute sergiodj+buildbot
2016-01-13 13:50 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-13 11:39 [binutils-gdb] Per-inferior/Inferior-qualified thread IDs sergiodj+buildbot
2016-01-13 13:19 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-13 11:38 [binutils-gdb] Centralize thread ID printing sergiodj+buildbot
2016-01-13 12:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-13 11:36 [binutils-gdb] Add Python InferiorThread.inferior attribute sergiodj+buildbot
2016-01-13 12:24 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-13 11:35 [binutils-gdb] Add a new $_inferior convenience variable sergiodj+buildbot
2016-01-13 11:52 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-13 10:52 [binutils-gdb] Fix PR19388: Can't access $_siginfo in breakpoint (catch signal) condition sergiodj+buildbot
2016-01-13 11:10 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-12 20:34 [binutils-gdb] Implement 'catch syscall' for gdbserver sergiodj+buildbot
2016-01-12 20:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-12 15:45 [binutils-gdb] gdbserver: use the new gdb warning helpers sergiodj+buildbot
2016-01-12 17:01 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-12 15:44 [binutils-gdb] gdbserver: fix various warnings sergiodj+buildbot
2016-01-12 16:30 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2016-01-12 15:22 [binutils-gdb] Change function signature passed to clone sergiodj+buildbot
2016-01-12 16:04 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-12-18 18:50 [binutils-gdb] Add documentation to gdb_compile sergiodj+buildbot
2015-12-18 20:26 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-12-18 17:59 [binutils-gdb] Enable conditional breakpoints for targets that support software single step in GDBServer sergiodj+buildbot
2015-12-18 20:03 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-12-18 17:51 [binutils-gdb] Enable software single stepping for while-stepping actions in GDBServer sergiodj+buildbot
2015-12-18 19:33 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-12-18 17:43 [binutils-gdb] Support software single step on ARM in GDBServer sergiodj+buildbot
2015-12-18 19:06 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-27 16:37 [binutils-gdb] New test gdb.arch/arm-neon.exp sergiodj+buildbot
2015-11-30 22:47 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-27 16:04 [binutils-gdb] [AArch64] Let aliased instructions be their preferred form sergiodj+buildbot
2015-11-30 23:43 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-27 15:57 [binutils-gdb] [AArch64] Only check breakpoint alignment on inserting sergiodj+buildbot
2015-11-30 23:16 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-27 15:24 [binutils-gdb] Use multi_line to make pattern more human readable sergiodj+buildbot
2015-11-30 21:25 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-27 15:08 [binutils-gdb] [AArch64] Handle HFA and HVA together sergiodj+buildbot
2015-11-30 22:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-27 15:00 [binutils-gdb] [AArch64] Support gnu vector in inferior call sergiodj+buildbot
2015-11-30 21:53 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-27 14:44 [binutils-gdb] Allow multiple occurrences of the frames-invalid annotation in gdb.cp/annota2.exp sergiodj+buildbot
2015-11-30 20:58 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-27 14:32 [binutils-gdb] Use ${frames_invalid} in gdb.cp/annota2.exp sergiodj+buildbot
2015-11-30 20:28 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-27 13:56 [binutils-gdb] [Aarch64] Support an ARMv8.2 system register sergiodj+buildbot
2015-11-30 20:05 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-27 13:32 [binutils-gdb] [AArch64] Add feature flags and command line for ARMv8.2 FP16 support sergiodj+buildbot
2015-11-30 19:37 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-26 18:28 [binutils-gdb] Add test for thread names sergiodj+buildbot
2015-11-26 19:15 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-26 16:04 [binutils-gdb] Display names of remote threads sergiodj+buildbot
2015-11-26 17:29 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-20 14:07 [binutils-gdb] binutils: add support for arm-*-darwin and aarch64-*-darwin sergiodj+buildbot
2015-11-20 14:43 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-18 12:02 [binutils-gdb] Fix out of boundary access in pass_in_v sergiodj+buildbot
2015-11-18 12:31 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-18 11:52 [binutils-gdb] Prevent looping in archives sergiodj+buildbot
2015-11-18 12:11 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-18 11:42 [binutils-gdb] mach-o cleanup: remove useless calls to bfd_seek sergiodj+buildbot
2015-11-18 11:55 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-18  4:25 [binutils-gdb] sim: mn10300/v850: drop unused WITH_CORE define sergiodj+buildbot
2015-11-18  4:34 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-18  4:18 [binutils-gdb] sim: always enable modulo memory sergiodj+buildbot
2015-11-18  4:24 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-17 21:29 [binutils-gdb] [sim/ppc] Fix printf_filtered reference sergiodj+buildbot
2015-11-17 21:34 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-17 17:26 [binutils-gdb] Fix gdb.threads/multiple-step-overs.exp fails on arm sergiodj+buildbot
2015-11-17 21:26 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-17 17:18 [binutils-gdb] Introduce null_block_symbol sergiodj+buildbot
2015-11-17 21:17 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-17 17:09 [binutils-gdb] [C++] Always use setjmp/longjmp for exceptions sergiodj+buildbot
2015-11-17 21:07 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-17 17:01 [binutils-gdb] MinGW and attribute format(printf/gnu_printf) sergiodj+buildbot
2015-11-17 20:58 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-09  5:01 [binutils-gdb] Copy gnulib obstack files sergiodj+buildbot
2015-11-09  5:47 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-11-05  9:59 [binutils-gdb] Use aarch64_decode_insn in aarch64_analyze_prologue sergiodj+buildbot
2015-11-05 10:30 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-13 22:55 [binutils-gdb] Recognize a few more AIX XCOFF DWARF sections sergiodj+buildbot
2015-10-13 23:04 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
     [not found] <e6a959d68b8181c816851dcfc91ae0b2b9296df3@gdb-build>
2015-10-13 21:10 ` sergiodj+buildbot
     [not found] <170742de5dd5be2156f938e00e2451526ef57d5c@gdb-build>
2015-10-13 20:41 ` sergiodj+buildbot
2015-10-13 18:58 [binutils-gdb] ada-lang.c:ada_value_primitive_packed_val: const correctness sergiodj+buildbot
2015-10-13 20:08 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-13 18:50 [binutils-gdb] ada-lang.c: malloc/alloca casts for C++ sergiodj+buildbot
2015-10-13 19:21 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
     [not found] <4666fec3b414c7880e9629f3c9b0a5b584235c6d@gdb-build>
2015-10-13 18:20 ` sergiodj+buildbot
     [not found] <3953f15ce4b4154e9fd7951424fedac0170ab59c@gdb-build>
2015-10-13 17:30 ` sergiodj+buildbot
2015-10-13  6:14 [binutils-gdb] Tidy code setting PT_GNU_RELRO p_flags sergiodj+buildbot
2015-10-13  6:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-13  0:32 [binutils-gdb] sim: ft32: test coverage for link parameters and PM write port sergiodj+buildbot
2015-10-13  3:25 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 22:05 [binutils-gdb] gdb: Simplify parse_frame_specification sergiodj+buildbot
2015-10-13  2:39 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
     [not found] <1f713e48f024e964f5a4f5468bc9506dac262763@gdb-build>
2015-10-12 22:00 ` sergiodj+buildbot
2015-10-12 21:57 [binutils-gdb] gdb: Avoid unneeded calls to parse_frame_specification sergiodj+buildbot
2015-10-13  1:53 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 21:49 [binutils-gdb] gdb: Fix bug with dbx style func command sergiodj+buildbot
2015-10-13  1:06 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 21:41 [binutils-gdb] gdb: Make use of safe-ctype.h header sergiodj+buildbot
2015-10-13  0:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 17:48 [binutils-gdb] mep: Add cast for int to enum conversion sergiodj+buildbot
2015-10-12 23:33 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 17:23 [binutils-gdb] m32c: Split m32c_move_reg_t in read/write variants sergiodj+buildbot
2015-10-12 22:46 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 16:35 [binutils-gdb] aarch64: Use gdb_sys_no_syscall enum instead of -1 sergiodj+buildbot
2015-10-12 21:12 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 15:35 [binutils-gdb] Skip the unversioned definition after the default version sergiodj+buildbot
2015-10-12 20:25 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 13:05 [binutils-gdb] Support displaced stepping in aarch64-linux sergiodj+buildbot
2015-10-12 15:46 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 12:01 [binutils-gdb] Mention the change in NEWS sergiodj+buildbot
2015-10-12 19:39 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 11:53 [binutils-gdb] Rename emit_load_store to aarch64_emit_load_store sergiodj+buildbot
2015-10-12 18:52 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 11:44 [binutils-gdb] Rename emit_insn to aarch64_emit_insn sergiodj+buildbot
2015-10-12 18:06 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 11:36 [binutils-gdb] New test case gdb.arch/disp-step-insn-reloc.exp sergiodj+buildbot
2015-10-12 17:20 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-12 11:28 [binutils-gdb] Support displaced stepping in support_displaced_stepping for aarch64*-*-linux* sergiodj+buildbot
2015-10-12 16:33 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-07 14:11 [binutils-gdb] Wrap include/opcode/aarch64.h in extern "C" for C++ sergiodj+buildbot
2015-10-07 14:49 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-07 13:26 [binutils-gdb] New ARC implementation sergiodj+buildbot
2015-10-07 14:03 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-10-07  9:05 [binutils-gdb] [aarch64] use aarch64_decode_insn to decode instructions in GDB sergiodj+buildbot
2015-10-07  9:35 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-26 21:30 [binutils-gdb] Replace some xmalloc-family functions with XNEW-family ones sergiodj+buildbot
2015-08-26 22:15 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-14 22:33 [binutils-gdb] Rename location accessor macro parameters to silence ARI sergiodj+buildbot
2015-08-14 22:36 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-14 21:57 [binutils-gdb] mi_make_breakpoint: add "evaluated-by" option sergiodj+buildbot
2015-08-14 22:02 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-14 20:00 [binutils-gdb] Fix ARI warnings in d-exp.y sergiodj+buildbot
2015-08-14 20:04 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-14 14:27 [binutils-gdb] Add support for DT_MIPS_RLD_MAP_REL sergiodj+buildbot
2015-08-14 14:30 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-14 12:24 [binutils-gdb] Add myself to gdb MAINTAINERS sergiodj+buildbot
2015-08-14 12:29 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-14  1:48 [binutils-gdb] Revert "Fix encoding or OpenRisk1000 PC relative relocations." sergiodj+buildbot
2015-08-14  1:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-13 21:02 [binutils-gdb] [D] Move classification of symbols from the grammar to the lexer sergiodj+buildbot
2015-08-13 21:14 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-13 11:55 [binutils-gdb] Issue an error for read-only segment with dynamic IFUNC relocations sergiodj+buildbot
2015-08-13 11:59 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-13 10:53 [binutils-gdb] Fixes for unpredictable nops and 26-bit versions of teq, tst, cmn, cmp sergiodj+buildbot
2015-08-13 10:57 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-13  7:47 [binutils-gdb] [Ada] Add support for subprogram renamings sergiodj+buildbot
2015-08-13  7:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-13  2:02 [binutils-gdb] gdb.base/dso2dso.exp sometimes broken sergiodj+buildbot
2015-08-13  2:06 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12 21:03 [binutils-gdb] Set EI_OSABI to ELFOSABI_GNU for local IFUNC symbols sergiodj+buildbot
2015-08-12 21:08 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12 20:32 [binutils-gdb] [amd64] Invalid return address after displaced stepping sergiodj+buildbot
2015-08-12 20:37 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12 18:48 [binutils-gdb] Initialize `location' in gdbpy_decode_line sergiodj+buildbot
2015-08-12 18:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12 16:46 [binutils-gdb] Guarantee save-and-restore of GDBFLAGS on gdb.base/checkpoint-ns.exp sergiodj+buildbot
2015-08-12 16:53 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12 16:23 [binutils-gdb] [MIPS] Map 'move' to 'or' sergiodj+buildbot
2015-08-12 16:29 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12 15:57 [binutils-gdb] Use save_vars to replace existing manipulation of globals in tests sergiodj+buildbot
2015-08-12 16:01 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12 13:24 [binutils-gdb] Introduce save_vars, a testsuite proc for safely manipulating globals sergiodj+buildbot
2015-08-12 13:27 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12 12:58 [binutils-gdb] Sync ansidecl.h with GCC sergiodj+buildbot
2015-08-12 12:58 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12 12:26 [binutils-gdb] Remove trailing spaces in opcodes sergiodj+buildbot
2015-08-12 12:30 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12 11:58 [binutils-gdb] Remove trailing spaces in bfd sergiodj+buildbot
2015-08-12 12:05 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12  8:50 [binutils-gdb] [regression] Do not read from catchpoint/watchpoint locations' addresses when checking for a permanent breakpoint sergiodj+buildbot
2015-08-12  8:54 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12  5:48 [binutils-gdb] Properly skip IFUNC relocations in debug sections sergiodj+buildbot
2015-08-12  6:00 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12  5:23 [binutils-gdb] Explicit locations: documentation updates sergiodj+buildbot
2015-08-12  5:36 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12  4:59 [binutils-gdb] Explicit locations: MI support for explicit locations sergiodj+buildbot
2015-08-12  5:09 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12  4:30 [binutils-gdb] Explicit locations: add UI features for CLI sergiodj+buildbot
2015-08-12  4:45 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-12  4:04 [binutils-gdb] Explicit locations: introduce explicit locations sergiodj+buildbot
2015-08-12  4:19 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-08-01  9:01 [binutils-gdb] Replace the block_found global with explicit data-flow sergiodj+buildbot
2015-08-01  9:05 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-07-14 21:08 [binutils-gdb] Remove CHECK_TYPEDEF, use check_typedef instead sergiodj+buildbot
2015-07-14 23:02 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-07-14 19:13 [binutils-gdb] Add support reading D modules from DWARF sergiodj+buildbot
2015-07-14 22:59 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-07-14 18:50 [binutils-gdb] i386-biarch-core.exp: Fix comment typo sergiodj+buildbot
2015-07-14 22:57 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-07-14 18:28 [binutils-gdb] Sync Makefile.tpl with GCC sergiodj+buildbot
2015-07-14 22:55 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-07-14 18:08 [binutils-gdb] Sync longlong.h with GCC sergiodj+buildbot
2015-07-14 22:53 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-07-08 15:32 [binutils-gdb] Delete program spaces directly when removing inferiors sergiodj+buildbot
2015-07-09  6:18 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-06-01  9:39 [binutils-gdb] [AArch64] BFD_RELOC_AARCH64_TLSLE_ADD_LO12 should enable overflow check sergiodj+buildbot
2015-06-01 11:07 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-06-01  9:32 [binutils-gdb] [AArch64] BFD Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15 sergiodj+buildbot
2015-06-01 10:40 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-06-01  9:26 [binutils-gdb] [AArch64] GAS Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15 sergiodj+buildbot
2015-06-01  9:55 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-06-01  8:05 [binutils-gdb] x86/Intel: disassemble vcvt{, u}si2s{d, s} with correct operand order sergiodj+buildbot
2015-06-01  9:18 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-06-01  8:00 [binutils-gdb] x86/Intel: accept mandated operand order for vcvt{, u}si2s{d, s} sergiodj+buildbot
2015-06-01  8:37 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-19 14:37 [binutils-gdb] compile: Fix ASAN crash for gdb.compile/compile.exp sergiodj+buildbot
2015-05-19 16:32 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-19 12:47 [binutils-gdb] compile: gdb_stdout -> gdb_stdlog sergiodj+buildbot
2015-05-19 14:16 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-19 10:23 [binutils-gdb] Fix gdb.base/gdbinit-history.exp when HISTSIZE is set in the environment sergiodj+buildbot
2015-05-19 11:42 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-18 11:31 [binutils-gdb] Remove Disp32 from AMD64 direct call/jmp sergiodj+buildbot
2015-05-18 13:39 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-18 10:01 [binutils-gdb] [AArch64] Remove X86-64 comments sergiodj+buildbot
2015-05-18 11:32 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-17 23:22 [binutils-gdb] Add myself to write-after-approval list sergiodj+buildbot
2015-05-18  0:51 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-17  9:35 [binutils-gdb] sim: erc32: restore attribution sergiodj+buildbot
2015-05-17 10:59 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-16 20:42 [binutils-gdb] compile: Fix uninitialized variable compiler warnings sergiodj+buildbot
2015-05-17  3:15 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-16 19:57 [binutils-gdb] Add support for unbuffered and zero sized Guile ports sergiodj+buildbot
2015-05-17  5:18 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-16 16:31 [binutils-gdb] Code cleanup: compile: func_addr -> func_sym sergiodj+buildbot
2015-05-16 22:11 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-16 15:35 [binutils-gdb] Don't generate PLT relocations for now binding sergiodj+buildbot
2015-05-17  1:36 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-16 15:20 [binutils-gdb] compile: Fix detected inferior type sergiodj+buildbot
2015-05-17  0:37 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-16 15:07 [binutils-gdb] compile: New 'compile print' sergiodj+buildbot
2015-05-16 23:32 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-16 14:35 [binutils-gdb] compile: Distribute scope, add scope_data sergiodj+buildbot
2015-05-16 18:12 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-16 14:20 [binutils-gdb] compile: Use -Wall, not -w sergiodj+buildbot
2015-05-16 20:13 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-16 13:22 [binutils-gdb] Code cleanup: Make parts of print_command_1 public sergiodj+buildbot
2015-05-16 16:09 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-16 12:38 [binutils-gdb] compile: Add one debug message sergiodj+buildbot
2015-05-16 14:02 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot
2015-05-15 22:25 [binutils-gdb] Array indexed by non-contiguous enumeration types sergiodj+buildbot
2015-05-16  7:09 ` Failures on Fedora-x86_64-cxx-build-m64, branch master sergiodj+buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).