Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!rice!sun-spots-request From: cadreri!fgt@sun.com (Fred G. Thurber) Newsgroups: comp.sys.sun Subject: stack tracebacks Keywords: Miscellaneous Message-ID: <1990Aug2.003246.17946@rice.edu> Date: 1 Aug 90 15:06:15 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 13 Approved: Sun-Spots@rice.edu Originator: spots@titan.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 291, message 7 Does anyone know how to get a stack traceback in a running program for Sun 3s and SPARC machines. On the Sun 386i I was able to read the stack frame registers from C by examining the jmp_buf set in setjmp(). From there I was able to trace backwards along the stack frames to the mainline. However I was never able to translate these register values into the ascii names of the functions (short of using /bin/nm). Is it possible to get a traceback for Sun 3s and SPARCs? dbx doesn't have any (well,... not many) problems doing it. Fred Thurber cadreri!fgt@sun.com c/o Cadre Technologies 222 Richmond St Providence, RI 02790 (401) 351-5950