From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76411 invoked by alias); 14 Jun 2015 19:25:06 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 76387 invoked by uid 9674); 14 Jun 2015 19:25:04 -0000 Date: Sun, 14 Jun 2015 19:25:00 -0000 Message-ID: <20150614192503.76257.qmail@sourceware.org> From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] jankratochvil/gdbserverbuildid: Tests for validate symbol file using build-id X-Git-Refname: refs/heads/jankratochvil/gdbserverbuildid X-Git-Reftype: branch X-Git-Oldrev: 971aa2604ea2e262dbac28d57933bca8201a6864 X-Git-Newrev: a81afb9374b5dedf828880578f3273d5384725ca X-SW-Source: 2015-q2/txt/msg00005.txt.bz2 List-Id: The branch, jankratochvil/gdbserverbuildid has been updated discards 971aa2604ea2e262dbac28d57933bca8201a6864 (commit) discards f731f7f528e35eb10cf1b85e68a66e76ae6f1221 (commit) discards ccf6b2eff2b3d32f909b57deb827c8fd5e1cce19 (commit) discards ef8112f078a7a4d249b0559c502c0bd5e9b20e9f (commit) discards 807bb225ca8d798ca9941cb92ab0cfccb6f37e79 (commit) discards 3fefa8e1732c0e68991ea9cfee838d47ebad2f41 (commit) discards 9fcdf3207245c9f72297a605afb36923f1b664bf (commit) discards 5831b3f425ada0169cde276ebfff6d3b4a093839 (commit) discards 7cf1e8a8effcdc2029a8fb9a919024619b9e9296 (commit) discards 465f7e286a70f79cf966ea9d3c9ff5e0ac65df33 (commit) via a81afb9374b5dedf828880578f3273d5384725ca (commit) via ceed3af7a1aa7d83a967b6928b1861418d9f3bc0 (commit) via 9c2f5f476d31ebcc178b4095f4ac2630cd3afcd4 (commit) via 5b351163be7a565dacb57e8e34e94c244e68a129 (commit) via c344359ec80d293d9282251bf4dbd420b0c883e6 (commit) via f4fa062a5712a89c8ef028ecbba63b3edd8250cc (commit) via 534f55ce30a6758fb7a705c545378f4ff1b2a1e1 (commit) via e0d3ba8e35c166a0822aa27db66cfd591d91b809 (commit) via 3e7c04e7321c20d0a6d511ca7dbefd9b5bff85e9 (commit) via 8cf548082b11540b6272c6b9a52e2ec729c07aca (commit) via ebfe52f99cf11c847ca2aea544f7b8d2206a4df4 (commit) via 51f0e40d6502cb873d8120f8bbd5a345db1c5914 (commit) via 644dbd876c3f39eb1279cec5680e52fa20bb9ac3 (commit) via 2f0c79aa61e82cbc5da4b9ab399362b2cdd8ea2e (commit) via d309493c38fcef624f6f85aee4aa37f4f9e3e62a (commit) via 3374165f51fa3cc3ce1b1bf8c72293464da9d511 (commit) via 99a2c56121247207d4846fe7e28b5e7e18e0bfa0 (commit) via 279a6fed95275b480d50f6f1d80a4f3970a9c5bc (commit) via aaa9dc0170d5a2c09712f65f38dd308e7cfd4df0 (commit) via 306f4178efa1851c411438aea39ddc553bc3070d (commit) via a1da2672bdc5adc551ad30d73eccea902063f583 (commit) via a34870829162e3276a9e0152efe2c7de5677a0c3 (commit) via 5b064994f0e7d8a7bfa0b4b080a360ecd9d2af82 (commit) via 98aa42ee02c56378cecb737d01c27adca36bf48f (commit) via 0054dcd7b6a815ce178c464f7a1b7e7fce7df3e4 (commit) via bb11f3ed2bd9eeddca84cc3a80c3643ddae517f3 (commit) via 29bc024d07fe480cd37f36097f23d5585b15e71c (commit) via bffcfec8c3a15b669579b67d5b626c4d14b2b6df (commit) via 53d2389fd01ea7eaa83bb2727efd64c9904951ec (commit) via 3604cb1f8ca4a926039a9540d03bb224d84af3e1 (commit) via db7858e227f3951c665410314fca62c77349ac24 (commit) via 966f0aefa6a96df2c45ec36a7ecc02419e3842db (commit) via 5c4f4e4a8a774318fd49f6002a002836e4d61197 (commit) via 18c208b2292f3c61097dee99053ecab78b393e46 (commit) via 5d7908e0880030628536a0266968a15922574735 (commit) via dd68f8fa8e2412c5c16380871d8ac5e40909aef6 (commit) via a3a0c39166742c9ef9bb5d87ab51320b7f62cb92 (commit) via c1d8560ea5721191e30e2fcad720345730918497 (commit) via 83034798de7d11d2e26b3760e26b2c9cadec9fd4 (commit) via ce4eda4a58d4634577cf998b928572bed6779246 (commit) via a6c2a374e05770dd7469e050f5d6603e3f034f17 (commit) via 9b9c712cebc08f4242fdcf3b12c057f57bd1b589 (commit) via 66a19e2f815060e69d2e38f9319ed827fce67399 (commit) via 09896bd2234218a8ff3617e1043a1e72da2587f6 (commit) via a84f8df0e2027400910e339824444dc45ba6e4f4 (commit) via 926b1cd8cffbcd8cf2d37e779463a4e7e696f73b (commit) via 6449ed0d3a78ba8c25e8a634f8d6ed120a4cac7f (commit) via 34f8ac9f490fc38a07d03ec8e425c06a2bb737b2 (commit) via 2cc78d4dd7cb533024eab3a59fb278e03fb51c87 (commit) via 96eaf29ec4df2f81be180cfeabdb9b26492e8264 (commit) via b0e4c8a581c689da0c3e7319c03a8cc60d64a2f2 (commit) via 5d19c36612c6b08627280bb0063ad1222b0a92dd (commit) via 31557eccb23b478e049b5eb7db3cb144c6533ee5 (commit) via 198c808c87eac2d4605962c2f19191c8ca24d268 (commit) via 970cdef2612b098b457345025a08aba800991722 (commit) via 6e737c31868eb2cc6b56ebdd5a0497a39d53e622 (commit) via e815d2d2714a395d11abb350eff385931257ed9a (commit) via 8847cac2f7ce6ff2c13fa611660c2dfc59c78272 (commit) via a48d0c12f893a922692492829f04189d9f216172 (commit) via 24c05f46059182f0c8768c6ebbb66b4ca3233ecc (commit) via 51aad7cc44161ebbd2eea80647391c692ae330ac (commit) via 14d2069a321cdd2b06f1982e6832c8c5661febf4 (commit) via 15a201c844e770d3c6edf174b9ef6596fbae7eb2 (commit) via 7a6a173129107538574949116c0ce1c0ead589b4 (commit) via 07c138c8ae2b11d417c9799202363a95a2d06881 (commit) via 12e2a5fdccfc6857c57d2e0a1c1e5fd136a94025 (commit) via 9bc3a9760b22a6187fdce6abc3df8f0c1d483a21 (commit) via 4b8b5e72451d5b9da4000b8346b20035833aa087 (commit) via ca09583623ab77362186a9fd1ae260c38dcab470 (commit) via 5d9c55d355c8e5c688caa3fe43c0d95d538daf35 (commit) via 040ea00bb02018cbe21ba732f68134ac91f370d2 (commit) via 7d73c23c4d8cf727528ac5a34a787e44a30d98cc (commit) via 29c1c24429a099eca297080dba56a8c090e3136a (commit) via 422d944b03535efba6187bbd9e35e87f73767dd7 (commit) via 547a646d67e7a38b96d2a93b709e52c9461d017f (commit) via 8b600ba2b47c9ae56c21f1abdfeb1eb5510d9615 (commit) via e5796f023338867d1fed85b4908069f099122758 (commit) via bb9e16d4bb717968b92130344d0f5dc3babedaaa (commit) via f419f52b9b04f2e45dd11542c6531a48ba0e0d13 (commit) via 509c2f329a42646e64c7c3e8796f8b3bbd904032 (commit) via 3ac2e371a1abd1279f66477aa4fc68039da1872e (commit) via ecef18c564bd609aa7640564747b807bfe1632c6 (commit) via f5316771bd0cf89578450be0460908beeef4dbb5 (commit) via 1e1b2efc461dad176d4e0473d6e3d3686b5abdfc (commit) via f0e8c65e02e84ceb85b569508aa4f54ecb0a8abe (commit) via 80fb91378c91a8239817a5ab2b1c3e346109db25 (commit) via b8cf50755b573140aae71f7247b604373fcdfbeb (commit) from 971aa2604ea2e262dbac28d57933bca8201a6864 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit a81afb9374b5dedf828880578f3273d5384725ca Author: Jan Kratochvil Date: Sun Jun 14 16:46:05 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 Date: Sun Jun 14 16:46:05 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 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 * gdb.texinfo (Files): Add 'set solib-build-id-force' and 'show solib-build-id-force'. commit 9c2f5f476d31ebcc178b4095f4ac2630cd3afcd4 Author: Jan Kratochvil Date: Sun Jun 14 16:46:04 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 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 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 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 5b351163be7a565dacb57e8e34e94c244e68a129 Author: Jan Kratochvil Date: Sun Jun 14 16:46:04 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 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 * 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 c344359ec80d293d9282251bf4dbd420b0c883e6 Author: Jan Kratochvil Date: Sun Jun 14 16:46:04 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 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 f4fa062a5712a89c8ef028ecbba63b3edd8250cc Author: Jan Kratochvil Date: Sun Jun 14 16:46:04 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 * 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 * Makefile.in (OBS): Add gdb_regex.o. (gdb_regex.o): New. * config.in: Rebuilt. * configure: Rebuilt. commit 534f55ce30a6758fb7a705c545378f4ff1b2a1e1 Author: Jan Kratochvil Date: Sun Jun 14 16:46:03 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 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 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 e0d3ba8e35c166a0822aa27db66cfd591d91b809 Author: Jan Kratochvil Date: Sun Jun 14 16:46:03 2015 +0200 Code cleanup: Rename enum -> enum filterflags Hi Sergio, this is an unrelated cleanup, 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) New patch, not yet reviewed before. Jan gdb/ChangeLog 2015-06-07 Jan Kratochvil * 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 3e7c04e7321c20d0a6d511ca7dbefd9b5bff85e9 Author: Jan Kratochvil Date: Sun Jun 14 16:46:03 2015 +0200 Merge multiple hex conversions Hi, here most of the patch has been reimplemented in the meantime and this is only a small remaint. Approved by: https://sourceware.org/ml/gdb-patches/2014-05/msg00366.html Jan gdb/gdbserver/ChangeLog 2014-02-26 Aleksandar Ristovski Merge multiple hex conversions. * gdbreplay.c (tohex): Rename to 'fromhex'. (logchar): Use fromhex. gdb/ChangeLog 2014-02-26 Aleksandar Ristovski Merge multiple hex conversions. * monitor.c: Include rsp-low.h. (fromhex): Remove definition. commit 8cf548082b11540b6272c6b9a52e2ec729c07aca Author: Jan Kratochvil Date: Sun Jun 14 16:46:03 2015 +0200 Move utility functions to common/ Hi, some parts of the former patch have been reimplemented in the meantime by other patches so this is only a part of the former cleanup. Approved by: https://sourceware.org/ml/gdb-patches/2014-05/msg00363.html Jan gdb/ChangeLog 2014-02-26 Aleksandar Ristovski 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 ebfe52f99cf11c847ca2aea544f7b8d2206a4df4 Author: GDB Administrator Date: Sun Jun 14 00:00:08 2015 +0000 Automatic date update in version.in commit 51f0e40d6502cb873d8120f8bbd5a345db1c5914 Author: Andrew Burgess Date: Tue May 26 23:23:23 2015 +0100 gdb: Rework command completion on 'tui reg'. We previously specified a few known register groups for the 'tui reg' command. Other register groups could be accessed, but only by using the 'tui reg next' command and cycling through all the groups. This commit removes the hard coded sub-commands of 'tui reg' and instead adds dynamic completion of sub-commands based on the architecturally defined register groups, giving immediate access to all available register groups. There is still the 'next' and 'prev' commands for cycling through the register groups if that's wanted. The new code maintains the ability to only enter partial names for register groups, which is something we got for free when using the standard sub-command mechanism. The register (and register group) completer has been changed to use get_current_arch rather than using the architecture of the currently selected frame. When the target is running, this is equivalent, however, when the target is not running, using get_current_arch will provide results from the default architecture. gdb/ChangeLog: * completer.c: Add arch-utils.h include. (enum reg_completer_targets): New enum. (reg_or_group_completer_1): New function containing old reg_or_group_completer, add and use new parameter to control what is completed on. Use get_current_arch rather than architecture of currently selected frame. (reg_or_group_completer): Call new reg_or_group_completer_1. (reggroup_completer): Call new reg_or_group_completer_1. * completer.h (reggroup_completer): Add declaration. * tui/tui-regs.c: Add 'completer.h' include. (tui_reg_next_command): Renamed to... (tui_reg_next): ...this. Adjust parameters and return rather than display new group. (tui_reg_prev_command): Renamed to... (tui_reg_prev): ...this. Adjust parameters and return rather than display new group. (tui_reg_float_command): Delete. (tui_reg_general_command): Delete. (tui_reg_system_command): Delete. (tui_reg_command): Rewrite to perform switching of register group. Add header comment. (tuireglist): Remove. (tui_reggroup_completer): New function. (_initialize_tui_regs): Remove 'tui reg' sub-commands, update creation of 'tui reg' command. * NEWS: Add comment about 'tui reg' changes. gdb/doc/ChangeLog: * gdb.texinfo (TUI Commands): Bring all 'tui reg' commands into a single table entry. commit 644dbd876c3f39eb1279cec5680e52fa20bb9ac3 Author: GDB Administrator Date: Sat Jun 13 00:00:08 2015 +0000 Automatic date update in version.in commit 2f0c79aa61e82cbc5da4b9ab399362b2cdd8ea2e Author: Han Shen Date: Wed Jun 10 14:50:26 2015 -0700 [gold][aarch64] Fix erratum 835769. gold/ChangeLog: * aarch64.cc (AArch64_insn_utilities::BYTES_PER_INSN): Move defintion outside class definition. (AArch64_insn_utilities::AARCH64_ZR): New static constant. (AArch64_insn_utilities::aarch64_op31): New member. (AArch64_insn_utilities::aarch64_ra): New member. (AArch64_insn_utilities::aarch64_mac): New member. (AArch64_insn_utilities::aarch64_mlxl): New member. (ST_E_835769): New global enum member. (Stub_table::relocate_stubs): Add 835769 handler. (Stub_template_repertoire::Stub_template_repertoire): Install new stub type. (AArch64_relobj::scan_errata): This func is renamed from scan_erratum_843419. (AArch64_relobj::do_count_local_symbols): Add 835769 handler. (AArch64_relobj::do_relocate_sections): Add 835769 handler. (AArch64_relobj::scan_sections_for_stubs): Add 835769 handler. (Target_aarch64::scan_erratum_835769_span): New method. (Target_aarch64::create_erratum_stub): New method. (Target_aarch64::is_erratum_835769_sequence): New method. (Target_aarch64::scan_erratum_843419_sequence): Move part of the code into create_erratum_stub. * options.h (fix_cortex_a53_835769): New option. commit d309493c38fcef624f6f85aee4aa37f4f9e3e62a Author: Simon Marchi Date: Fri Jun 12 17:02:44 2015 -0400 target: consider addressable unit size when reading/writing memory If we are reading/writing from a memory object, the length represents the number of "addresses" to read/write, so the addressable unit size needs to be taken into account when allocating memory on gdb's side. gdb/ChangeLog: * target.c (target_read): Consider addressable unit size when reading from a memory object. (read_memory_robust): Same. (read_whatever_is_readable): Same. (target_write_with_progress): Consider addressable unit size when writing to a memory object. * target.h (target_read): Update documentation. (target_write): Add documentation. commit 3374165f51fa3cc3ce1b1bf8c72293464da9d511 Author: Simon Marchi Date: Fri Jun 12 16:51:51 2015 -0400 gdbarch: add addressable_memory_unit_size method Add a new gdbarch method to get the length of an addressable memory unit for a given architecture. The default implementation returns 1. gdb/ChangeLog: * arch-utils.h (default_addressable_memory_unit_size): New. * arch-utils.c (default_addressable_memory_unit_size): New. * gdbarch.sh (addressable_memory_unit_size): New. * gdbarch.h: Re-generate. * gdbarch.c: Re-generate. commit 99a2c56121247207d4846fe7e28b5e7e18e0bfa0 Author: Peter Bergner Date: Fri Jun 12 15:06:07 2015 -0500 Remove unused MTMSRD_L macro and re-add accidentally deleted comment. In the commit that added PowerPC Pair Singles, Ben accidentally removed a comment and re-added an unused MTMSRD_L macro Alan had recently deleted. This was probably just an oversite when he was refreshing his patch to trunk. opcodes/ * ppc-opc.c: Add comment accidentally removed by old commit. (MTMSRD_L): Delete. commit 279a6fed95275b480d50f6f1d80a4f3970a9c5bc Author: Simon Marchi Date: Fri Jun 12 13:08:12 2015 -0400 Various cleanups in target read/write code This contains various cleanups in the target memory read and write code. They are not directly related to the non-8-bits changes, but they clarify things a bit down the line. gdb/ChangeLog: * target.c (target_read): Rename variables and use TARGET_XFER_E_IO. (target_read_with_progress): Same. (read_memory_robust): Constify parameters and rename variables. (read_whatever_is_readable): Constify parameters, rename variables, adjust formatting. * target.h (read_memory_robust): Constify parameters. commit aaa9dc0170d5a2c09712f65f38dd308e7cfd4df0 Author: Mike Frysinger Date: Fri Jun 12 12:12:52 2015 -0400 sim: bfin: expand CB_SYS_xxx comment commit 306f4178efa1851c411438aea39ddc553bc3070d Author: Mike Frysinger Date: Fri Jun 12 12:04:42 2015 -0400 sim: update configure.in->configure.ac docs A few places still refer to the configure.in file; update them. commit a1da2672bdc5adc551ad30d73eccea902063f583 Author: Ulrich Weigand Date: Fri Jun 12 17:43:48 2015 +0200 ppc64: Handle short vectors as function return types Short synthetic vector types (i.e. those defined using GCC's attribute ((vector_size)) instead of AltiVec vector types) are returned in r3. Fix ppc64_sysv_abi_return_value to correctly handle this. gdb/ChangeLog: * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short synthetic (non-AltiVec) vector types. (ppc64_sysv_abi_return_value): Likewise. commit a34870829162e3276a9e0152efe2c7de5677a0c3 Author: Mike Frysinger Date: Fri Jun 12 10:32:54 2015 -0400 sim: drop -DTRACE from configure No code uses this anymore and the symbol conflicts with the new TRACE helper. Punt it from configure. commit 5b064994f0e7d8a7bfa0b4b080a360ecd9d2af82 Author: Mike Frysinger Date: Fri Jun 12 19:52:55 2015 +0545 sim: msp430: use new common trace print helpers Replace the "if (TRACE_xxx_P) trace_generic" form with "TRACE_xxx". The output is the same, but the code is nicer to read. commit 98aa42ee02c56378cecb737d01c27adca36bf48f Author: Antoine Tremblay Date: Fri Jun 12 07:58:47 2015 -0400 Fix MI dprintf-insert not printing on a resolved pending location. This patch fixes the "Format string required" error when trying to print a dprintf on a now resolved, pending location when set via the MI interface even if the format string is entered correctly. This patch also adds a test case to check that issue called mi-dprintf-pending.exp. gdb/ChangeLog: PR breakpoints/16465 * breakpoint.c (create_breakpoint): Save extra_string for pending breakpoints. gdb/testsuite/ChangeLog: PR breakpoints/16465 * gdb.mi/mi-dprintf-pending.c: New file. * gdb.mi/mi-dprintf-pending.exp: New test. * gdb.mi/mi-dprintf-pendshr.c: New file. commit 0054dcd7b6a815ce178c464f7a1b7e7fce7df3e4 Author: Mike Frysinger Date: Fri Jun 12 15:38:03 2015 +0545 sim: moxie: use new common trace defines Now that there's common helpers for printing trace data, switch to that to restore the insn tracing support for this target. commit bb11f3ed2bd9eeddca84cc3a80c3643ddae517f3 Author: Mike Frysinger Date: Thu Jun 11 18:28:25 2015 +0800 sim: trace: add common macros for logging info The Blackfin port had some TRACE_xxx macros for easily logging trace data. Use these as a base for common ones that have a simple form and match the existing sets of helper macros. commit 29bc024d07fe480cd37f36097f23d5585b15e71c Author: Mike Frysinger Date: Fri Jun 12 15:51:35 2015 +0545 sim: mips: switch to common WITH_TRACE_ANY_P We want to add new common trace helpers including "TRACE", so change the mips one to the new WITH_TRACE_ANY_P macro since they do the same thing. commit bffcfec8c3a15b669579b67d5b626c4d14b2b6df Author: Mike Frysinger Date: Fri Jun 12 15:52:07 2015 +0545 sim: trace: add WITH_TRACE_ANY_P helper We have STRACE_ANY_P and TRACE_ANY_P, so add WITH_TRACE_ANY_P to fill out the API. This lets us wrap the internal configure symbol. commit 53d2389fd01ea7eaa83bb2727efd64c9904951ec Author: Mike Frysinger Date: Fri Jun 12 15:36:32 2015 +0545 sim: moxie: rename TRACE to MOXIE_TRACE_INSN We want to add new common trace helpers including "TRACE", so rename the moxie one to MOXIE_TRACE_INSN. This also matches what the code is doing. commit 3604cb1f8ca4a926039a9540d03bb224d84af3e1 Author: Tristan Gingold Date: Fri Jun 5 15:09:31 2015 +0200 Add new ld option: --print-memory-usage ld/ * NEWS: Mention new option. * lexsup.c (parse_args): Handle --print-memory-usage. (ld_options): Add --print-memory-usage. * ldmain.c (main): Call lang_print_memory_usage. * ldlex.h (enum option_values): Add OPTION_PRINT_MEMORY_USAGE. * ldlang.h: Add prototype of lang_print_memory_usage. * ldlang.c (lang_print_memory_size, lang_print_memory_usage): New functions. * ld.texinfo (Options): Document --print-memory-usage. * ld.h (args_type): Add print_memory_usage field. ld/testsuite/ * ld-scripts/print-memory-usage-1.t, * ld-scripts/print-memory-usage-1.s, * ld-scripts/print-memory-usage-1.l, * ld-scripts/print-memory-usage-2.t, * ld-scripts/print-memory-usage-2.l, * ld-scripts/print-memory-usage-3.s, * ld-scripts/print-memory-usage-3.t, * ld-scripts/print-memory-usage-3.l, * ld-scripts/print-memory-usage.t: New tests. * ld-scripts/print-memory-usage.exp: Run them. commit db7858e227f3951c665410314fca62c77349ac24 Author: Mike Frysinger Date: Fri Jun 12 13:29:02 2015 +0545 sim: cgen: namespace custom trace functions The cgen code declares some macros/funcs using the trace_xxx prefix, but the code isn't generic and only works with cgen targets. This is blocking the creation of new common trace functions. Let's blindly add cgen_xxx prefixes to all these symbols. Some already use this convention to avoid conflicts, so it makes sense to align them. In the future we might want to move some to the common trace core, but one thing at a time. commit 966f0aefa6a96df2c45ec36a7ecc02419e3842db Author: Walfred Tedeschi Date: Fri Jun 12 09:42:16 2015 +0200 Fix broken GDB build after adding Bound table support for i386. Types used for some variables could not be used for 32 bits, causing a compilation failure. This patch adds a cast to force a quite compilation, but at the same time it bails out in the case that the cast performed is not safe, i.e. in the case where the debuggee is 64bit and debugger is 32bit. Documentation was also affected, once a different version of texinfo the docs could not be build. 2015-06-10 Walfred Tedeschi * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask and bt_mask to CORE_ADDR. doc: * gdb.textinfo (i386): Fix "@end table" end and "@table" placement. commit 5c4f4e4a8a774318fd49f6002a002836e4d61197 Author: GDB Administrator Date: Fri Jun 12 00:00:07 2015 +0000 Automatic date update in version.in commit 18c208b2292f3c61097dee99053ecab78b393e46 Author: John David Anglin Date: Thu Jun 11 18:50:39 2015 -0400 tc-hppa.c: Speed up search for last label commit 5d7908e0880030628536a0266968a15922574735 Author: Cary Coutant Date: Thu Jun 11 13:19:38 2015 -0700 Fix gold build error at -O0. In aarch64.cc, Erratum_stub::STUB_ADDR_ALIGN and Reloc_stub::STUB_ADDR_ALIGN are declared as static const int, and initialized in the class body. These values are referenced from outside the class body, and with no optimization, the references go unresolved. gold/ * aarch64.cc (Erratum_stub::STUB_ADDR_ALIGN): Move initialization outside class body. (Reloc_stub::STUB_ADDR_ALIGN): Likewise. commit dd68f8fa8e2412c5c16380871d8ac5e40909aef6 Author: Cary Coutant Date: Thu Jun 11 10:17:04 2015 -0700 Fix bug where SECTIONS clause does not handle compressed debug sections. When laying out .debug_* sections, we translate the names of compressed debug sections that start with ".zdebug", but when processing input section specs in a linker script, we do not handle the translation there. This results in an internal error as reported in PR 17731. gold/ PR gold/17731 * layout.cc (corresponding_uncompressed_section_name): New function. (Layout::choose_output_section): Call it. * layout.h (corresponding_uncompressed_section_name): New function. * script-sections.cc (Input_section_info::set_section_name): Check for compressed debug section (.zdebug style). commit a3a0c39166742c9ef9bb5d87ab51320b7f62cb92 Author: Jing Yu Date: Thu Jun 11 12:41:36 2015 -0700 Fix broken gold/testsuite/script_test_12 in some setup. This patch adds -O0 to gold script_test_12 test, hoping that compiler won't change the order of globel variables that the test assumes. Changelog: testsuite/Makefile.am: Add -O0 to compile script_test_12 test. testsuite/Makefile.in: Regenerate. commit c1d8560ea5721191e30e2fcad720345730918497 Author: Mike Frysinger Date: Thu Jun 11 21:53:11 2015 +0545 sim: msp430: delete unused trace macros These macros were copied from the Blackfin port but never used, so delete them as part of the trace unification work. commit 83034798de7d11d2e26b3760e26b2c9cadec9fd4 Author: Mike Frysinger Date: Wed Jun 10 18:02:52 2015 +0800 sim: trace: centralize the system tracing First we convert the ETRACE_P to STRACE_EVENTS_P. This means we move from using the sim_events.trace storage to the common sim_state_base.trace_data array. With that deleted, the common trace init code can be simplified so the sim state works the same as the sim cpu. commit ce4eda4a58d4634577cf998b928572bed6779246 Author: Mike Frysinger Date: Wed Jun 10 18:00:09 2015 +0800 sim: trace: add STRACE_xxx_P macros These are the parallel to the TRACE_xxx_P macros and fill out the full set to match the existing debug one. commit a6c2a374e05770dd7469e050f5d6603e3f034f17 Author: Mike Frysinger Date: Wed Jun 10 16:01:29 2015 +0800 sim: trace: use existing defines for the useful mask No point in duplicating the shift logic when we have macros already to keep that all unified. commit 9b9c712cebc08f4242fdcf3b12c057f57bd1b589 Author: Mike Frysinger Date: Wed Jun 10 15:58:03 2015 +0800 sim: trace: create a common WITH_TRACE_P macro This way we can use the IDX macros everywhere and not worry about the encoding of the WITH_TRACE define in multiple places. commit 66a19e2f815060e69d2e38f9319ed827fce67399 Author: Mike Frysinger Date: Wed Jun 10 15:54:16 2015 +0800 sim: frv: drop custom debug mask This is the only sim that sets up its own WITH_TRACE mask and it conflicts with the user setting their own list at configure time. Drop it to match all the other sims. commit 09896bd2234218a8ff3617e1043a1e72da2587f6 Author: Mike Frysinger Date: Tue Jun 9 23:44:25 2015 +0800 sim: m68hc11: delete unused interrupt_names The interrupts.c file has a static/fuller definition that is used, so drop this copy in interp.c. commit a84f8df0e2027400910e339824444dc45ba6e4f4 Author: Mike Frysinger Date: Tue Jun 9 23:44:13 2015 +0800 sim: m68hc11: switch to common sim_resume This code already matched the common sim reusme logic, so we can simply drop it and pull in the common code. commit 926b1cd8cffbcd8cf2d37e779463a4e7e696f73b Author: Mike Frysinger Date: Tue Jun 9 23:38:15 2015 +0800 sim: mn10300: delete unused memory code Only one place used get_word/put_word, so inline the usage there. All the rest is dead code so trim it. commit 6449ed0d3a78ba8c25e8a634f8d6ed120a4cac7f Author: Gary Benson Date: Thu Jun 11 13:38:15 2015 +0100 Use pulongest for printing ssize_t This commit changes the debug printing code in linux-namespaces.c to use pulongest instead of "%ld". gdb/ChangeLog: * nat/linux-namespaces.c (mnsh_send_message): Use pulongest. (mnsh_recv_message): Likewise. commit 34f8ac9f490fc38a07d03ec8e425c06a2bb737b2 Author: Walfred Tedeschi Date: Thu Jun 11 13:48:26 2015 +0200 Fix ARI new warnings introduced in i386-tdep.c. 1. gdb/i386-tdep.c:8720: Do not use 'long long', instead use LONGEST gdb/i386-tdep.c:8720: long long int size; 2. gdb/i386-tdep.c:8755: Do not use printf(%ll), instead use printf(%s,phex()) to dump a 'long long' value gdb/i386-tdep.c:8755: ui_out_field_fmt (uiout, "size", "%lld", size); 2015-06-11 Walfred Tedeschi * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of long long int and plongest instead of %ll. Signed-off-by: Walfred Tedeschi commit 2cc78d4dd7cb533024eab3a59fb278e03fb51c87 Author: Mike Frysinger Date: Tue Jun 9 22:31:51 2015 +0800 sim: mn10300: add missing static markings commit 96eaf29ec4df2f81be180cfeabdb9b26492e8264 Author: Mike Frysinger Date: Tue Jun 9 22:27:09 2015 +0800 sim: mn10300: delete unused exception/exited/debug state The syscall path was the only code checking the custom exception state after recent cleanups. Once we change that to the common engine halt function, we can delete that state entirely. This also helps highlight some other dead code that we can cull. commit b0e4c8a581c689da0c3e7319c03a8cc60d64a2f2 Author: Mike Frysinger Date: Tue Jun 9 23:23:41 2015 +0800 sim: mn10300: use common size types No point in open coding this logic here when we have common size types already that give the right answer. commit 5d19c36612c6b08627280bb0063ad1222b0a92dd Author: Mike Frysinger Date: Tue Jun 9 22:26:16 2015 +0800 sim: m68hc11/mn10300/v850: delete redundant INLINE defines The sim-inline.h header already takes care of this for us, so punt the local definitions. commit 31557eccb23b478e049b5eb7db3cb144c6533ee5 Author: Mike Frysinger Date: Tue Jun 9 16:10:49 2015 +0800 sim: microblaze: switch to common sim_resume/sim_stop_reason This allows us to use the common code for all exception handling. commit 198c808c87eac2d4605962c2f19191c8ca24d268 Author: Gary Benson Date: Thu Jun 11 10:58:41 2015 +0100 Fix ARI warning in linux-namespaces.c This commit fixes the following ARI warning: gdb/nat/linux-namespaces.c:28: regression: Do not include wait.h or sys/wait.h, instead include gdb_wait.h gdb/ChangeLog: * nat/linux-namespaces.c (gdb_wait.h): New include. (sys/wait.h): Do not include. commit 970cdef2612b098b457345025a08aba800991722 Author: Davide Italiano Date: Sun May 31 13:22:11 2015 -0700 [GOLD] Fix handling of __start/__stop symbols If the section contains 'Q' in the name, is_cident() returns false, __start and __stop symbols for the section are not generated.. * gold.h (is_cident): Correct typo. commit 6e737c31868eb2cc6b56ebdd5a0497a39d53e622 Author: GDB Administrator Date: Thu Jun 11 00:00:07 2015 +0000 Automatic date update in version.in commit e815d2d2714a395d11abb350eff385931257ed9a Author: Simon Marchi Date: Wed Jun 10 16:34:16 2015 -0400 dwarf2read: call dwarf_finish_line when ending a sequence Commit d9b3de22f33e400f7f409cce3acf6c7dab07dd79 introduced a behaviour change where dwarf_finish_line was not called anymore when ending a sequence of machine instructions. This patch restores the original behaviour. gdb/ChangeLog: * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if end_sequence is true. commit 8847cac2f7ce6ff2c13fa611660c2dfc59c78272 Author: Jan Kratochvil Date: Wed Jun 10 19:37:19 2015 +0200 Code cleanup: Use explicit NULL comparison gdb/ChangeLog 2015-06-10 Jan Kratochvil Code cleanup. * solib-target.c (library_list_start_list): Use explicit NULL comparison. commit a48d0c12f893a922692492829f04189d9f216172 Author: Han Shen Date: Wed Jun 10 09:50:22 2015 -0700 Patch for erratum-843419 (2 of 2 - fix erratum occurrences). Now fixing for 843419 is fully functional. The first part of the erratum fix CL is here - https://sourceware.org/ml/binutils/2015-04/msg00229.html gold/ChangeLog 2015-06-10 Han Shen * aarch64.cc(global enum): New constants representing stub types. (Stub_template): New POD struct. (Stub_template_repertoire): New class. (Stub_base): New class. (Erratum_stub): New class. (Reloc_stub): Refactored to be a subclass of Stub_base. (Reloc_stub::Stub_type): Removed. (Reloc_stub::offset): Moved to Stub_base. (Reloc_stub::set_offset): Moved to Stub_base. (Reloc_stub::destination_address): Moved to Stub_base. (Reloc_stub::set_destination_address): Moved to Stub_base. (Reloc_stub::reset_destination_address): Moved to Stub_base. (Reloc_stub::stub_type): Renamed and moved to Stub_base. (Reloc_stub::stub_size): Renamed and moved to Stub_base. (Reloc_stub::stub_insns): Renamed and moved to Stub_base. (Reloc_stub::write): Moved to Stub_base. (Reloc_stub::invalid_offset): Moved to Stub_base. (Reloc_stub::invalid_address): Moved to Stub_base. (Reloc_stub::stub_type_): Renamed and moved to Stub_base. (Reloc_stub::stub_insns_): Moved to Stub_base. (Reloc_stub::offset_): Moved to Stub_base. (Reloc_stub::destination_address_): Moved to Stub_base. (Stub_table::The_aarch64_relobj): New typedef. (Stub_table::The_erratum_stub): New typedef. (Stub_table::The_erratum_stub_less): New typedef. (Stub_table::The_erratum_stub_set): New typedef. (Stub_table::The_erratum_stub_set_iter): New typedef. (Stub_table::empty): Added emptiness testing for erratum stubs. (Stub_table::add_erratum_stub): New method to add an erratum stub. (Stub_table::find_erratum_stub): New method. (Stub_table::find_erratum_stubs_for_input_section): New method. (Stub_table::erratum_stub_address): New method. (Stub_table::update_date_size_changed_p): Modified to handle erratum stubs. (Stub_table::do_addralign): Modified to handle erratum stubs. (Stub_table::erratum_stubs_): New member. (Stub_table::erratum_stub_size_): New member. (Stub_table::relocate_stubs): Modified to handle erratum stubs. (Stub_table::do_write): Modified to handle erratum stubs. (AArch64_relobj::The_erratum_stub): New typedef. (AArch64_relobj::Erratum_stub_set_iter): New typedef. (AArch64_relobj::fix_errata): New method. (Target_aarch64::The_reloc_stub_type): Removed. (Target_aarch64::The_erratum_stub): New typede. (AArch64_relocate_functions::construct_b): New method. commit 24c05f46059182f0c8768c6ebbb66b4ca3233ecc Author: Jan Kratochvil Date: Wed Jun 10 18:29:05 2015 +0200 Fix gdbserver and its #FIXED version="1.0" While reimplementing I found from expat-2.0.1-11.fc15.x86_64: warning: while parsing target library list (at line 1): Required attribute "version" of not specified I believe the same bug has to apply for existing FSF gdbserver but I do not have any platform to test it (I did not try to build MinGW). features/library-list.dtd: http://www.xml.com/pub/a/98/10/guide0.html?page=3 says: In this case, the attribute is not required, but if it occurs, it must have the specified value. Which would suggest gdbserver is right but solib-target.c is wrong. One could also make gdbserver explicit for the version (if those 14 bytes are not of a concern). gdb/ChangeLog 2015-06-10 Jan Kratochvil * solib-target.c (library_list_start_list): Do not dereference variable version in its initialization. Make the VERSION check handle NULL. (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL. gdb/gdbserver/ChangeLog 2015-06-10 Jan Kratochvil * server.c (handle_qxfer_libraries): Set `version' attribute for . commit 51aad7cc44161ebbd2eea80647391c692ae330ac Author: Gary Benson Date: Wed Jun 10 14:28:44 2015 +0100 Announce new container-awareness features for GNU/Linux systems This commit announces the newly added ability to directly access executable and shared library files when attaching to processes running in containers on GNU/Linux systems. gdb/ChangeLog: * NEWS: Announce support for direct access of executable and shared library files when attaching to inferiors in containers on GNU/Linux systems. commit 14d2069a321cdd2b06f1982e6832c8c5661febf4 Author: Gary Benson Date: Wed Jun 10 14:28:44 2015 +0100 Implement vFile:setfs in gdbserver This commit implements the "vFile:setfs" packet in gdbserver. gdb/gdbserver/ChangeLog: * target.h (struct target_ops) : New field. : Likewise. : Likewise. * linux-low.c (nat/linux-namespaces.h): New include. (linux_target_ops): Initialize the_target->multifs_open, the_target->multifs_unlink and the_target->multifs_readlink. * hostio.h (hostio_handle_new_gdb_connection): New declaration. * hostio.c (hostio_fs_pid): New static variable. (hostio_handle_new_gdb_connection): New function. (handle_setfs): Likewise. (handle_open): Use the_target->multifs_open as appropriate. (handle_unlink): Use the_target->multifs_unlink as appropriate. (handle_readlink): Use the_target->multifs_readlink as appropriate. (handle_vFile): Handle vFile:setfs packets. * server.c (handle_query): Call hostio_handle_new_gdb_connection after target_handle_new_gdb_connection. commit 15a201c844e770d3c6edf174b9ef6596fbae7eb2 Author: Gary Benson Date: Wed Jun 10 14:28:44 2015 +0100 Implement multiple-filesystem support for remote targets This commit allows GDB to access executables and shared libraries on remote targets where the remote stub does not share a common filesystem with the inferior(s). A new packet "vFile:setfs" is added to the remote protocol and the three remote hostio functions with filename arguments are modified to send "vFile:setfs" packets as necessary. gdb/ChangeLog: * remote.c (struct remote_state) : New field. (new_remote_state): Initialize the above. (PACKET_vFile_setfs): New enum value. (remote_hostio_set_filesystem): New function. (remote_hostio_open): Call the above. (remote_hostio_unlink): Likewise. (remote_hostio_readlink): Likewise. (_initialize_remote): Register new "set/show remote hostio-setfs-packet" command. * NEWS: Announce new vFile:setfs packet. gdb/doc/ChangeLog: * gdb.texinfo (Remote Configuration): Document the "set/show remote hostio-setfs-packet" command. (Host I/O Packets): Document the vFile:setfs packet. commit 7a6a173129107538574949116c0ce1c0ead589b4 Author: Gary Benson Date: Wed Jun 10 14:28:43 2015 +0100 Implement mount namespace support for native Linux targets This commit allows GDB to access executables and shared libraries on native Linux targets where GDB and the inferior have different mount namespaces. gdb/ChangeLog: * linux-nat.c (nat/linux-namespaces.h): New include. (fileio.h): Likewise. (linux_nat_filesystem_is_local): New function. (linux_nat_fileio_pid_of): Likewise. (linux_nat_fileio_open): Likewise. (linux_nat_fileio_readlink): Likewise. (linux_nat_fileio_unlink): Likewise. (linux_nat_add_target): Initialize to_filesystem_is_local, to_fileio_open, to_fileio_readlink and to_fileio_unlink. (_initialize_linux_nat): New "set/show debug linux-namespaces" commands. * NEWS: Mention new "set/show debug linux-namespaces" commands. gdb/doc/ChangeLog: * gdb.texinfo (Debugging Output): Document the "set/show debug linux-namespaces" command. commit 07c138c8ae2b11d417c9799202363a95a2d06881 Author: Gary Benson Date: Wed Jun 10 14:28:43 2015 +0100 Add "inferior" argument to some target_fileio functions This commit adds a new argument to all target_fileio functions with filename arguments to allow the desired inferior to be specified. This allows GDB to support systems where processes do not necessarily share a common filesystem. gdb/ChangeLog: * target.h (struct inferior): New forward declaration. (struct target_ops) : Update comment. (struct target_ops) : New argument inf. Update comment. All implementations updated. (struct target_ops) : Likewise. (struct target_ops) : Likewise. (target_filesystem_is_local): Update comment. (target_fileio_open): New argument inf. Update comment. (target_fileio_unlink): Likewise. (target_fileio_readlink): Likewise. (target_fileio_read_alloc): Likewise. (target_fileio_read_stralloc): Likewise. * target.c (target_fileio_open): New argument inf. Pass inf to implementation. Update debug printing. (target_fileio_unlink): Likewise. (target_fileio_readlink): Likewise. (target_fileio_read_alloc_1): New argument inf. Pass inf to target_fileio_open. (target_fileio_read_alloc): New argument inf. Pass inf to target_fileio_read_alloc_1. (target_fileio_read_stralloc): Likewise. * gdb_bfd.c (inferior.h): New include. (gdb_bfd_iovec_fileio_open): Replace unused "open_closure" argument with new argument "inferior". Pass inferior to target_fileio_open. (gdb_bfd_open): Supply inferior argument to gdb_bfd_iovec_fileio_open. * linux-tdep.c (linux_info_proc): Supply inf argument to relevant target_fileio calls. (linux_find_memory_regions_full): Likewise. (linux_fill_prpsinfo): Likewise. * remote.c (remote_filesystem_is_local): Supply inf argument to remote_hostio_open. (remote_file_put): Likewise. (remote_file_get): Likewise. (remote_file_delete): Supply inf argument to remote_hostio_unlink. commit 12e2a5fdccfc6857c57d2e0a1c1e5fd136a94025 Author: Gary Benson Date: Wed Jun 10 14:28:43 2015 +0100 Comment and whitespace changes Comments on the various implementations of target fileio functions duplicate information documented in target.h. This commit replaces the duplicated documentation with breadcrumbs, and inserts blank lines to separate comments from the functions they describe where necessary. gdb/ChangeLog: * inf-child.c (inf_child_fileio_open): Replace comment. (inf_child_fileio_pwrite): Likewise. (inf_child_fileio_pread): Likewise. (inf_child_fileio_fstat): Insert blank line before comment. (inf_child_fileio_close): Replace comment. (inf_child_fileio_unlink): Likewise. (inf_child_fileio_readlink): Likewise. * remote.c (remote_hostio_open): Likewise. (remote_hostio_pread): Likewise. (remote_hostio_pwrite): Likewise. (remote_hostio_close): Likewise. (remote_hostio_unlink): Likewise. (remote_hostio_readlink): Likewise. (remote_hostio_fstat): Likewise. (remote_filesystem_is_local): Likewise. * target.c (target_fileio_open): Likewise. (target_fileio_pwrite): Likewise. (target_fileio_pread): Likewise. (target_fileio_fstat): Insert blank line before comment. (target_fileio_close): Replace comment. (target_fileio_unlink): Likewise. (target_fileio_readlink): Likewise. (target_fileio_read_alloc): Likewise. (target_fileio_read_stralloc): Likewise. commit 9bc3a9760b22a6187fdce6abc3df8f0c1d483a21 Author: Gary Benson Date: Wed Jun 10 14:28:43 2015 +0100 Remove linux_proc_pid_get_ns This commit removes linux_proc_pid_get_ns, and updates its only caller to use linux_ns_same instead. gdb/ChangeLog: * linux-thread-db.c (nat/linux-namespaces.h): New include. (check_pid_namespace_match): Use linux_ns_same rather than linux_proc_pid_get_ns to spot PID namespace mismatches. * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove. * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise. commit 4b8b5e72451d5b9da4000b8346b20035833aa087 Author: Gary Benson Date: Wed Jun 10 14:28:43 2015 +0100 Introduce nat/linux-namespaces.[ch] This commit introduces new shared files nat/linux-namespaces.[ch] containing code to support Linux namespaces that will be used by both GDB and gdbserver. gdb/ChangeLog: * configure.ac (AC_CHECK_FUNCS): Add setns. * config.in: Regenerate. * configure: Likewise. * nat/linux-namespaces.h: New file. * nat/linux-namespaces.c: Likewise. * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h. (linux-namespaces.o): New rule. * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o. * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. * config/arm/linux.mh (NATDEPFILES): Likewise. * config/i386/linux.mh (NATDEPFILES): Likewise. * config/i386/linux64.mh (NATDEPFILES): Likewise. * config/ia64/linux.mh (NATDEPFILES): Likewise. * config/m32r/linux.mh (NATDEPFILES): Likewise. * config/m68k/linux.mh (NATDEPFILES): Likewise. * config/mips/linux.mh (NATDEPFILES): Likewise. * config/pa/linux.mh (NATDEPFILES): Likewise. * config/powerpc/linux.mh (NATDEPFILES): Likewise. * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. * config/s390/linux.mh (NATDEPFILES): Likewise. * config/sparc/linux.mh (NATDEPFILES): Likewise. * config/sparc/linux64.mh (NATDEPFILES): Likewise. * config/tilegx/linux.mh (NATDEPFILES): Likewise. * config/xtensa/linux.mh (NATDEPFILES): Likewise. gdb/gdbserver/ChangeLog: * configure.ac (AC_CHECK_FUNCS): Add setns. * config.in: Regenerate. * configure: Likewise. * Makefile.in (SFILES): Add nat/linux-namespaces.c. (linux-namespaces.o): New rule. * configure.srv (srv_linux_obj): Add linux-namespaces.o. commit ca09583623ab77362186a9fd1ae260c38dcab470 Author: Gary Benson Date: Wed Jun 10 14:28:43 2015 +0100 Move make_cleanup_close to common code This commit moves the function make_cleanup_close from gdb/utils.[ch] to gdb/common/filestuff.[ch] to make it usable from common code. gdb/ChangeLog: * utils.h (make_cleanup_close): Moved to common/filestuff.h. * utils.c (do_close_cleanup): Moved to common/filestuff.c. (make_cleanup_close): Likewise. * common/filestuff.h (make_cleanup_close): Moved from utils.h. * common/filestuff.c (do_close_cleanup): Moved from utils.c. (make_cleanup_close): Likewise. commit 5d9c55d355c8e5c688caa3fe43c0d95d538daf35 Author: Jon Turney Date: Wed Jun 3 14:28:29 2015 +0100 windows-nat: Also ignore ERROR_INVALID_HANDLE from SuspendThread() Discussed somewhat in the thread at https://cygwin.com/ml/gdb-patches/2013-06/msg00680.html This is pretty straightforward to demonstrate on Cygwin currently: $ cat main.c int main() { return 0; } $ gcc -g -O0 main.c -o main $ ./gdb ./main [...] (gdb) r Starting program: /wip/binutils-gdb/build.x86_64/gdb/main warning: SuspendThread (tid=0x1cf0) failed. (winerr 6) [Inferior 1 (process 976) exited normally] with this patch applied: $ ./gdb ./main [...] (gdb) r Starting program: /wip/binutils-gdb/build.x86_64/gdb/main [Inferior 1 (process 4852) exited normally] gdb/ChangeLog: 2015-06-03 Jon Turney * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE from SuspendThread(). Signed-off-by: Jon Turney commit 040ea00bb02018cbe21ba732f68134ac91f370d2 Author: Jon Turney Date: Wed Jun 3 14:03:50 2015 +0100 windows-nat: Trim a trailing '\n' from OutputDebugString before echoing it For cosmetic purposes, trim a trailing '\n' from OutputDebugString before echoing it, as warning() will add a '\n', anyhow. gdb/ChangeLog: 2015-06-03 Jon Turney * windows-nat.c (handle_output_debug_string): Trim trailing '\n' from OutputDebugString. Signed-off-by: Jon Turney commit 7d73c23c4d8cf727528ac5a34a787e44a30d98cc Author: Walfred Tedeschi Date: Wed Jun 10 10:52:12 2015 +0200 Missing Changelogs for last commits Signed-off-by: Walfred Tedeschi commit 29c1c24429a099eca297080dba56a8c090e3136a Author: Walfred Tedeschi Date: Tue Jun 9 15:27:02 2015 +0200 Add support for bound table in the Intel MPX context. Intel(R) Memory protection bound information are located in register to be tested using the MPX new instructions. Since the number of bound registers are limited a table is used to provide storage for bounds during run-time. In order to investigate the contents of the MPX bound table two new commands are added to GDB. "show mpx bound" and "set mpx bound" are used to display and set values on the MPX bound table. 2015-04-20 Walfred Tedeschi Mircea Gherzan * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32, MPX_BT_MASK_32): New macros. (i386_mpx_set_bounds): New function that implements the command "set-mpx-bound". (i386_mpx_enabled) Helper function to test MPX availability. (i386_mpx_bd_base) Helper function to calculate the base directory address. (i386_mpx_get_bt_entry) Helper function to access a bound table entry. (i386_mpx_print_bounds) Effectively display bound information. (_initialize_i386_tdep): Qdd new commands to commands "set mpx" and "show mpx". (_initialize_i386_tdep): Add "bound" to the commands "show mpx" and "set mpx" commands. (mpx_set_cmdlist and mpx_show_cmdlist): list for the new prefixed "set mpx" and "show mpx" commands. * NEWS: List new commands for MPX support. testsuite: * gdb.arch/i386-mpx-map.c: New file. * gdb.arch/i386-mpx-map.exp: New File. doc: * gdb.texinfo (i386): Add documentation about "show mpx bound" and "set mpx bound". commit 422d944b03535efba6187bbd9e35e87f73767dd7 Author: Walfred Tedeschi Date: Mon Jun 8 17:42:08 2015 +0200 Obvious indentation fixes on test sample and test file for MPX registers. 2015-06-08 Walfred Tedeschi gdb/testsuite: * gdb.arch/i386-mpx.c (have_mpx): Indentation fixed. * gdb.arch/i386-mpx.exp: Indentation fixed. commit 547a646d67e7a38b96d2a93b709e52c9461d017f Author: Walfred Tedeschi Date: Mon Jun 8 17:37:40 2015 +0200 Improve test for processor feature om MPX registers test. Skips the MPX register test in case target is not Intel. Improves the test for MPX feature making MPX and AVX512 tests more similar in terms of initialization. Indentation was improved on sample file and final return added to have_mpx. On test file identation was improved and gdb_send was exchanged by gdb_test_multiple. 2015-06-08 Walfred Tedeschi gdb/testsuite * gdb.arch/i386-mpx.c: Added final return to the have_mpx function and improved indentation. * gdb.arch/i386-mpx.exp: Exchanging gdb_send and gdb_expect for gdb_test_multiple. Added additional tests to skip the test. commit 8b600ba2b47c9ae56c21f1abdfeb1eb5510d9615 Author: Walfred Tedeschi Date: Mon Jun 8 17:51:04 2015 +0200 Fix MPX and AVX512 tests for path changes. Changes on the path for i386-cpuid.h file lead to failure in compiling tests for AVX512 and MPX. 2015-06-08 Walfred Tedeschi gdb/testsuite * gdb.arch/i386-avx512.c: Change path in include file. * gdb.arch/i386-avx512.exp: Change include dir path compilation flag. * gdb.arch/i386-mpx.c: Change path in include file. * gdb.arch/i386-mpx.exp: Change include dir path compilation flag. commit e5796f023338867d1fed85b4908069f099122758 Author: GDB Administrator Date: Wed Jun 10 00:00:08 2015 +0000 Automatic date update in version.in commit bb9e16d4bb717968b92130344d0f5dc3babedaaa Author: Joel Brobecker Date: Tue Jun 9 14:29:09 2015 -0400 Fix latest sim/common/ChangeLog entry. commit f419f52b9b04f2e45dd11542c6531a48ba0e0d13 Author: Joel Brobecker Date: Tue Jun 9 14:27:58 2015 -0400 Remove unnecessary empty line in sim/common/ChangeLog commit 509c2f329a42646e64c7c3e8796f8b3bbd904032 Author: Mike Stump Date: Tue Jun 9 14:25:28 2015 -0400 Fix spelling mistakes in sim/common/sim-events.c error messages. sim/common/ChangeLog: * sim-events.c (sim_events_schedule_after_signal): Fix spelling mistake in call to sim_engine_abort. (sim_events_schedule_after_signal): Likewise. commit 3ac2e371a1abd1279f66477aa4fc68039da1872e Author: Gary Benson Date: Tue Jun 9 10:00:15 2015 +0100 Don't assume File-I/O mode bits match the host's format inf_child_fileio_open and its gdbserver equivalent both assume that the mode_t bits defined in gdb/fileio.h are the same as those used by the open system call, but there is no mechanism to ensure this is the case. This commit adds a conversion function to handle systems where the File-I/O definitions do not align with the host's. gdb/ChangeLog: * common/fileio.h (fileio_to_host_mode): New declaration. * common/fileio.c (fileio_to_host_mode): New Function. * inf-child.c (inf_child_fileio_open): Process mode argument with fileio_to_host_mode. gdb/gdbserver/ChangeLog: * hostio.c (handle_open): Process mode argument with fileio_to_host_mode. commit ecef18c564bd609aa7640564747b807bfe1632c6 Author: Gary Benson Date: Tue Jun 9 10:02:25 2015 +0100 Fix preprocessor conditional This commit fixes a typo in common/fileio.c where S_IWGRP was misspelled as S_IWRGRP in a preprocessor conditional, causing Host-I/O "vFile:fstat:" and File-I/O "Fstat" and "Ffstat" responses to always indicate files were not group-writable regardless of their actual status. commit f5316771bd0cf89578450be0460908beeef4dbb5 Author: GDB Administrator Date: Tue Jun 9 00:00:08 2015 +0000 Automatic date update in version.in commit 1e1b2efc461dad176d4e0473d6e3d3686b5abdfc Author: Nick Clifton Date: Mon Jun 8 15:04:17 2015 +0100 Update French Translations for LD and GOLD. ld * po/fr.po: Updated French Translation. gold * po/fr.po: New French Translation. commit f0e8c65e02e84ceb85b569508aa4f54ecb0a8abe Author: Nick Clifton Date: Mon Jun 8 11:32:38 2015 +0100 Fix RX GAS handling of integer bignums. * config/tc-rx.c (rx_op): Correct handling of integer bignums. commit 80fb91378c91a8239817a5ab2b1c3e346109db25 Author: GDB Administrator Date: Mon Jun 8 00:00:08 2015 +0000 Automatic date update in version.in commit b8cf50755b573140aae71f7247b604373fcdfbeb Author: Cary Coutant Date: Sun Jun 7 14:03:09 2015 -0700 Fix incorrect handling of STT_COMMON symbols in shared libraries. The gABI allows STT_COMMON symbols to appear in executables and shared objects, so that the dynamic loader can resolve commons across modules. When reading a shared object, however, an STT_COMMON symbol should be treated as a regular definition at link time. In a relocatable object, the gABI requires that any STT_COMMON symbols must also be defined in the special SHN_COMMON section (which we extend to include target-specific small and large common sections). Thus, there is no need for gold to treat STT_COMMON symbols as common unless the st_shndx field is also set to a common section. gold/ PR gold/18288 * resolve.cc (symbol_to_bits): Remove type parameter; adjust all callers. Don't use STT_COMMON to check for common symbols. (Symbol_table::resolve): Warn if relocatable object has STT_COMMON symbol that's not in a common section. * symtab.h (Symbol::is_common): Don't use STT_COMMON to check for common symbols. ----------------------------------------------------------------------- Summary of changes: bfd/version.h | 2 +- gas/ChangeLog | 12 + gas/config/tc-hppa.c | 70 +- gas/config/tc-rx.c | 51 +- gdb/ChangeLog | 298 ++ gdb/Makefile.in | 17 +- gdb/NEWS | 24 + gdb/arch-utils.c | 9 + gdb/arch-utils.h | 1 + gdb/breakpoint.c | 13 +- gdb/common/fileio.c | 51 +- gdb/common/fileio.h | 5 + gdb/common/filestuff.c | 21 + gdb/common/filestuff.h | 4 + gdb/completer.c | 81 +- gdb/completer.h | 3 + gdb/config.in | 3 + gdb/config/aarch64/linux.mh | 2 +- gdb/config/alpha/alpha-linux.mh | 2 +- gdb/config/arm/linux.mh | 2 +- gdb/config/i386/linux.mh | 2 +- gdb/config/i386/linux64.mh | 2 +- gdb/config/ia64/linux.mh | 3 +- gdb/config/m32r/linux.mh | 2 +- gdb/config/m68k/linux.mh | 2 +- gdb/config/mips/linux.mh | 2 +- gdb/config/pa/linux.mh | 2 +- gdb/config/powerpc/linux.mh | 2 +- gdb/config/powerpc/ppc64-linux.mh | 3 +- gdb/config/powerpc/spu-linux.mh | 4 +- gdb/config/s390/linux.mh | 2 +- gdb/config/sparc/linux.mh | 2 +- gdb/config/sparc/linux64.mh | 2 +- gdb/config/tilegx/linux.mh | 2 +- gdb/config/xtensa/linux.mh | 2 +- gdb/configure | 2 +- gdb/configure.ac | 2 +- gdb/doc/ChangeLog | 27 + gdb/doc/gdb.texinfo | 90 +- gdb/dwarf2read.c | 2 +- gdb/gdb_bfd.c | 9 +- gdb/gdbarch.c | 23 + gdb/gdbarch.h | 8 + gdb/gdbarch.sh | 6 + gdb/gdbserver/ChangeLog | 39 + gdb/gdbserver/Makefile.in | 9 +- gdb/gdbserver/config.in | 3 + gdb/gdbserver/configure | 2 +- gdb/gdbserver/configure.ac | 2 +- gdb/gdbserver/configure.srv | 2 +- gdb/gdbserver/hostio.c | 78 +- gdb/gdbserver/hostio.h | 3 + gdb/gdbserver/linux-low.c | 6 +- gdb/gdbserver/server.c | 5 +- gdb/gdbserver/target.c | 36 + gdb/gdbserver/target.h | 21 + gdb/i386-tdep.c | 276 ++ gdb/inf-child.c | 47 +- gdb/linux-nat.c | 114 + gdb/linux-tdep.c | 25 +- gdb/linux-thread-db.c | 12 +- gdb/{common => nat}/linux-maps.c | 65 +- gdb/{common => nat}/linux-maps.h | 8 +- gdb/nat/linux-namespaces.c | 1051 ++++++ gdb/nat/linux-namespaces.h | 76 + gdb/nat/linux-procfs.c | 19 - gdb/nat/linux-procfs.h | 6 - gdb/ppc-sysv-tdep.c | 31 +- gdb/remote.c | 104 +- gdb/solib-target.c | 18 +- gdb/target.c | 218 +- gdb/target.h | 145 +- gdb/{common => target}/target-utils.c | 18 +- gdb/{common => target}/target-utils.h | 18 +- gdb/target/target.h | 11 + gdb/testsuite/ChangeLog | 34 + gdb/testsuite/gdb.arch/i386-avx512.c | 2 +- gdb/testsuite/gdb.arch/i386-avx512.exp | 2 +- gdb/testsuite/gdb.arch/i386-mpx-map.c | 93 + gdb/testsuite/gdb.arch/i386-mpx-map.exp | 76 + gdb/testsuite/gdb.arch/i386-mpx.c | 21 +- gdb/testsuite/gdb.arch/i386-mpx.exp | 35 +- .../gdb.mi/mi-dprintf-pending.c} | 21 +- gdb/testsuite/gdb.mi/mi-dprintf-pending.exp | 79 + .../gdb.mi/mi-dprintf-pendshr.c} | 23 +- gdb/tui/tui-regs.c | 165 +- gdb/utils.c | 17 - gdb/utils.h | 2 +- gdb/windows-nat.c | 15 +- gold/ChangeLog | 118 + gold/aarch64.cc | 1078 +++++-- gold/gold.h | 4 +- gold/layout.cc | 25 +- gold/layout.h | 4 + gold/options.h | 9 +- gold/po/fr.po | 3406 ++++++++++++++++++++ gold/resolve.cc | 30 +- gold/script-sections.cc | 7 +- gold/symtab.h | 2 - gold/testsuite/Makefile.am | 4 + gold/testsuite/Makefile.in | 4 + ld/ChangeLog | 18 +- ld/NEWS | 2 + ld/ld.h | 3 + ld/ld.texinfo | 15 + ld/ldlang.c | 38 + ld/ldlang.h | 3 + ld/ldlex.h | 1 + ld/ldmain.c | 2 + ld/lexsup.c | 6 + ld/po/fr.po | 438 ++-- ld/testsuite/ChangeLog | 13 + ld/testsuite/ld-scripts/print-memory-usage-1.l | 3 + ld/testsuite/ld-scripts/print-memory-usage-1.s | 8 + ld/testsuite/ld-scripts/print-memory-usage-1.t | 5 + ld/testsuite/ld-scripts/print-memory-usage-2.l | 1 + ld/testsuite/ld-scripts/print-memory-usage-2.t | 14 + ld/testsuite/ld-scripts/print-memory-usage-3.l | 3 + ld/testsuite/ld-scripts/print-memory-usage-3.s | 8 + ld/testsuite/ld-scripts/print-memory-usage-3.t | 5 + ld/testsuite/ld-scripts/print-memory-usage.exp | 69 + ld/testsuite/ld-scripts/print-memory-usage.t | 14 + opcodes/ChangeLog | 5 + opcodes/ppc-opc.c | 4 +- sim/ChangeLog | 4 + sim/README-HACKING | 4 +- sim/arm/ChangeLog | 8 + sim/arm/configure | 8 +- sim/avr/ChangeLog | 8 + sim/avr/configure | 8 +- sim/bfin/ChangeLog | 31 + sim/bfin/bfin-sim.c | 20 +- sim/bfin/bfin-sim.h | 4 +- sim/bfin/configure | 8 +- sim/bfin/dv-bfin_cec.c | 10 +- sim/bfin/interp.c | 8 +- sim/bfin/sim-main.h | 26 +- sim/common/ChangeLog | 102 +- sim/common/acinclude.m4 | 12 +- sim/common/cgen-run.c | 2 +- sim/common/cgen-trace.c | 21 +- sim/common/cgen-trace.h | 39 +- sim/common/configure | 6 +- sim/common/genmloop.sh | 8 +- sim/common/sim-config.h | 2 +- sim/common/sim-events.c | 11 +- sim/common/sim-events.h | 1 - sim/common/sim-module.c | 2 +- sim/common/sim-trace.c | 20 +- sim/common/sim-trace.h | 80 +- sim/cr16/ChangeLog | 8 + sim/cr16/configure | 8 +- sim/cris/ChangeLog | 18 + sim/cris/configure | 8 +- sim/cris/decodev10.c | 226 +- sim/cris/decodev32.c | 216 +- sim/cris/mloop.in | 6 +- sim/cris/semcrisv10f-switch.c | 2466 +++++++------- sim/cris/semcrisv32f-switch.c | 2476 +++++++------- sim/d10v/ChangeLog | 8 + sim/d10v/configure | 8 +- sim/erc32/ChangeLog | 8 + sim/erc32/configure | 8 +- sim/frv/ChangeLog | 19 + sim/frv/configure | 8 +- sim/frv/decode.c | 546 ++-- sim/frv/mloop.in | 6 +- sim/frv/sem.c | 2770 ++++++++-------- sim/frv/sim-main.h | 5 - sim/ft32/ChangeLog | 8 + sim/ft32/configure | 8 +- sim/h8300/ChangeLog | 8 + sim/h8300/configure | 8 +- sim/igen/ChangeLog | 4 + sim/igen/configure | 2 +- sim/iq2000/ChangeLog | 16 + sim/iq2000/configure | 8 +- sim/iq2000/decode.c | 60 +- sim/iq2000/mloop.in | 6 +- sim/iq2000/sem-switch.c | 176 +- sim/iq2000/sem.c | 174 +- sim/lm32/ChangeLog | 16 + sim/lm32/configure | 8 +- sim/lm32/decode.c | 46 +- sim/lm32/mloop.in | 6 +- sim/lm32/sem-switch.c | 132 +- sim/lm32/sem.c | 130 +- sim/m32c/ChangeLog | 8 + sim/m32c/configure | 8 +- sim/m32r/ChangeLog | 20 + sim/m32r/configure | 8 +- sim/m32r/decode.c | 118 +- sim/m32r/decode2.c | 144 +- sim/m32r/decodex.c | 144 +- sim/m32r/mloop.in | 6 +- sim/m32r/sem-switch.c | 254 +- sim/m32r/sem.c | 252 +- sim/m32r/sem2-switch.c | 522 ++-- sim/m32r/semx-switch.c | 508 ++-- sim/m68hc11/ChangeLog | 21 + sim/m68hc11/Makefile.in | 3 +- sim/m68hc11/configure | 8 +- sim/m68hc11/interp.c | 92 - sim/mcore/ChangeLog | 8 + sim/mcore/configure | 8 +- sim/microblaze/ChangeLog | 18 + sim/microblaze/Makefile.in | 1 + sim/microblaze/configure | 8 +- sim/microblaze/interp.c | 43 +- sim/microblaze/sim-main.h | 1 - sim/mips/ChangeLog | 22 + sim/mips/configure | 14 +- sim/mips/configure.ac | 6 +- sim/mips/interp.c | 45 +- sim/mips/sim-main.c | 4 - sim/mips/sim-main.h | 4 + sim/mn10300/ChangeLog | 43 + sim/mn10300/configure | 8 +- sim/mn10300/interp.c | 68 +- sim/mn10300/mn10300_sim.h | 67 +- sim/mn10300/op_utils.c | 14 +- sim/moxie/ChangeLog | 19 + sim/moxie/configure | 8 +- sim/moxie/interp.c | 157 +- sim/msp430/ChangeLog | 28 + sim/msp430/configure | 8 +- sim/msp430/msp430-sim.c | 164 +- sim/msp430/sim-main.h | 48 - sim/ppc/ChangeLog | 4 + sim/ppc/configure | 2 +- sim/rl78/ChangeLog | 8 + sim/rl78/configure | 8 +- sim/rx/ChangeLog | 8 + sim/rx/configure | 8 +- sim/sh/ChangeLog | 8 + sim/sh/configure | 8 +- sim/sh64/ChangeLog | 24 + sim/sh64/configure | 8 +- sim/sh64/decode-compact.c | 274 +- sim/sh64/decode-media.c | 170 +- sim/sh64/mloop-compact.c | 14 +- sim/sh64/mloop-media.c | 14 +- sim/sh64/sem-compact-switch.c | 600 ++-- sim/sh64/sem-compact.c | 598 ++-- sim/sh64/sem-media-switch.c | 476 ++-- sim/sh64/sem-media.c | 474 ++-- sim/v850/ChangeLog | 12 + sim/v850/configure | 8 +- sim/v850/interp.c | 8 - 249 files changed, 16188 insertions(+), 8859 deletions(-) rename gdb/{common => nat}/linux-maps.c (92%) rename gdb/{common => nat}/linux-maps.h (93%) create mode 100644 gdb/nat/linux-namespaces.c create mode 100644 gdb/nat/linux-namespaces.h rename gdb/{common => target}/target-utils.c (87%) rename gdb/{common => target}/target-utils.h (68%) create mode 100644 gdb/testsuite/gdb.arch/i386-mpx-map.c create mode 100644 gdb/testsuite/gdb.arch/i386-mpx-map.exp copy gdb/{gdbserver/hostio.h => testsuite/gdb.mi/mi-dprintf-pending.c} (64%) create mode 100644 gdb/testsuite/gdb.mi/mi-dprintf-pending.exp copy gdb/{gdbserver/hostio.h => testsuite/gdb.mi/mi-dprintf-pendshr.c} (64%) create mode 100644 gold/po/fr.po create mode 100644 ld/testsuite/ld-scripts/print-memory-usage-1.l create mode 100644 ld/testsuite/ld-scripts/print-memory-usage-1.s create mode 100644 ld/testsuite/ld-scripts/print-memory-usage-1.t create mode 100644 ld/testsuite/ld-scripts/print-memory-usage-2.l create mode 100644 ld/testsuite/ld-scripts/print-memory-usage-2.t create mode 100644 ld/testsuite/ld-scripts/print-memory-usage-3.l create mode 100644 ld/testsuite/ld-scripts/print-memory-usage-3.s create mode 100644 ld/testsuite/ld-scripts/print-memory-usage-3.t create mode 100644 ld/testsuite/ld-scripts/print-memory-usage.exp create mode 100644 ld/testsuite/ld-scripts/print-memory-usage.t First 500 lines of diff: diff --git a/bfd/version.h b/bfd/version.h index 11389d9..806f23f 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20150607 +#define BFD_VERSION_DATE 20150614 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/gas/ChangeLog b/gas/ChangeLog index 2893726..d9c525d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,15 @@ +2015-06-11 John David Anglin + + PR gas/18427 + * gas/config/tc-hppa.c (last_label_symbol): Declare. + (pa_get_label): Return last label in current space/segment or NULL. + (pa_define_label): Record last label and add to root. + (pa_undefine_label): Remove last label from root. + +2015-06-08 Nick Clifton + + * config/tc-rx.c (rx_op): Correct handling of integer bignums. + 2015-06-04 Matthew Wahab * NEWS: Mention ARMv8.1 support in the Aarch64 port. diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c index 57d7e96..06e222d 100644 --- a/gas/config/tc-hppa.c +++ b/gas/config/tc-hppa.c @@ -606,6 +606,9 @@ static int within_procedure; seen in each subspace. */ static label_symbol_struct *label_symbols_rootp = NULL; +/* Last label symbol */ +static label_symbol_struct last_label_symbol; + /* Nonzero when strict matching is enabled. Zero otherwise. Each opcode in the table has a flag which indicates whether or @@ -1114,19 +1117,17 @@ pa_check_eof (void) static label_symbol_struct * pa_get_label (void) { - label_symbol_struct *label_chain; + label_symbol_struct *label_chain = label_symbols_rootp; - for (label_chain = label_symbols_rootp; - label_chain; - label_chain = label_chain->lss_next) + if (label_chain) { #ifdef OBJ_SOM - if (current_space == label_chain->lss_space && label_chain->lss_label) - return label_chain; + if (current_space == label_chain->lss_space && label_chain->lss_label) + return label_chain; #endif #ifdef OBJ_ELF - if (now_seg == label_chain->lss_segment && label_chain->lss_label) - return label_chain; + if (now_seg == label_chain->lss_segment && label_chain->lss_label) + return label_chain; #endif } @@ -1139,28 +1140,23 @@ pa_get_label (void) void pa_define_label (symbolS *symbol) { - label_symbol_struct *label_chain = pa_get_label (); + label_symbol_struct *label_chain = label_symbols_rootp; - if (label_chain) - label_chain->lss_label = symbol; - else - { - /* Create a new label entry and add it to the head of the chain. */ - label_chain = xmalloc (sizeof (label_symbol_struct)); - label_chain->lss_label = symbol; + if (!label_chain) + label_chain = &last_label_symbol; + + label_chain->lss_label = symbol; #ifdef OBJ_SOM - label_chain->lss_space = current_space; + label_chain->lss_space = current_space; #endif #ifdef OBJ_ELF - label_chain->lss_segment = now_seg; + label_chain->lss_segment = now_seg; #endif - label_chain->lss_next = NULL; - if (label_symbols_rootp) - label_chain->lss_next = label_symbols_rootp; + /* Not used. */ + label_chain->lss_next = NULL; - label_symbols_rootp = label_chain; - } + label_symbols_rootp = label_chain; #ifdef OBJ_ELF dwarf2_emit_label (symbol); @@ -1173,33 +1169,7 @@ pa_define_label (symbolS *symbol) static void pa_undefine_label (void) { - label_symbol_struct *label_chain; - label_symbol_struct *prev_label_chain = NULL; - - for (label_chain = label_symbols_rootp; - label_chain; - label_chain = label_chain->lss_next) - { - if (1 -#ifdef OBJ_SOM - && current_space == label_chain->lss_space && label_chain->lss_label -#endif -#ifdef OBJ_ELF - && now_seg == label_chain->lss_segment && label_chain->lss_label -#endif - ) - { - /* Remove the label from the chain and free its memory. */ - if (prev_label_chain) - prev_label_chain->lss_next = label_chain->lss_next; - else - label_symbols_rootp = label_chain->lss_next; - - free (label_chain); - break; - } - prev_label_chain = label_chain; - } + label_symbols_rootp = NULL; } /* An HPPA-specific version of fix_new. This is required because the HPPA diff --git a/gas/config/tc-rx.c b/gas/config/tc-rx.c index 4e58f88..ec54b32 100644 --- a/gas/config/tc-rx.c +++ b/gas/config/tc-rx.c @@ -942,43 +942,50 @@ rx_field5s2 (expressionS exp) void rx_op (expressionS exp, int nbytes, int type) { - int v = 0; + offsetT v = 0; if ((exp.X_op == O_constant || exp.X_op == O_big) && type != RXREL_PCREL) { - if (exp.X_op == O_big && exp.X_add_number <= 0) + if (exp.X_op == O_big) { - LITTLENUM_TYPE w[2]; - char * ip = rx_bytes.ops + rx_bytes.n_ops; + if (exp.X_add_number == -1) + { + LITTLENUM_TYPE w[2]; + char * ip = rx_bytes.ops + rx_bytes.n_ops; - gen_to_words (w, F_PRECISION, 8); + gen_to_words (w, F_PRECISION, 8); #if RX_OPCODE_BIG_ENDIAN - ip[0] = w[0] >> 8; - ip[1] = w[0]; - ip[2] = w[1] >> 8; - ip[3] = w[1]; + ip[0] = w[0] >> 8; + ip[1] = w[0]; + ip[2] = w[1] >> 8; + ip[3] = w[1]; #else - ip[3] = w[0] >> 8; - ip[2] = w[0]; - ip[1] = w[1] >> 8; - ip[0] = w[1]; + ip[3] = w[0] >> 8; + ip[2] = w[0]; + ip[1] = w[1] >> 8; + ip[0] = w[1]; #endif - rx_bytes.n_ops += 4; + rx_bytes.n_ops += 4; + return; + } + + v = ((generic_bignum[1] & LITTLENUM_MASK) << LITTLENUM_NUMBER_OF_BITS) + | (generic_bignum[0] & LITTLENUM_MASK); + } else + v = exp.X_add_number; + + while (nbytes) { - v = exp.X_add_number; - while (nbytes) - { #if RX_OPCODE_BIG_ENDIAN - OP ((v >> (8 * (nbytes - 1))) & 0xff); + OP ((v >> (8 * (nbytes - 1))) & 0xff); #else - OP (v & 0xff); - v >>= 8; + OP (v & 0xff); + v >>= 8; #endif - nbytes --; - } + nbytes --; } } else diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e7a574b..627d65c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,301 @@ +2015-06-13 Andrew Burgess + + * completer.c: Add arch-utils.h include. + (enum reg_completer_targets): New enum. + (reg_or_group_completer_1): New function containing old + reg_or_group_completer, add and use new parameter to control what + is completed on. Use get_current_arch rather than architecture of + currently selected frame. + (reg_or_group_completer): Call new reg_or_group_completer_1. + (reggroup_completer): Call new reg_or_group_completer_1. + * completer.h (reggroup_completer): Add declaration. + * tui/tui-regs.c: Add 'completer.h' include. + (tui_reg_next_command): Renamed to... + (tui_reg_next): ...this. Adjust parameters and return rather than + display new group. + (tui_reg_prev_command): Renamed to... + (tui_reg_prev): ...this. Adjust parameters and return rather than + display new group. + (tui_reg_float_command): Delete. + (tui_reg_general_command): Delete. + (tui_reg_system_command): Delete. + (tui_reg_command): Rewrite to perform switching of register group. + Add header comment. + (tuireglist): Remove. + (tui_reggroup_completer): New function. + (_initialize_tui_regs): Remove 'tui reg' sub-commands, update + creation of 'tui reg' command. + * NEWS: Add comment about 'tui reg' changes. + +2015-06-12 Simon Marchi + + * target.c (target_read): Consider addressable unit size when + reading from a memory object. + (read_memory_robust): Same. + (read_whatever_is_readable): Same. + (target_write_with_progress): Consider addressable unit size + when writing to a memory object. + * target.h (target_read): Update documentation. + (target_write): Add documentation. + +2015-06-12 Simon Marchi + + * arch-utils.h (default_addressable_memory_unit_size): New. + * arch-utils.c (default_addressable_memory_unit_size): New. + * gdbarch.sh (addressable_memory_unit_size): New. + * gdbarch.h: Re-generate. + * gdbarch.c: Re-generate. + +2015-06-12 Simon Marchi + + * target.c (target_read): Rename variables and use + TARGET_XFER_E_IO. + (target_read_with_progress): Same. + (read_memory_robust): Constify parameters and rename + variables. + (read_whatever_is_readable): Constify parameters, + rename variables, adjust formatting. + * target.h (read_memory_robust): Constify parameters. + +2015-05-12 Ulrich Weigand + + * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short + synthetic (non-AltiVec) vector types. + (ppc64_sysv_abi_return_value): Likewise. + +2015-06-12 Antoine Tremblay + + PR breakpoints/16465 + * breakpoint.c (create_breakpoint): Save extra_string for + pending breakpoints. + +2015-06-10 Walfred Tedeschi + + * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask + and bt_mask to CORE_ADDR. + +2015-06-11 Gary Benson + + * nat/linux-namespaces.c (mnsh_send_message): Use pulongest. + (mnsh_recv_message): Likewise. + +2015-06-11 Walfred Tedeschi + + * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of + long long int and plongest instead of %ll. + +2015-06-11 Gary Benson + + * nat/linux-namespaces.c (gdb_wait.h): New include. + (sys/wait.h): Do not include. + +2015-06-10 Simon Marchi + + * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if + end_sequence is true. + +2015-06-10 Jan Kratochvil + + Code cleanup. + * solib-target.c (library_list_start_list): Use explicit NULL + comparison. + +2015-06-10 Jan Kratochvil + + * solib-target.c (library_list_start_list): Do not dereference + variable version in its initialization. Make the VERSION check handle + NULL. + (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL. + +2015-06-10 Gary Benson + + * NEWS: Announce support for direct access of executable and + shared library files when attaching to inferiors in containers + on GNU/Linux systems. + +2015-06-10 Gary Benson + + * remote.c (struct remote_state) : New field. + (new_remote_state): Initialize the above. + (PACKET_vFile_setfs): New enum value. + (remote_hostio_set_filesystem): New function. + (remote_hostio_open): Call the above. + (remote_hostio_unlink): Likewise. + (remote_hostio_readlink): Likewise. + (_initialize_remote): Register new "set/show remote + hostio-setfs-packet" command. + * NEWS: Announce new vFile:setfs packet. + +2015-06-10 Gary Benson + + * linux-nat.c (nat/linux-namespaces.h): New include. + (fileio.h): Likewise. + (linux_nat_filesystem_is_local): New function. + (linux_nat_fileio_pid_of): Likewise. + (linux_nat_fileio_open): Likewise. + (linux_nat_fileio_readlink): Likewise. + (linux_nat_fileio_unlink): Likewise. + (linux_nat_add_target): Initialize to_filesystem_is_local, + to_fileio_open, to_fileio_readlink and to_fileio_unlink. + (_initialize_linux_nat): New "set/show debug linux-namespaces" + commands. + * NEWS: Mention new "set/show debug linux-namespaces" commands. + +2015-06-10 Gary Benson + + * target.h (struct inferior): New forward declaration. + (struct target_ops) : Update comment. + (struct target_ops) : New argument inf. + Update comment. All implementations updated. + (struct target_ops) : Likewise. + (struct target_ops) : Likewise. + (target_filesystem_is_local): Update comment. + (target_fileio_open): New argument inf. Update comment. + (target_fileio_unlink): Likewise. + (target_fileio_readlink): Likewise. + (target_fileio_read_alloc): Likewise. + (target_fileio_read_stralloc): Likewise. + * target.c (target_fileio_open): New argument inf. + Pass inf to implementation. Update debug printing. + (target_fileio_unlink): Likewise. + (target_fileio_readlink): Likewise. + (target_fileio_read_alloc_1): New argument inf. Pass inf + to target_fileio_open. + (target_fileio_read_alloc): New argument inf. Pass inf to + target_fileio_read_alloc_1. + (target_fileio_read_stralloc): Likewise. + * gdb_bfd.c (inferior.h): New include. + (gdb_bfd_iovec_fileio_open): Replace unused "open_closure" + argument with new argument "inferior". Pass inferior to + target_fileio_open. + (gdb_bfd_open): Supply inferior argument to + gdb_bfd_iovec_fileio_open. + * linux-tdep.c (linux_info_proc): Supply inf argument to + relevant target_fileio calls. + (linux_find_memory_regions_full): Likewise. + (linux_fill_prpsinfo): Likewise. + * remote.c (remote_filesystem_is_local): Supply inf + argument to remote_hostio_open. + (remote_file_put): Likewise. + (remote_file_get): Likewise. + (remote_file_delete): Supply inf argument to + remote_hostio_unlink. + +2015-06-10 Gary Benson + + * inf-child.c (inf_child_fileio_open): Replace comment. + (inf_child_fileio_pwrite): Likewise. + (inf_child_fileio_pread): Likewise. + (inf_child_fileio_fstat): Insert blank line before comment. + (inf_child_fileio_close): Replace comment. + (inf_child_fileio_unlink): Likewise. + (inf_child_fileio_readlink): Likewise. + * remote.c (remote_hostio_open): Likewise. + (remote_hostio_pread): Likewise. + (remote_hostio_pwrite): Likewise. + (remote_hostio_close): Likewise. + (remote_hostio_unlink): Likewise. + (remote_hostio_readlink): Likewise. + (remote_hostio_fstat): Likewise. + (remote_filesystem_is_local): Likewise. + * target.c (target_fileio_open): Likewise. + (target_fileio_pwrite): Likewise. + (target_fileio_pread): Likewise. + (target_fileio_fstat): Insert blank line before comment. + (target_fileio_close): Replace comment. + (target_fileio_unlink): Likewise. + (target_fileio_readlink): Likewise. + (target_fileio_read_alloc): Likewise. + (target_fileio_read_stralloc): Likewise. + +2015-06-10 Gary Benson + + * linux-thread-db.c (nat/linux-namespaces.h): New include. + (check_pid_namespace_match): Use linux_ns_same rather than + linux_proc_pid_get_ns to spot PID namespace mismatches. + * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove. + * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise. + +2015-06-10 Gary Benson + + * configure.ac (AC_CHECK_FUNCS): Add setns. + * config.in: Regenerate. + * configure: Likewise. + * nat/linux-namespaces.h: New file. + * nat/linux-namespaces.c: Likewise. + * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h. + (linux-namespaces.o): New rule. + * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o. + * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. + * config/arm/linux.mh (NATDEPFILES): Likewise. + * config/i386/linux.mh (NATDEPFILES): Likewise. + * config/i386/linux64.mh (NATDEPFILES): Likewise. + * config/ia64/linux.mh (NATDEPFILES): Likewise. + * config/m32r/linux.mh (NATDEPFILES): Likewise. + * config/m68k/linux.mh (NATDEPFILES): Likewise. + * config/mips/linux.mh (NATDEPFILES): Likewise. + * config/pa/linux.mh (NATDEPFILES): Likewise. + * config/powerpc/linux.mh (NATDEPFILES): Likewise. + * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. + * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. + * config/s390/linux.mh (NATDEPFILES): Likewise. + * config/sparc/linux.mh (NATDEPFILES): Likewise. + * config/sparc/linux64.mh (NATDEPFILES): Likewise. + * config/tilegx/linux.mh (NATDEPFILES): Likewise. + * config/xtensa/linux.mh (NATDEPFILES): Likewise. + +2015-06-10 Gary Benson + + * utils.h (make_cleanup_close): Moved to common/filestuff.h. + * utils.c (do_close_cleanup): Moved to common/filestuff.c. + (make_cleanup_close): Likewise. + * common/filestuff.h (make_cleanup_close): Moved from utils.h. + * common/filestuff.c (do_close_cleanup): Moved from utils.c. + (make_cleanup_close): Likewise. + +2015-06-03 Jon Turney + + * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE + from SuspendThread(). + +2015-06-03 Jon Turney + + * windows-nat.c (handle_output_debug_string): Trim trailing '\n' + from OutputDebugString. + +2015-06-10 Walfred Tedeschi + Mircea Gherzan + + * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32, + MPX_BT_MASK_32): New macros. + (i386_mpx_set_bounds): New function that implements + the command "set-mpx-bound". + (i386_mpx_enabled): Helper function to test MPX availability. + (i386_mpx_bd_base): Helper function to calculate the base directory hooks/post-receive -- Repository for Project Archer.