This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB doesnot catches segmentation fault
Mahmood Naderan <nt_mahmood@yahoo.com> writes:
>>Then:
>>gdb gdb --core=yourcore.pid
>>Where "youcore.pid" is the core-file that GDB generated on crash
>
> Where does it save that file? I can not find it
>
> // Naderan *Mahmood;
With Fedora 15, it places it in the same place from where the program
was executed:
[user@localhost test]$ ulimit -c unlimited
[user@localhost test]$ sleep 5000
Segmentation fault (core dumped)
[user@localhost test]$ ls core.31559
Cheers,
Phil