From: David B. <dbr...@us...> - 2010-01-11 09:17:43
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 8c730aaee22a505cf66666be3ff28734ac885418 (commit) from 88907cc7f941ce85f0dc35ed3dbc4d2dbc87cef7 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 8c730aaee22a505cf66666be3ff28734ac885418 Author: David Brownell <dbr...@us...> Date: Mon Jan 11 00:14:01 2010 -0800 Doxygen file comments Add file comments to a few files. Make the GDB server use more conventional (pointer-free) hex digit conversion. Signed-off-by: David Brownell <dbr...@us...> diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c index 7e783d4..9083ed1 100644 --- a/src/flash/nor/core.c +++ b/src/flash/nor/core.c @@ -29,6 +29,13 @@ #include <target/image.h> +/** + * @file + * Upper level of NOR flash framework. + * The lower level interfaces are to drivers. These upper level ones + * primarily support access from Tcl scripts or from GDB. + */ + struct flash_bank *flash_banks; int flash_driver_erase(struct flash_bank *bank, int first, int last) diff --git a/src/flash/nor/core.h b/src/flash/nor/core.h index c1e26cd..36e163d 100644 --- a/src/flash/nor/core.h +++ b/src/flash/nor/core.h @@ -24,6 +24,11 @@ #include <flash/common.h> +/** + * @file + * Upper level NOR flash interfaces. + */ + struct image; #define FLASH_MAX_ERROR_STR (128) diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index 65523fb..b7e80df 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -26,6 +26,11 @@ #include <helper/time_support.h> #include <target/image.h> +/** + * @file + * Implements Tcl commands used to access NOR flash facilities. + */ + COMMAND_HELPER(flash_command_get_bank, unsigned name_index, struct flash_bank **bank) { diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 08daa68..f4a99ca 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -37,6 +37,15 @@ #include <jtag/jtag.h> +/** + * @file + * GDB server implementation. + * + * This implements the GDB Remote Serial Protocol, over TCP connections, + * giving GDB access to the JTAG or other hardware debugging facilities + * found in most modern embedded processors. + */ + /* private connection data for GDB */ struct gdb_connection { @@ -68,7 +77,7 @@ static enum breakpoint_type gdb_breakpoint_override_type; extern int gdb_error(struct connection *connection, int retval); static unsigned short gdb_port = 3333; static unsigned short gdb_port_next = 0; -static const char *DIGITS = "0123456789abcdef"; +static const char DIGITS[16] = "0123456789abcdef"; static void gdb_log_callback(void *priv, const char *file, unsigned line, const char *function, const char *string); ----------------------------------------------------------------------- Summary of changes: src/flash/nor/core.c | 7 +++++++ src/flash/nor/core.h | 5 +++++ src/flash/nor/tcl.c | 5 +++++ src/server/gdb_server.c | 11 ++++++++++- 4 files changed, 27 insertions(+), 1 deletions(-) hooks/post-receive -- Main OpenOCD repository |