Coder Social home page Coder Social logo

Comments (7)

markus-metzger avatar markus-metzger commented on June 3, 2024 2

I did the Linux part. If you can point me to the Windows Intel PT user-space API, I can probably add that, too. Or help review it.

from libipt.

markus-metzger avatar markus-metzger commented on June 3, 2024

Hmmm, the error message is not very helpful, I agree.

GDB only supports Intel PT with the Linux target. There, it should work for any recent (many years, meanwhile) IA processor and Linux kernel. For the Windows target, one would need to add support based on Windows' Intel PT user-space API.

Libipt is an Intel PT decoder, not a recorder. It takes the trace that was recorded plus the binaries that were traced (or a live memory access callback) and re-constructs the control-flow. On Linux, the perf event sub-system is the recorder.

Adding the Windows target recording layer to GDB should be straight-forward. All the decoding, CLI, remote support, and lots of tests are already there. What's missing, to my knowledge, is the Windows Intel PT user-space API.

from libipt.

GitMensch avatar GitMensch commented on June 3, 2024

Thank you for that useful answer. Do you have contact to a gdb hacker that may add the missing piece?

from libipt.

GitMensch avatar GitMensch commented on June 3, 2024

Was there an actual change in GDB for that? Otherwise - I agree that the question issue is solved, should we create a new issue about the GDB integration? Otherwise the GDB patches mailing list is likely the right place to discuss that.

from libipt.

markus-metzger avatar markus-metzger commented on June 3, 2024

The libipt question is solved IMHO. To enable GDB, we first need a Windows Intel PT user-space API. Once that is available, the GDB mailing list would be the right place to discuss GDB enabling.

from libipt.

GitMensch avatar GitMensch commented on June 3, 2024

To enable GDB, we first need a Windows Intel PT user-space API.

How to get to that?

from libipt.

markus-metzger avatar markus-metzger commented on June 3, 2024

To enable GDB, we first need a Windows Intel PT user-space API.

How to get to that?

Windows needs to provide that.

from libipt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.