projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97c0367
)
Use Explicit Field Reference in FillRegDisplay (for x86) (dotnet/coreclr#9212)
author
Jonghyun Park
<parjong@gmail.com>
Tue, 31 Jan 2017 23:16:57 +0000
(08:16 +0900)
committer
Jan Vorlicek
<janvorli@microsoft.com>
Tue, 31 Jan 2017 23:16:57 +0000
(
00:16
+0100)
Commit migrated from https://github.com/dotnet/coreclr/commit/
adb31c9ad9a37c57f6af0a415769919c17468f78
src/coreclr/src/inc/regdisp.h
patch
|
blob
|
history
diff --git
a/src/coreclr/src/inc/regdisp.h
b/src/coreclr/src/inc/regdisp.h
index
4655083
..
6f98920
100644
(file)
--- a/
src/coreclr/src/inc/regdisp.h
+++ b/
src/coreclr/src/inc/regdisp.h
@@
-393,10
+393,10
@@
inline void FillRegDisplay(const PREGDISPLAY pRD, PT_CONTEXT pctx, PT_CONTEXT pC
pRD->ctxPtrsOne.Lr = &pctx->Lr;
#elif defined(_TARGET_X86_) // _TARGET_ARM_
- for (int i = 0; i < 4; ++i)
- {
-
*(&pRD->ctxPtrsOne.Ebx + i) = (&pctx->Ebx + i)
;
- }
+ pRD->ctxPtrsOne.Ebx = &pctx->Ebx;
+ pRD->ctxPtrsOne.Esi = &pctx->Esi;
+
pRD->ctxPtrsOne.Edi = &pctx->Edi
;
+ pRD->ctxPtrsOne.Ebp = &pctx->Ebp;
#else // _TARGET_X86_
PORTABILITY_ASSERT("FillRegDisplay");
#endif // _TARGET_???_ (ELSE)