author | Alex Gilkes <alex.gilkes@nokia.com> |
Mon, 11 Jan 2010 14:00:40 +0000 | |
changeset 0 | 1918ee327afb |
permissions | -rw-r--r-- |
0 | 1 |
name = "backtrace"; |
2 |
||
3 |
group = "stack"; |
|
4 |
||
5 |
shortDescription = "Print backtrace of stack frames"; |
|
6 |
||
7 |
longDescription = ""; |
|
8 |
||
9 |
aliases = [ "bt" ]; |
|
10 |
||
11 |
seeAlso = [ "frame", "info" ]; |
|
12 |
||
13 |
function execute() { |
|
14 |
scheduleGetBacktrace(); |
|
15 |
}; |
|
16 |
||
17 |
function handleResponse(resp) { |
|
18 |
var strings = resp.result; |
|
19 |
var msg = ""; |
|
20 |
for (var i = 0; i < strings.length; ++i) { |
|
21 |
if (i > 0) |
|
22 |
msg += "\n"; |
|
23 |
msg += "#" + i + " " + strings[i]; |
|
24 |
} |
|
25 |
message(msg); |
|
26 |
} |