Article View: es.comp.os.linux.programacion
Article #17842Re: Quiero que me salgan ficheros core
From: batsman batsman
Date: Thu, 28 Oct 1999 00:00
Date: Thu, 28 Oct 1999 00:00
58 lines
2741 bytes
2741 bytes
-----BEGIN PGP SIGNED MESSAGE-----
In article <38185510.A100EB93@linuxfan.com>, Manuel L�pez Moreno wrote:
>Toletum wrote:
>>
>> estoy probando el manejo del depurador gdb, y m�s concretamente los
>> ficheros core.
>> [...]
>> Perfecto, es lo que quiero pero no aparece ning�n fichero core.
>
>Puedes probar a enviar una se�al al programa (cuando se est�
>ejecutando), pero de las que producen cores.
>
>M�rate: man 7 signal, y despu�s:
>
> $ kill -6 <pid de tu proceso>
>
>Suerte.
S�, mucha suerte va a necesitar para enviar la se�al antes de que el
programa se termine :-)
M�s pr�ctico ser�a hacerlo as�:
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
.....
pid_t mipid;
mipid = getpid();
kill(mipid, 6);
....
Suponiendo que la se�al 6 (ABORT) genere core...
- --
_ _
| |__ __ _| |_ ___ _ __ ___ __ _ _ __
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
________________________________________________________________
|Visit | http://www.geocities.com/SiliconValley/Vista/2075 |
|Linux | http://www.geocities.com/SiliconValley/Vista/4289 |
----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQEVAwUBOBijkr0Y27yr0iefAQGQaQf5AcT2s7uWmHgS/k9u7YoNsnsp4KQhCqcR
PfyIWu9sp21DMghJRrMoj0ulh7EtLE/BD/4GLlorWmP+ZJ0r1nbQsK3xkcmgGVFv
l049uM2iduHHWCZMtzOzn98b9PC+lVkFvYJ3YWfrpPpCAOCjfAIs1feqatJSnBxQ
kYkfIiiM9YCxftZsda9Wpr8Adv9Au2a7jUaNl9nVFtmLTOUnhn1k4jpiIYoqtrf2
a5UjT9cyIXpl0eLGbacTLc7H90Jp5t0CaQkpEP6Mf7PWxf6Ovwh8BM7t1A02R9we
XlDFFEq9zt9xym8TVt2m8goph72BG4yj6hJe0Gzt536TqieKM7gN6w==
=dMUf
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<o28av7.3m.ln@simpsons4ever>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<381310A9.57C4DC79@MIERDANOusa.net> <38185510.A100EB93@linuxfan.com>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,1f7af20d14d94e34 X-Google-Attributes: gidf86c8,public From: batsman@simpsons4ever. (batsman) Subject: Re: Quiero que me salgan ficheros core Date: 1999/10/28 Message-ID: <o28av7.3m.ln@simpsons4ever> X-Deja-AN: 541735747 Content-Transfer-Encoding: 8bit References: <381310A9.57C4DC79@MIERDANOusa.net> <38185510.A100EB93@linuxfan.com> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@bt.es X-Trace: titan.bt.es 941133928 11735 212.49.137.76 (28 Oct 1999 18:05:28 GMT) Organization: Debian 2.01 HAMM User Mime-Version: 1.0 Reply-To: Usa el programa de descodificación NNTP-Posting-Date: 28 Oct 1999 18:05:28 GMT Newsgroups: es.comp.os.linux.programacion