This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] aarch64: skip over stack protector setup in function prologues
- From: Kyle McMartin <kmcmarti at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 3 Jun 2014 01:00:12 -0400
- Subject: [PATCH 0/2] aarch64: skip over stack protector setup in function prologues
- Authentication-results: sourceware.org; auth=none
When debugging code which ends up with stack protector setup in the
function prologue, break points on functions end up stopping in the
prologue, instead of on a useful statement inside the function. To fix
this, do something similar to ARM (which has more cases to handle) and
analyse the instructions we stopped at to see if its the stack protector
sequence.
Also add a simple testcase to check to see if we successfully manage to
end up on the statement we expect or not. (Which could also be used as a
test on ARM, but I don't have hardware handy, will investigate later.)
regards, Kyle
gdb/aarch64-tdep.c | 125 +++++++++++++++++++--
gdb/testsuite/gdb.arch/aarch64-stack_chk_guard.c | 28 +++++
gdb/testsuite/gdb.arch/aarch64-stack_chk_guard.exp | 43 +++++++
3 files changed, 189 insertions(+), 7 deletions(-)