summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-26 00:34:04 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-26 00:34:04 +0000
commit6f581a68b88599b4a9933e462956a36cf167bb8f (patch)
tree954ba5be2a80b05751c101175e959f3862f2a0c0 /vm_dump.c
parentbc0fcc5357ae4b4421df8f71ee527d87389a7388 (diff)
* 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
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 2975001..a1f4a7c 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -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);
}