Cédric Lucantis writes:
> Hi,
> I'd like to know how to find which program produced a particular core dump
> file, any idea?
,----
| (debian-unstable)[EMAIL PROTECTED]:~$ ulimit -c unlimited
|
| (debian-unstable)[EMAIL PROTECTED]:~$ echo "
| #include <stdio.h>
|
| int main ()
| {
| char * foo = 0;
| *foo = 'bar';
|
| return 0;
| }
|
| " | gcc -xc -o baz -
|
| (debian-unstable)[EMAIL PROTECTED]:~$ ./baz
| Segmentation fault (core dumped)
|
| (debian-unstable)[EMAIL PROTECTED]:~$ gdb -batch -c ./core | grep -i generated
| Core was generated by `./baz'.
`----
HTH,
--
-- Jhair
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]