Skip to content
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

void pointer initlalized as a class not identified #448

Open
manig28 opened this issue Oct 19, 2022 · 2 comments
Open

void pointer initlalized as a class not identified #448

manig28 opened this issue Oct 19, 2022 · 2 comments

Comments

@manig28
Copy link

manig28 commented Oct 19, 2022

Hi,

I am facing an issue with the elftools. I am trying to fetch dwarf information from a binary compiled from c++.
What i am seeing is , if i initialize a pointer of type void with a class. we don't get that class or constructor in the DIEs fetched from the binary. Is this expected ? Can somebody please look into it ?

@sevaa
Copy link
Contributor

sevaa commented Oct 19, 2022

The class definition is most likely there in the DWARF info. The fact that the pointer holds an address of an instance of that class is most likely lost. Think about it: when you look at a void pointer in the IDE's watch window, does the debugger know what does the pointer really hold?

The fact that at some point you construct an instance of the class and assign that to a void pointer type variable is not the kind of thing that debug info holds.

@sevaa
Copy link
Contributor

sevaa commented Apr 4, 2024

@manig28 : is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants