The problems looks about plt. I find tilegx port doesn't have a plt
>stub unwinder. I am not sure creating a plt stub unwinder can fix
>this problem,
I am not quite understand the usage of plt stub unwinder here. i386
do not append plt stub unwinder also. from my understanding, those plt
stub can be unwinded as normal frame, like a leaf function, or have I
misunderstood something?
diff --git a/gdb/tilegx-tdep.c b/gdb/tilegx-tdep.c
index f7e00d7..903bf20 100644
--- a/gdb/tilegx-tdep.c
+++ b/gdb/tilegx-tdep.c
@@ -324,23 +324,27 @@ tilegx_push_dummy_call (struct gdbarch *gdbarch,
}
/* Align SP. */
- stack_dest = (stack_dest + 7) & ~0x7;
+ stack_dest = align_down(stack_dest, 8);