mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-31 19:54:30 +01:00
Print the correct return address, even on architectures where StackFrame::instruction is offset.
a=bruce.dawson, r=jimblandy git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1105 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
d2153d7589
commit
be81ededf8
7 changed files with 72 additions and 35 deletions
|
|
@ -77,6 +77,9 @@ struct StackFrameX86 : public StackFrame {
|
|||
cfi_frame_info(NULL) {}
|
||||
~StackFrameX86();
|
||||
|
||||
// Overriden to return the return address as saved on the stack.
|
||||
virtual u_int64_t ReturnAddress() const;
|
||||
|
||||
// Register state. This is only fully valid for the topmost frame in a
|
||||
// stack. In other frames, the values of nonvolatile registers may be
|
||||
// present, given sufficient debugging information. Refer to
|
||||
|
|
@ -147,6 +150,9 @@ struct StackFrameAMD64 : public StackFrame {
|
|||
|
||||
StackFrameAMD64() : context(), context_validity(CONTEXT_VALID_NONE) {}
|
||||
|
||||
// Overriden to return the return address as saved on the stack.
|
||||
virtual u_int64_t ReturnAddress() const;
|
||||
|
||||
// Register state. This is only fully valid for the topmost frame in a
|
||||
// stack. In other frames, which registers are present depends on what
|
||||
// debugging information we had available. Refer to context_validity.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue