Mes file Debugging,-Dgdb command not found

Hi,
I am facing a segmentation fault with one of my mex files.In order to debug the file,I am entering matlab -Dgdb in the linux kernel as instructed in the help manual.However I get a message saying -Dgdb "Command not found".I checked my root directory and it appears that gdb is actually installed on my computer.What do I do?

Respuestas (1)

Walter Roberson
Walter Roberson el 5 de Jun. de 2011

0 votos

Try specifying the full path to gdb after the -D .
Also, check whether "matlab" is a shell script for you (it often is in Unix systems). The script might be putting the user supplied options after other options, but -D needs to be the first option.

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 5 de Jun. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by