Debugging C-Mex function

3 views (last 30 days)
Nicolae Marinica
Nicolae Marinica on 23 May 2019
Edited: Nicolae Marinica on 23 May 2019
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?

Answers (0)

Community Treasure Hunt

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

Start Hunting!