RE: How to enable Intel Processor Trace support?

"Aktemur, Tankut Baris via Gdb" <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <DM6PR11MB38848903BDD48A9449E0B9E5C45B9@DM6PR11MB3884.namprd11.prod.outlook.com>
On Friday, January 21, 2022 4:19 PM, Simon Sobisch wrote:
> (gdb) record btrace pt
> Intel Processor Trace support was disabled at compile time.
> 
> I neither found a configure flag or a check for libipt - so how can I
> enable/disable this at compile time and where can I find that in the
> documentation?

Hi Simon,

You can build using the "--with-libipt-prefix" option when configuring GDB.

$ gdb/configure --help | grep libipt
  --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
  --without-libipt-prefix     don't search for libipt in includedir and libdir
  --with-libipt-type=TYPE     type of library to search for (auto/static/shared)

-Baris


Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
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.