Re: How To Do Single Step debugging Under Sparc
From: Norman Black (nospam_at_nospam.com)
Date: 11/05/03
- Next message: Dragan Cvetkovic: "A bug in SunOne C compiler?"
- Previous message: Davlet Panech: "sigprocmask() behavior"
- In reply to: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Next in thread: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Reply: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Reply: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Reply: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Reply: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 05 Nov 2003 20:31:48 GMT
> Can You Make it more clearer?
> i dont quite cache up with you,maybe a short piece of C code would
help.
man -s 4 proc
I do not use C. I use Modula-2. My own compiler in fact.
The proc file system has a host of functions for debugging a process.
Read the man page. In short you would use the PCRUN code with the PRSTEP
flag. This code is written to the appropriate "file" handle. Typically
this is done on s specific LWP, but can be done to a process. In that
case, whatever the current LWP was is acted upon.
-- Norman Black Stony Brook Software "xtaci" <xtaci@163.com> wrote in message news:bo9m6q$e5p$2@mail.cn99.com... > Norman Black wrote: > > In Solaris you use the /proc file system in your "debugger" to control a > > process and its threads. > > > > -- > > Norman Black > > Stony Brook Software > > > > "xtaci" <xtaci@163.com> wrote in message > > news:bo87l5$1lop$1@mail.cn99.com... > > > >>please someone give me an example .. like instruction counter under > > > > sparc > > > >>i googled and found it can be done with trap #1,but i don't know how > > > > to > > > >>do it. > >> > >>please me ,my brain is melting... > >> > > > > > > Can You Make it more clearer? > i dont quite cache up with you,maybe a short piece of C code would help. >
- Next message: Dragan Cvetkovic: "A bug in SunOne C compiler?"
- Previous message: Davlet Panech: "sigprocmask() behavior"
- In reply to: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Next in thread: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Reply: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Reply: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Reply: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Reply: xtaci: "Re: How To Do Single Step debugging Under Sparc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|