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

Threads to kill hung program; fixed source display issue #3

Merged
merged 7 commits into from
Nov 7, 2024

Conversation

jvalcher
Copy link
Owner

@jvalcher jvalcher commented Nov 7, 2024

I added threads for sending and getting key input from the user. A mutex ensures that a kill, quit, esc command can be sent to restart the debugger when a debugged program hangs, e.g. in an infinite loop, and not interfere with the select_window() or form input.

There were certain situations where the source file window would display a random file, when it should be displaying the main source file, e.g. when setting a breakpoint while the program is not running and when killing the program. I added a separate buffer for the main source file and some logic to prevent this.

I changed the register window from wrapped to non-wrapped text. I also moved create_scroll_buffer_llist() back into display_lines.c.

@jvalcher jvalcher merged commit ed0c8a6 into main Nov 7, 2024
1 check passed
@jvalcher jvalcher deleted the thread-kill branch November 7, 2024 19:38
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