From: Zach W. <zw...@us...> - 2009-12-07 05:25:44
|
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 2bc4dee7e64662c7ca24b83cfa566bcca68cb3b4 (commit) via 56c5f6361e43113846920552f5a5d2b3147ae16a (commit) from dd9d1a3459f7b38e2af99bdbafd322cacc9dacc2 (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 2bc4dee7e64662c7ca24b83cfa566bcca68cb3b4 Author: Zachary T Welch <zw...@su...> Date: Sun Dec 6 20:19:18 2009 -0800 allow 'flash_banks' command to give GDB output The 'flash banks' command produces a list that needs to be formatted properly for GDB's 'mem info' to work properly. The flash_banks TCL wrapper provided this formatting, but wrappers no longer work for second-level commands as they did in the past. With this patch, the 'flash_banks' command can be used with the new command syntax and display the required information. diff --git a/src/flash/startup.tcl b/src/flash/startup.tcl index fcebbe0..2c335d9 100644 --- a/src/flash/startup.tcl +++ b/src/flash/startup.tcl @@ -5,7 +5,7 @@ proc flash_banks {} { set i 0 set result "" - foreach {a} [ocd_flash_banks] { + foreach {a} [ocd_flash banks] { if {$i > 0} { set result "$result\n" } commit 56c5f6361e43113846920552f5a5d2b3147ae16a Author: Zachary T Welch <zw...@su...> Date: Sun Dec 6 20:15:08 2009 -0800 fix NOR flash regression When factoring the bank setup command into flash_bank_add(), I forgot to include a call to the new helper. diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index 6598652..d417ca0 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -813,6 +813,8 @@ COMMAND_HANDLER(handle_flash_bank_command) return retval; } + flash_bank_add(c); + return ERROR_OK; } ----------------------------------------------------------------------- Summary of changes: src/flash/nor/tcl.c | 2 ++ src/flash/startup.tcl | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) hooks/post-receive -- Main OpenOCD repository |