New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDB Can create DataVariable to types which don't exist #4235
Comments
The problem here is that the type at the DataVariable in question is a NamedTypeReference which points to a type which doesn't exist. I don't know how you got into this state but the code above is working as intended. This would be equivalent to a compiler error like if you had done:
and tried to compile it. You'd get a 'foobar' is not defined. My assumption is that you wrote a script to define this type and perhaps made a mistake. If however you were able to create this though the UI this would be a bug though not in the area that is pointed out in the code above. |
Sry! Forgot to answer. I get your point and it's totally valid if the type was set by a custom script. |
Ah yes you're right then this is a bug. I've ran into this too. I thought there was already an issue for this bug but it looks like there isn't. |
This is the fault of the name demangler. The symbol Looks like there is no main issue for this (all of the ones i can find are specific to other weird cases). I'll go make one for it, I guess. Relevant: #3062 #2757 |
Potential solutions here are:
For the purposes of this issue, option 1 would solve it fastest. Option 2 is the longer term correct solution, though. |
I've made #4551 to track the main issue for this. I'll leave this open as a band-aid solution for PDB is probably higher value-for-time than fixing the real problem right now. |
This is being addressed for PDBs specifically in build >= 3.5.4455-dev. Referenced missing types will have empty structures and enums created when loading a PDB. The general issue #4551 remains open for now though. |
Is there any chance the same solution could be implemented for DWARF debug data? |
Version and Platform (required):
Bug Description:
Can't access
value
property of anDataVariable
because ofValueError: Couldn't find target for type
.Type is
enum HRTType
.Steps To Reproduce:
With a python shell:
Expected Behavior:
Access value of
DataVariable
Additional Information:
Binary which produces errror: esentutl.tar.gz
The text was updated successfully, but these errors were encountered: