public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] aarch64: skip over stack protector setup in function prologues
@ 2014-06-03  5:00 Kyle McMartin
  2014-06-03  5:02 ` [PATCH 1/2] aarch64: extend decode_adrp to decode immediate offset Kyle McMartin
  2014-06-03  5:03 ` [PATCH 2/2] aarch64: implement walking over the stack protector Kyle McMartin
  0 siblings, 2 replies; 10+ messages in thread
From: Kyle McMartin @ 2014-06-03  5:00 UTC (permalink / raw)
  To: gdb-patches

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-05 20:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-03  5:00 [PATCH 0/2] aarch64: skip over stack protector setup in function prologues Kyle McMartin
2014-06-03  5:02 ` [PATCH 1/2] aarch64: extend decode_adrp to decode immediate offset Kyle McMartin
2014-06-03  8:22   ` Marcus Shawcroft
2014-06-03 14:50     ` Kyle McMartin
2014-06-03  5:03 ` [PATCH 2/2] aarch64: implement walking over the stack protector Kyle McMartin
2014-06-03  5:42   ` Andrew Pinski
2014-06-03 14:51     ` Kyle McMartin
2014-06-05 20:06       ` Kyle McMartin
2014-06-05 20:36         ` Andrew Pinski
2014-06-05 20:53           ` Kyle McMartin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).