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

Expose LineProgram line subsections #119

Open
mstange opened this issue May 21, 2022 · 2 comments
Open

Expose LineProgram line subsections #119

mstange opened this issue May 21, 2022 · 2 comments

Comments

@mstange
Copy link
Collaborator

mstange commented May 21, 2022

At the moment, LineProgram only exposes all line records, or the line records for a certain "line subsection" if you know the line subsection's start offset.

However, I have a case where I do not know the line subsection's start offset, because I'm dealing with a PDB file which has line information but no procedure information (due to /DEBUG:FASTLINK). I would like to enumerate the offsets of all the line subsections.

Can we expose the debug line subsections? We already have an internal iterator type for them but it's not exposed.

@mstange mstange changed the title Expose LineProgram line sections Expose LineProgram line subsections May 21, 2022
@mstange
Copy link
Collaborator Author

mstange commented May 21, 2022

I might not need this after all. I can get these start offsets from the section contributions.

@jan-auer
Copy link
Member

jan-auer commented Jun 3, 2022

Going through section contributions is probably harder than necessary for you, eventually we should probably expose all of the C13 section stuff. I'll check if this is a simple change.

Note that the interface has also changed. Since #68 you can now look for lines based on any offset within the section through lines_for_symbol.

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