Connecting Debug to the MATLAB Process - 2022.2 English

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2023-01-13
Version
2022.2 English
With the breakpoint established, you can link GDB to the MATLABĀ® process by using the GDB attach command, and specifying the process ID (PID) returned by the xmcImportFunctionSettings command when you set up the debug build mode, as previously discussed. Use the following command:
(gdb) attach <PID>
Important: After it is attached to GDB, the MATLAB process will be suspended. You must use the continue command to have the process resume running after the gdb prompt is returned:
(gdb) continue

At this point you are ready to start the SimulinkĀ® simulation, and begin debugging your design.