Skip to content

Commit 80579aa

Browse files
jschultz-dksalkinium
authored andcommitted
[fix] gdb.py signal handler for linux
1 parent bea7f08 commit 80579aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/modm_tools/gdb.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212

1313
import os
1414
import subprocess
15+
import signal
16+
17+
def signal_handler(sig, frame):
18+
pass
19+
1520
if __name__ == "__main__":
1621
import sys
1722
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
23+
signal.signal(signal.SIGINT, signal_handler)
1824

1925
from modm_tools import utils, backend as bem
2026
from modm_tools import openocd, crashdebug, bmp

0 commit comments

Comments
 (0)