FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

orbmortem: fix source line association by tpwrules · Pull Request #174 · orbcode/orbuculum · GitHub

Repository navigation

orbmortem: fix source line association - #174

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

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

Conversation

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`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL