Re: How To Do Single Step debugging Under Sparc

From: Norman Black (nospam_at_nospam.com)
Date: 11/05/03


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.
>


Relevant Pages

  • Re: [rfc][patch 3/3] use SLAB_ALIGN_SMP
    ... I dont understand why you added SLAB_SMP_ALIGN, without removing SLAB_HWCACHE_ALIGN on these places. ... alignment on UP systems as well because we care about the layout of the ... While HWCACHE_ALIGN might be a hint saying: ... The writer carefully designed the structure so that max performance is obtained when all objects starts on a cache line boundary, ...
    (Linux-Kernel)
  • Re: New Inflection point in comp arch?
    ... custom cache memories are only necessary _IF_ you're pushing the limits of the process. ... whether its sofware IP or hardware IP. ... If you compare the development cost of a highest-end software project with a highest-end hardware project, which one do you think is more expensive? ... Extraction tools (I dont remember the names) ...
    (comp.arch)
  • Re: Some thoughts about cache and swap
    ... These replacement algorithms ... > cache space, or will it just hurt as many or more systems than it helps? ... that they dont need this file a second time, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Write-Allocation on modern CPUs
    ... Creates two arrays, tester and clearer, that are each the size of the ... once will usually not clear all of the cache. ... several times larger than the last-level cache and tester somewhat ...
    (comp.arch)
  • Re: compilation and execution plan
    ... create the proc, the proc plan doesn't exist and fir the first execution you get a compilation. ... However, if you sp_recompile a table that the proc is using, the plan is still in cache and for the ...
    (microsoft.public.sqlserver.server)