Debugging C-Mex function

3 ビュー (過去 30 日間)
Nicolae Marinica
Nicolae Marinica 2019 年 5 月 23 日
編集済み: Nicolae Marinica 2019 年 5 月 23 日
I struggle to use a debugger for the C-mex S function as described here:
I am using the mingw-gcc as compiler to create the mex file. Everything goes well (I can connect to the Matlab process and resume it) until when I am running the Simulink S function the breakpoints do not work.
The following versions are used:
  • gdb-7.5-tdm64-1 for debugging installed with TDM-GCC Compiler Suite for Windows (GCC 4.7 Series mMinGW-w64 64/32-bit Edition);
  • Eclipse version: 2019-03 (4.11.0);
  • Matlab 2018b Update4.
Do you have any idea about what might be the cause of the described behavior? Does Mathworks have a proprietary tool to debug C-mex files?

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by