kdb
[Top] [All Lists]

Re: [kdb] kdb patch for 2.6.24 and ARMv7

To: Jason Wessel <jason.wessel@xxxxxxxxxxxxx>
Subject: Re: [kdb] kdb patch for 2.6.24 and ARMv7
From: Basavaraj Dengi <basavarajdengi@xxxxxxxxx>
Date: Mon, 15 Jun 2009 13:58:36 +0900
Cc: Martin Hicks <mort@xxxxxxx>, kdb@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=vYBD7yYjbZAcnO+wJVsH5xcXnkwylgd1CvTrES3Rnmk=; b=grNf/jjSyGo0Zq7AKcI1hSAFyniMyhWRjyyNjHwVWNFWWRiniUnhdPJcSur1wrfS2n pwWL742oqSEPGyobxN7h01ri92Bdjs+lzH1KFmtJVc0WWnWZ8SYJMbVa8tTQj3wUQH/l bNCgvfoVSjxN7s9QIFVN7mIkXDRbNPxCIkfbI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=dke8RvxhiPN+yQ7/CoKGoQF69bIdjj/2LU/dJnVmpokmq0t9ISiCkb2QcyCIwEyTE9 gKT822+4faFnHkbXwmYKdKGs6ZTm5PXZz6p2FpYVCyDvbuAvFts2WPYevjJlvOWLeRHn lLun9ojhcC2JUQiuECPlhlKtDXh3/DKJyN6cg=
In-reply-to: <4A326329.10603@xxxxxxxxxxxxx>
References: <914d879d0906032308o4ef7d716sfb1f061cbeed3f54@xxxxxxxxxxxxxx> <914d879d0906120200w20a49531t66dd3d8790b33748@xxxxxxxxxxxxxx> <20090612134119.GR14199@xxxxxxxxxxxxxxxxxxxxxxxxx> <4A326329.10603@xxxxxxxxxxxxx>
Hi Jason,
 
Thanks for your reply. 
 
I am more interested in kdb because,
 
It does not required any tools[except for heperterminal] on host side [kgdb requires a linux pc]
Will enter automatically on kernel crash/panic and gives option to dump some memory area.
 
And to me
Single stepping is not on the list.
Dis-assembly is of lower priority.
 
And
Kdump requires configuration of another kernel.
So kdb and lkcd look to suit our situation. And I have started with kdb and I am yet investigate more on lkcd.
 
Thanks once again for your reply.
 
Regards
Basavaraj
 
 
 

 
On Fri, Jun 12, 2009 at 11:16 PM, Jason Wessel <jason.wessel@xxxxxxxxxxxxx> wrote:
Martin Hicks wrote:
> On Fri, Jun 12, 2009 at 06:00:46PM +0900, Basavaraj Dengi wrote:
>
>> Hi,
>>
>> After applying below patches
>> kdb-v4.4-2.6.24-common-2.bz2
>> kdb-v4.3-2.4.20-xscale-1.bz2
>>
>
> Are you really applying these two different patches?
> I really don't know what major changes happened between v4.3 and 4.4,
> but I'm not really shocked that things don't work.
>
> You might be on your own to get this working again.
> Jason Wessel has been working on getting KB to function as a front-end
> for KGDB.  He posted patches to LKML about a month ago.  They might be
> of interest to you.
>
>

I doubt the whole armv7 instruction set was in the old xscale patch.

In terms of the patch set Martin mentioned, the kdb front end code does
happen to work on ARM, but I had extra patches which I did not publish
which contained the logic for software single stepping on ARM.  The
reason these were never published is that whole mess deserves a complete
re-write.  There are traps that get placed and removed and ugly extra
exception logic in place.

The right way to implement single stepping is to use the concept of out
of line instruction emulation such that you can execute the instruction
equivalent on a particular kernel thread and the final instruction would
be a trap to indicate the end of the out of line instruction execution.

This allows you to do things like leave a breakpoint planted or truly
single step an individual kernel thread while not planting a breakpoint
in shared kernel code.  This is a back burner project however at the
current time, unless someone else wants to contribute this logic or port
it from gdb.

You might be better served to consider using kgdboc + gdb, if you want
to do some instruction disassembly.

Jason.

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