add support for reloading the current file

This commit is contained in:
2025-11-25 21:20:13 -08:00
parent 1a184b1a08
commit 75b19042b9
3 changed files with 646 additions and 353 deletions

View File

@@ -26,3 +26,8 @@ clean:
.PHONY: test.txt
test.txt:
cp test.txt.bak $@
.PHONY: gdb
gdb:
@test -f $(TARGET).pid || (echo "error: $(TARGET).pid not found" >&2; exit 1)
@gdb -p $$(cat $(TARGET).pid | tr -d ' \t\n\r') ./$(TARGET)