aboutsummaryrefslogtreecommitdiff
path: root/Debug
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-02-24 22:58:46 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-02-24 22:58:46 +0100
commit6dd1cfd622f08997147f84076998a452260e0799 (patch)
tree3aedcc5be7b7c9d2756a60127dded6a99c2d7e45 /Debug
parent858460c863ca496e774a616698acf0eb94431dea (diff)
parent641bfd88b6f7a9d9ebced795f0566248e6f48602 (diff)
downloadpx4-firmware-6dd1cfd622f08997147f84076998a452260e0799.tar.gz
px4-firmware-6dd1cfd622f08997147f84076998a452260e0799.tar.bz2
px4-firmware-6dd1cfd622f08997147f84076998a452260e0799.zip
Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c-memory-squeeze
Diffstat (limited to 'Debug')
-rw-r--r--Debug/NuttX12
-rw-r--r--Debug/PX42
2 files changed, 9 insertions, 5 deletions
diff --git a/Debug/NuttX b/Debug/NuttX
index 8e6544842..3b95e96b2 100644
--- a/Debug/NuttX
+++ b/Debug/NuttX
@@ -174,11 +174,15 @@ end
define showtaskstack
set $task = (struct _TCB *)$arg0
- set $stack_free = 0
- while ($stack_free < $task->adj_stack_size) && *(uint8_t *)($task->stack_alloc_ptr + $stack_free)
- set $stack_free = $stack_free + 1
+ if $task == &g_idletcb
+ printf "can't measure idle stack\n"
+ else
+ set $stack_free = 0
+ while ($stack_free < $task->adj_stack_size) && *(uint8_t *)($task->stack_alloc_ptr + $stack_free)
+ set $stack_free = $stack_free + 1
+ end
+ printf" stack 0x%08x-0x%08x (%d) %d free\n", $task->stack_alloc_ptr, $task->adj_stack_ptr, $task->adj_stack_size, $stack_free
end
- printf" stack 0x%08x-0x%08x (%d) %d free\n", $task->stack_alloc_ptr, $task->adj_stack_ptr, $task->adj_stack_size, $stack_free
end
#
diff --git a/Debug/PX4 b/Debug/PX4
index 806c49584..085cffe43 100644
--- a/Debug/PX4
+++ b/Debug/PX4
@@ -22,7 +22,7 @@ end
define _perf_print
set $hdr = (struct perf_ctr_header *)$arg0
- printf "%p\n", $hdr
+ #printf "%p\n", $hdr
printf "%s: ", $hdr->name
# PC_COUNT
if $hdr->type == 0