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

Re-rerun QEMU + gdb y^M #88

Open
nickdesaulniers opened this issue Dec 16, 2022 · 0 comments
Open

Re-rerun QEMU + gdb y^M #88

nickdesaulniers opened this issue Dec 16, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@nickdesaulniers
Copy link
Member

nickdesaulniers commented Dec 16, 2022

super low priority, but sometimes my prompt gets corrupted when asked to rerun qemu.

I can enter y, but inserts ^M for some reason.

stty icrnl seems to fix this once I quit. Not sure if the below would help, since output from the terminal gets further corrupted it seems...

diff --git a/boot-qemu.py b/boot-qemu.py
index a2efc2481900..4c32598ab3c3 100755
--- a/boot-qemu.py
+++ b/boot-qemu.py
@@ -781,6 +781,9 @@ def launch_qemu(cfg):
                 utils.red("Killing QEMU...")
                 qemu_process.kill()
 
+            # Sometimes gdb disables icrnl so that at the prompt below, hitting
+            # enter inserts ^M
+            subprocess.run(["stty", "icrnl"])
             answer = input("Re-run QEMU + gdb? [y/n] ")
             if answer.lower() == "n":
                 break
@nickdesaulniers nickdesaulniers added the bug Something isn't working label Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant