Technical Solutions
How do I debug MEX files on Solaris using gcc/gdb?
Date Last Modified: Friday, June 26, 2009
| Solution ID: | 1-19DVQ | |
| Product: | MATLAB | |
| Reported in Release: | R12.1 | |
| Platform: | All Platforms | |
| Operating System: | All OS |
Subject:
How do I debug MEX files on Solaris using gcc/gdb?
Problem Description:
How do I debug MEX files on Solaris using gcc/gdb?
Solution:This Solution is specific to the GDB debugger on Solaris. For other configurations, see the Debugging section of Tech Note 1605, MEX-files Guide:
2. At the gdb prompt type:
3. At the MATLAB prompt type
4. Type the mexfilename. 5. At the gdb prompt type
6. Type:
7. Type
You should then end up inside of the mexFunction This was done using 2.95.2 gcc and 4.16 gdb. |
|
|
Store

