Reverse-debugging with Intel PT not working

Jack Henschel <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hi,

I'm running Linux 4.9.30 (Debian Stretch), with GDB 8.0 (compiled from source, with './configure --with-intel-pt'). libipt is present and gdb is linked against it.
I'm running an Intel Xeon CPU E5-2680 v4 (which supports Intel PT, the flag is also present in '/proc/cpuinfo').

However, when I'm trying to do a record-and-play session, I get the error message "Target does not support branch tracing":
$ gcc -g crash.c
$ gdb -q ./a.out
(gdb) start
...
(gdb) record btrace pt
Target does not support branch tracing.

Any idea why this happens?
I have seen https://sourceware.org/ml/gdb/2016-09/msg00029.html and my setup fullfills are requirements.

Greetings
Jack
signature.asc (application/pgp-signature, 862 B)
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCAAyFiEE5SNfW5QVort2C78YV5HQ+s4K8DwFAlma8sgUHGphY2tkZXZA
bWFpbGJveC5vcmcACgkQV5HQ+s4K8DwkjxAAlVY/7rvIPaKeenPJSisH8bc1UWgl
uEknwHftnAvfdeMWcKwIz8YYDa7FEfh5dvc1lTqB8VffGwTtwkbLwWgMW4JfxqE6
vq+I6a3NcZbavOK5Fm23AMtH064uR/iCwUAW63i1lPOpt3Gtnsz2QzWrqd3DSQv3
14c1PXYsCUjyFmNPpe7HC1qR6Y+3NH7Okm0kgje1+8MmQ4ERlSxGIo4d6NrWhmBv
uZVpXR55SjgCeqmeNCSpJqIxWwEpQ70tlL13ZIhbjxEA9mv6YpUp5jJQtFMs8RlB
tjwlTrsx9wZSZ2KC89nZ8WEyigFJX/+MM/nzkTcJN+HYBydX3y4GolJsECcXNtRp
RQp6n+ct7JDxNXh4u0/JPGb5xoEDbXDza7bnZpT8r1feQqH3AWjvWULNdwVqH+M9
pJyk+lGc+txBb+4LUfq8F2WYWwh13G29hxQsNPXqxHyAnGHITpZ2jM2igRznr366
6y4DdyE52jpHT+vz+qHsZULwOwmQpvp2ZizkiNrYGSw64HDFqjbxrbhFttTw0yi9
DUDW638huM5gdqwmrF2Y3ihEHhlPN/KqWNngEQkMGi93+nLhVYg+1HF7lajZvLLD
47BMfKro/8FgfwHAKRjM5skybpuaJYGz/0hnkoaFo2fprPXs88k0ZBPFrZfdHKpj
w+cv6GGm0SIR7pY=
=b0ds
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.