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

Updating an existing location list from .debug_loc #531

Open
vaibspider opened this issue Aug 24, 2020 · 1 comment
Open

Updating an existing location list from .debug_loc #531

vaibspider opened this issue Aug 24, 2020 · 1 comment

Comments

@vaibspider
Copy link
Contributor

vaibspider commented Aug 24, 2020

Hi,
I am trying to update a location list present in a relocatable object file. I noticed that gimli::write::LocationListTable only has an add() method. I am able to add a new location list with this interface. But, I don't see an interface to get a mutable location list for an offset from this LocationListTable, which we can update.

I also searched for a way to get a readable instance of Location List and then convert it into a writable form, but couldn't find such interface. (I can get LocListIter with gimli::read::Dwarf::attr_locations(), but only for reading)

Am I missing something?
Thanks!

@philipc
Copy link
Collaborator

philipc commented Aug 24, 2020

There's currently very little ability to mutate the debug info, but adding the ability to do so would be welcome. (#374 is a similar problem.)

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