Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: diewald@virrus.zko.dec.com (Jeff Diewald)
Subject: Re: [Q]: DECladebug - can't find sufficient debug info
Date: 1995/04/06	[thread overview]
Message-ID: <3m0pbu$9l0$1@usenet.pa.dec.com> (raw)
In-Reply-To: 3ljq08$g5q@ibch10.inf.tu-dresden.de


In article <3ljq08$g5q@ibch10.inf.tu-dresden.de>, winkler@ibc.inf.tu-dresden.de (Matthias Winkler) writes:
|>
|>Hi,
|>
|>   ibdr121.inf.tu-dresden.de{winkler}17: uname -a
|>   OSF1 ibdr121.inf.tu-dresden.de V3.0 358 alpha
|>
|>After having failed to convince cc of the correctness of an
|>ANSI-C statement I switched to gcc.  With this compiler I
|>do not seem to get the kind of debugging information cc is
|>used to producing.
|>
|>When debugging programs DECladebug will not step into
|>functions but rather stepping over instead.  To step into
|>foo() I have to issue a 'stop in foo' before giving the
|>step command.
|>
|>So, there is some debugging information available (I can
|>step over the lines of main()), but not enough to step
|>into any function without an breakpoint.
|>
|>I tried the gcc options -g3 and -gcoff3 to no avail,
|>i.e. DECladebug will startup correctly but won't step
|>into.  -gstabs3 will prevent DECladebug even from
|>loading my application.
|>
|>If you could give me any hint I would be very grateful.

   I would like to thank Matthias again for supplying me with 
his small test program that demonstrated the problem and his
complete set of instructions for reproducing everything.  I want 
to report back to anyone else following this thread.  

   I suspect that Matthias' compiler is the source of the
problem here.  When I rebuilt his application locally, using a 
slightly different version of the gcc compiler, DECladebug 
worked as expected:

avette[jeff 98]> make
/usr/mylocal/bin/gcc -v
Reading specs from /usr/mylocal/lib/gcc-lib/alpha-dec-osf3.0/2.6.0/specs
gcc version 2.6.0
/usr/mylocal/bin/gcc -gcoff3 -O0 -o stepin stepin.c
/usr/mylocal/lib/gcc-lib/alpha-dec-osf3.0/2.6.0/ld:
avette[jeff 99]> $DECLADEBUG309 stepin
Welcome to the DECladebug Debugger Version 3.0-9   
------------------
object file name: stepin
Reading symbolic information ...done
(decladebug) stop in main
[#1: stop in main ]
(decladebug) run
[1] stopped at [main:7 0x1200015d8]
      7   printf("Going to enter will_you_step_into().\n");
(decladebug) s
Going to enter will_you_step_into().
stopped at [main:8 0x1200015ec]
      8   will_you_step_into();
(decladebug) s
stopped at [will_you_step_into:13 0x120001628]
     13   printf("Inside will_you_step_into().\n");
(decladebug) s
Inside will_you_step_into().
stopped at [will_you_step_into:14 0x12000163c]
     14 }
(decladebug) quit
avette[jeff 100]> uname -a
OSF1 avette V3.0 347 alpha	
avette[jeff 101]> 

I also tested this against DECladebug 3.0.16 and 4.0.4, with the
same results.  All three versions of DECladebug showed the symptoms
reported by Matthias when used with his binary.

These symptoms are typical of cases where the compiler is generating
symbol information in an unexpected manner.  There's some subtle 
differences in the addressing and line number correlation information 
generated by these compilers.  That may account for the differences.  
Note that once I reached line 8 (using Matthias' image), I could step 
by instruction (stepi) until I stepped into the called routine.  Once 
there, I could step normally.

Given the variety of symbol table information produced on various
systems, it would not be hard to do something in the gcc makefile
that would result in a compiler that produced slightly incompatible 
symbols.  DECladebug works very hard to read in and understand as 
many different flavors of symbols as it can - and we're working to 
improve it even more.  Unfortunately, you can describe the same set 
of symbols in a *lot* of different ways using COFF.  It's a 
"standard", but only in the loosest sense of the word.

Given Tom Carlson's posting, my suggestion would be to switch back
to the DEC C compiler.  You shouldn't have any problems with 
DECladebug then.
-----------------------------------------------------------------------------
	Jeff Diewald			EASYNET:   VIRRUS::DIEWALD
	DECladebug group		INTERNET:  diewald@virrus.zko.dec.com
	Digital Equipment Corp.

Note: I don't read every article in this group.  If you have debugger 
questions, I may be able to get you an answer.  You're much more likely to 
get an answer if you put "DECladebug" somewhere in your subject line.



      parent reply	other threads:[~1995-04-06  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-01  5:00 [Q]: DECladebug - can't find sufficient debug info Matthias Winkler
1995-04-03  4:00 ` Tom Carlson
1995-04-03  4:00 ` Jeff Diewald
1995-04-03  4:00 ` Peter Mayne
1995-04-05  4:00 ` Tom Carlson
1995-04-06  4:00 ` Jeff Diewald [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox