[Ltrace-devel] [PATCH] remove useless unw_get_reg of stack pointer

Luca Clementi luca.clementi at gmail.com
Tue Oct 22 06:33:59 UTC 2013


---
 output.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/output.c b/output.c
index 85a74bc..3dbcc91 100644
--- a/output.c
+++ b/output.c
@@ -671,7 +671,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];
@@ -685,7 +684,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);
 
-- 
1.7.9.5




More information about the Ltrace-devel mailing list