Skip to content

orbmortem: fix source line association - #174

Open
tpwrules wants to merge 1 commit into
orbcode:mainfrom
tpwrules:pr/fix-orbmortem-file-lines
Open

orbmortem: fix source line association#174
tpwrules wants to merge 1 commit into
orbcode:mainfrom
tpwrules:pr/fix-orbmortem-file-lines

Conversation

@tpwrules

Copy link
Copy Markdown

The source loader accidentally ate the character after each newline, rather than the newline itself. This led to consecutive lines disappearing, and lines sometimes losing their first character. The former screwed up the association between lines in the debug info and the file displayed by orbmortem.

Fix by zeroing the newline character itself. The character is already consumed according to the l and r variables; it just needs changing to \0.

The source loader accidentally ate the character after each newline,
rather than the newline itself. This led to consecutive lines
disappearing, and lines sometimes losing their first character. The
former screwed up the association between lines in the debug info and
the file displayed by orbmortem.

Fix by zeroing the newline character itself. The character is already
consumed according to the `l` and `r` variables; it just needs changing
to `\0`.
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.

1 participant