diff options
author | Julian Oes <joes@student.ethz.ch> | 2013-02-25 09:26:16 -0800 |
---|---|---|
committer | Julian Oes <joes@student.ethz.ch> | 2013-02-25 09:26:16 -0800 |
commit | f0d8ce009ebee5de25a167ebe3af02ea3ce2635f (patch) | |
tree | d7900e67a9f3ae948d60007f48564a1a1d61a842 /Debug | |
parent | 34c84752d1ff7494529dfea8e72f3c090b451b3c (diff) | |
parent | 231a721ed4666123cff73611e6064328c0ffbfad (diff) | |
download | px4-firmware-f0d8ce009ebee5de25a167ebe3af02ea3ce2635f.tar.gz px4-firmware-f0d8ce009ebee5de25a167ebe3af02ea3ce2635f.tar.bz2 px4-firmware-f0d8ce009ebee5de25a167ebe3af02ea3ce2635f.zip |
Merge remote-tracking branch 'upstream/master' into new_state_machine
Diffstat (limited to 'Debug')
-rw-r--r-- | Debug/NuttX | 12 | ||||
-rw-r--r-- | Debug/PX4 | 2 |
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 # @@ -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 |