From e2eb4505d0ea073d031b4a886a35cb3ce0caf197 Mon Sep 17 00:00:00 2001 From: "Liu.andrew.x@gmail.com" Date: Tue, 30 Jun 2015 23:22:09 +0000 Subject: Use general instruction/stack pointer convenience method instead of manually finding the instruction/stack pointer for exploitability rating. There was already a method that found the instruction pointer, so the files for exploitability ratings had repeated code. Also a method for finding the stack pointer is implemented in this CL. R=ivanpe@chromium.org Review URL: https://codereview.chromium.org/1210943005 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1468 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/google_breakpad/processor/dump_context.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/google_breakpad/processor') diff --git a/src/google_breakpad/processor/dump_context.h b/src/google_breakpad/processor/dump_context.h index f6238ffa..df80bf7e 100644 --- a/src/google_breakpad/processor/dump_context.h +++ b/src/google_breakpad/processor/dump_context.h @@ -67,6 +67,10 @@ class DumpContext : public DumpObject { // MDRawContext, since it varies per-CPU architecture. bool GetInstructionPointer(uint64_t* ip) const; + // Similar to the GetInstructionPointer method, this method gets the stack + // pointer for all CPU architectures. + bool GetStackPointer(uint64_t* sp) const; + // Print a human-readable representation of the object to stdout. void Print(); -- cgit v1.2.1