🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Ayuda para debuggar

#12546
From: EXE-Cute
Date: Wed, 20 Jun 2001 21:39
25 lines
1935 bytes
Estas compilando las fuentes con la opci�n -g del gcc, si no lo haces 
con esta opci�n no se genera ninguna informaci�n simb�lica que permita 
debugar el ejecutable.

Eduard Garcia wrote:

> Buenas, uso el debugger xxgdb (gdb para X) y no encuentro manera de ver
> los c�digos fuentes (archivos.c).
> 
> Quisisera poder debuggar linea a linea viendo por donde voy del c�digo
> escrito. Cuando intento hacer
> 
> list FILE:FUNCTION
> 
> (donde FILE es un fichero .c con el c�digo del ejecutable que estoy
> debuggando y FUNCTION una funci�n definida en �l).
> 
> El t�o me dice: No source file named FILE (y os prometo que existe)
> 
> En resumen: C�mo puedo hacer para debuggar y al mismo tiempo ver el
> c�digo fuente, para poder preguntar por el valor de variables, ver la
> linea que se est� ejecutando...?
> 
> 
> Gracias
Technical Details
Message-ID: <3B3117FF.1010401@wanadoo.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!not-for-mail
References: <3B309E77.FF21498E@upcnet.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,df98fb1c567f7d5b
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-06-20 14:41:13 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!not-for-mail
From: EXE-Cute <execute@wanadoo.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Ayuda para debuggar
Date: Wed, 20 Jun 2001 23:39:11 +0200
Organization: Wanadoo
Lines: 26
Message-ID: <3B3117FF.1010401@wanadoo.es>
References: <3B309E77.FF21498E@upcnet.es>
NNTP-Posting-Host: 62-37-174-109.dialup.uni2.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.wanadoo.es 993073072 25579 62.37.174.109 (20 Jun 2001 21:37:52 GMT)
X-Complaints-To: usenet@wanadoo.es
NNTP-Posting-Date: Wed, 20 Jun 2001 21:37:52 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Win95; es-ES; m18) Gecko/20010131 Netscape6/6.01
X-Accept-Language: es