PDA

View Full Version : Debugging Maya with gdb/ddd


cbamber85
08-06-2009, 02:26 PM
Hi all,
I'm currently throwing together a little plugin to help me learn Linux programming (I've been brought up on Visual Studio, which has shielded me from the tough stuff!). My plugin compiles fine in Eclipse with CDT, I can launch Maya with ddd and it shows all the symbols being read. Unfotunately when I run my plugin it gets a segmentation fault...

However my real problem is loading my source file data into ddd so I can see the offending code, and maybe setup some breakpoints. ddd is supposed to be able to read the symbols and pull my source code from some basic dirs I pass to it - but it doesn't. ddd is the most common debugging front-end in Linux, but I'm really struggling to find Maya-specific workflow data - anybody done this before?

I'm using CentOS 5.3 if makes a difference.

Cam.

cbamber85
08-08-2009, 09:25 AM
OK, stupid mistake, for the debugging stage you must compile your library WITH all symbols, as it's a .so (or .dll) normally you would compile with the -s gcc flag, but obviously if there's no shared symbols included with the library gdb can't find your original source files.

CGTalk Moderation
08-08-2009, 09:25 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.