From d8e23616b5e62943bc4c1a61e6827e1016345b71 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Mon, 4 Dec 2023 18:13:47 +0800 Subject: [PATCH] improve debugger --- docs/changes.md | 3 ++- src/debugger/debugger_lldb.c | 2 +- tools/fdb/fdb.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/changes.md b/docs/changes.md index c09950fcb4..9b21ed2551 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -2,8 +2,9 @@ 2023/12/04 * 完善combobox的options,如果选项第一个字符不是数字,里面存在':',也不视为分隔符。比如http://localhost视为一个整体。 - * 增加函数tk_levelize。fscript增加levelize函数。 + * 增加函数tk\_levelize。fscript增加levelize函数。 * 修复assets1m资源名称错误的问题(感谢兆坤提供补丁) + * 修改debugger\_lldb\_stop等待超时的问题以及修复continue显示问题 (感谢智明提供补丁) 2023/12/03 * 修复编译警告。 diff --git a/src/debugger/debugger_lldb.c b/src/debugger/debugger_lldb.c index 625cf8ab72..d12bfa1f86 100644 --- a/src/debugger/debugger_lldb.c +++ b/src/debugger/debugger_lldb.c @@ -947,7 +947,7 @@ ret_t debugger_lldb_wait_for_completed(debugger_t* debugger) { } static ret_t debugger_lldb_stop(debugger_t* debugger) { - return debugger_lldb_disconnect(debugger, TRUE); + return debugger_lldb_disconnect(debugger, FALSE); } static ret_t debugger_lldb_pause(debugger_t* debugger) { diff --git a/tools/fdb/fdb.cpp b/tools/fdb/fdb.cpp index 95b9e324cf..6a9e68e32a 100644 --- a/tools/fdb/fdb.cpp +++ b/tools/fdb/fdb.cpp @@ -568,7 +568,7 @@ static ret_t func_continue(app_info_t* app, tokenizer_t* tokenizer) { uint32_t num = 0; debugger_continue(app->debugger); debugger_dispatch_messages(app->debugger, 300, &num); - return fdb_show_code(app, FALSE); + return debugger_is_running(app->debugger) ? RET_OK : fdb_show_code(app, FALSE); } static ret_t func_flush(app_info_t* app, tokenizer_t* tokenizer) {