mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
bc0fcc5357
commit
6f581a68b8
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue