diff --git a/testing/esp/py_debug_backend/debug_backend/gdb.py b/testing/esp/py_debug_backend/debug_backend/gdb.py index 9eeaf2b285..384b6ffe3d 100644 --- a/testing/esp/py_debug_backend/debug_backend/gdb.py +++ b/testing/esp/py_debug_backend/debug_backend/gdb.py @@ -432,7 +432,7 @@ def get_backtrace(self, run_bt=False): # this is a workaround until get a proper fix in the gdb # we do not check the response, In some cases we may get an error RESULT: error {'msg': 'PC not saved'} - self._mi_cmd_run('bt') + self._mi_cmd_run('bt',tmo=0.1) res, res_body = self._mi_cmd_run('-stack-list-frames') if res != 'done' or not res_body or 'stack' not in res_body: raise DebuggerError('Failed to get backtrace! (%s / %s)' % (res, res_body))