Comments (5)
Cecil uses an old open sourced PDB reader written by Microsoft, but I don't think it was written by MS' PDB experts, my guess is it was written by an intern. You can debug it and see where it fails. If there are bugs in it, it's not something I'll fix.
Do you have code to reproduce this? Are you sure this only happens if you modify the Win32 resources? AFAICR, the PDB reader doesn't use anything from the Win32 resources.
You can use dnlib to loop over every type and method and print the name of the locals and sequence points (stored in instructions) and compare the output before your update and after it. dnlib has two PDB readers, one using Diagnostics Symbol Store (MS' COM PDB reader) and another managed reader written by Ki. Try both and see if they produce the same result.
from dnlib.
I should mention that I assume you let dnlib write a new PDB file after you modified the Win32 resources. If you didn't that's the first thing you should try. :)
var opts = new ModuleCreationOptions(ModuleDef.CreateModuleContext());
opts.PdbImplementation = comPdb ? PdbImplType.MicrosoftCOM : PdbImplType.Managed;
opts.TryToLoadPdbFromDisk = true;
from dnlib.
I am totally sure that it is broken when modifying Win32 resources and only with this.
However I did not try both PDB writers (dnlib is rich 😄), I'll check this.
I was asking just in case it was ringing a bell and make you answer something like "Oh yes! I know!"; Since this is not the case, I'll do some research by myself and let you know.
from dnlib.
There's only one PDB writer, but two readers because the original COM reader has limitations (can only be used in the created thread) so Ki wrote a managed reader that can be used in any thread.
When you modify the Win32 resources, do you also write a new PDB file?
from dnlib.
Yes, I write a new one. However, I don't make any change to it (I assume the magic works).
from dnlib.
Related Issues (20)
- Optimize properties on `TypeRef` and `TypeDef` HOT 3
- Import property without using typeof
- HasOverrides Generic Type HOT 2
- PDB Generated is wrong HOT 7
- Linux R2R mixed dll can't be saved. HOT 2
- Single File Executable Error: .NET data directory RVA is 0
- Potential feature: Support for 64 bit offsets and length in dnlib.IO HOT 2
- The precise method for calculating 'RVA'
- Can ITypeOrMethodDef implement IMemberDef? HOT 1
- InvalidOperationException when md rva isn't alignment HOT 5
- dnlib is missing NuGet package README file
- ModuleWriterException: Invalid section RVA HOT 1
- Should we update ReturnParameter when updating ReturnType? HOT 2
- .NET cannot install (UAC prompt when running installer)
- dnlib.DotNet.Writer.ModuleWriterException HOT 2
- "Expected a null constant." error when saving assembly with pdb HOT 6
- Why don't CreateGenericInstMethodSig HOT 25
- I already know how UnknownDeclaringType happen HOT 1
- Sort `ExportedType` table in the same way as the `TypeDef` table HOT 3
- Need to dispose of enumerators
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 dnlib.