From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101388 invoked by alias); 7 Jun 2015 20:03:25 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 101368 invoked by uid 9674); 7 Jun 2015 20:03:25 -0000 Date: Sun, 07 Jun 2015 20:03:00 -0000 Message-ID: <20150607200325.101322.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: 2fbc2b0cb4ff3e4c6a7ef02749653c1747da9f19 X-Git-Newrev: 971aa2604ea2e262dbac28d57933bca8201a6864 X-SW-Source: 2015-q2/txt/msg00004.txt.bz2 List-Id: The branch, jankratochvil/gdbserverbuildid has been updated discards 2fbc2b0cb4ff3e4c6a7ef02749653c1747da9f19 (commit) discards e601561bc5b2adb1bdd041a7dc5c7e1358496228 (commit) discards 3a3a3ce92198a65148e4e672dcc692f6ebbfd8fa (commit) discards 1cac73de9655a15f4965ddfd7dde4b958491caa9 (commit) discards c19653f07469cc563582d60dc831dc34623ad814 (commit) discards 8d514d7acf6659030cf77beb8d98de4116e596f7 (commit) discards 1e4c113a93918ab0eddcda19eea7fc56dab10f20 (commit) discards 103592093b582d56441da9ad7f507e25d91fb0b9 (commit) discards 9fa9d3b4de953a33bf6ae3dd41b29d63301f8841 (commit) discards 71384a71377cc485c6ad19aad7764ead857db213 (commit) via 971aa2604ea2e262dbac28d57933bca8201a6864 (commit) via f731f7f528e35eb10cf1b85e68a66e76ae6f1221 (commit) via ccf6b2eff2b3d32f909b57deb827c8fd5e1cce19 (commit) via ef8112f078a7a4d249b0559c502c0bd5e9b20e9f (commit) via 807bb225ca8d798ca9941cb92ab0cfccb6f37e79 (commit) via 3fefa8e1732c0e68991ea9cfee838d47ebad2f41 (commit) via 9fcdf3207245c9f72297a605afb36923f1b664bf (commit) via 5831b3f425ada0169cde276ebfff6d3b4a093839 (commit) via 7cf1e8a8effcdc2029a8fb9a919024619b9e9296 (commit) via 465f7e286a70f79cf966ea9d3c9ff5e0ac65df33 (commit) from 2fbc2b0cb4ff3e4c6a7ef02749653c1747da9f19 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 971aa2604ea2e262dbac28d57933bca8201a6864 Author: Jan Kratochvil Date: Sun Jun 7 15:55:31 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 7 15:55:31 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 ccf6b2eff2b3d32f909b57deb827c8fd5e1cce19 Author: Jan Kratochvil Date: Sun Jun 7 15:55:31 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 (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 ef8112f078a7a4d249b0559c502c0bd5e9b20e9f Author: Jan Kratochvil Date: Sun Jun 7 15:55:31 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. * common/linux-maps.c (fcntl.h, unistd.h, target.h, gdb_assert.h) (ctype.h, string.h, target-utils.h, gdb_regex.h): Include. (struct smaps_vmflags, read_mapping, decode_vmflags) (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c. [GDBSERVER] (linux_find_memory_read_stralloc_1_pread): New function. [GDBSERVER] (linux_find_memory_read_stralloc_1): New function. (linux_find_memory_read_stralloc): New function. (linux_find_memory_regions_full): Move from linux-tdep.c. * common/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. * common/target-utils.c (string.h, gdb_assert.h): Include. (read_alloc, read_stralloc): Move definitions from target.c. * common/target-utils.h (read_alloc_pread_ftype): New typedef. (read_alloc): New declaration. (read_stralloc_func_ftype): New typedef. (read_stralloc): New declaration. * linux-tdep.c (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 common/linux-maps.c. (linux_find_memory_region_ftype): Moved typedef to common/linux-maps.h. (linux_find_memory_regions_full): Moved definition to common/linux-maps.c. * target.c (target-utils.h): Include. (read_alloc_pread_ftype): Moved typedef to common/target-utils.h. (read_alloc, read_stralloc): Moved definitions to common/target-utils.c. commit 807bb225ca8d798ca9941cb92ab0cfccb6f37e79 Author: Jan Kratochvil Date: Sun Jun 7 15:55:30 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 3fefa8e1732c0e68991ea9cfee838d47ebad2f41 Author: Jan Kratochvil Date: Sun Jun 7 15:55:30 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 9fcdf3207245c9f72297a605afb36923f1b664bf Author: Jan Kratochvil Date: Sun Jun 7 15:55:30 2015 +0200 Create empty common/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 common/linux-maps.[ch] and common/target-utils.[ch]. * Makefile.in (HFILES_NO_SRCDIR); Add common/linux-maps.h, common/target-utils.h. (COMMON_OBS): Add target-utils.o. (linux-maps.o, target-utils.o): New. * common/linux-maps.c: New file. * common/linux-maps.h: New file. * common/target-utils.c: New file. * common/target-utils.h: New file. * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o. * config/i386/linux64.mh (NATDEPFILES): Ditto. gdb/gdbserver/ChangeLog 2014-02-26 Aleksandar Ristovski Create empty common/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 5831b3f425ada0169cde276ebfff6d3b4a093839 Author: Jan Kratochvil Date: Sun Jun 7 15:55:30 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 7cf1e8a8effcdc2029a8fb9a919024619b9e9296 Author: Jan Kratochvil Date: Sun Jun 7 15:55:29 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 465f7e286a70f79cf966ea9d3c9ff5e0ac65df33 Author: Jan Kratochvil Date: Sun Jun 7 15:55:29 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. ----------------------------------------------------------------------- Summary of changes: First 500 lines of diff: hooks/post-receive -- Repository for Project Archer.