summaryrefslogtreecommitdiff
path: root/debian/patches/random-fixes0001-kern-bootstrap-drop-into-the-debugger.patch
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-27 15:46:01 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-27 15:46:01 +0200
commitd5ca98b7b1a664df4260dc690e331ae0d6ae9f4a (patch)
tree100ef1180a5b9d6ad6b40d47a6d61eac74ef127a /debian/patches/random-fixes0001-kern-bootstrap-drop-into-the-debugger.patch
parent1c257880c4c53f7245feb9b8df3e8c0292897486 (diff)
add patch series
Diffstat (limited to 'debian/patches/random-fixes0001-kern-bootstrap-drop-into-the-debugger.patch')
-rw-r--r--debian/patches/random-fixes0001-kern-bootstrap-drop-into-the-debugger.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/random-fixes0001-kern-bootstrap-drop-into-the-debugger.patch b/debian/patches/random-fixes0001-kern-bootstrap-drop-into-the-debugger.patch
new file mode 100644
index 0000000..ad26fe2
--- /dev/null
+++ b/debian/patches/random-fixes0001-kern-bootstrap-drop-into-the-debugger.patch
@@ -0,0 +1,40 @@
+From f1401610bbb8363e7f015f07b825320dd69c13ca Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Sun, 27 Sep 2015 14:35:27 +0200
+Subject: [PATCH gnumach 1/4] kern/bootstrap: drop into the debugger
+
+* kern/bootstrap.c (boot_script_prompt_task_resume): Drop into the
+debugger instead of merely waiting for return using `safe_gets', which
+disables interrupts, making it impossible to break into the debugger
+using the magic keys.
+---
+ kern/bootstrap.c | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/kern/bootstrap.c b/kern/bootstrap.c
+index aad0fb1..249c605 100644
+--- a/kern/bootstrap.c
++++ b/kern/bootstrap.c
+@@ -824,10 +824,18 @@ boot_script_task_resume (struct cmd *cmd)
+ int
+ boot_script_prompt_task_resume (struct cmd *cmd)
+ {
++#if ! MACH_KDB
+ char xx[5];
++#endif
++
++ printf ("Pausing for %s...\n", cmd->path);
+
+- printf ("Hit return to resume %s...", cmd->path);
++#if ! MACH_KDB
++ printf ("Hit <return> to resume bootstrap.");
+ safe_gets (xx, sizeof xx);
++#else
++ SoftDebugger("Hit `c<return>' to resume bootstrap.");
++#endif
+
+ return boot_script_task_resume (cmd);
+ }
+--
+2.1.4
+