[PATCH] access user space addresses/switch process context

Vamsi Krishna S . vamsi at in.ibm.com
Wed Apr 16 06:04:41 PDT 2003


On Wed, Apr 16, 2003 at 10:32:51PM +1000, Keith Owens wrote:
> On Wed, 16 Apr 2003 17:31:33 +0530, 
> "Vamsi Krishna S ." <vamsi at in.ibm.com> wrote:
> >Here is a patch to implement a command to switch the current
> >user process context whilst inside KDB to look at the stack,
> >disassemble code, display memory etc. of different processes.
> 
> It looks good for i386 but, before I put it into kdb, what about ia64
> or ppc?  I do not like patches that only work for one architecture.  If
> a command works on ia64 then it tends to work anywhere, ia64 is
> _perverse_!
> 
Most of the code here is arch-independent (in kdb/kdbsupport.c).
The actual call to this function is from include/asm-i386/kdb.h.
It will work just fine on any architecture, just that I didn't add
the call in archs that I can't compile.

Will send out an updated patch soon.

Thanks,
Vamsi
-- 
Vamsi Krishna S.
Linux Technology Center,
IBM Software Lab, Bangalore.
Ph: +91 80 5044959
Internet: vamsi at in.ibm.com



More information about the kdb mailing list