This is the final patch that does actual addition of build-id attribute to qxfer_libraries. * doc/gdb.texinfo (Library List Format for SVR4 Targets): Add 'build-id' in description, example, new attribute in dtd. * linux-low.c (linux-maps.h, search.h): Include. (struct build_id_list): New structure. (build_id_list_s): New typedef, new vector type def. (free_build_id_list, compare_build_id_list, compare_build_id_list_range, compare_build_id_list_inode): New. (struct find_memory_region_callback_data): New. (find_memory_region_callback): New fwd. declaration. (read_build_id, find_memory_region_callback, get_hex_build_id): New. (linux_qxfer_libraries_svr4): Add optional build-id attribute to reply XML document. Thanks, Aleksandar