mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-26 23:01:05 +08:00
Remove unnecessary macro from CaptureContext code
The Windows implementation of CaptureContext used a macro to refer to the offset of a field in a struct. Bug: chromium:762167 Change-Id: I621d5c88283b1d066158559aade8811a9825c72e Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2426743 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
36d4bb83b3
commit
865ba27672
@ -25,10 +25,6 @@ ifdef _M_IX86
|
||||
.model flat
|
||||
endif
|
||||
|
||||
offsetof macro structure, field
|
||||
exitm <structure.&field>
|
||||
endm
|
||||
|
||||
; The CONTEXT structure definitions that follow are based on those in <winnt.h>.
|
||||
; Field names are prefixed (as in c_Rax) to avoid colliding with the predefined
|
||||
; register names (such as Rax).
|
||||
@ -481,8 +477,7 @@ CAPTURECONTEXT_SYMBOL proc frame
|
||||
cld
|
||||
lea rdi, [rcx.CONTEXT].c_FltSave
|
||||
xor rax, rax
|
||||
mov rcx, (sizeof(CONTEXT) - offsetof(CONTEXT, c_FltSave)) / \
|
||||
sizeof(qword) ; 122
|
||||
mov rcx, (sizeof(CONTEXT) - CONTEXT.c_FltSave) / sizeof(qword) ; 122
|
||||
rep stosq
|
||||
mov rcx, rbx
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user