This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-7.10-branch] btrace: diagnose "record btrace pt" without libipt
- From: sergiodj+buildbot at redhat dot com
- To: gdb-testers at sourceware dot org
- Date: Thu, 26 Nov 2015 07:29:37 -0500
- Subject: [binutils-gdb/gdb-7.10-branch] btrace: diagnose "record btrace pt" without libipt
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT bab694b7f968cc5703a69df694b5968384d6c0b4 ***
Author: Markus Metzger <markus.t.metzger@intel.com>
Branch: gdb-7.10-branch
Commit: bab694b7f968cc5703a69df694b5968384d6c0b4
btrace: diagnose "record btrace pt" without libipt
If GDB has been configured without libipt support, i.e. HAVE_LIBIPT is
undefined, and is running on a system that supports Intel(R) Processor Trace,
GDB will run into an internal error when trying to decode the trace.
(gdb) record btrace
(gdb) s
usage (name=0x7fffffffe954 "fib-64")
at src/fib.c:12
12 fprintf(stderr, "usage: %s <num>\n", name);
(gdb) info record
Active record target: record-btrace
Recording format: Intel(R) Processor Trace.
Buffer size: 16kB.
gdb/btrace.c:971: internal-error: Unexpected branch trace format.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
This requires a system with Linux kernel 4.1 or later running on a 5th
Generation Intel Core processor or later.
The issue is documented as PR 19297.
When trying to enable branch tracing, in addition to checking the target
support for the requested branch tracing format, also check whether GDB
supports. it.
gdb/
* btrace.c (btrace_enable): Check whether HAVE_LIBIPT is defined.
- Follow-Ups:
- Failures on Debian-s390x-native-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-x86_64-m32, branch gdb-7.10-branch
- Failures on Fedora-i686, branch gdb-7.10-branch
- Failures on Debian-i686, branch gdb-7.10-branch
- Failures on AIX-POWER7-plain, branch gdb-7.10-branch
- Failures on Fedora-x86_64-cc-with-index, branch gdb-7.10-branch
- Failures on Fedora-x86_64-native-extended-gdbserver-m32, branch gdb-7.10-branch
- Failures on RHEL-s390x-m64, branch gdb-7.10-branch
- Failures on Debian-s390x-native-extended-gdbserver-m64, branch gdb-7.10-branch
- Failures on Debian-i686-native-gdbserver, branch gdb-7.10-branch
- Failures on Fedora-x86_64-native-extended-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-x86_64-native-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-x86_64-m64, branch gdb-7.10-branch
- Failures on Fedora-x86_64-native-gdbserver-m32, branch gdb-7.10-branch
- Failures on Debian-i686-native-extended-gdbserver, branch gdb-7.10-branch
- Failures on Debian-x86_64-native-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-ppc64be-cc-with-index, branch gdb-7.10-branch
- Failures on Fedora-ppc64be-m64, branch gdb-7.10-branch
- Failures on Fedora-ppc64be-native-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-ppc64be-native-extended-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-ppc64le-native-extended-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-ppc64le-native-gdbserver-m64, branch gdb-7.10-branch
- Failures on Fedora-ppc64le-m64, branch gdb-7.10-branch