[U-Boot] [PATCH 2/5] kgdb: drop duplicate debugger_exception_handler

Mike Frysinger vapier at gentoo.org
Tue Dec 22 00:40:43 CET 2009


The debugger_exception_handler definition is the same for everyone, so use
the common one now.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 cpu/74xx_7xx/traps.c |    4 ----
 cpu/mpc5xx/traps.c   |    4 ----
 cpu/mpc5xxx/traps.c  |    4 ----
 cpu/mpc8220/traps.c  |    4 ----
 cpu/mpc8260/traps.c  |    4 ----
 cpu/mpc85xx/traps.c  |    4 ----
 cpu/mpc86xx/traps.c  |    4 ----
 cpu/mpc8xx/traps.c   |    4 ----
 cpu/ppc4xx/traps.c   |    4 ----
 9 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/cpu/74xx_7xx/traps.c b/cpu/74xx_7xx/traps.c
index b066227..24e28e2 100644
--- a/cpu/74xx_7xx/traps.c
+++ b/cpu/74xx_7xx/traps.c
@@ -40,10 +40,6 @@
 DECLARE_GLOBAL_DATA_PTR;
 #endif
 
-#if defined(CONFIG_CMD_KGDB)
-int (*debugger_exception_handler)(struct pt_regs *) = 0;
-#endif
-
 /* Returns 0 if exception not found and fixup otherwise.  */
 extern unsigned long search_exception_table(unsigned long);
 
diff --git a/cpu/mpc5xx/traps.c b/cpu/mpc5xx/traps.c
index 78c820a..cc8e091 100644
--- a/cpu/mpc5xx/traps.c
+++ b/cpu/mpc5xx/traps.c
@@ -36,10 +36,6 @@
 #include <command.h>
 #include <asm/processor.h>
 
-#if defined(CONFIG_CMD_KGDB)
-int (*debugger_exception_handler)(struct pt_regs *) = 0;
-#endif
-
 #if defined(CONFIG_CMD_BEDBUG)
 extern void do_bedbug_breakpoint(struct pt_regs *);
 #endif
diff --git a/cpu/mpc5xxx/traps.c b/cpu/mpc5xxx/traps.c
index daa1ec6..2a09153 100644
--- a/cpu/mpc5xxx/traps.c
+++ b/cpu/mpc5xxx/traps.c
@@ -37,10 +37,6 @@
 #include <command.h>
 #include <asm/processor.h>
 
-#if defined(CONFIG_CMD_KGDB)
-int (*debugger_exception_handler)(struct pt_regs *) = 0;
-#endif
-
 /* Returns 0 if exception not found and fixup otherwise.  */
 extern unsigned long search_exception_table(unsigned long);
 
diff --git a/cpu/mpc8220/traps.c b/cpu/mpc8220/traps.c
index 89cca1d..f98d40f 100644
--- a/cpu/mpc8220/traps.c
+++ b/cpu/mpc8220/traps.c
@@ -37,10 +37,6 @@
 #include <command.h>
 #include <asm/processor.h>
 
-#if defined(CONFIG_CMD_KGDB)
-int (*debugger_exception_handler) (struct pt_regs *) = 0;
-#endif
-
 /* Returns 0 if exception not found and fixup otherwise.  */
 extern unsigned long search_exception_table (unsigned long);
 
diff --git a/cpu/mpc8260/traps.c b/cpu/mpc8260/traps.c
index 6624544..f9f4dea 100644
--- a/cpu/mpc8260/traps.c
+++ b/cpu/mpc8260/traps.c
@@ -37,10 +37,6 @@
 #include <asm/processor.h>
 #include <asm/m8260_pci.h>
 
-#if defined(CONFIG_CMD_KGDB)
-int (*debugger_exception_handler)(struct pt_regs *) = 0;
-#endif
-
 /* Returns 0 if exception not found and fixup otherwise.  */
 extern unsigned long search_exception_table(unsigned long);
 
diff --git a/cpu/mpc85xx/traps.c b/cpu/mpc85xx/traps.c
index 9d16b9b..241ebd5 100644
--- a/cpu/mpc85xx/traps.c
+++ b/cpu/mpc85xx/traps.c
@@ -42,10 +42,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if defined(CONFIG_CMD_KGDB)
-int (*debugger_exception_handler)(struct pt_regs *) = 0;
-#endif
-
 /* Returns 0 if exception not found and fixup otherwise.  */
 extern unsigned long search_exception_table(unsigned long);
 
diff --git a/cpu/mpc86xx/traps.c b/cpu/mpc86xx/traps.c
index 13f386d..ad005c3 100644
--- a/cpu/mpc86xx/traps.c
+++ b/cpu/mpc86xx/traps.c
@@ -36,10 +36,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if defined(CONFIG_CMD_KGDB)
-int (*debugger_exception_handler)(struct pt_regs *) = 0;
-#endif
-
 /* Returns 0 if exception not found and fixup otherwise.  */
 extern unsigned long search_exception_table(unsigned long);
 
diff --git a/cpu/mpc8xx/traps.c b/cpu/mpc8xx/traps.c
index e1ec889..f357c8d 100644
--- a/cpu/mpc8xx/traps.c
+++ b/cpu/mpc8xx/traps.c
@@ -36,10 +36,6 @@
 #include <command.h>
 #include <asm/processor.h>
 
-#if defined(CONFIG_CMD_KGDB)
-int (*debugger_exception_handler)(struct pt_regs *) = 0;
-#endif
-
 #if defined(CONFIG_CMD_BEDBUG)
 extern void do_bedbug_breakpoint(struct pt_regs *);
 #endif
diff --git a/cpu/ppc4xx/traps.c b/cpu/ppc4xx/traps.c
index 55154b6..cb35faf 100644
--- a/cpu/ppc4xx/traps.c
+++ b/cpu/ppc4xx/traps.c
@@ -38,10 +38,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if defined(CONFIG_CMD_KGDB)
-int (*debugger_exception_handler)(struct pt_regs *) = 0;
-#endif
-
 /* Returns 0 if exception not found and fixup otherwise.  */
 extern unsigned long search_exception_table(unsigned long);
 
-- 
1.6.5.4



More information about the U-Boot mailing list