[comp.sys.amiga.tech] Can one use CodeProbe to debug libraries?

a464@mindlink.UUCP (Bruce Dawson) (01/08/90)

     I assume you mean libraries of the the .library type, ie; run time
libraries such as diskfont.library.  I wrote a run time library (req.library,
contains file requester, colour requester etc.) and found that the easiest way
to debug it was to link it in with the test program.  This guarantees that I
can use any debugger (sdb, cpr, metascope) to debug it with full symbolic
information.  This also avoids the annoying problem that everyone gets bitten
by at least once of not purging the library from memory and therefore testing
the previous version.  Disadvantages?  Very few.  You do you have to recompile
or relink your test program before trying with the real library, but that's
about it.

.bruce.

papa@pollux.usc.edu (Marco Papa) (01/08/90)

I've been trying to find out from the Lattice manuals if the above (see 
Subject:) is possible, and the documentation doesn't seem to either give 
a yes/no answer or explain how to do it, if indeed this is possible (which 
it is with MANX 3.6, though with a lot of juggling).  Has anybody tried this?

-- Marco Papa 'Doc'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Xerox sues somebody for copying?" -- David Letterman
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

walker@sas.UUCP (Doug Walker) (01/09/90)

In article <22138@usc.edu> papa@pollux.usc.edu (Marco Papa) writes:
>I've been trying to find out from the Lattice manuals if the above (see 
>Subject:) is possible, and the documentation doesn't seem to either give 
>a yes/no answer or explain how to do it, if indeed this is possible (which 
>it is with MANX 3.6, though with a lot of juggling).  Has anybody tried this?
>
>-- Marco Papa 'Doc'
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>"Xerox sues somebody for copying?" -- David Letterman
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

MARKV@kuhub.cc.ukans.edu (MARK GOODERUM - UNIV. OF KANSAS ACS - MARKV@UKANVAX) (01/09/90)

> I've been trying to find out from the Lattice manuals if the above (see 
> Subject:) is possible, and the documentation doesn't seem to either give 
> a yes/no answer or explain how to do it, if indeed this is possible (which 
> it is with MANX 3.6, though with a lot of juggling).  Has anybody tried this?

There is a command in cpr to enable tracing of calls into resident libraries.
I think you can also force it to look in the .library file for symbol tables
(assuming its your library) like you can with an executable file.  Otherwise
you just get assembler.

Lattice also says in their manual that debugging system resisdent libraries
can be dangerous in some cases (they don't say which cases).  Unfortunately
I am at work and cant give you the exact command.

My Lattice is 5.04 with the manual revisions, so if you cant find it I will
look for you.

> -- Marco Papa 'Doc'

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark Gooderum			Only...		\   What to say, what to say..
Academic Computing Services	       ///	  \___________________________
University of Kansas		     ///  /|         __    _
Bix:	  gooderum	      \ \  ///  /__| |\/| | | _   /_\  makes it
Bitnet:   MARKV@UKANVAX		\/\/  /    | |  | | |__| /   \ possible...
Internet: mark@kuhub.cc.ukans.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~