Previous mail
Next mail
Formatted
Overview 10 days
Subject
Date
Thread
Author
From gpc-owner@gnu.de Thu Aug 4 09:23:22 2005
Received: from [165.112.130.32] (helo=viper.net.nih.gov)
by ngc224.gerwinski.de with esmtp (Exim 4.50 #1 (Debian))
id 1E0a4J-0000d0-S4
for <gpc@gnu.de>; Thu, 04 Aug 2005 09:23:18 +0200
Received: from viper.net.nih.gov (localhost [127.0.0.1])
by viper.net.nih.gov (8.12.10/8.12.8p1) with ESMTP id j747Mar8027728
for <gpc@gnu.de>; Thu, 4 Aug 2005 03:22:36 -0400
Received: from strawberry.ncifcrf.gov (strawberry.NCIFCRF.GOV [129.43.6.74])
by viper.net.nih.gov (8.12.10/8.12.8p1) with ESMTP id j747MaBg027725
for <gpc@gnu.de>; Thu, 4 Aug 2005 03:22:36 -0400
Received: from strawberry.NCIFCRF.GOV(129.43.6.74) by avas3300.ncifcrf.gov via smtp
id 633c_a7407218_04b7_11da_9977_00114336b74a;
Thu, 04 Aug 2005 03:16:18 -0400
Received: (from toms@localhost)
by strawberry.ncifcrf.gov (8.12.10+Sun/8.12.10/Submit) id j747MZ0r000654
for gpc@gnu.de; Thu, 4 Aug 2005 03:22:35 -0400 (EDT)
Date: Thu, 4 Aug 2005 03:22:35 -0400 (EDT)
From: Tom Schneider <toms@ncifcrf.gov>
Message-Id: <200508040722.j747MZ0r000654@strawberry.ncifcrf.gov>
To: gpc@gnu.de
Subject: can't get dbx to find lines
X-Spam-Score: 0.0 (/)
X-Archive-Number: 200508/10
X-Sequence-Number: 6214
Folks:
A program of mine is giving a segmentation fault and it's hard to
locate. So I need to compile with debugging on and then run dbx to
find the line number.
I compiled as:
gpc \
-g \
--transparent-file-names \
--no-mixed-comments \
-Wall \
lister.p -o lister
When I run dbx
dbx lister
I get
(header stuff deleted)
Reading lister
Reading ld.so.1
Reading libm.so.1
Reading libc.so.1
Reading libdl.so.1
Reading libc_psr.so.1
dbx: warning: Unknown symbol type: /home/strawberry/toms/work/lister/bug2005aug3/lister:lister.p stab #5 char:t(0,2)=@s8;-20;
dbx: warning: Unknown symbol type: /home/strawberry/toms/work/lister/bug2005aug3/lister:lister.p stab #176 Sof:S(0,192)=@s24;@S;S(0,193)=r(0,1);0000000000001;0000000000003;
dbx: warning: can't find local function 'Digit': /home/strawberry/toms/work/lister/bug2005aug3/lister:lister.p stab #265 Digit:f(0,61),Digit,Pluckdigit
dbx: warning: can't find local function 'Pluckdigit': /home/strawberry/toms/work/lister/bug2005aug3/lister:lister.p stab #291 Pluckdigit:f(0,68),Pluckdigit,Getdatetime
dbx: warning: Unknown symbol type: /home/strawberry/toms/work/lister/bug2005aug3/lister:lister.p stab #1222 tmp_string_32:(0,210)=s12Capacity:(0,4),0,32;length:(0,4),32,32;_p_schema_:(0,211)=@s8;@S;S(0,212)=r(0,1);0000000000001;0000000000001;,64,8;;
dbx: number not found at /home/strawberry/toms/work/lister/bug2005aug3/lister:lister.p stab #1222 tmp_string_32:(0,210)=s12Capacity:(0,4),0,32;length:(0,4),32,32;_p_schema_:(0,211)=@s8;@S;S(0,212)=r(0,1);0000000000001;0000000000001;,64,8;;
(/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx)
and then tell it to
run
It runs fine (up to the crash):
(expected output)
signal SEGV (no mapping at the fault address) in 272 at 0x3003c
0x0003003c: 272+0x0350: ld [%o0 + 0x4], %o1
(/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx)
but for the
line
command I always get:
dbx: no current source file
Somehow it does not locate the Pascal source.
What (perhaps obviously trivial) thing am I missing?
(I tried xping but it was not obvious how to get it to point to the
error. I tried workshop on this sun machine and it gave me a machine
code location.)
Maybe there is a page somewhere that says how to do this? I didn't
find it.
gpc -g --transparent-file-names --no-mixed-comments -Wall lister.p -o lister
The command
files
gives
dbx: no program
Thanks!
Tom
Dr. Thomas D. Schneider
National Cancer Institute
Laboratory of Experimental and Computational Biology
Molecular Information Theory Group
Frederick, Maryland 21702-1201
toms@ncifcrf.gov
permanent email: toms@alum.mit.edu (use only if first address fails)
http://www.lecb.ncifcrf.gov/~toms/
Previous mail
Next mail
Formatted
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Adriaan van Os | can't get dbx to find lines | 4 Aug 2005, 10:13:58 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).