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
xmcImportFunctionSettingscommand 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
continuecommand to have the process resume running after the
gdbprompt is returned:
At this point you are ready to start the Simulink® simulation, and begin debugging your design.