ecere/Semaphore; ide/Debugger: aborting a GDB -exec-run after 3 seconds if we don...
authorJerome St-Louis <jerome@ecere.com>
Mon, 10 Feb 2014 23:14:58 +0000 (06:14 +0700)
committerJerome St-Louis <jerome@ecere.com>
Mon, 10 Feb 2014 23:19:21 +0000 (06:19 +0700)
commitd8e30f378b840f2eea112f5f9316a9f49b1fad75
tree09b54ebe277b5cca67ff649e67ff1d9a55cff207
parent1f587c5ab10899ac57959c78ae71d0d6de60fb5d
ecere/Semaphore; ide/Debugger: aborting a GDB -exec-run after 3 seconds if we don't get any feedback
- Prevent the IDE from freezing in weird scenarios (e.g. if GDB fails to trap the inferior process due to kernel bugs or other weird quantum fluctuations)
- Added a bool return value to Semaphore::TryWait() to know whether we managed to grab the semaphore or not
ecere/src/sys/Semaphore.ec
ide/src/debugger/Debugger.ec