]> Git Repo - u-boot.git/blobdiff - common/kgdb.c
Merge tag 'u-boot-amlogic-20231015' of https://source.denx.de/u-boot/custodians/u...
[u-boot.git] / common / kgdb.c
index daf53bed7a9630133c659e0384307c480a8292b6..29b09fcfe56b3cf4d6a69b54dbdc9dd0af648be2 100644 (file)
@@ -88,6 +88,7 @@
  ****************************************************************************/
 
 #include <common.h>
+#include <asm/ptrace.h>
 
 #include <kgdb.h>
 #include <command.h>
@@ -526,15 +527,18 @@ handle_exception (struct pt_regs *regs)
  * kgdb_init must be called *after* the
  * monitor is relocated into ram
  */
-void
-kgdb_init(void)
+int kgdb_init(void)
 {
+       puts("KGDB:  ");
+
        kgdb_serial_init();
        debugger_exception_handler = handle_exception;
        initialized = 1;
 
        putDebugStr("kgdb ready\n");
        puts("ready\n");
+
+       return 0;
 }
 
 void
@@ -574,7 +578,7 @@ breakpoint(void)
 }
 
 int
-do_kgdb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+do_kgdb(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
     printf("Entering KGDB mode via exception handler...\n\n");
     kgdb_breakpoint(argc - 1, argv + 1);
This page took 0.024933 seconds and 4 git commands to generate.