Skip to content

Commit

Permalink
fix #10444
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Mar 9, 2015
1 parent ca79bec commit 468cb71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class JuliaJITEventListener: public JITEventListener
#endif
ObjectInfo tmp = {objfile, (size_t)Size
#ifdef LLVM36
,SectionAddr
,(size_t)SectionAddr
#endif
#ifdef _OS_DARWIN_
,strndup(sName.data(), sName.size())
Expand Down
4 changes: 2 additions & 2 deletions src/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,12 +590,13 @@ DLLEXPORT size_t rec_backtrace_ctx(ptrint_t *data, size_t maxsize, CONTEXT *Cont
size_t n = 0;
while (n < maxsize) {
#ifndef _CPU_X86_64_
data[n++] = (intptr_t)stk.AddrPC.Offset;
BOOL result = StackWalk64(MachineType, GetCurrentProcess(), hMainThread,
&stk, Context, NULL, JuliaFunctionTableAccess64, JuliaGetModuleBase64, NULL);
if (!result)
break;
data[n++] = (intptr_t)stk.AddrPC.Offset;
#else
data[n++] = (intptr_t)Context->Rip;
DWORD64 ImageBase = JuliaGetModuleBase64(GetCurrentProcess(), Context->Rip);
if (!ImageBase)
break;
Expand All @@ -622,7 +623,6 @@ DLLEXPORT size_t rec_backtrace_ctx(ptrint_t *data, size_t maxsize, CONTEXT *Cont
}
if (!Context->Rip)
break;
data[n++] = (intptr_t)Context->Rip;
#endif
}
#if !defined(_CPU_X86_64_)
Expand Down

0 comments on commit 468cb71

Please sign in to comment.