aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Clementi <luca.clementi@gmail.com>2013-10-21 23:33:59 -0700
committerPetr Machata <pmachata@redhat.com>2013-10-23 01:15:01 +0200
commite7b6bed33dc21725226c67708b647e642f4a0031 (patch)
tree3e8512c4430e9065c807f894a669713a2df5e9eb
parent10d95bdbabc0a2ef921d6c26536cbb8ade461172 (diff)
downloadltrace-e7b6bed33dc21725226c67708b647e642f4a0031.tar.gz
remove useless unw_get_reg of stack pointer
-rw-r--r--output.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/output.c b/output.c
index 1778cd1..b09cabf 100644
--- a/output.c
+++ b/output.c
@@ -675,7 +675,6 @@ again:
&& proc->unwind_as != NULL) {
unw_cursor_t cursor;
arch_addr_t ip, function_offset;
- unw_word_t sp;
struct library *lib = NULL;
int unwind_depth = options.bt_depth;
char fn_name[100];
@@ -689,7 +688,6 @@ again:
unw_init_remote(&cursor, proc->unwind_as, proc->unwind_priv);
while (unwind_depth) {
unw_get_reg(&cursor, UNW_REG_IP, (unw_word_t *) &ip);
- unw_get_reg(&cursor, UNW_REG_SP, &sp);
unw_get_proc_name(&cursor, fn_name, sizeof(fn_name),
(unw_word_t *) &function_offset);