- sudo apt install gdb
复制代码
- # 例如:
- gcc a.c -o test -g # Toybrick开发板本地编译
复制代码
- addr2line xxxxxx.bin -fe 0x0FFAABBCC # Toybrick本地调试,交叉编译环境用aarch64-linux-gnu-addr2line
复制代码
- gdb test
复制代码
- gdb python3
复制代码
- (gdb) r
复制代码
- (gdb) r test.py
复制代码
- (gdb) bt
- #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
- #1 0x0000007ff228eaa0 in __GI_abort () at abort.c:79
- #2 0x00000055555a447c in V4L2CaptureUnit::fGetstream(std::stop_token const&) ()
- #3 0x00000055555a4514 in _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZNSt7jthreadC4IZN15V4L2CaptureUnit11setStreamOnEvEUlRKSt10stop_tokenE_JEvEEOT_DpOT0_EUlS6_SB_SE_E_S6_S9_EEEEE6_M_runEv ()
- #4 0x0000007ff257acac in ?? () from /lib/aarch64-linux-gnu/libstdc++.so.6
- #5 0x0000007ff26df648 in start_thread (arg=0x7fcf2029c0) at pthread_create.c:477
- #6 0x0000007ff233ffdc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78
复制代码
- c++filt _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZNSt7jthreadC4IZN15V4L2CaptureUnit11setStreamOnEvEUlRKSt10stop_tokenE_JEvEEOT_DpOT0_EUlS6_SB_SE_E_S6_S9_EEEEE6_M_runEv
复制代码
- std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::jthread::jthread<V4L2CaptureUnit::setStreamOn()::{lambda(std::stop_token const&)#1}, , void>(V4L2CaptureUnit::setStreamOn()::{lambda(std::stop_token const&)#1}&&)::{lambda(std::stop_token, auto:1, auto:2&&)#1}, std::stop_token, {lambda(std::stop_token const&)#1}> > >::_M_run()
复制代码
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |