diff options
author | Fred Wright <fw@fwright.net> | 2018-12-27 13:17:33 -0800 |
---|---|---|
committer | Fred Wright <fw@fwright.net> | 2018-12-27 20:35:21 -0800 |
commit | 1f93eeef780240d68c4d6a6d503a296ce4237314 (patch) | |
tree | 38ba516925c004879d392954267904120ff6c54e /gpsfake | |
parent | e4f2c497ddf858d8a05c916392d8a031f057d850 (diff) | |
download | gpsd-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-x | gpsfake | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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': |