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/06/10 01:30:31 UTC

incubator-mynewt-core git commit: native debug; block SIGALRM when stepping. This should allow single-stepping in simulator.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 8d50251fc -> 7db67c72f


native debug; block SIGALRM when stepping.
This should allow single-stepping in simulator.


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

Branch: refs/heads/develop
Commit: 7db67c72f995f3699f10d13b4cf44e5ab5c812d3
Parents: 8d50251
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Jun 9 18:28:56 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Jun 9 18:28:56 2016 -0700

----------------------------------------------------------------------
 hw/bsp/native/native_debug.sh |  3 ++-
 hw/bsp/native/sim.gdb         | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/7db67c72/hw/bsp/native/native_debug.sh
----------------------------------------------------------------------
diff --git a/hw/bsp/native/native_debug.sh b/hw/bsp/native/native_debug.sh
index 2c35d90..41ed55c 100755
--- a/hw/bsp/native/native_debug.sh
+++ b/hw/bsp/native/native_debug.sh
@@ -28,8 +28,9 @@ if [ $# -lt 2 ]; then
     exit 1
 fi
 
+GDB_SCRIPT_PATH=$1/sim.gdb
 FILE_NAME=$2.elf
 
 echo "Debugging" $FILE_NAME
 
-gdb $FILE_NAME
+gdb -x $GDB_SCRIPT_PATH $FILE_NAME

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/7db67c72/hw/bsp/native/sim.gdb
----------------------------------------------------------------------
diff --git a/hw/bsp/native/sim.gdb b/hw/bsp/native/sim.gdb
new file mode 100644
index 0000000..0846420
--- /dev/null
+++ b/hw/bsp/native/sim.gdb
@@ -0,0 +1,11 @@
+define hook-stop
+handle SIGALRM nopass
+end
+
+define hook-run
+handle SIGALRM pass
+end
+
+define hook-continue
+handle SIGALRM pass
+end