[PATCH] fix GDB_MAX_REGS not defined in arch/arm/kernel/kgdb.c
Eric Miao
eric.y.miao at gmail.com
Thu Aug 12 09:56:49 EDT 2010
Cc'ed Jason.
Now it looks like this is caused by an incomplete change of commit:
22eeef4b kgdb,arm: Individual register get/set for arm
Russell,
Will submit the patch to your tracking system later.
On Mon, Aug 9, 2010 at 10:03 AM, eric.y.miao at gmail.com
<eric.y.miao at gmail.com> wrote:
> How about this?
>
> Signed-off-by: Eric Miao <eric.y.miao at gmail.com>
>
> diff --git a/arch/arm/kernel/kgdb.c b/arch/arm/kernel/kgdb.c
> index 778c2f7..d6e8b4d 100644
> --- a/arch/arm/kernel/kgdb.c
> +++ b/arch/arm/kernel/kgdb.c
> @@ -79,7 +79,7 @@ sleeping_thread_to_gdb_regs(unsigned long *gdb_regs,
> struct task_struct *task)
> return;
>
> /* Initialize to zero */
> - for (regno = 0; regno < GDB_MAX_REGS; regno++)
> + for (regno = 0; regno < DBG_MAX_REG_NUM; regno++)
> gdb_regs[regno] = 0;
>
> /* Otherwise, we have only some registers from switch_to() */
>
More information about the linux-arm-kernel
mailing list