Comments (7)
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.
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.
Thank you for that useful answer. Do you have contact to a gdb hacker that may add the missing piece?
from libipt.
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.
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.
To enable GDB, we first need a Windows Intel PT user-space API.
How to get to that?
from libipt.
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)
- 2.1: LTO exposes `[-Werror=maybe-uninitialized]` warnings HOT 4
- Possible discrepancy between Intel manual and implementation WRT compressed return logic. HOT 4
- `pte_bad_query` for user-space tracing across a syscall immediately followed by `ret` HOT 1
- Docs: clarify the kind of error HOT 5
- Comparisons between types of different widths in a loop condition can cause the loop to behave unexpectedly. HOT 5
- build ptxed HOT 2
- About synchronization HOT 2
- about pt record HOT 2
- ‘ptic_error’ undeclared when running "make user"
- about `--pevent:time-zero` HOT 2
- about parallel HOT 2
- How to use ptxed with the buffers generated by the perf_event_open system call? HOT 10
- `unexpected packet context` in initial sync point HOT 11
- Decoder out of sync and not enough recorded data. HOT 6
- Decoding errors when XED is not initialised correctly HOT 28
- questions about TIP.PGD with IP HOT 3
- Decoding trace in reverse execution order HOT 7
- new tag/release? HOT 5
- cmake builds/installs liblibipt on MSYS2 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libipt.