mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
fed832d7f2
commit
e6ad15393d
2 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Wed Sep 29 16:18:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* vm_dump.c (dump_thread): remove ununsed optional arguments.
|
||||||
|
|
||||||
Wed Sep 29 13:26:30 2010 Kenta Murata <mrkn@mrkn.jp>
|
Wed Sep 29 13:26:30 2010 Kenta Murata <mrkn@mrkn.jp>
|
||||||
|
|
||||||
* ext/bigdecimal/bigdecimal.c (BigDecimal_save_rounding_mode):
|
* ext/bigdecimal/bigdecimal.c (BigDecimal_save_rounding_mode):
|
||||||
|
|
|
@ -725,8 +725,6 @@ dump_thread(void *arg)
|
||||||
while (pStackWalk64(mac, ph, th, &frame, &context, NULL,
|
while (pStackWalk64(mac, ph, th, &frame, &context, NULL,
|
||||||
NULL, NULL, NULL)) {
|
NULL, NULL, NULL)) {
|
||||||
DWORD64 addr = frame.AddrPC.Offset;
|
DWORD64 addr = frame.AddrPC.Offset;
|
||||||
DWORD64 displace64;
|
|
||||||
DWORD displace;
|
|
||||||
IMAGEHLP_LINE64 line;
|
IMAGEHLP_LINE64 line;
|
||||||
|
|
||||||
if (addr == frame.AddrReturn.Offset ||
|
if (addr == frame.AddrReturn.Offset ||
|
||||||
|
@ -737,7 +735,7 @@ dump_thread(void *arg)
|
||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(buf));
|
||||||
info->SizeOfStruct = sizeof(SYMBOL_INFO);
|
info->SizeOfStruct = sizeof(SYMBOL_INFO);
|
||||||
info->MaxNameLen = MAX_SYM_NAME;
|
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)))
|
if (GetModuleFileName((HANDLE)pSymGetModuleBase64(ph, addr), libpath, sizeof(libpath)))
|
||||||
fprintf(stderr, "%s", libpath);
|
fprintf(stderr, "%s", libpath);
|
||||||
fprintf(stderr, "(%s)", info->Name);
|
fprintf(stderr, "(%s)", info->Name);
|
||||||
|
@ -745,7 +743,7 @@ dump_thread(void *arg)
|
||||||
|
|
||||||
memset(&line, 0, sizeof(line));
|
memset(&line, 0, sizeof(line));
|
||||||
line.SizeOfStruct = 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, " %s:%lu", line.FileName, line.LineNumber);
|
||||||
fprintf(stderr, " [0x%"PRIxVALUE"]\n", addr);
|
fprintf(stderr, " [0x%"PRIxVALUE"]\n", addr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue