🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #14741

Re: GDB

#14741
From: Jesús Carrete Montaña
Date: Wed, 11 Oct 2000 23:35
35 lines
2062 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El Thu, 12 Oct 2000 06:35:48 +0200, las fuerzas c�smicas confluyeron
en la mente de Santiago Romero, quien iluminado, dijo:
>El Tue, 10 Oct 2000 13:21:06 +0200, Julio Baixauli escribi�:
>>
>>	Hola.
>>
>>	Estoy intentando depurar un programa escrito en C. El programa puedo
>>ejecutarlo con el comando 'run', pero no puedo ver el c�digo. Cuando
>>hago 'l' me contesta:
>>Can't find a default source file
>
> tienes que ejecutarlo con opciones de debug para que el gdb pueda
> ver el codigo (era -n ?? ) en todo caso, man gcc y man gdb

	No s� si te refieres a eso, pero hay que compilarlo con -g

Un saludo.
- -- 
Jes�s Carrete Monta�a ----> Kuantiko
    .~.
    /V\     jrcarmon at teleline.es
   // \\    Linux Registered User #158442
  /(   )\   Clave PGP disponible por e-mail
   ^`~'^
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE55Pk0fUtQQKOnZ1IRAiBJAJ9vaQ0IXUX68IspVbuVL2IBh/1BSgCgo1t2
m1bkjhWI2NOFsGT1KcA/Enc=
=IfIQ
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <kft2s8.im1.ln@127.0.0.1>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!240-coru-x12.libre.retevision.ES!not-for-mail
References: <39E2FBA2.499D2F9@mat.upc.es> <43f3s8.la.ln@127.0.0.1>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,72dbcd8a3432c398
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2000-10-11 16:35:34 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!240-coru-x12.libre.retevision.ES!not-for-mail
From: jrcarmon@teleline.es (Jesús Carrete Montaña)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: GDB
Date: Thu, 12 Oct 2000 01:35:16 +0200
Lines: 35
Message-ID: <kft2s8.im1.ln@127.0.0.1>
References: <39E2FBA2.499D2F9@mat.upc.es> <43f3s8.la.ln@127.0.0.1>
Reply-To: jrcarmon@teleline.es
NNTP-Posting-Host: 240-coru-x12.libre.retevision.es (62.83.49.240)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 971307331 20032976 62.83.49.240 (16 [54696])
User-Agent: slrn/0.9.6.2 (Linux)