зеркало из https://github.com/github/ruby.git
* vm_dump.c (dump_thread): seems to be necessary the 3rd argument of
SymGetLineFromAddr64(), even though MSDN says it can be zero. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bc0fcc5357
Коммит
6f581a68b8
|
@ -727,6 +727,7 @@ dump_thread(void *arg)
|
|||
NULL, NULL, NULL)) {
|
||||
DWORD64 addr = frame.AddrPC.Offset;
|
||||
IMAGEHLP_LINE64 line;
|
||||
DWORD tmp;
|
||||
|
||||
if (addr == frame.AddrReturn.Offset || addr == 0 ||
|
||||
frame.AddrReturn.Offset == 0)
|
||||
|
@ -743,7 +744,7 @@ dump_thread(void *arg)
|
|||
|
||||
memset(&line, 0, sizeof(line));
|
||||
line.SizeOfStruct = sizeof(line);
|
||||
if (pSymGetLineFromAddr64(ph, addr, NULL, &line))
|
||||
if (pSymGetLineFromAddr64(ph, addr, &tmp, &line))
|
||||
fprintf(stderr, " %s:%lu", line.FileName, line.LineNumber);
|
||||
fprintf(stderr, " [%p]\n", (void *)(VALUE)addr);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче