Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 55c4bff2f -> 2859117ba


Fix gdb shell command on Windows


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/3465f20f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/3465f20f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/3465f20f

Branch: refs/heads/develop
Commit: 3465f20f47942e9f1213188dddb8e946706022a8
Parents: 73418c7
Author: Simon Ratner <[email protected]>
Authored: Wed Dec 28 16:16:14 2016 -0800
Committer: Simon Ratner <[email protected]>
Committed: Wed Dec 28 16:16:14 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/3465f20f/hw/scripts/jlink.sh
----------------------------------------------------------------------
diff --git a/hw/scripts/jlink.sh b/hw/scripts/jlink.sh
index 315abf5..a3dd94d 100644
--- a/hw/scripts/jlink.sh
+++ b/hw/scripts/jlink.sh
@@ -45,7 +45,7 @@ jlink_load () {
     # downloading somewhere in the flash. So need to figure out how to tell it
     # not to do that, or report failure if gdb fails to write this file
     #
-    echo "shell /bin/sh -c 'trap \"\" 2;JLinkGDBServer -device $JLINK_DEV 
-speed 4000 -if SWD -port 3333 -singlerun' & " > $GDB_CMD_FILE
+    echo "shell sh -c \"trap '' 2; JLinkGDBServerCL -device $JLINK_DEV -speed 
4000 -if SWD -port 3333 -singlerun &\" " > $GDB_CMD_FILE
     echo "target remote localhost:3333" >> $GDB_CMD_FILE
     echo "mon reset" >> $GDB_CMD_FILE
     echo "restore $FILE_NAME binary $FLASH_OFFSET" >> $GDB_CMD_FILE
@@ -109,7 +109,7 @@ jlink_debug() {
 
        # Monitor mode. Background process gets it's own process group.
        set -m
-       JLinkGDBServer -device $JLINK_DEV -speed 4000 -if SWD -port 3333 
-singlerun > /dev/null &
+       JLinkGDBServerCL -device $JLINK_DEV -speed 4000 -if SWD -port 3333 
-singlerun > /dev/null &
        set +m
 
        echo "target remote localhost:3333" > $GDB_CMD_FILE

Reply via email to