Paolo Bonzini 1138f24645 qemu-gdb: allow using glibc_pointer_guard() on core dumps
get_fs_base() cannot be run on a core dump, because it uses the arch_prctl
system call.  The fs base is the value that is returned by pthread_self(),
and it would be nice to just glean it from the "info threads" output:

* 1    Thread 0x7f16a3fff700 (LWP 33642) pthread_cond_wait@@GLIBC_2.3.2 ()
              ^^^^^^^^^^^^^^

but unfortunately the gdb API does not provide that.  Instead, we can
look for the "arg" argument of the start_thread function if glibc debug
information are available.  If not, fall back to the old mechanism.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1444636974-19950-2-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-10-29 17:59:26 +00:00
..
2015-03-10 10:49:25 +01:00
2015-09-04 13:18:04 +02:00
2014-02-20 13:14:18 +01:00
2012-03-30 08:14:11 -05:00
2015-10-12 18:44:54 +02:00
2015-10-12 18:46:50 +02:00
2015-02-16 15:07:18 +00:00
2012-04-16 15:41:20 +02:00
2014-02-15 16:10:25 +04:00
2012-03-24 14:10:25 +00:00
2014-06-09 15:43:40 +02:00