From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Add KGDB support for ARM platforms
Date: Thu, 8 Apr 2010 17:36:38 -0400 [thread overview]
Message-ID: <201004081736.39268.vapier@gentoo.org> (raw)
In-Reply-To: <p2g73f9cf91004080240rb84ee13dg29be6c19a693f41@mail.gmail.com>
On Thursday 08 April 2010 05:40:02 Tonny Tzeng wrote:
> --- a/common/kgdb.c
> +++ b/common/kgdb.c
> @@ -220,6 +220,29 @@ hexToInt(char **ptr, int *intValue)
> return (numChars);
> }
>
> +/* Handle the 'z' or 'Z' breakpoint remove or set packets */
> +static void gdb_cmd_break(kgdb_data *kdp)
this breakpoint support isnt related to ARM KGDB at all. it should be split
into a separate changeset.
> if (kgdb_setjmp(error_jmp_buf) != 0)
> panic("kgdb: error or fault in entry init!\n");
>
> + memset(&kd, 0, sizeof(kgdb_data));
there is no logic as to why this is needed. should probably be a different
changeset too. personally, i'd also use sizeof(kd).
> --- a/include/kgdb.h
> +++ b/include/kgdb.h
> +#ifndef BREAK_INSTR_SIZE
> +#define BREAK_INSTR_SIZE 4
> +#endif
i'm not sure this makes sense. every arch should define it themselves.
> --- a/lib_arm/board.c
> +++ b/lib_arm/board.c
> @@ -381,6 +382,11 @@ void start_armboot (void)
> /* miscellaneous platform dependent initialisations */
> misc_init_r ();
> #endif
> +#if defined(CONFIG_CMD_KGDB)
> + WATCHDOG_RESET();
> + puts("KGDB: ");
> + kgdb_init();
> +#endif
the serial funcs (like puts()) already call the watchdog funcs. this call is
spurious.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100408/f57875cb/attachment.pgp
next prev parent reply other threads:[~2010-04-08 21:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-07 17:19 [U-Boot] [PATCH] Add KGDB support for ARM platforms Tonny Tzeng
2010-04-08 9:40 ` Tonny Tzeng
2010-04-08 21:36 ` Mike Frysinger [this message]
2010-04-09 15:32 ` Tonny Tzeng
2010-04-09 21:18 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201004081736.39268.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox