| To: | jason.wessel@windriver.com |
|---|---|
| Subject: | Re: [PATCH 2/3] kgdb, mips: add arch support for the kernel's kgdb core |
| From: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
| Date: | Fri, 25 Jul 2008 01:27:48 +0900 (JST) |
| Cc: | linux-kernel@vger.kernel.org, ralf@linux-mips.org, linux-mips@linux-mips.org |
| In-reply-to: | <1216400928-29097-3-git-send-email-jason.wessel@windriver.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1216400928-29097-1-git-send-email-jason.wessel@windriver.com> <1216400928-29097-2-git-send-email-jason.wessel@windriver.com> <1216400928-29097-3-git-send-email-jason.wessel@windriver.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Fri, 18 Jul 2008 12:08:47 -0500, Jason Wessel <jason.wessel@windriver.com>
wrote:
> diff --git a/include/asm-mips/kgdb.h b/include/asm-mips/kgdb.h
...
> +static inline void arch_kgdb_breakpoint(void)
> +{
> + __asm__ __volatile__(
> + ".globl breakinst\n\t"
> + ".set\tnoreorder\n\t"
> + "nop\n"
> + "breakinst:\tbreak\n\t"
> + "nop\n\t"
> + ".set\treorder");
> +}
The gcc might inline kgdb_breakpoint() which includes
arch_kgdb_breakpoint(). I got this error with gcc 4.3.1:
CC kernel/kgdb.o
{standard input}: Assembler messages:
{standard input}:809: Error: symbol `breakinst' is already defined
{standard input}:913: Error: symbol `breakinst' is already defined
{standard input}:1233: Error: symbol `breakinst' is already defined
Moving arch_kgdb_breakpoint() into arch/mips/kernel/kgdb.c should
solve the problem.
---
Atsushi Nemoto
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: RFC: Adding non-PIC executable support to MIPS, Daniel Jacobowitz |
|---|---|
| Next by Date: | Re: [patch 29/29] initrd: Fix virtual/physical mix-up in overwrite test, Geert Uytterhoeven |
| Previous by Thread: | Re: [PATCH 2/3] kgdb, mips: add arch support for the kernel's kgdb core, Jason Wessel |
| Next by Thread: | Re: [PATCH 2/3] kgdb, mips: add arch support for the kernel's kgdb core, Jason Wessel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |