Comments (6)
Totally understandable. I wasn’t asking to scope creep this crate. I was asking potentially if a new crate for that other com interface could be auto-generated using similar methods.
Alternatively, if there is a guide on how to generate these, I would be more than happy to create one myself.
from dia-rs.
I wanted to see if the same fix applied for get_checksum is applicable here.
Yep, appears so!
The second question is that I just don't see which symbol to actually call get_sourceLink on.
It's hanging off IDiaSymbol10
, which you need to QI for.
Example:
// ...
let symbol: IDiaSymbol10 = symbol.cast()?;
symbol.get_sourceLink(...)?;
from dia-rs.
Heads up, DIA SDK public API doesn't provide IDiaSession13
and possibly other requisite types needed for a complete source link solution. You'll probably have to shell out to C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\srcsrv\pdbstr.exe
to retrieve that information.
Also be sure to upvote https://developercommunity.visualstudio.com/t/Is-there-an-API-for-reading-Source-Link-/1468642.
from dia-rs.
Heads up, DIA SDK public API doesn't provide
IDiaSession13
and possibly other requisite types needed for a complete source link solution. You'll probably have to shell out toC:\Program Files (x86)\Windows Kits\10\Debuggers\x64\srcsrv\pdbstr.exe
to retrieve that information.Also be sure to upvote https://developercommunity.visualstudio.com/t/Is-there-an-API-for-reading-Source-Link-/1468642.
Would it be possible to expose these com api’s as well as a crate?
https://github.com/dotnet/symreader/blob/main/src/Microsoft.DiaSymReader/Reader/ISymUnmanagedReader4.cs
- Jeromy
from dia-rs.
This project is just a sample to show how such Rust bindings can be generated from metadata. Let's not feature creep this into something else. 😀 Our best bet is to get the DIA folks to update their SDK.
from dia-rs.
Here's a guide that walks through generating this very crate: https://withinrafael.com/2023/01/18/generating-metadata-for-the-windows-crate/
But this won't help you with Microsoft.DiaSymReader. It appears that team is focused squarely on .NET-only bindings; I can't find any C++ headers, libs, or IDL. It's a feasible project, but will require some extra work to deal with this. Still thinking through it.
from dia-rs.
Related Issues (5)
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 dia-rs.