debug library source in GDB/DDD
Hi all is there a way to debug my library files from DDD? Basically a way to pass the paths to DDD so I can view the source etc. I'm having a segmentation nightmare, which only crops up about every 10 or so starts, I know it's in one file in a library. I could move the source file into my general code to debug, but am sure there's a way in DDD. Help please :D
|
Assuming that you have the source, let's say at /usr/src/libfoo,
in GDB do: dir /usr/src/libfoo It's probably more complicated than that, and partly depends upon the message that GDB/DDD is giving you. That message should indicate the path to the source file that it is looking for, and you may have to match that up with the source file's actual location on your filesystem to figure out what argument to give the GDB/DDD "dir" command. "dir" takes a colon-separated list of pathnames, if you need it. -John |
All times are GMT -5. The time now is 06:01 PM. |