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

differentiate reconstructed symbol table based entries #13

Open
m4b opened this issue Dec 24, 2017 · 6 comments
Open

differentiate reconstructed symbol table based entries #13

m4b opened this issue Dec 24, 2017 · 6 comments

Comments

@m4b
Copy link

m4b commented Dec 24, 2017

I realized that when the debuginfo is missing for a symbol table entry, ddbug still outputs the entry with whatever it finds in the symbol table.

This is great! However, it did mislead me by thinking the debuginfo was emitted (when it wasn't), and this was something I was specifically investigating.

Is it possible to add for these cases something like a (no debug info) field or (reconstructed) or something, in order to flag it?

@philipc
Copy link
Collaborator

philipc commented Dec 24, 2017

It should be putting these in a <symtab> unit.

@m4b
Copy link
Author

m4b commented Dec 24, 2017

Ah, I didn't even check for that/would have suspected it.

@m4b
Copy link
Author

m4b commented Dec 24, 2017

We can close then I guess, makes sense. To be clear anything not found in dwarf stuff is put into synthetic unit, whose values/members are extracted directly from the binaries symbol table, yes?

Would be nice to have a blurb about this somewhere, but not sure where that would go.

EDIT

also my usecase was i was grepping symbols with a -C 5 so i'd still have to check they're after symtab unit. It's not really important though, just thought I'd add that.

@philipc
Copy link
Collaborator

philipc commented Dec 24, 2017

To be clear anything not found in dwarf stuff is put into synthetic unit, whose values/members are extracted directly from the binaries symbol table, yes?

Yes.

I do need to write some sort of documentation/manual that explains things like this.

I understand your use case, but it's possibly a bit specialized. I think the issue is you're coming from an angle of wanting to debug the DWARF generation, instead of just wanting to extract information (which is mostly what I use it for). I could add an option to disable usage of the symbol table, but I probably don't want to do anything more intrusive than that.

@philipc
Copy link
Collaborator

philipc commented Dec 24, 2017

One thing you could do is if you know which unit the entry is in, then you could pass an option to ddbug to only display that unit.

@m4b
Copy link
Author

m4b commented Dec 24, 2017

yea, unit maybe could work, but honestly your time is probably spent elsewhere and other features. now that i know about symtab unit, i just know what to look out for

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