aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-02-06 00:05:32 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-02-06 00:05:32 +0100
commit43085563697bda1757e8576566d80ade129f5ae2 (patch)
tree2afbcccba0eb57e58046d7cbc223e3ad709ec876 /src
parenta8414b1abb20e35ef7df41e75372b244fe80bebc (diff)
DEBUG_PAUSE in main.c now works on any system with a standard libc
It's also sometimes useful on UNIX, e.g. when there is no gdbserver.
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 0023c78..8bc02f1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -54,7 +54,7 @@
/*
* Define this to pause the program at the beginning
- * of main() (Windows only).
+ * of main().
* This is a useful hack on Windows, where gdbserver
* sometimes refuses to start SciTECO but attaches
* to a running process just fine.
@@ -382,8 +382,7 @@ main(int argc, char **argv)
#endif
#ifdef DEBUG_PAUSE
- /* Windows debugging hack (see above) */
- system("pause");
+ getchar();
#endif
signal(SIGINT, teco_sigint_handler);