This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] aarch64: skip over stack protector setup in function prologues


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(-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]