This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC] Work around PR libc/13097 "linux-vdso.so.1"
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 16 Aug 2011 15:36:57 +0200
- Subject: [RFC] Work around PR libc/13097 "linux-vdso.so.1"
Hi,
with recent glibc GDB starts to print:
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
I think it should be fixed in glibc, submitted, RFC:
http://sourceware.org/bugzilla/show_bug.cgi?id=13097
but as I had to make a temporary Fedora fix anyway posting it here.
Currently not intending to check it in FSF GDB.
Thanks,
Jan
gdb/
2011-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
Work around PR libc/13097.
* solib.c (update_solib_list): Ignore "linux-vdso.so.1".
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -783,8 +783,10 @@ update_solib_list (int from_tty, struct target_ops *target)
TRY_CATCH (e, RETURN_MASK_ERROR)
{
- /* Fill in the rest of the `struct so_list' node. */
- if (!solib_map_sections (i))
+ /* Fill in the rest of the `struct so_list' node.
+ Work around PR libc/13097. */
+ if (!solib_map_sections (i)
+ && strcmp (i->so_original_name, "linux-vdso.so.1") != 0)
{
not_found++;
if (not_found_filename == NULL)