summaryrefslogtreecommitdiff
path: root/gpsfake
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2018-12-27 13:17:33 -0800
committerFred Wright <fw@fwright.net>2018-12-27 20:35:21 -0800
commit1f93eeef780240d68c4d6a6d503a296ce4237314 (patch)
tree38ba516925c004879d392954267904120ff6c54e /gpsfake
parente4f2c497ddf858d8a05c916392d8a031f057d850 (diff)
downloadgpsd-1f93eeef780240d68c4d6a6d503a296ce4237314.tar.gz
gpsfake: Disable timeout when debugging.
Since debugging typically involves stopping at breakpoints, the timeout tends to get in the way. This adds an implied -W0 to the -g and -G options to avoid that. If for some reason the timeout is actually wanted, it can be reenabled by providing a -W option after the -g or -G. TESTED: Verified that -G disables the timeout. Did not test -g, though the code is the same for it.
Diffstat (limited to 'gpsfake')
-rwxr-xr-xgpsfake2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsfake b/gpsfake
index 9d613ccd..3bb83629 100755
--- a/gpsfake
+++ b/gpsfake
@@ -200,8 +200,10 @@ if __name__ == '__main__':
doptions += " -D " + val
elif switch == '-g':
monitor = "xterm -e gdb -tui --args "
+ timeout = 0
elif switch == '-G':
monitor = "xterm -e lldb -- "
+ timeout = 0
elif switch == '-h':
usage()
elif switch == '-i':