Skip to content

Commit 2e19784

Browse files
SearionHaigang Xi
andauthored
fix gdb_bthread_stack bthread_begin error (#3176)
Co-authored-by: Haigang Xi <[email protected]>
1 parent 09caf65 commit 2e19784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/gdb_bthread_stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
status = False
5656

5757
def get_bthread_num():
58-
root_agent = gdb.parse_and_eval("&(((((*bthread::g_task_control)._nbthreads)._combiner)._agents).root_)")
59-
global_res = int(gdb.parse_and_eval("((*bthread::g_task_control)._nbthreads)._combiner._global_result"))
58+
root_agent = gdb.parse_and_eval("&(((*(((*bthread::g_task_control)._nbthreads)._combiner._M_ptr))._agents).root_)")
59+
global_res = int(gdb.parse_and_eval("(*(((*bthread::g_task_control)._nbthreads)._combiner._M_ptr))._global_result"))
6060
get_agent = "(*(('bvar::detail::AgentCombiner<long, long, bvar::detail::AddTo<long> >::Agent' *){}))"
6161
last_node = root_agent
6262
long_type = gdb.lookup_type("long")

0 commit comments

Comments
 (0)