Article View: aus.computers.os2
Article #6884Re: GDB Viewing Source
From: JB West
Date: Fri, 09 Sep 1994 02:13
Date: Fri, 09 Sep 1994 02:13
20 lines
1752 bytes
1752 bytes
In article <778665181snx@eden.apana.org.au>,
Adam Frey <adam@eden.apana.org.au> wrote:
>Try as I might, I cannot get GDB for emx to show me the line of code
>at which I seg fault. Yes I use the -g switch but it seems to make
>precious little difference.
>
>I can "list" code but when it core dumps it gives me a reference not
>a line number or the actual source. Any help greatly appreciated.
1) use -g on all source module compiles as well as link ?
2) post a stack trace, or e-mail to me offline.
3) was the executable stripped ? (strip filename or ld -s )? Stripping
well, strips debug info.
You might also be in a system routine, not one of yours, & thus not get
a line number for that routine. Line #'s of callers should be in stack trace.
--
JB West jbwest@hebron.connected.com | This signature has been downsized.
^^^^^^^^^^^^^^^^^^^^^^ | Mail not working here: use @acm.org
Technical Details
Message-ID:
<34ogce$lip@hebron.connected.com>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!lambda.msfc.nasa.gov!newsxfer.itd.umich.edu!europa.eng.gtefsd.com!MathWorks.Com!mvb.saic.com!bethel.connected.com!hebron.connected.com!not-for-mailReferences:
<778665181snx@eden.apana.org.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a752,36bb89dadcdbf6fa X-Google-Attributes: gid10a752,public X-Google-Thread: 10c4f5,36bb89dadcdbf6fa X-Google-Attributes: gid10c4f5,public X-Google-ArrivalTime: 1994-09-08 19:50:14 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!lambda.msfc.nasa.gov!newsxfer.itd.umich.edu!europa.eng.gtefsd.com!MathWorks.Com!mvb.saic.com!bethel.connected.com!hebron.connected.com!not-for-mail From: jbwest@hebron.connected.com (JB West) Newsgroups: aus.computers.os2,comp.os.os2.bugs Subject: Re: GDB Viewing Source Date: 8 Sep 1994 19:13:34 -0700 Organization: Connected INC - Full Service Internet Provider (tm) Lines: 20 Message-ID: <34ogce$lip@hebron.connected.com> References: <778665181snx@eden.apana.org.au> NNTP-Posting-Host: hebron.connected.com