Skip to content

Fix function last line do not saved in pc2line table issue #102

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

Closed
wants to merge 1 commit into from

Conversation

pengyz
Copy link

@pengyz pengyz commented Nov 15, 2021

pc2line table only saves the diff between lines, so the function end
next line is needed to generate the function's last line diff, the
previous code missed it.

This patch fixed it by change the line number generate logic a bit.

This bug is found on https://github.com/koush/quickjs, an unofficial
debugger implementation, push it to the upstream.

Signed-off-by: pengyaozong pengyaozong@xiaomi.com

pc2line table only saves the diff between lines, so the function end
next line is needed to generate the function's last line diff, the
previous code missed it.

This patch fixed it by change the line number generate logic a bit.

This bug is found on https://github.com/koush/quickjs, an unofficial
debugger implementation, push it to the upstream.

Signed-off-by: pengyaozong <pengyaozong@xiaomi.com>
@tomByrer
Copy link

Public repository of the QuickJS Javascript Engine. Pull requests are not accepted. Use the mailing list to submit patches.

HarlonWang added a commit to HarlonWang/quickjs that referenced this pull request Mar 21, 2023
@bellard
Copy link
Owner

bellard commented Apr 14, 2025

I am not sure the patch is really needed. Without a precise example I won't look at it.

@bellard bellard closed this Apr 14, 2025
@pengyz
Copy link
Author

pengyz commented Apr 14, 2025 via email

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

Successfully merging this pull request may close these issues.

3 participants