🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: triangle.sun
Article #2

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

#2
From: Bradley Heath Powell
Date: Wed, 27 Jan 1993 21:10
36 lines
1635 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: <C1J6ty.5J4@unccsun.uncc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!concert!unccsun.uncc.edu!bhpowell

Show Full Headers
Complete Article Headers
Newsgroups: triangle.sun
Path: arc1-ca.pugleaf.net!sparky!uunet!concert!unccsun.uncc.edu!bhpowell
From: bhpowell@unccsun.uncc.edu (Bradley Heath Powell)
Subject: need help with UNIX/SPARC/ptrace() single stepping...
Message-ID: <C1J6ty.5J4@unccsun.uncc.edu>
Organization: University of NC at Charlotte
Date: Wed, 27 Jan 1993 21:10:44 GMT
Lines: 36