You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/11/04 04:38:00 UTC

[02/13] incubator-mynewt-core git commit: debug scripts jlink; add explanation about why we parse out of jlinkGDBServer as opposed to looking return code when figuring out if things worked or not.

debug scripts jlink; add explanation about why we parse out of jlinkGDBServer
as opposed to looking return code when figuring out if things worked or not.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/4a88d960
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/4a88d960
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/4a88d960

Branch: refs/heads/develop
Commit: 4a88d9606f9f330167ae5839aac49a5e4542f031
Parents: f3d4146
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Nov 3 21:29:34 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Nov 3 21:32:01 2016 -0700

----------------------------------------------------------------------
 hw/scripts/jlink.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/4a88d960/hw/scripts/jlink.sh
----------------------------------------------------------------------
diff --git a/hw/scripts/jlink.sh b/hw/scripts/jlink.sh
index 542b63d..0f85810 100644
--- a/hw/scripts/jlink.sh
+++ b/hw/scripts/jlink.sh
@@ -54,9 +54,12 @@ jlink_load () {
     msgs=`arm-none-eabi-gdb -x $GDB_CMD_FILE 2>&1`
     echo $msgs > $GDB_OUT_FILE
 
-#    rm $GDB_CMD_FILE
+    rm $GDB_CMD_FILE
 
     # Echo output from script run, so newt can show it if things go wrong.
+    # JLinkGDBServer always exits with non-zero error code, regardless of
+    # whether there was an error during execution of it or not. So we cannot
+    # use it.
     echo $msgs
 
     error=`echo $msgs | grep error`