diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-29 07:18:39 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-29 07:18:39 +0000 |
commit | e6ad15393d7733d197394207235716b7cefd36fb (patch) | |
tree | 364663dadfe28094503ec4046442803afe32e6ce /vm_dump.c | |
parent | fed832d7f29a9d30b3af9afbe5ab10e515d253e5 (diff) |
* vm_dump.c (dump_thread): remove ununsed optional arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r-- | vm_dump.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -725,8 +725,6 @@ dump_thread(void *arg) while (pStackWalk64(mac, ph, th, &frame, &context, NULL, NULL, NULL, NULL)) { DWORD64 addr = frame.AddrPC.Offset; - DWORD64 displace64; - DWORD displace; IMAGEHLP_LINE64 line; if (addr == frame.AddrReturn.Offset || @@ -737,7 +735,7 @@ dump_thread(void *arg) memset(buf, 0, sizeof(buf)); info->SizeOfStruct = sizeof(SYMBOL_INFO); info->MaxNameLen = MAX_SYM_NAME; - if (pSymFromAddr(ph, addr, &displace64, info)) { + if (pSymFromAddr(ph, addr, NULL, info)) { if (GetModuleFileName((HANDLE)pSymGetModuleBase64(ph, addr), libpath, sizeof(libpath))) fprintf(stderr, "%s", libpath); fprintf(stderr, "(%s)", info->Name); @@ -745,7 +743,7 @@ dump_thread(void *arg) memset(&line, 0, sizeof(line)); line.SizeOfStruct = sizeof(line); - if (pSymGetLineFromAddr64(ph, addr, &displace, &line)) + if (pSymGetLineFromAddr64(ph, addr, NULL, &line)) fprintf(stderr, " %s:%lu", line.FileName, line.LineNumber); fprintf(stderr, " [0x%"PRIxVALUE"]\n", addr); } |