Subject: Re: issues with KGDB and ARM
To: Hiroyuki Bessho <email@example.com>
From: Karl Janmar <firstname.lastname@example.org>
Date: 03/30/2005 09:50:03
Filling in with some more information...
I use GDB 5.3, the one from src/gnu/dist/gdb
Hiroyuki Bessho wrote:
> At Tue, 29 Mar 2005 23:25:44 +0200,
> Karl Janmar wrote:
>>I have double checked now, I don't have DDB defined, and I think I can
>>trace the whole path to where
>>KERNEL_BREAKPOINT is incorrectly written.
>>hmm... I don't see where the DDB define matter anyway, since the
>>BKPT_SET() macro is always using KERNEL_BREAKPOINT that is define
>>without any ifdefs that changed depending on debugging method?
> Mmm, I misunderstood the code. You are right and
> db_set_single_step() is not #ifdef-ed out by DDB.
> IIRC, gdb sets break point by itself using read/write command
> through stub, so kernel doesn't need to put GDB breakpoints
> (db_set_single_step is not called in KGDB). At least, it was the way
> it worked when I used KGDB last time. It seems gdb is using step
> command and the kernel is required to put GDB breakpoint by itself in
> Karl's case. GDB or stub have changed or Karl is using different
> version of GDB?
> I'll try kgdb on an eval board tonight.
> Thank you,