summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild5
-rwxr-xr-xbin/emerge5
2 files changed, 10 insertions, 0 deletions
diff --git a/bin/ebuild b/bin/ebuild
index a38d189a9..33326d63e 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -19,6 +19,11 @@ try:
except KeyboardInterrupt:
sys.exit(1)
+def debug_signal(signum, frame):
+ import pdb
+ pdb.set_trace()
+signal.signal(signal.SIGUSR1, debug_signal)
+
import optparse
import os
diff --git a/bin/emerge b/bin/emerge
index 40e3b19f0..b07ad9e0e 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -20,6 +20,11 @@ try:
except KeyboardInterrupt:
sys.exit(1)
+def debug_signal(signum, frame):
+ import pdb
+ pdb.set_trace()
+signal.signal(signal.SIGUSR1, debug_signal)
+
try:
import _emerge
except ImportError: