public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] jankratochvil/gdbserverbuildid: Tests for validate symbol file using build-id Date: Sun, 21 Jun 2015 10:15:00 -0000 [thread overview] Message-ID: <20150621101510.51806.qmail@sourceware.org> (raw) The branch, jankratochvil/gdbserverbuildid has been updated discards a81afb9374b5dedf828880578f3273d5384725ca (commit) discards ceed3af7a1aa7d83a967b6928b1861418d9f3bc0 (commit) discards 9c2f5f476d31ebcc178b4095f4ac2630cd3afcd4 (commit) discards 5b351163be7a565dacb57e8e34e94c244e68a129 (commit) discards c344359ec80d293d9282251bf4dbd420b0c883e6 (commit) discards f4fa062a5712a89c8ef028ecbba63b3edd8250cc (commit) discards 534f55ce30a6758fb7a705c545378f4ff1b2a1e1 (commit) discards e0d3ba8e35c166a0822aa27db66cfd591d91b809 (commit) discards 3e7c04e7321c20d0a6d511ca7dbefd9b5bff85e9 (commit) discards 8cf548082b11540b6272c6b9a52e2ec729c07aca (commit) via b1c33d49e13ebb4341ce70666aa4c9ef8f2cea06 (commit) via 216adcf57f7b70456078bf1614b33f3862f3c33c (commit) via 0185cb50d9177bff135c98c05ae65768a7ad19a6 (commit) via 7bb07e11b2b2d1d87c7c4729ecaf44626ba54fe5 (commit) via 10cd4b5ed84dc62aea3857e1a2a72dc83f9403e8 (commit) via b6c4d1bab02b75800599a47058160c4120c7f506 (commit) via 09212ccbd0c9dcd6708be2238516f7a1f6eb0515 (commit) via 02db4b0a9f80505adaef9f547e8c069adfe63e36 (commit) via bcdeacb69a4de9e019acf6c4a7f09457e6e6cf0a (commit) via c325601c3f444689bd807c40c9b7d5d702e7b7e5 (commit) via 11a0cf2ec0ed6e70ff25e9a50c2223dcd98c1c10 (commit) via 18a94d75a0a9baca8e2db2563fa3e637415ad86e (commit) via ef8b8d4ad51c2b90e022c5442f60b39f05e38ef6 (commit) via 124e13d9e753ef307d6fe478e2cd6dd738de1a0f (commit) via 74bd41ce65c6c2c30ff67519bfc1d00b61826d96 (commit) via c12d2c9d48cf18d818f79b89bffda934c354fdac (commit) via 75c11999673ba32027eb17f6df9c37904622ed24 (commit) via 57b42d6489218e29cb18edd111c97f4390b62ad9 (commit) via 7aec3bb968de6847cc73809408dfe8aa78fe7de7 (commit) via faffbc648d247533b6cecfedbbaf2d640d72cad2 (commit) via 6ae8866180bf90e9ec76c2dd34c07fd826d11a83 (commit) via da4616f69f53c221477388b6f2d4abee9bba0722 (commit) via 0eacb2983d96fd7f12a1400a66450c1a89578f00 (commit) via bc460514b9db46a491c2c39cd118b02608742968 (commit) via b58c513b7932cfb9852d66e07282b9c2379197ed (commit) via 7d5c6c43ca8a5dd5491f4a58e977ec5501386ee3 (commit) via 61a0c964e611eaf72489c3049ba206b2f91ea4a9 (commit) via 6362a3f8757bfce133b724df2077573433823ad4 (commit) via 920467912a594a3e5af1d779487ffe3e5c550aef (commit) via 696ddf4b52bd4b4d3997ca1a514b1d07fcea3715 (commit) via 5fc177c89526035dfa5ac5329f88b02af01d8ca5 (commit) via 2093d2d31460dc351145c4c295ea4a101e0c5aed (commit) via 1256987795a7f61826c0e5cc2ee023a579bb0a80 (commit) via ba592044bc04610d6fa14d0a95931bac303ace37 (commit) via fc2484855563d0cd3e43b9f2d937481b5f5e4a7b (commit) via e6c693af14c0488998a784d560b8cfbcf15db99a (commit) via 490b7f752c8d0c91f8cdf53c3771d5be5cb9e7de (commit) via 451133cefa839104aa127d230436fb609dbef37f (commit) via 4da680addb9f9c22f24f0294b8b9b9ca52cecd7f (commit) via 0a75489fab4f3a1172c0328b9f0767351dbb8744 (commit) via bdfa8b951ba38b15487eab2a754b9a33b9f29634 (commit) via 56f4083249f4633084d4e8d89fc065e895f874cf (commit) via 24b4cf66a626566e7903813a2e0156778f4903f9 (commit) via 95855ca82ec3ced28916922d663106e61ce593b4 (commit) via 1d5c94cb3e2e312fc37e7841d17ea98a02f0412c (commit) via dd9bdb04c7ca31c4ca14e2aaf244d4a492d9d9b3 (commit) via cfc32360afdc8605b2dd2062e857313e62c40e30 (commit) via a86c90e6ba808e997f87f0287d9f01ba8d3e904e (commit) via cb6f16cf4f7a12f9aadddc0451d47f0511729c8d (commit) via 31b7833d205031b52996982f5da025d60c6e052f (commit) via 909c2cdaa78f5c33ce61a3b47e86f831025d0a02 (commit) via 03aef70fecec83e109c65337a59600ad36def6bf (commit) via d1168cc1a9825b96747440b0bd1f82c4498e6343 (commit) via 1e5338b6e7405acdd1e1d0eab46682bd1af007d5 (commit) via c74f7d1c6c5a968330208757f476c67a4bb66643 (commit) via f20c58f51f5735d1ba49efadc86b3ec67631410e (commit) via 87f5fbcc7aa49cee13e9ed44587b80d695d7e781 (commit) via a2a4d60d831e40350d96edd2f1cd55f430d04fd4 (commit) via d025d5e5b57fb59c56aa4d57b7fc138720a8e454 (commit) via 3a062fa1eeee8296dece36a9bb7ecc8d4500de18 (commit) via 17b9af13f5943872cd33a559bb5dd0de95d1b04c (commit) from a81afb9374b5dedf828880578f3273d5384725ca (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit b1c33d49e13ebb4341ce70666aa4c9ef8f2cea06 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sun Jun 21 11:51:52 2015 +0200 Tests for validate symbol file using build-id Hi, new testcase. There was no explicit approval by Tom Tromey in the series a year ago. Jan gdb/testsuite/ChangeLog 2014-02-26 Aleksandar Ristovski <aristovski@qnx.com Tests for validate symbol file using build-id. * gdb.base/solib-mismatch-lib.c: New file. * gdb.base/solib-mismatch-libmod.c: New file. * gdb.base/solib-mismatch.c: New file. * gdb.base/solib-mismatch.exp: New file. commit 216adcf57f7b70456078bf1614b33f3862f3c33c Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sun Jun 21 11:51:52 2015 +0200 Validate symbol file using build-id Hi, consumer part of the "build-id" attribute. Approved by: https://sourceware.org/ml/gdb-patches/2014-05/msg00424.html Jan gdb/ChangeLog 2014-02-26 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> Validate symbol file using build-id. * NEWS (Changes since GDB 7.9): Add 'set solib-build-id-force' and 'show solib-build-id-force'. Add build-id attribute. * solib-darwin.c (_initialize_darwin_solib): Assign validate value. * solib-dsbt.c (_initialize_dsbt_solib): Ditto. * solib-frv.c (_initialize_frv_solib): Ditto. * solib-spu.c (set_spu_solib_ops): Ditto. * solib-svr4.c: Include rsp-low.h. (NOTE_GNU_BUILD_ID_NAME): New define. (svr4_validate): New function. (svr4_copy_library_list): Duplicate field build_id. (library_list_start_library): Parse 'build-id' attribute. (svr4_library_attributes): Add 'build-id' attribute. (_initialize_svr4_solib): Assign validate value. * solib-target.c (solib.h): Include. (_initialize_solib_target): Assign validate value. * solib.c (solib_build_id_force, show_solib_build_id_force): New. (solib_map_sections): Use ops->validate. (clear_so): Free build_id. (default_solib_validate): New function. (_initialize_solib): Add "solib-build-id-force". * solib.h (default_solib_validate): New declaration. * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'. (target_so_ops): New field 'validate'. gdb/doc/ChangeLog 2014-03-02 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.texinfo (Files): Add 'set solib-build-id-force' and 'show solib-build-id-force'. commit 0185cb50d9177bff135c98c05ae65768a7ad19a6 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sun Jun 21 11:51:52 2015 +0200 gdbserver build-id attribute generator Hi, producer part of the new "build-id" XML attribute. Probably approved by: https://sourceware.org/ml/gdb-patches/2014-05/msg00423.html Although there were minor changes due to trunk updates. Jan gdb/ChangeLog 2014-02-26 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> gdbserver build-id attribute generator. * features/library-list-svr4.dtd (library-list-svr4): New 'build-id' attribute. gdb/doc/ChangeLog 2014-02-26 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> gdbserver build-id attribute generator. * gdb.texinfo (Library List Format for SVR4 Targets): Add 'build-id' in description, example, new attribute in dtd. gdb/gdbserver/ChangeLog 2014-02-26 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> gdbserver build-id attribute generator. * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include. (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New. (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New. (find_phdr): New. (get_dynamic): Use find_pdhr to traverse program headers. (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec) (compare_mapping_entry_range, struct find_memory_region_callback_data) (read_build_id, find_memory_region_callback, lrfind_mapping_entry) (get_hex_build_id): New. (linux_qxfer_libraries_svr4): Add optional build-id attribute to reply XML document. commit 7bb07e11b2b2d1d87c7c4729ecaf44626ba54fe5 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sun Jun 21 11:51:51 2015 +0200 Move linux_find_memory_regions_full & co. Hi, this should be just a move with no changes. Approved by: https://sourceware.org/ml/gdb-patches/2014-05/msg00372.html Jan gdb/ChangeLog 2014-02-26 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> Move linux_find_memory_regions_full & co. * linux-tdep.c (nat/linux-maps.h): Include. (gdb_regex.h): Remove the include. (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags) (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c. (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h. (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c. * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h and target/target.h. (struct smaps_vmflags, read_mapping, decode_vmflags) (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c. (linux_find_memory_regions_full): Move from linux-tdep.c. * nat/linux-maps.h (read_mapping): New declaration. (linux_find_memory_region_ftype, enum filterflags): Moved from linux-tdep.c. (linux_find_memory_regions_full): New declaration. * target.c (target/target-utils.h): Include. (read_alloc_pread_ftype): Moved typedef to target/target-utils.h. (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved definitions to target/target-utils.c. * target.h (target_fileio_read_stralloc): Move it to target/target.h. * target/target-utils.c (read_alloc, read_stralloc): Move definitions from target.c. * target/target-utils.h (read_alloc_pread_ftype): New typedef. (read_alloc): New declaration. (read_stralloc_func_ftype): New typedef. (read_stralloc): New declaration. * target/target.h (target_fileio_read_stralloc): Move it from target.h. gdb/gdbserver/ChangeLog 2015-06-14 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> * target.c: Include target/target-utils.h and fcntl.h. (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1) (target_fileio_read_stralloc): New functions. commit 10cd4b5ed84dc62aea3857e1a2a72dc83f9403e8 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sun Jun 21 11:51:51 2015 +0200 Prepare linux_find_memory_regions_full & co. for move Hi, prepare code for move into gdb/common/. Approved by: https://sourceware.org/ml/gdb-patches/2014-05/msg00371.html Jan gdb/ChangeLog 2014-02-26 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> Prepare linux_find_memory_regions_full & co. for move. * linux-tdep.c (linux_find_memory_region_ftype): Comment. (linux_find_memory_regions_full): Change signature and prepare for moving to linux-maps. (linux_find_memory_regions_data): Rename field 'obfd' to 'data'. (linux_find_memory_regions_thunk): New. (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'. (linux_find_memory_regions_gdb): New. (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'. (linux_make_mappings_corefile_notes): Use linux_find_memory_regions_gdb. * target.c (read_alloc_pread_ftype): New typedef. (target_fileio_read_alloc_1_pread): New function. (read_alloc): Refactor from target_fileio_read_alloc_1. (read_stralloc_func_ftype): New typedef. (target_fileio_read_alloc_1): New implementation. Use read_alloc. (read_stralloc): Refactored from target_fileio_read_stralloc. (target_fileio_read_stralloc): New implementation, use read_stralloc. commit b6c4d1bab02b75800599a47058160c4120c7f506 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sun Jun 21 11:51:51 2015 +0200 Move gdb_regex* to common/ Hi, later patches need regex support also in gdbserver. New patch, not yet reviewed before. Jan gdb/ChangeLog 2015-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to common/gdb_regex.h. (COMMON_OBS): Add gdb_regex.o. (gdb_regex.o): New. * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex, --without-included-regex and USE_INCLUDED_REGEX. * common/gdb_regex.c: New file from utils.c functions. * common/gdb_regex.h: Move it here from gdb_regex.h, update include file wrapping define name. * configure: Rebuilt. * configure.ac (gdb_use_included_regex, --without-included-regex) (USE_INCLUDED_REGEX): Move them to common/common.m4. * gdb_regex.h: Move it to common/gdb_regex.h. * utils.c: Remove include gdb_regex.h. (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error) (compile_rx_or_error): Move them to common/gdb_regex.c. gdb/gdbserver/ChangeLog 2015-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> * Makefile.in (OBS): Add gdb_regex.o. (gdb_regex.o): New. * config.in: Rebuilt. * configure: Rebuilt. commit 09212ccbd0c9dcd6708be2238516f7a1f6eb0515 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sun Jun 21 11:51:50 2015 +0200 Create empty nat/linux-maps.[ch] and common/target-utils.[ch] Hi, prepare new files for later move. Approved by: https://sourceware.org/ml/gdb-patches/2014-05/msg00367.html Jan gdb/ChangeLog 2014-02-26 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> Create empty nat/linux-maps.[ch] and common/target-utils.[ch]. * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h, common/target-utils.h. (COMMON_OBS): Add target-utils.o. (linux-maps.o, target-utils.o): New. * target/target-utils.c: New file. * target/target-utils.h: New file. * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o. * config/i386/linux64.mh (NATDEPFILES): Ditto. * nat/linux-maps.c: New file. * nat/linux-maps.h: New file. gdb/gdbserver/ChangeLog 2014-02-26 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> Create empty nat/linux-maps.[ch] and common/target-utils.[ch]. * Makefile.in (OBS): Add target-utils.o. (linux-maps.o, target-utils.o): New. * configure.srv (srv_linux_obj): Add linux-maps.o. commit 02db4b0a9f80505adaef9f547e8c069adfe63e36 Author: Alan Modra <amodra@gmail.com> Date: Sun Jun 21 13:03:36 2015 +0930 Don't use $< in Makefiles $< is a GNU make feature. * Makefile.am: Expand $<. * Makefile.in: Regenerate. commit bcdeacb69a4de9e019acf6c4a7f09457e6e6cf0a Author: GDB Administrator <gdbadmin@sourceware.org> Date: Sun Jun 21 00:00:08 2015 +0000 Automatic date update in version.in commit c325601c3f444689bd807c40c9b7d5d702e7b7e5 Author: GDB Administrator <gdbadmin@sourceware.org> Date: Sat Jun 20 00:00:08 2015 +0000 Automatic date update in version.in commit 11a0cf2ec0ed6e70ff25e9a50c2223dcd98c1c10 Author: Peter Bergner <bergner@vnet.ibm.com> Date: Fri Jun 19 17:17:07 2015 -0500 Allow for optional operands with non-zero default values. ISA 2.07 (ie, POWER8) added the rfebb instruction which takes one operand with the value of either a 0 or 1. It also defines an extended mnemonic with no operands (ie, "rfebb") that is supposed to be equivalent to "rfebb 1". I implemented rfebb's lone operand with PPC_OPERAND_OPTIONAL, but the problem is, optional operands that are ommitted always default to the value 0, which is wrong in this case. I have added support for allowing non-zero default values by adding an additional flag PPC_OPERAND_OPTIONAL_VALUE that specifies that the default operand value to be used is stored in the SHIFT field of the operand field immediately following this one. This fixes the rfebb issue. I also fixed the mftb and mfcr instructions so they use the same mechanism. This allows us to flag invalid uses of mfcr where we explicitly pass in a zero FXM value, like the use in a2.[sd]. include/opcode/ * ppc.h (PPC_OPERAND_OPTIONAL_VALUE): New. (ppc_optional_operand_value): New inline function. opcodes/ * ppc-dis.h (skip_optional_operands): Use ppc_optional_operand_value. * ppc-opc.c (FXM4): Add non-zero optional value. (TBR): Likewise. (SXL): Likewise. (insert_fxm): Handle new default operand value. (extract_fxm): Likewise. (insert_tbr): Likewise. (extract_tbr): Likewise. gas/ * config/tc-ppc.c (md_assemble): Use ppc_optional_operand_value. Allow for optional operands without insert functions. gas/testsuite/ * gas/ppc/power8.d: Fixup rfebb test results. * gas/ppc/a2.s: Fix invalid mfcr test. * gas/ppc/a2.d: Likewise. commit 18a94d75a0a9baca8e2db2563fa3e637415ad86e Author: Doug Evans <dje@google.com> Date: Fri Jun 19 11:34:43 2015 -0700 Remove special support in gdb for Sun's version of stabs. Discussion: https://sourceware.org/ml/gdb-patches/2015-05/msg00169.html gdb/ChangeLog: * NEWS: Mention Sun's version of stabs is no longer supported. * elfread.c (free_elfinfo): Delete. All uses updated. (elfstab_offset_sections): Delete. All uses updated. * gdb-stabs.h (stab_section_info): Delete. All uses updated. * psympriv.h (partial_symtab) <section_offsets>: Delete. All uses updated. * psymtab.c (start_psymtab_common): Delete arg section_offsets. All callers updated. gdb/doc/ChangeLog: * stabs.texinfo (ELF Linker Relocation): Mention Sun stabs is no longer supported. commit ef8b8d4ad51c2b90e022c5442f60b39f05e38ef6 Author: GDB Administrator <gdbadmin@sourceware.org> Date: Fri Jun 19 00:00:08 2015 +0000 Automatic date update in version.in commit 124e13d9e753ef307d6fe478e2cd6dd738de1a0f Author: Simon Marchi <simon.marchi@ericsson.com> Date: Thu Jun 18 13:12:39 2015 -0400 remote: consider addressable unit size when reading/writing memory Adapt code in remote.c to take into account addressable unit size when reading/writing memory. A few variables are renamed and suffixed with _bytes or _units. This way, it's more obvious if there is any place where we add or compare values of different kinds (which would be a mistake). gdb/ChangeLog: * common/rsp-low.c (needs_escaping): New. (remote_escape_output): Add unit_size parameter. Refactor to support multi-byte addressable units. Rename parameters. * common/rsp-low.h (remote_escape_output): Add unit_size parameter and rename others. Update doc. * remote.c (align_for_efficient_write): New. (remote_write_bytes_aux): Add unit_size parameter and use it. Rename some variables. Update doc. (remote_xfer_partial): Get unit size and use it. (remote_read_bytes_1): Add unit_size parameter and use it. Rename some variables. Update doc. (remote_write_bytes): Same. (remote_xfer_live_readonly_partial): Same. (remote_read_bytes): Same. (remote_flash_write): Update call to remote_write_bytes_aux. (remote_write_qxfer): Update call to remote_escape_output. (remote_search_memory): Same. (remote_hostio_pwrite): Same. gdb/gdbserver/ChangeLog: * server.c (write_qxfer_response): Update call to remote_escape_output. commit 74bd41ce65c6c2c30ff67519bfc1d00b61826d96 Author: Patrick Palka <patrick@parcs.ath.cx> Date: Wed Jun 17 15:41:07 2015 -0400 Test the interaction between GDBHISTSIZE and .gdbinit The value inside the GDBHISTSIZE environment variable, only if valid, should override setting the history size through one's .gdbinit file. gdb/testsuite/ChangeLog: * gdb.base/gdbinit-history.exp: Test the interaction between setting GDBHISTSIZE and setting the history size via .gdbinit. commit c12d2c9d48cf18d818f79b89bffda934c354fdac Author: Nick Clifton <nickc@redhat.com> Date: Thu Jun 18 10:23:16 2015 +0100 Add support for using the ADR alias in Thumb mode against nearby symbols. PR gas/18541 gas * config/tc-arm.c (md_apply_fix): Add support for ADR in thumb mode against a nearby symbol. tests * gas/arm/thumb.s: Add test of ADR against a nearby symbol. * gas/arm/thumb.d: Update expected output. * gas/arm/thumb-eabi.d: Likewise. commit 75c11999673ba32027eb17f6df9c37904622ed24 Author: Nick Clifton <nickc@redhat.com> Date: Thu Jun 18 10:18:42 2015 +0100 Fix the computation of the addends for an ARM_TLS_LE32 reloc. PR gas/18481 bfd * elf32-arm.c (R_ARM_TLS_LE32): Set the special function to NULL. gas * config/tc-arm.c (tc_gen_reloc): Include BFD_RELOC_ARM_TLS_LE32 in the same case as BFD_RELOC_ARM_TLS_IS32. tests * gas/arm/tls.s: Add tests of the tpoff pseudo with a local symbol. * gas/arm/tls.d: Update expected output. commit 57b42d6489218e29cb18edd111c97f4390b62ad9 Author: Mike Frysinger <vapier@gentoo.org> Date: Thu Jun 18 04:06:27 2015 -0400 sim: syscall: simplify unknown syscall trace Since we always include the raw syscall number when tracing, also including it in the name when it's unknown is redundant. Simplify the code by using a constant string. commit 7aec3bb968de6847cc73809408dfe8aa78fe7de7 Author: Mike Frysinger <vapier@gentoo.org> Date: Thu Jun 18 04:02:26 2015 -0400 sim: callback: fix sentinel testing when walking maps The new helpers for walking the maps tested the wrong value for exiting the for loop. This caused crashes when looking up entries that were not in the map. commit faffbc648d247533b6cecfedbbaf2d640d72cad2 Author: GDB Administrator <gdbadmin@sourceware.org> Date: Thu Jun 18 00:00:08 2015 +0000 Automatic date update in version.in commit 6ae8866180bf90e9ec76c2dd34c07fd826d11a83 Author: Luis Machado <lgustavo@codesourcery.com> Date: Wed Jun 17 16:50:57 2015 -0300 Fix problems with finishing a dummy function call on simulators. Some simulators don't handle permanent breakpoints properly and will sometimes terminate when hitting such a breakpoint instruction or have unwanted effects. When a permanent breakpoint is inserted, GDB will not attempt to insert other breakpoint locations on top of it, leading to the problem described above. By not marking permanent breakpoint locations as inserted, we allow the insertion of breakpoint locations on top of the permanent ones, preventing the simulators from running into that situation. gdb/ChangeLog: 2015-06-17 Luis Machado <lgustavo@codesourcery.com> * breakpoint.c (add_location_to_breakpoint): Don't mark permanent locations as inserted. Update and expand comment about permanent locations. (bp_loc_is_permanent): Don't return 0 for bp_call_dummy. Move comment to add_location_to_breakpoint. (update_global_location_list): Don't error out if a permanent breakpoint is not marked inserted. Don't error out if a non-permanent breakpoint location is inserted on top of a permanent breakpoint. commit da4616f69f53c221477388b6f2d4abee9bba0722 Author: Luis Machado <lgustavo@codesourcery.com> Date: Wed Jun 17 11:08:55 2015 -0300 Remove unused function make_breakpoint_permanent. make_breakpoint_permanent is no longer used anywhere and can be safely removed. gdb/ChangeLog: 2015-06-17 Luis Machado <lgustavo@codesourcery.com> * breakpoint.c (make_breakpoint_permanent): Remove unused function. * breakpoint.h (make_breakpoint_permanent): Remove declaration. commit 0eacb2983d96fd7f12a1400a66450c1a89578f00 Author: Patrick Palka <patrick@parcs.ath.cx> Date: Wed Jun 17 14:44:38 2015 -0400 Make NEWS entry and manual regarding GDBHISTSIZE more consistent ... by mentioning in the manual that setting GDBHISTSIZE to the empty string disables truncation, like the NEWS entry does. gdb/doc/ChangeLog: * gdb.texinfo (Command History): Mention that setting GDBHISTSIZE to the empty string disables history truncation. commit bc460514b9db46a491c2c39cd118b02608742968 Author: Patrick Palka <patrick@parcs.ath.cx> Date: Tue May 12 06:50:26 2015 -0400 Tweak the handling of $GDBHISTSIZE edge cases [PR gdb/16999] When GDB reads a nonsensical value for the GDBHISTSIZE environment variable, i.e. one that is non-numeric or negative, GDB then sets its history size to 0. This behavior is annoying and also inconsistent with the behavior of bash. This patch makes the behavior of invalid GDBHISTSIZE consistent with how bash handles HISTSIZE. When we encounter a null or out-of-range GDBHISTSIZE (outside of [0, INT_MAX]) we now set the history size to unlimited instead of 0. When we encounter a non-numeric GDBHISTSIZE we do nothing. gdb/ChangeLog: PR gdb/16999 * NEWS: Mention new GDBHISTSIZE behavior. * top.c (init_history): For null or out-of-range GDBHISTSIZE, set history size to unlimited. Ignore non-numeric GDBHISTSIZE. gdb/doc/ChangeLog: PR gdb/16999 * gdb.texinfo (Command History): Mention new GDBHISTSIZE behavior. gdb/testsuite/ChangeLog: PR gdb/16999 * gdb.base/gdbhistsize-history.exp: New test. commit b58c513b7932cfb9852d66e07282b9c2379197ed Author: Patrick Palka <patrick@parcs.ath.cx> Date: Wed Jun 17 13:31:56 2015 -0400 Read $GDBHISTSIZE instead of $HISTSIZE The HISTSIZE environment variable is generally expected to be read by shells, not by applications. Some distros for example globally export HISTSIZE in /etc/profile -- with the intention that it only affects shells -- and by doing so it renders useless GDB's own mechanism for setting the history size via .gdbinit. Also, annoyances may arise when HISTSIZE is not interpreted the same way by the shell and by GDB, e.g. PR gdb/16999. That can always be fixed on a shell-by-shell basis but it may be impossible to be consistent with the behavior of all shells at once. Finally it just makes sense to not confound shell environment variables with application environment variables. gdb/ChangeLog: * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE. * top.c (init_history): Read from GDBHISTSIZE instead of HISTSIZE. (init_main): Refer to GDBHISTSIZE instead of HISTSIZE. gdb/doc/ChangeLog: * gdb.texinfo (Command History): Replace occurrences of HISTSIZE with GDBHISTSIZE. gdb/testsuite/ChangeLog: * gdb.base/gdbinit-history.exp: Replace occurrences of HISTSIZE with GDBHISTSIZE. * gdb.base/readline.exp: Likewise. commit 7d5c6c43ca8a5dd5491f4a58e977ec5501386ee3 Author: Mike Frysinger <vapier@gentoo.org> Date: Mon Jun 15 19:22:38 2015 +0545 sim: syscall: add common sim_syscall helpers Many ports have the same sim syscall logic, so add some helpers to handle all the common details. The arches still have to deal with the unpacking and packing of the syscall arguments, but the rest of the sim<->callback glue is now shared. commit 61a0c964e611eaf72489c3049ba206b2f91ea4a9 Author: Mike Frysinger <vapier@gentoo.org> Date: Mon Jun 15 21:09:21 2015 +0545 sim: syscall: unify memory helpers Almost every port implements these two callbacks in the same way, so unify them in the common layer. commit 6362a3f8757bfce133b724df2077573433823ad4 Author: Mike Frysinger <vapier@gentoo.org> Date: Mon Jun 15 19:17:16 2015 +0545 sim: callback: add human readable strings for debugging to maps When tracing, we often want to display the human readable name for the various syscall/errno values. Rather than make each target duplicate the lookup, extend the existing maps to include the string directly, and add helper functions to look up the constants. While most targets are autogenerated (from libgloss), the bfin/cris targets have custom maps for the Linux ABI which need to be updated by hand. commit 920467912a594a3e5af1d779487ffe3e5c550aef Author: Yao Qi <yao.qi@linaro.org> Date: Wed Jun 17 17:03:03 2015 +0100 Fix tcl error This patch fixes the following tcl error Running ../../../binutils-gdb/gdb/testsuite/gdb.base/break-interp.exp ... ERROR: (DejaGnu) proc "else" does not exist. The error code is NONE The info on the error is: invalid command name "else" while executing "::tcl_unknown else" ("uplevel" body line 1) invoked from within "uplevel 1 ::tcl_unknown $args" gdb/testsuite: 2015-06-17 Yao Qi <yao.qi@linaro.org> * lib/gdb.exp (get_build_id): Move braces and "else" to the same line. commit 696ddf4b52bd4b4d3997ca1a514b1d07fcea3715 Author: Jiong Wang <jiong.wang@arm.com> Date: Wed Jun 17 16:36:04 2015 +0100 [AArch64] Select correct linker emulation for ILP32 according to endianes 2015-06-17 Jiong Wang <jiong.wang@arm.com> ld/testsuite/ * ld-aarch64/aarch64-elf.exp (aarch64_choose_ilp32_emul): New function. * ld-aarch64/emit-relocs-28.d: Use aarch64_choose_ilp32_emul to choose emulation mode. commit 5fc177c89526035dfa5ac5329f88b02af01d8ca5 Author: Nick Clifton <nickc@redhat.com> Date: Wed Jun 17 16:10:36 2015 +0100 Fix compile warnings building previous delta in a 32-bit environment. * config/tc-arm.c (is_double_a_single): Make conditional upon the availablity of a 64-bit type. Use this type for the argument and mantissa. (double_to_single): Likewise. * config/tc-arm.c (move_or_literal_pool): Use a 64-bit type for the constant value, if available. Generate a 64-bit value from a bignum if supported. Only perform the second optimization for PR 18500 if the 64-bit type is available. commit 2093d2d31460dc351145c4c295ea4a101e0c5aed Author: Patrick Palka <patrick@parcs.ath.cx> Date: Thu Jun 4 10:12:27 2015 -0400 Don't truncate the history file when history size is unlimited We still do not handle "set history size unlimited" correctly. In particular, after writing to the history file, we truncate the history even if it is unlimited. This patch makes sure that we do not call history_truncate_file() if the history is not stifled (i.e. if it's unlimited). This bug causes the history file to be truncated to zero on exit when one has "set history size unlimited" in their gdbinit file. Although this code exists in GDB 7.8, the bug is masked by a pre-existing bug that's been only fixed in GDB 7.9 (PR gdb/17820). gdb/ChangeLog: * top.c (gdb_safe_append_history): Do not call history_truncate_file if the history is not stifled. gdb/testsuite/ChangeLog: * gdb.base/gdbinit-history.exp: Add test case to check that an unlimited history file does not get truncated on exit. commit 1256987795a7f61826c0e5cc2ee023a579bb0a80 Author: Alessandro Marzocchi <alessandro.marzocchi@gmail.com> Date: Wed Jun 17 13:50:52 2015 +0100 Add support for converting LDR Rx,=<imm> to MOV or MVN in Thumb2 mode. PR gas/18499 gas * config/tc-arm.c (move_or_literal_pool): Add support for LDR Rx,= to MOV.w or MVN.w for Thumb2. tests * gas/arm/thumb2_ldr_immediate_armv6.s: New test case. * gas/arm/thumb2_ldr_immediate_armv6.d: Expected disassembly. * gas/arm/thumb2_ldr_immediate_armv6t2.s: New test case. * gas/arm/thumb2_ldr_immediate_armv6t2.d: Expected disassembly. commit ba592044bc04610d6fa14d0a95931bac303ace37 Author: Alessandro Marzocchi <alessandro.marzocchi@gmail.com> Date: Wed Jun 17 12:56:17 2015 +0100 Add support for converting VLDR <reg>,=<constant> to a VMOV instruction when appropriate. PR gas/18500 gas * config/tc-arm.c (is_double_a_single): New function. (double_to_single): New function. (move_or_literal_pool): Add support for converting VLDR to VMOV. tests * gas/arm/vfpv2-ldr_immediate.s: New test case. * gas/arm/vfpv2-ldr_immediate.d: Expected disassembly. * gas/arm/vfpv3-ldr_immediate.s: New test case. * gas/arm/vfpv3-ldr_immediate.d: Expected disassembly. * gas/arm/vfpv3xd-ldr_immediate.s: New test case. * gas/arm/vfpv3xd-ldr_immediate.d: Expected disassembly. commit fc2484855563d0cd3e43b9f2d937481b5f5e4a7b Author: Andreas Arnez <arnez@linux.vnet.ibm.com> Date: Wed Jun 17 11:17:08 2015 +0200 S390: Add syscall info for syscalls from 344 up to 354 Represent new Linux syscalls for s390 and s390x in GDB's syscall info. Add the syscalls from 344 (finit_module) up to 354 (execveat). gdb/ChangeLog: * syscalls/s390-linux.xml: Add syscalls 344 through 354. * syscalls/s390x-linux.xml: Likewise. commit e6c693af14c0488998a784d560b8cfbcf15db99a Author: Andreas Arnez <arnez@linux.vnet.ibm.com> Date: Wed Jun 17 11:17:07 2015 +0200 Add vector ABI tests to gnu_vector.exp So far the gnu_vector test was limited to "static" aspects of GDB's vector support, like evaluating vector-valued expressions. This patch enriches the test and adds checks for GDB's vector ABI support as well. The new checks particularly verify inferior function calls with vector arguments and GDB's handling of vector return values. The test now attempts to compile for the target's "native" architecture, such that a hardware vector ABI is used if available. Since GDB has no vector ABI support for x86 and x86_64 targets, most of the new checks are KFAILed there. gdb/testsuite/ChangeLog: * gdb.base/gnu_vector.c: Include stdarg.h and stdio.h. (VECTOR): New macro. Use it... (int4, uint4, char4, float4, int2, longlong2, float2, double2): ...for these typedefs. (int8, char1, int1, double1): New typedefs. (struct just_int2, struct two_int2): New structures. (add_some_intvecs, add_many_charvecs, add_various_floatvecs) (add_structvecs, add_singlevecs): New functions. (main): Call add_some_intvecs twice. * gdb.base/gnu_vector.exp: Drop GCC version check; just attempt the compile and exit upon failure. Try compiling for the "native" architecture. Test inferior function calls with vector arguments and vector return value handling with "finish" and "return". commit 490b7f752c8d0c91f8cdf53c3771d5be5cb9e7de Author: GDB Administrator <gdbadmin@sourceware.org> Date: Wed Jun 17 00:00:07 2015 +0000 Automatic date update in version.in commit 451133cefa839104aa127d230436fb609dbef37f Author: Nicolas Pitre <nicolas.pitre@linaro.org> Date: Tue Jun 9 23:06:29 2015 -0400 gas: section name substitution sequence This patch adds the ability to automatically construct a section name based on the prior section. When gas is invoked with --sectname-subst, the occurrence of %S in a section name will be substituted by the name of the current section. For example: .macro exception_code .pushsection %S.exception [exception code here] .popsection .endm .text [code] exception_code [...] .section .init [init code] exception_code [...] The first and second exception_code invocations create the .text.exception and the .init.exception sections respectively. This is useful e.g. to discriminate between anciliary sections that are tied to .init code and can be discarded at run time when initialization is over vs anciliary sections tied to .text sections that need to stay resident. * as.c (show_usage): Document --sectname-subst. (parse_args): Add --sectname-subst. * as.h (flag_sectname_subst): New. * config/obj-elf.c (obj_elf_section_name): Add %S substitution. * doc/as.texinfo: Document it. commit 4da680addb9f9c22f24f0294b8b9b9ca52cecd7f Author: Michael Eager <eager@eagercon.com> Date: Tue Jun 16 07:18:03 2015 -0700 GDB Namespaces - Define MSG_CMSG_CLOEXEC if not defined. 2015-06-16 Michael Eager <eager@eagercon.com> * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined. commit 0a75489fab4f3a1172c0328b9f0767351dbb8744 Author: Patrick Palka <patrick@parcs.ath.cx> Date: Mon Jun 1 21:30:50 2015 -0400 Call target_terminal_ours_for_output() before refreshing TUI's frame info In some cases tui_show_frame_info() may get called while the inferior's terminal settings are still in effect. But when we call this function we absolutely need to have our terminal settings in effect because the function is responsible for redrawing TUI's windows following a change in the selected frame or a change in the PC. If our terminal settings are not in effect, the screen does not get redrawn properly, causing temporary display artifacts (which can be fixed via ^L). This scenario happens most prominently when stepping through a program in TUI while a watchpoint is in effect. Here is an example backtrace for when tui_show_frame_info() gets called while target_terminal_is_inferior() == 1: #1 0x00000000004988ee in tui_selected_frame_level_changed_hook (level=0) #2 0x0000000000617b99 in select_frame (fi=0x18c9820) #3 0x0000000000617c3f in get_selected_frame (message=message@entry=0x0) #4 0x00000000004ce534 in update_watchpoint (b=b@entry=0x2d9a760, reparse=reparse@entry=0) #5 0x00000000004d625e in insert_breakpoints () #6 0x0000000000531cfe in keep_going (ecs=ecs@entry=0x7ffea7884ac0) #7 0x00000000005326d7 in process_event_stop_test (ecs=ecs@entry=0x7ffea7884ac0) #8 0x000000000053596e in handle_inferior_event_1 (ecs=0x7ffea7884ac0) The fix is simple: call target_terminal_ours_for_output() before calling tui_show_frame_info() in TUI's frame-changed hook, making sure to restore the original terminal settings afterwards. gdb/ChangeLog: * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call target_terminal_ours_for_output() before calling tui_show_frame_info(), and restore the original terminal settings afterwards. commit bdfa8b951ba38b15487eab2a754b9a33b9f29634 Author: Matthew Wahab <matthew.wahab@arm.com> Date: Tue Jun 16 14:15:54 2015 +0100 [AArch64] Support id_mmfr4 system register 2015-06-16 Matthew Wahab <matthew.wahab@arm.com> opcodes/ * aarch64-opc.c (aarch64_sys_regs): Add "id_mmfr4_el1". gas/testsuite * sysreg.d: Add id_mmfr4_el1, update expected output. * sysreg.s: Add id_mmfr4_el1. commit 56f4083249f4633084d4e8d89fc065e895f874cf Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Mon Jun 15 19:20:02 2015 +0100 Fix build when size_t is not available in bfd-in2.h bfd/ChangeLog: 2015-06-15 Jon Turney <jon.turney@dronecode.org.uk> * bfd.c: Change struct bfd_build_id to use bfd_size_type. * bfd-in2.h : Regenerate. commit 24b4cf66a626566e7903813a2e0156778f4903f9 Author: Szabolcs Nagy <szabolcs.nagy@arm.com> Date: Tue Jun 16 13:35:33 2015 +0100 Fixes a compile time warnng about left shifting a negative value. * arm-dis.c (print_insn_coprocessor): Avoid negative shift. commit 95855ca82ec3ced28916922d663106e61ce593b4 Author: Martin Simmons <martin@lispworks.com> Date: Tue Jun 16 09:32:47 2015 +0100 Fix compilation of gdb/arm-linux-nat.c on Raspbian GNU/Linux 7 GDB trunk fails to compile on Raspbian GNU/Linux 7 because PTRACE_GETREGSET and PTRACE_SETREGSET are not defined in sys/ptrace.h. gcc -g -O2 -I. -I. -I./common -I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I./../readline/.. -I./../zlib -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./gnulib/import -Ibuild-gnulib/import -DTUI=1 -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wpointer-sign -Wmissing-prototypes -Wdeclaration-after-statement -Wmissing-parameter-type -Wold-style-declaration -Wold-style-definition -Wformat-nonliteral -Werror -c -o arm-linux-nat.o -MT arm-linux-nat.o -MMD -MP -MF .deps/arm-linux-nat.Tpo arm-linux-nat.c arm-linux-nat.c: In function 'fetch_fpregister': arm-linux-nat.c:103:21: error: 'PTRACE_GETREGSET' undeclared (first use in this function) arm-linux-nat.c:103:21: note: each undeclared identifier is reported only once for each function it appears in arm-linux-nat.c: In function 'fetch_fpregs': arm-linux-nat.c:144:21: error: 'PTRACE_GETREGSET' undeclared (first use in this function) arm-linux-nat.c: In function 'store_fpregister': arm-linux-nat.c:184:21: error: 'PTRACE_GETREGSET' undeclared (first use in this function) arm-linux-nat.c:211:21: error: 'PTRACE_SETREGSET' undeclared (first use in this function) ... This patch includes the gdb header file nat/linux-ptrace.h, which provides fallback definitions. 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch) * arm-linux-nat.c: Include nat/linux-ptrace.h. commit 1d5c94cb3e2e312fc37e7841d17ea98a02f0412c Author: Alan Modra <amodra@gmail.com> Date: Tue Jun 16 16:47:51 2015 +0930 ppc476 linker workaround shared lib fixes again Huh, I can't even write a binary search properly. bfd/ * elf32-ppc.c (ppc_elf_relocate_section): Correct binary search of dynamic relocs. ld/testsuite/ * ld-powerpc/ppc476-shared.s: Repeat dynamic reloc generating insns. * ld-powerpc/ppc476-shared.d: Update. * ld-powerpc/ppc476-shared2.d: Update. commit dd9bdb04c7ca31c4ca14e2aaf244d4a492d9d9b3 Author: GDB Administrator <gdbadmin@sourceware.org> Date: Tue Jun 16 00:00:08 2015 +0000 Automatic date update in version.in commit cfc32360afdc8605b2dd2062e857313e62c40e30 Author: Simon Marchi <simon.marchi@ericsson.com> Date: Mon Jun 15 15:50:31 2015 -0400 MI: consider addressable unit size when reading/writing memory As a user of the target memory read/write interface, the MI code must adjust its memory allocations to take into account the addressable memory unitsize of the target. gdb/ChangeLog: mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider byte size. (mi_cmd_data_write_memory_bytes): Same. commit a86c90e6ba808e997f87f0287d9f01ba8d3e904e Author: Simon Marchi <simon.marchi@ericsson.com> Date: Mon Jun 15 15:31:00 2015 -0400 Clarify doc about memory read/write and non-8-bits addressable memory unit sizes New in v3: * Change RSP documentation as well. The m, M and X packets now use lengths in addressable memory units. New in v2: * Change wording: use byte for 8-bits chunks and addressable memory unit for the unit of data associated to a single address. * Introduce definition of addressable memory unit in the Memory section. This patch modifies the manual to clarify the MI, RSP and Python APIs in regard to reading/writing memory on architectures with addressable memory unit that are not 8 bits. Care is taken to use the word "addressable memory unit" or "memory unit" when referring to one piece of the smallest addressable size on the current architecture and the word "byte" when referring to an 8-bits data piece. For MI, -data-{read,write}-memory are not modified, since they are deprecated. gdb/doc/ChangeLog: * gdb.texinfo (GDB/MI Data Manipulation): Clarify usage of bytes and memory units for -data-{read,write}-memory-bytes. (Packets): Same for m, M and X packets. * python.texi (Inferiors In Python): Same for read_memory and write_memory. commit cb6f16cf4f7a12f9aadddc0451d47f0511729c8d Author: Simon Marchi <simon.marchi@ericsson.com> Date: Mon Jun 15 13:34:47 2015 -0400 Cleanup write_memory doc This doc about write_memory seems outdated. gdb/ChangeLog: * corefile.c (write_memory): Update doc. * gdbcore.h (write_memory): Same. commit 31b7833d205031b52996982f5da025d60c6e052f Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Mon Jun 15 17:10:44 2015 +0200 Code cleanup: Rename enum -> enum filterflags Bit mask ints are better to make enums as GDB already has support to automatically decode them: before this patch: (gdb) p filterflags $1 = 51 (gdb) p/x filterflags $2 = 0x33 after this patch: (gdb) p filterflags $1 = (COREFILTER_ANON_PRIVATE | COREFILTER_ANON_SHARED | COREFILTER_ELF_HEADERS | COREFILTER_HUGETLB_PRIVATE) gdb/ChangeLog 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com> * linux-tdep.c (enum filterflags): Make it from anonymous enum. (dump_mapping_p): Use it for parameter filterflags. (linux_find_memory_regions_full): Use it for variable filterflags. commit 909c2cdaa78f5c33ce61a3b47e86f831025d0a02 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Mon Jun 15 17:08:49 2015 +0200 Merge multiple hex conversions gdb/ChangeLog 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> Merge multiple hex conversions. * monitor.c: Include rsp-low.h. (fromhex): Remove definition. gdb/gdbserver/ChangeLog 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> Merge multiple hex conversions. * gdbreplay.c (tohex): Rename to 'fromhex'. (logchar): Use fromhex. commit 03aef70fecec83e109c65337a59600ad36def6bf Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Mon Jun 15 17:04:56 2015 +0200 Move utility functions to common/ gdb/ChangeLog 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com Jan Kratochvil <jan.kratochvil@redhat.com> Move utility functions to common/. * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const): Move defs to common/common-utils.c. * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space) (skip_to_space_const): Move decls to common/common-utils.h. * common/common-defs.h: Move include of common-types.h before common-utils.h. * common/common-utils.c: Include host-defs.h and ctype.h. (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move from utils.c. (skip_spaces, skip_spaces_const, skip_to_space_const): Move from cli/cli-utils.c. * common/common-utils.h (strtoulst): Move decl from utils.h. (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const): Move from cli/cli-utils.h. * common/host-defs.h: Include limits.h. (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h. (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h. * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to common/common-utils.h. * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int) (strtoulst): Move to common/common-utils.c. * utils.h (strtoulst): Moved decl to common/common-utils.h. commit d1168cc1a9825b96747440b0bd1f82c4498e6343 Author: Yao Qi <yao.qi@linaro.org> Date: Mon Jun 15 12:41:09 2015 +0100 Copy aarch64-linux.xml to build tree. This patch fixes a bug that aarch64-linux.xml isn't copied to the build tree, so that some tests catch-syscall.exp fail. gdb: 2015-06-15 Yao Qi <yao.qi@linaro.org> * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml. commit 1e5338b6e7405acdd1e1d0eab46682bd1af007d5 Author: Ulrich Weigand <ulrich.weigand@de.ibm.com> Date: Mon Jun 15 13:49:43 2015 +0200 Fix ChangeLog entry. commit c74f7d1c6c5a968330208757f476c67a4bb66643 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Tue Apr 7 20:49:08 2015 +0100 Allow gdb to find debug symbols file by build-id for PE file format also This promotes BFD's struct elf_build_id to the generic struct bfd_build_id, populated when an ELF or PE BFD is read. gdb is updated to use that, and to use the build-id to find symbols for PE files also. There is currently no generic way to extract the build-id from an object file, perhaps an option to objdump to do this might make sense? On x86_64-pc-cygwin, gdb's sepdebug.exp changes: -# of unsupported tests 1 +# of expected passes 90 I don't seem to get consistent testsuite runs on i686-linux-gnu, but there don't appear to be any regressions. bfd/ChangeLog: 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk> * elf-bfd.h : Remove struct elf_build_id. * bfd.c : Add struct bfd_build_id. * bfd-in2.h: Regenerate. * elf.c (elfobj_grok_gnu_build_id): Update to use bfd_build_id. * libpei.h: Add protoype and macros for bfd_XXi_slurp_codeview_record. * peXXigen.c (_bfd_XXi_slurp_codeview_record): Make public * peicode.h (pe_bfd_read_buildid): Add. (pe_bfd_object_p): Use pe_bfd_read_buildid(). gdb/ChangeLog: 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk> * build-id.c: Don't include elf-bfd.h. (build_id_bfd_get): Use bfd_build_id. (build_id_verify): Ditto. * build-id.h: Ditto. (find_separate_debug_file_by_buildid): Ditto. * python/py-objfile.c: Don't include elf-bfd.h. (objfpy_get_build_id) Use bfd_build_id. (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto. * coffread.c: Include build-id.h. (coff_symfile_read): Try find_separate_debug_file_by_buildid. gdb/doc/ChangeLog: 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk> * gdb.texinfo (Separate Debug Files): Document that PE is also supported. gdb/testsuite/ChangeLog: 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk> * gdb.base/sepdebug.exp: Add EXEEXT where needed. * lib/gdb.exp (get_build_id): Teach how to extract build-id from a PE file. * lib/future.exp (gdb_find_objdump): Add gdb_find_objdump. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk> commit f20c58f51f5735d1ba49efadc86b3ec67631410e Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Wed Jun 3 13:58:45 2015 +0100 windows-nat: Replace __COPY_CONTEXT_SIZE conditional with __CYGWIN__ Replace __COPY_CONTEXT_SIZE conditional with __CYGWIN__ __COPY_CONTEXT_SIZE was added to Cygwin's headers in 2006. Versions of Cygwin which don't define __COPY_CONTEXT_SIZE are long obsolete. Also see the thread starting at https://sourceware.org/ml/gdb-patches/2015-03/msg00989.html for some discussion Note that __COPY_CONTEXT_SIZE should just be sizeof(CONTEXT) (which is a platform constant), but isn't due to historical mistakes in Cygwin headers. gdb/ChangeLog: 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk> * windows-nat.c (do_windows_fetch_inferior_registers) (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE conditional with __CYGWIN__. Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk> commit 87f5fbcc7aa49cee13e9ed44587b80d695d7e781 Author: Renlin Li <renlin.li@arm.com> Date: Mon Jun 15 11:07:37 2015 +0100 [AArch64] Gas add BFD_RELOC_AARCH64_LD64_GOTOFF_LO15 support 2015-06-15 Renlin Li <renlin.li@arm.com> bfd/ * reloc.c (BFD_RELOC_AARCH64_LD64_GOTOFF_LO15): New entry. * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for BFD_RELOC_AARCH64_LD64_GOTOFF_LO15. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. gas/ * config/tc-aarch64.c (reloc_table): New relocation modifier. (md_apply_fix): Support BFD_RELOC_AARCH64_LD64_GOTOFF_LO15. (aarch64_force_relocation): Ditto gas/testsuite/ * gas/aarch64/reloc-insn.s: Update test * gas/aarch64/reloc-insn.d: Update expected result. commit a2a4d60d831e40350d96edd2f1cd55f430d04fd4 Author: Nick Clifton <nickc@redhat.com> Date: Mon Jun 15 09:25:26 2015 +0100 Fix a segmentation fault triggered when trying to handle an unresolved PE symbol with a very long name. PR ld/18466 * emultempl/pe.em (pe_find_data_imports): Generate an error if a symbol name is too long to handle. * emultempl/pep.em (pep_find_data_imports): Likewise. commit d025d5e5b57fb59c56aa4d57b7fc138720a8e454 Author: Mark Wielaard <mjw@redhat.com> Date: Sat Jun 13 17:47:41 2015 -0400 gas: Don't use frag_align but use plain padding to align .debug_aranges. out_debug_aranges uses frag_align to make sure the addresses start out aligned. Using frag_align will call frag_var[_init], which will end up calling TC_FRAG_INIT. On arm and aarch64 TC_FRAG_INIT will generate a $d mapping symbol for the .debug_aranges to show that at that point a sequence of data items starts. Such a symbol pointing into a non-allocated debug section will confuse eu-strip -g. And it seems inefficient and wrong in general to have additional mapping symbols for debug sections, which won't contain actual code in the first place. Just keep track of the aranges header size and use plain padding to align the addresses which avoids generating any mapping symbols on aarch64 and arm. Includes a testcase for aarch64 that PASS with this patch and shows the extra $d mapping symbol in .debug_aranges before. gas/ChangeLog * dwarf2dbg.c (out_header): Document EXPR->X_add_number value, out_debug_aranges depends on it. (out_debug_aranges): Track size of header to properly pad header for address alignment. gas/testsuite/ChangeLog * gas/aarch64/dwarf.d: New. * gas/aarch64/dwarf.s: New. commit 3a062fa1eeee8296dece36a9bb7ecc8d4500de18 Author: Alan Modra <amodra@gmail.com> Date: Tue Jun 9 14:14:41 2015 +0930 DJGPP port of binutils broken due to 64 bit cygwin fix * cofflink.c (_bfd_coff_generic_relocate_section): Revert 2014-03-26 change. Call _bfd_clear_contents for relocs against local and global symbols defined in discarded input sections. commit 17b9af13f5943872cd33a559bb5dd0de95d1b04c Author: GDB Administrator <gdbadmin@sourceware.org> Date: Mon Jun 15 00:00:08 2015 +0000 Automatic date update in version.in ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 41 + bfd/bfd-in2.h | 13 + bfd/bfd.c | 9 + bfd/cofflink.c | 22 +- bfd/doc/ChangeLog | 5 + bfd/doc/Makefile.am | 44 +- bfd/doc/Makefile.in | 44 +- bfd/elf-bfd.h | 10 - bfd/elf.c | 12 +- bfd/elf32-arm.c | 2 +- bfd/elf32-ppc.c | 23 +- bfd/elfnn-aarch64.c | 15 + bfd/libbfd.h | 1 + bfd/libpei.h | 4 + bfd/peXXigen.c | 2 +- bfd/peicode.h | 100 ++- bfd/reloc.c | 5 + bfd/version.h | 2 +- gas/ChangeLog | 60 ++ gas/as.c | 8 + gas/as.h | 3 + gas/config/obj-elf.c | 21 + gas/config/tc-aarch64.c | 11 + gas/config/tc-arm.c | 338 ++++++-- gas/config/tc-ppc.c | 8 +- gas/doc/as.texinfo | 42 +- gas/dwarf2dbg.c | 12 +- gas/testsuite/ChangeLog | 51 + gas/testsuite/gas/aarch64/dwarf.d | 27 + gas/testsuite/gas/aarch64/dwarf.s | 6 + gas/testsuite/gas/aarch64/reloc-insn.d | 32 +- gas/testsuite/gas/aarch64/reloc-insn.s | 2 + gas/testsuite/gas/aarch64/sysreg.d | 23 +- gas/testsuite/gas/aarch64/sysreg.s | 1 + gas/testsuite/gas/arm/thumb-eabi.d | 5 + gas/testsuite/gas/arm/thumb.d | 5 + gas/testsuite/gas/arm/thumb.s | 10 + gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6.d | 21 + gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6.s | 12 + .../gas/arm/thumb2_ldr_immediate_armv6t2.d | 15 + .../gas/arm/thumb2_ldr_immediate_armv6t2.s | 12 + gas/testsuite/gas/arm/tls.d | 18 + gas/testsuite/gas/arm/tls.s | 23 + gas/testsuite/gas/arm/vfpv2-ldr_immediate.d | 50 + gas/testsuite/gas/arm/vfpv2-ldr_immediate.s | 48 + gas/testsuite/gas/arm/vfpv3-ldr_immediate.d | 35 + gas/testsuite/gas/arm/vfpv3-ldr_immediate.s | 46 + gas/testsuite/gas/arm/vfpv3xd-ldr_immediate.d | 42 + gas/testsuite/gas/arm/vfpv3xd-ldr_immediate.s | 47 + gas/testsuite/gas/ppc/a2.d | 2 +- gas/testsuite/gas/ppc/a2.s | 2 +- gas/testsuite/gas/ppc/power8.d | 6 +- gas/write.c | 11 +- gdb/ChangeLog | 165 ++++- gdb/NEWS | 8 + gdb/arm-linux-nat.c | 2 + gdb/breakpoint.c | 64 +- gdb/breakpoint.h | 2 - gdb/build-id.c | 21 +- gdb/build-id.h | 2 +- gdb/coffread.c | 6 +- gdb/common/rsp-low.c | 71 +- gdb/common/rsp-low.h | 18 +- gdb/corefile.c | 4 +- gdb/data-directory/Makefile.in | 2 +- gdb/dbxread.c | 35 +- gdb/doc/ChangeLog | 34 + gdb/doc/gdb.texinfo | 87 ++- gdb/doc/python.texi | 5 +- gdb/doc/stabs.texinfo | 7 +- gdb/dwarf2read.c | 4 +- gdb/elfread.c | 184 +---- gdb/gdb-stabs.h | 17 - gdb/gdbcore.h | 6 +- gdb/gdbserver/ChangeLog | 12 + gdb/gdbserver/server.c | 4 +- gdb/mdebugread.c | 16 +- gdb/mi/mi-main.c | 56 +- gdb/nat/linux-namespaces.c | 6 + gdb/psympriv.h | 7 - gdb/psymtab.c | 14 - gdb/python/py-objfile.c | 7 +- gdb/remote.c | 193 +++-- gdb/solib-svr4.c | 11 +- gdb/stabsread.h | 2 - gdb/syscalls/s390-linux.xml | 11 + gdb/syscalls/s390x-linux.xml | 11 + gdb/testsuite/ChangeLog | 49 + gdb/testsuite/gdb.base/gdbhistsize-history.exp | 70 ++ gdb/testsuite/gdb.base/gdbinit-history.exp | 85 ++- gdb/testsuite/gdb.base/gnu_vector.c | 105 ++- gdb/testsuite/gdb.base/gnu_vector.exp | 52 +- gdb/testsuite/gdb.base/readline.exp | 12 +- gdb/testsuite/gdb.base/sepdebug.exp | 12 +- gdb/testsuite/lib/future.exp | 11 + gdb/testsuite/lib/gdb.exp | 53 +- gdb/top.c | 45 +- gdb/tui/tui-hooks.c | 6 + gdb/windows-nat.c | 4 +- gdb/xcoffread.c | 3 +- include/gdb/ChangeLog | 7 + include/gdb/callback.h | 9 + include/opcode/ChangeLog | 5 + include/opcode/ppc.h | 13 + ld/ChangeLog | 7 + ld/emultempl/pe.em | 11 +- ld/emultempl/pep.em | 11 +- ld/testsuite/ChangeLog | 12 + ld/testsuite/ld-aarch64/aarch64-elf.exp | 8 + ld/testsuite/ld-aarch64/emit-relocs-28.d | 20 +- ld/testsuite/ld-powerpc/ppc476-shared.d | 54 +- ld/testsuite/ld-powerpc/ppc476-shared.s | 8 +- ld/testsuite/ld-powerpc/ppc476-shared2.d | 8 +- opcodes/ChangeLog | 19 + opcodes/aarch64-opc.c | 1 + opcodes/arm-dis.c | 2 +- opcodes/ppc-dis.c | 3 +- opcodes/ppc-opc.c | 46 +- sim/bfin/ChangeLog | 14 + sim/bfin/interp.c | 31 +- sim/bfin/linux-targ-map.h | 992 ++++++++++---------- sim/common/ChangeLog | 33 + sim/common/Make-common.in | 1 + sim/common/callback.c | 94 ++- sim/common/gentmap.c | 13 +- sim/common/sim-syscall.c | 123 +++ sim/common/sim-syscall.h | 45 + sim/common/syscall.c | 2 +- sim/cris/ChangeLog | 12 + sim/cris/traps.c | 355 ++++---- sim/lm32/ChangeLog | 12 + sim/lm32/traps.c | 53 +- sim/m32r/ChangeLog | 17 + sim/m32r/traps-linux.c | 64 +- sim/m32r/traps.c | 58 +- sim/mcore/ChangeLog | 12 + sim/mcore/interp.c | 45 +- sim/mn10300/ChangeLog | 13 + sim/mn10300/mn10300_sim.h | 10 - sim/mn10300/op_utils.c | 77 +-- sim/msp430/ChangeLog | 12 + sim/msp430/msp430-sim.c | 85 +-- 142 files changed, 3537 insertions(+), 1890 deletions(-) create mode 100644 gas/testsuite/gas/aarch64/dwarf.d create mode 100644 gas/testsuite/gas/aarch64/dwarf.s create mode 100644 gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6.d create mode 100644 gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6.s create mode 100644 gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6t2.d create mode 100644 gas/testsuite/gas/arm/thumb2_ldr_immediate_armv6t2.s create mode 100644 gas/testsuite/gas/arm/vfpv2-ldr_immediate.d create mode 100644 gas/testsuite/gas/arm/vfpv2-ldr_immediate.s create mode 100644 gas/testsuite/gas/arm/vfpv3-ldr_immediate.d create mode 100644 gas/testsuite/gas/arm/vfpv3-ldr_immediate.s create mode 100644 gas/testsuite/gas/arm/vfpv3xd-ldr_immediate.d create mode 100644 gas/testsuite/gas/arm/vfpv3xd-ldr_immediate.s create mode 100644 gdb/testsuite/gdb.base/gdbhistsize-history.exp create mode 100644 sim/common/sim-syscall.c create mode 100644 sim/common/sim-syscall.h First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index aeda144..626d49a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,44 @@ +2015-06-18 Nick Clifton <nickc@redhat.com> + + PR 18481 + * elf32-arm.c (R_ARM_TLS_LE32): Set the special function to NULL. + +2015-06-15 Jon Turney <jon.turney@dronecode.org.uk> + + * bfd.c: Change struct bfd_build_id to use bfd_size_type. + * bfd-in2.h : Regenerate. + +2015-06-16 Alan Modra <amodra@gmail.com> + + * elf32-ppc.c (ppc_elf_relocate_section): Correct binary search of + dynamic relocs. + +2015-06-10 Jon Turney <jon.turney@dronecode.org.uk> + + * elf-bfd.h : Remove struct elf_build_id. + * bfd.c : Add struct bfd_build_id. + * bfd-in2.h: Regenerate. + * elf.c (elfobj_grok_gnu_build_id): Update to use bfd_build_id. + * libpei.h: Add protoype and macros for + bfd_XXi_slurp_codeview_record. + * peXXigen.c (_bfd_XXi_slurp_codeview_record): Make public + * peicode.h (pe_bfd_read_buildid): Add. + (pe_bfd_object_p): Use pe_bfd_read_buildid(). + +2015-06-15 Renlin Li <renlin.li@arm.com> + + * reloc.c (BFD_RELOC_AARCH64_LD64_GOTOFF_LO15): New entry. + * bfd-in2.h: Regenerate. + * libbfd.h: Regenerate. + * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for + BFD_RELOC_AARCH64_LD64_GOTOFF_LO15. + +2015-06-15 Alan Modra <amodra@gmail.com> + + * cofflink.c (_bfd_coff_generic_relocate_section): Revert + 2014-03-26 change. Call _bfd_clear_contents for relocs against + local and global symbols defined in discarded input sections. + 2015-06-05 Nick Clifton <nickc@redhat.com> * elf32-msp430.c (rl78_sym_diff_handler): New function. diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 09331bd..2d32c74 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -5737,6 +5737,10 @@ the GOT entry for this symbol. Used in conjunction with BFD_RELOC_AARCH64_ADR_GOTPAGE. Valid in ILP32 ABI only. */ BFD_RELOC_AARCH64_LD32_GOT_LO12_NC, +/* Unsigned 15 bit byte offset for 64 bit load/store from the page of +the GOT entry for this symbol. Valid in ILP64 ABI only. */ + BFD_RELOC_AARCH64_LD64_GOTOFF_LO15, + /* Scaled 14 bit byte offset to the page base of the global offset table. */ BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14, @@ -6322,6 +6326,12 @@ enum bfd_plugin_format bfd_plugin_no = 2 }; +struct bfd_build_id + { + bfd_size_type size; + bfd_byte data[1]; + }; + struct bfd { /* The filename the application opened the BFD with. */ @@ -6606,6 +6616,9 @@ struct bfd struct objalloc *, but we use void * to avoid requiring the inclusion of objalloc.h. */ void *memory; + + /* For input BFDs, the build ID, if the object has one. */ + const struct bfd_build_id *build_id; }; /* See note beside bfd_set_section_userdata. */ diff --git a/bfd/bfd.c b/bfd/bfd.c index ab410cb..8d85de5 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -51,6 +51,12 @@ CODE_FRAGMENT . bfd_plugin_no = 2 . }; . +.struct bfd_build_id +. { +. bfd_size_type size; +. bfd_byte data[1]; +. }; +. .struct bfd .{ . {* The filename the application opened the BFD with. *} @@ -335,6 +341,9 @@ CODE_FRAGMENT . struct objalloc *, but we use void * to avoid requiring the inclusion . of objalloc.h. *} . void *memory; +. +. {* For input BFDs, the build ID, if the object has one. *} +. const struct bfd_build_id *build_id; .}; . .{* See note beside bfd_set_section_userdata. *} diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 0ac10de..c1541d1 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -2915,6 +2915,7 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd, struct internal_syment *sym; bfd_vma addend; bfd_vma val; + asection *sec; reloc_howto_type *howto; bfd_reloc_status_type rstat; @@ -2965,11 +2966,9 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd, } val = 0; - + sec = NULL; if (h == NULL) { - asection *sec; - if (symndx == -1) { sec = bfd_abs_section_ptr; @@ -2978,11 +2977,6 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd, else { sec = sections[symndx]; - - /* If the output section has been discarded then ignore this reloc. */ - if (sec->output_section->vma == 0) - continue; - val = (sec->output_section->vma + sec->output_offset + sym->n_value); @@ -2996,8 +2990,6 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd, || h->root.type == bfd_link_hash_defweak) { /* Defined weak symbols are a GNU extension. */ - asection *sec; - sec = h->root.u.def.section; val = (h->root.u.def.value + sec->output_section->vma @@ -3018,7 +3010,6 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd, will resolve a weak external only if a normal external causes the library member to be linked. See also linker.c: generic_link_check_archive_element. */ - asection *sec; struct coff_link_hash_entry *h2 = h->auxbfd->tdata.coff_obj_data->sym_hashes[ h->aux->x_sym.x_tagndx.l]; @@ -3049,6 +3040,15 @@ _bfd_coff_generic_relocate_section (bfd *output_bfd, } } + /* If the input section defining the symbol has been discarded + then zero this reloc field. */ + if (sec != NULL && discarded_section (sec)) + { + _bfd_clear_contents (howto, input_bfd, input_section, + contents + (rel->r_vaddr - input_section->vma)); + continue; + } + if (info->base_file) { /* Emit a reloc if the backend thinks it needs it. */ diff --git a/bfd/doc/ChangeLog b/bfd/doc/ChangeLog index 07682da..8bf8880 100644 --- a/bfd/doc/ChangeLog +++ b/bfd/doc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-21 Alan Modra <amodra@gmail.com> + + * Makefile.am: Expand $<. + * Makefile.in: Regenerate. + 2015-02-11 Pedro Alves <palves@redhat.com> * Makefile.am (libbfd.h, libcoff.h): Close extern "C" scope. diff --git a/bfd/doc/Makefile.am b/bfd/doc/Makefile.am index 52da14e..b6e8335 100644 --- a/bfd/doc/Makefile.am +++ b/bfd/doc/Makefile.am @@ -96,21 +96,21 @@ protos: libbfd.h libcoff.h bfd.h aoutx.texi: aoutx.stamp ; @true aoutx.stamp: $(srcdir)/../aoutx.h $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >aoutx.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../aoutx.h >aoutx.tmp test -e aoutx.texi || test ! -f $(srcdir)/aoutx.texi || cp -p $(srcdir)/aoutx.texi . $(SHELL) $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi touch $@ archive.texi: archive.stamp ; @true archive.stamp: $(srcdir)/../archive.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >archive.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archive.c >archive.tmp test -e archive.texi || test ! -f $(srcdir)/archive.texi || cp -p $(srcdir)/archive.texi . $(SHELL) $(srcdir)/../../move-if-change archive.tmp archive.texi touch $@ archures.texi: archures.stamp ; @true archures.stamp: $(srcdir)/../archures.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >archures.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.tmp test -e archures.texi || test ! -f $(srcdir)/archures.texi || cp -p $(srcdir)/archures.texi . $(SHELL) $(srcdir)/../../move-if-change archures.tmp archures.texi touch $@ @@ -119,133 +119,133 @@ archures.stamp: $(srcdir)/../archures.c $(srcdir)/doc.str $(MKDOC) # bfd.texinfo on an 8.3 filesystem. bfdt.texi: bfdt.stamp ; @true bfdt.stamp: $(srcdir)/../bfd.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >bfd.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.tmp test -e bfdt.texi || test ! -f $(srcdir)/bfdt.texi || cp -p $(srcdir)/bfdt.texi . $(SHELL) $(srcdir)/../../move-if-change bfd.tmp bfdt.texi touch $@ cache.texi: cache.stamp ; @true cache.stamp: $(srcdir)/../cache.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >cache.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.tmp test -e cache.texi || test ! -f $(srcdir)/cache.texi || cp -p $(srcdir)/cache.texi . $(SHELL) $(srcdir)/../../move-if-change cache.tmp cache.texi touch $@ coffcode.texi: coffcode.stamp ; @true coffcode.stamp: $(srcdir)/../coffcode.h $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >coffcode.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../coffcode.h >coffcode.tmp test -e coffcode.texi || test ! -f $(srcdir)/coffcode.texi || cp -p $(srcdir)/coffcode.texi . $(SHELL) $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi touch $@ core.texi: core.stamp ; @true core.stamp: $(srcdir)/../corefile.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >core.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../corefile.c >core.tmp test -e core.texi || test ! -f $(srcdir)/core.texi || cp -p $(srcdir)/core.texi . $(SHELL) $(srcdir)/../../move-if-change core.tmp core.texi touch $@ elf.texi: elf.stamp ; @true elf.stamp: $(srcdir)/../elf.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >elf.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../elf.c >elf.tmp test -e elf.texi || test ! -f $(srcdir)/elf.texi || cp -p $(srcdir)/elf.texi . $(SHELL) $(srcdir)/../../move-if-change elf.tmp elf.texi touch $@ elfcode.texi: elfcode.stamp ; @true elfcode.stamp: $(srcdir)/../elfcode.h $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >elfcode.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../elfcode.h >elfcode.tmp test -e elfcode.texi || test ! -f $(srcdir)/elfcode.texi || cp -p $(srcdir)/elfcode.texi . $(SHELL) $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi touch $@ mmo.texi: mmo.stamp ; @true mmo.stamp: $(srcdir)/../mmo.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >mmo.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../mmo.c >mmo.tmp test -e mmo.texi || test ! -f $(srcdir)/mmo.texi || cp -p $(srcdir)/mmo.texi . $(SHELL) $(srcdir)/../../move-if-change mmo.tmp mmo.texi touch $@ format.texi: format.stamp ; @true format.stamp: $(srcdir)/../format.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >format.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../format.c >format.tmp test -e format.texi || test ! -f $(srcdir)/format.texi || cp -p $(srcdir)/format.texi . $(SHELL) $(srcdir)/../../move-if-change format.tmp format.texi touch $@ libbfd.texi: libbfd.stamp ; @true libbfd.stamp: $(srcdir)/../libbfd.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >libbfd.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.tmp test -e libbfd.texi || test ! -f $(srcdir)/libbfd.texi || cp -p $(srcdir)/libbfd.texi . $(SHELL) $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi touch $@ bfdio.texi: bfdio.stamp ; @true bfdio.stamp: $(srcdir)/../bfdio.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >bfdio.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdio.c >bfdio.tmp test -e bfdio.texi || test ! -f $(srcdir)/bfdio.texi || cp -p $(srcdir)/bfdio.texi . $(SHELL) $(srcdir)/../../move-if-change bfdio.tmp bfdio.texi touch $@ bfdwin.texi: bfdwin.stamp ; @true bfdwin.stamp: $(srcdir)/../bfdwin.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >bfdwin.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdwin.c >bfdwin.tmp test -e bfdwin.texi || test ! -f $(srcdir)/bfdwin.texi || cp -p $(srcdir)/bfdwin.texi . $(SHELL) $(srcdir)/../../move-if-change bfdwin.tmp bfdwin.texi touch $@ opncls.texi: opncls.stamp ; @true opncls.stamp: $(srcdir)/../opncls.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >opncls.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../opncls.c >opncls.tmp test -e opncls.texi || test ! -f $(srcdir)/opncls.texi || cp -p $(srcdir)/opncls.texi . $(SHELL) $(srcdir)/../../move-if-change opncls.tmp opncls.texi touch $@ reloc.texi: reloc.stamp ; @true reloc.stamp: $(srcdir)/../reloc.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >reloc.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../reloc.c >reloc.tmp test -e reloc.texi || test ! -f $(srcdir)/reloc.texi || cp -p $(srcdir)/reloc.texi . $(SHELL) $(srcdir)/../../move-if-change reloc.tmp reloc.texi touch $@ section.texi: section.stamp ; @true section.stamp: $(srcdir)/../section.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >section.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../section.c >section.tmp test -e section.texi || test ! -f $(srcdir)/section.texi || cp -p $(srcdir)/section.texi . $(SHELL) $(srcdir)/../../move-if-change section.tmp section.texi touch $@ syms.texi: syms.stamp ; @true syms.stamp: $(srcdir)/../syms.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >syms.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../syms.c >syms.tmp test -e syms.texi || test ! -f $(srcdir)/syms.texi || cp -p $(srcdir)/syms.texi . $(SHELL) $(srcdir)/../../move-if-change syms.tmp syms.texi touch $@ targets.texi: targets.stamp ; @true targets.stamp: $(srcdir)/../targets.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >targets.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../targets.c >targets.tmp test -e targets.texi || test ! -f $(srcdir)/targets.texi || cp -p $(srcdir)/targets.texi . $(SHELL) $(srcdir)/../../move-if-change targets.tmp targets.texi touch $@ init.texi: init.stamp ; @true init.stamp: $(srcdir)/../init.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >init.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../init.c >init.tmp test -e init.texi || test ! -f $(srcdir)/init.texi || cp -p $(srcdir)/init.texi . $(SHELL) $(srcdir)/../../move-if-change init.tmp init.texi touch $@ hash.texi: hash.stamp ; @true hash.stamp: $(srcdir)/../hash.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >hash.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../hash.c >hash.tmp test -e hash.texi || test ! -f $(srcdir)/hash.texi || cp -p $(srcdir)/hash.texi . $(SHELL) $(srcdir)/../../move-if-change hash.tmp hash.texi touch $@ linker.texi: linker.stamp ; @true linker.stamp: $(srcdir)/../linker.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >linker.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../linker.c >linker.tmp test -e linker.texi || test ! -f $(srcdir)/linker.texi || cp -p $(srcdir)/linker.texi . $(SHELL) $(srcdir)/../../move-if-change linker.tmp linker.texi touch $@ diff --git a/bfd/doc/Makefile.in b/bfd/doc/Makefile.in index cb9a214..74be3cb 100644 --- a/bfd/doc/Makefile.in +++ b/bfd/doc/Makefile.in @@ -798,21 +798,21 @@ protos: libbfd.h libcoff.h bfd.h aoutx.texi: aoutx.stamp ; @true aoutx.stamp: $(srcdir)/../aoutx.h $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >aoutx.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../aoutx.h >aoutx.tmp test -e aoutx.texi || test ! -f $(srcdir)/aoutx.texi || cp -p $(srcdir)/aoutx.texi . $(SHELL) $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi touch $@ archive.texi: archive.stamp ; @true archive.stamp: $(srcdir)/../archive.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >archive.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archive.c >archive.tmp test -e archive.texi || test ! -f $(srcdir)/archive.texi || cp -p $(srcdir)/archive.texi . $(SHELL) $(srcdir)/../../move-if-change archive.tmp archive.texi touch $@ archures.texi: archures.stamp ; @true archures.stamp: $(srcdir)/../archures.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >archures.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.tmp test -e archures.texi || test ! -f $(srcdir)/archures.texi || cp -p $(srcdir)/archures.texi . $(SHELL) $(srcdir)/../../move-if-change archures.tmp archures.texi touch $@ @@ -821,133 +821,133 @@ archures.stamp: $(srcdir)/../archures.c $(srcdir)/doc.str $(MKDOC) # bfd.texinfo on an 8.3 filesystem. bfdt.texi: bfdt.stamp ; @true bfdt.stamp: $(srcdir)/../bfd.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >bfd.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.tmp test -e bfdt.texi || test ! -f $(srcdir)/bfdt.texi || cp -p $(srcdir)/bfdt.texi . $(SHELL) $(srcdir)/../../move-if-change bfd.tmp bfdt.texi touch $@ cache.texi: cache.stamp ; @true cache.stamp: $(srcdir)/../cache.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >cache.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.tmp test -e cache.texi || test ! -f $(srcdir)/cache.texi || cp -p $(srcdir)/cache.texi . $(SHELL) $(srcdir)/../../move-if-change cache.tmp cache.texi touch $@ coffcode.texi: coffcode.stamp ; @true coffcode.stamp: $(srcdir)/../coffcode.h $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >coffcode.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../coffcode.h >coffcode.tmp test -e coffcode.texi || test ! -f $(srcdir)/coffcode.texi || cp -p $(srcdir)/coffcode.texi . $(SHELL) $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi touch $@ core.texi: core.stamp ; @true core.stamp: $(srcdir)/../corefile.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >core.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../corefile.c >core.tmp test -e core.texi || test ! -f $(srcdir)/core.texi || cp -p $(srcdir)/core.texi . $(SHELL) $(srcdir)/../../move-if-change core.tmp core.texi touch $@ elf.texi: elf.stamp ; @true elf.stamp: $(srcdir)/../elf.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >elf.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../elf.c >elf.tmp test -e elf.texi || test ! -f $(srcdir)/elf.texi || cp -p $(srcdir)/elf.texi . $(SHELL) $(srcdir)/../../move-if-change elf.tmp elf.texi touch $@ elfcode.texi: elfcode.stamp ; @true elfcode.stamp: $(srcdir)/../elfcode.h $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >elfcode.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../elfcode.h >elfcode.tmp test -e elfcode.texi || test ! -f $(srcdir)/elfcode.texi || cp -p $(srcdir)/elfcode.texi . $(SHELL) $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi touch $@ mmo.texi: mmo.stamp ; @true mmo.stamp: $(srcdir)/../mmo.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >mmo.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../mmo.c >mmo.tmp test -e mmo.texi || test ! -f $(srcdir)/mmo.texi || cp -p $(srcdir)/mmo.texi . $(SHELL) $(srcdir)/../../move-if-change mmo.tmp mmo.texi touch $@ format.texi: format.stamp ; @true format.stamp: $(srcdir)/../format.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >format.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../format.c >format.tmp test -e format.texi || test ! -f $(srcdir)/format.texi || cp -p $(srcdir)/format.texi . $(SHELL) $(srcdir)/../../move-if-change format.tmp format.texi touch $@ libbfd.texi: libbfd.stamp ; @true libbfd.stamp: $(srcdir)/../libbfd.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >libbfd.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.tmp test -e libbfd.texi || test ! -f $(srcdir)/libbfd.texi || cp -p $(srcdir)/libbfd.texi . $(SHELL) $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi touch $@ bfdio.texi: bfdio.stamp ; @true bfdio.stamp: $(srcdir)/../bfdio.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >bfdio.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdio.c >bfdio.tmp test -e bfdio.texi || test ! -f $(srcdir)/bfdio.texi || cp -p $(srcdir)/bfdio.texi . $(SHELL) $(srcdir)/../../move-if-change bfdio.tmp bfdio.texi touch $@ bfdwin.texi: bfdwin.stamp ; @true bfdwin.stamp: $(srcdir)/../bfdwin.c $(srcdir)/doc.str $(MKDOC) - ./$(MKDOC) -f $(srcdir)/doc.str < $< >bfdwin.tmp + ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdwin.c >bfdwin.tmp test -e bfdwin.texi || test ! -f $(srcdir)/bfdwin.texi || cp -p $(srcdir)/bfdwin.texi . $(SHELL) $(srcdir)/../../move-if-change bfdwin.tmp bfdwin.texi touch $@ opncls.texi: opncls.stamp ; @true opncls.stamp: $(srcdir)/../opncls.c $(srcdir)/doc.str $(MKDOC) hooks/post-receive -- Repository for Project Archer.
next reply other threads:[~2015-06-21 10:15 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-06-21 10:15 jkratoch [this message] -- strict thread matches above, loose matches on Subject: below -- 2015-08-03 20:36 jkratoch 2015-07-23 17:19 jkratoch 2015-06-14 19:25 jkratoch 2015-06-07 20:03 jkratoch 2015-06-07 20:02 jkratoch 2014-03-19 22:17 jkratoch 2014-03-19 21:22 jkratoch 2014-03-08 19:58 jkratoch 2014-03-03 20:58 jkratoch 2014-03-02 19:50 jkratoch 2014-03-02 18:52 jkratoch 2014-03-02 9:51 jkratoch
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20150621101510.51806.qmail@sourceware.org \ --to=jkratoch@sourceware.org \ --cc=archer-commits@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).