🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: misc.books.technical
Article #409

need help with UNIX/SPARC/ptrace() single stepping...

#409
From: Bradley Heath Powell
Date: Wed, 27 Jan 1993 21:09
36 lines
1705 bytes

I am having GREAT difficulty finding information related to a academic project
that I am working on...can anyone help me???

THE SYSTEM:
   Sun SPARCstation 2
   SunOS 4.1.3  (very similar to UNIX)

THE PROJECT:
   I am writing a program that will record its child process' references to 
memory addresses: i.e. every time the child process executes a load or store 
machine instruction, the parent needs to write the address referenced and its 
contents to a file.  Its purpose is to profile and evaluate the efficiency of 
a process by examining its load and store instructions.

SOME QUESTIONS:
- How does one (or can one...) implement single step debugging in C with 
  ptrace(), wait(), signal(), exec(), etc... under SunOS/UNIX?

- Where can I find information about the SPARC processor, particularly info.
  on encoding and decoding instructions? (yes, I've read the man pages and the
  answer book, and contacted Sun...but not enough info!)

- Where can I find a comprehensive tutorial on SPARC assembly language?

PLEASE HELP
   I would greatly appreciate any help that anyone can offer...please send 
email to the address below.  I particularly need info. on where I can get
books and sample code.


Thanks-

Brad Powell
email: bhpowell@unccsun.edu
Technical Details
Message-ID: <C1J6sL.5GD@unccsun.uncc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!opl.com!hri.com!spool.mu.edu!sdd.hp.com!cs.utexas.edu!swrinde!gatech!concert!unccsun.uncc.edu!bhpowell

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!opl.com!hri.com!spool.mu.edu!sdd.hp.com!cs.utexas.edu!swrinde!gatech!concert!unccsun.uncc.edu!bhpowell
From: bhpowell@unccsun.uncc.edu (Bradley Heath Powell)
Newsgroups: misc.books.technical
Subject: need help with UNIX/SPARC/ptrace() single stepping...
Message-ID: <C1J6sL.5GD@unccsun.uncc.edu>
Date: 27 Jan 93 21:09:56 GMT
Organization: University of NC at Charlotte
Lines: 36