Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Finding source lines from COFF executables on OSF1/alpha
@ 2003-01-09 21:22 Michael S. Zraly
  2003-01-10  7:04 ` Paul Pluzhnikov
  0 siblings, 1 reply; 3+ messages in thread
From: Michael S. Zraly @ 2003-01-09 21:22 UTC (permalink / raw)


On this OS:

  % uname -a
  OSF1 ex2-dec16 V5.1 732 alpha

with an executable that looks like this:

  % file a.out
  a.out:       COFF format alpha dynamically linked, demand paged
  executable or object module not stripped - version 3.13-14

compiled with this:

  % cxx -V
  Compaq C++ V6.2-024 for Compaq Tru64 UNIX V5.1 (Rev. 732)

Is it possible to take program counter values reported by
exc_capture_context, exc_virtual_unwind, etc., and use them
along with COFF headers in the executable to find the filename
and line numbers associated with them?  In other words, can
I generate a dbx/ladebug-like stack trace using values written
from the executable but without having a real corefile?

I know about fork-and-core but that's too heavy handed for
the work I have to do (roll-my-own malloc tracing).

One issue is dynamic libraries: is there any information
I need to get about where dynamic library code is loaded
that I cannot get from the executable itself?  Or do I
have to examine the running process to get that first?

Does anyone have any decent examples of using the code
declared in ldfcn.h to find this info in the executable?

Thanks,
Mike Zraly

-- 
Mike Zraly                      Every man is as God made him, ay, and
mzraly@world.std.com            often worse.    -- Miguel de Cervantes


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-10 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-09 21:22 Finding source lines from COFF executables on OSF1/alpha Michael S. Zraly
2003-01-10  7:04 ` Paul Pluzhnikov
2003-01-10 13:45   ` Michael S. Zraly

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