diff options
author | Luca Clementi <luca.clementi@gmail.com> | 2013-10-21 23:33:59 -0700 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2013-10-23 01:15:01 +0200 |
commit | e7b6bed33dc21725226c67708b647e642f4a0031 (patch) | |
tree | 3e8512c4430e9065c807f894a669713a2df5e9eb | |
parent | 10d95bdbabc0a2ef921d6c26536cbb8ade461172 (diff) | |
download | ltrace-e7b6bed33dc21725226c67708b647e642f4a0031.tar.gz |
remove useless unw_get_reg of stack pointer
-rw-r--r-- | output.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); |