AIX dbx - attaching to a process that is crashing

Hey everyone,

I'm trying to attach to a process that is crashing so I can debug the source code. I've tried this:

dbx -a PID
stop at "file.cpp":line#

However, nothing ever breaks. The service crashes and restarts, but I never see it hitting the code. I've tried to use a core file, but I can't get one to be produced. I've tried:

dbx -a PID core

But the file is never produced in the current directory - don't know where else to look or what else to try. Any help would be appreciated!

Was the executable built with debugging? If not it may not be able to break at a line.

Interesting question - didn't think about that. I'll check now. Thanks

---------- Post updated at 12:30 PM ---------- Previous update was at 12:27 PM ----------

For what it's worth, when I do: stop at "file.cpp":line#, I don't get any messages like 'not compiled with -g'.