Joseph Martin wrote:

> How do I compile with debugging? Just add the -g option to gcc?

Yep.

> I did that and it segfaults, but I get no core file.

Check that core files haven't been disabled (`ulimit -c'). Also, check 
whether the program changes directory; the core file will be left in
the current directory.

Also, if a program is setuid, or if it changes its uids from those it
was started with, it won't create a core file.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to