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

Mismatch line numbers. #50

Closed
epasveer opened this issue Apr 20, 2022 · 1 comment
Closed

Mismatch line numbers. #50

epasveer opened this issue Apr 20, 2022 · 1 comment

Comments

@epasveer
Copy link
Owner

Sometimes seer will position the current line on the wrong line.

This happens if the source files have blank lines at the top of the source file. This causes a mismatching of the current line. Blank lines later on do no matter.

This test program illustrates the problem. Note the blank lines in front of '#include'.

% cat fail.c


#include <stdio.h>

int main()
{
    printf("hi ");
    printf("there ");
    printf("Ernie!\n");

    return 0;
}

Compile/link the program with:

% gcc -g fail.c -o fail

Debug it with:

% seer -s fail

And you'll see seer has removed the preceeding blank lines, thus causing the mismatching.

Thanks to @chucktilbury for figuring this out.

@epasveer
Copy link
Owner Author

Fixed.

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

1 participant