Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r12321 - main/branches/2.1.6/bin
Date: Thu, 25 Dec 2008 01:23:34
Message-Id: E1LFewm-0001pH-Va@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-12-25 01:23:32 +0000 (Thu, 25 Dec 2008)
3 New Revision: 12321
4
5 Modified:
6 main/branches/2.1.6/bin/ebuild
7 main/branches/2.1.6/bin/emerge
8 Log:
9 Add SIGUSR1 signal handlers that call pdb.set_trace(). Thanks to Brian Harring for
10 the suggestion. (trunk r12292)
11
12 Modified: main/branches/2.1.6/bin/ebuild
13 ===================================================================
14 --- main/branches/2.1.6/bin/ebuild 2008-12-25 01:23:13 UTC (rev 12320)
15 +++ main/branches/2.1.6/bin/ebuild 2008-12-25 01:23:32 UTC (rev 12321)
16 @@ -19,6 +19,11 @@
17 except KeyboardInterrupt:
18 sys.exit(1)
19
20 +def debug_signal(signum, frame):
21 + import pdb
22 + pdb.set_trace()
23 +signal.signal(signal.SIGUSR1, debug_signal)
24 +
25 import optparse
26 import os
27
28
29 Modified: main/branches/2.1.6/bin/emerge
30 ===================================================================
31 --- main/branches/2.1.6/bin/emerge 2008-12-25 01:23:13 UTC (rev 12320)
32 +++ main/branches/2.1.6/bin/emerge 2008-12-25 01:23:32 UTC (rev 12321)
33 @@ -20,6 +20,11 @@
34 except KeyboardInterrupt:
35 sys.exit(1)
36
37 +def debug_signal(signum, frame):
38 + import pdb
39 + pdb.set_trace()
40 +signal.signal(signal.SIGUSR1, debug_signal)
41 +
42 try:
43 import _emerge
44 except ImportError: