kdb
[Top] [All Lists]

Re: [PATCH] access user space addresses/switch process context

To: Keith Owens <kaos@xxxxxxx>
Subject: Re: [PATCH] access user space addresses/switch process context
From: "Vamsi Krishna S ." <vamsi@xxxxxxxxxx>
Date: Wed, 16 Apr 2003 18:34:41 +0530
Cc: kdb <kdb@xxxxxxxxxxx>
In-reply-to: <28524.1050496371@xxxxxxxxxxxxxxxxxxxxx>; from kaos@xxxxxxx on Wed, Apr 16, 2003 at 10:32:51PM +1000
References: <20030416173132.A25486@xxxxxxxxxx> <28524.1050496371@xxxxxxxxxxxxxxxxxxxxx>
Reply-to: vamsi@xxxxxxxxxx
Sender: kdb-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
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@xxxxxxxxxx> 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@xxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>