home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!centerline!franl
- From: franl@centerline.com (Fran Litterio)
- Subject: Re: Need doc on debug info in executable
- In-Reply-To: ken@virtech.uucp's message of Wed, 2 Sep 92 14:56:47 GMT
- Message-ID: <FRANL.92Sep2150900@draco.centerline.com>
- Sender: news@centerline.com
- Nntp-Posting-Host: draco
- Organization: CenterLine Software, Inc.
- References: <1992Sep2.145647.12397@virtech.uucp>
- Date: Wed, 2 Sep 1992 20:09:00 GMT
- Lines: 41
-
- ken@virtech.uucp (Kenneth E. Jordan) writes:
-
- > I'm working on a library that produces stack tracebacks, and would like
- > to print the source file name and line number of each call, along with
- > the function names.
-
- Section 4 of Appendix C of the PA-RISC Procedure Calling Conventions
- Reference Manuage (Edition 2, Part # 09740-90015) says:
-
- C.4. Obtaining a Stack Trace
-
- Applications can obtain stack traces easily using the following utility
- routine:
-
- U_STACK_TRACE()
-
- This routine can be called from any place without any arguments. It will
- print the stack trace from the caller's frame onwards onto the standard
- output stream.
-
- U_STACK_TRACE() is in /usr/lib/libf.a and /usr/lib/libf.sl.
-
- > Where can I find documentation on the format of the debugging
- > information (i.e., the "$DEBUG$" space) in an executable?
-
- Ask HP for the header file symtab.h from their XDB sources. It has
- comments that read more like an API spec than typical C comments.
-
- > Currently, this is for the 9000/800 series, but I will probably want
- > it eventually for the 300 series too. From /usr/include/debug.h, it
- > looks like the actual data for the 300 might be the same as the 800.
-
- It is. HP debugger symbols are very architecture neutral (though on
- the Series 700 you have to apply linker-style relocations to certain
- fields of certain debugger symbols if you want to obtain the relative
- address of a static data object -- a minor wart on an otherwise very
- nice debugger symbol format).
- --
- franl@centerline.com || Fran Litterio
- uunet!centerline!franl || CenterLine Software R&D
- 617-498-3255 || 10 Fawcett St, Cambridge, MA, USA 02138-1110
-