Debugging s-functions / MEX functions with GDB and VS-Code

3 ビュー (過去 30 日間)
Steve Oswald
Steve Oswald 2022 年 1 月 4 日
編集済み: Steve Oswald 2022 年 1 月 4 日
Hello,
I'm trying ot debug mex functions. I have followed this tutorial strictly: https://blogs.mathworks.com/developer/2018/06/19/mex-debugging-vscode
However, I cannot seem to get all symbol data. So far I can debug and stop at breakpoints. But I cannot get information on local variables, or which line the program currently stopped at. This is the GDB output when reaching a breakpoint:
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 5304.0x3a78]
0x00000001 in ?? ()
=thread-selected,id="1"
As can be seen, no information on code is presented, thus symbols are missing.
Local variables also cannot be printed using gdb commands.
I'm using MATLAB Version: 9.7.0.1586710 (R2019b) Update 8, and I tried using
MinGW64 4.9.1 (GDB 7.8.1)
MinGW64 4.9.1 (GDB 7.7.1)
MinGW64 6.3.0 (GDB 7.11.1)
MinGW64 8.1.0 (GDB 8.1)
without success.
Why are breakpoints loaded but not information about local variables? No stack information at all.
Any help is greatly appreciated!

回答 (0 件)

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by