From e6ad15393d7733d197394207235716b7cefd36fb Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 29 Sep 2010 07:18:39 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ vm_dump.c | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0b9feb84db..4eb868a61e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Sep 29 16:18:03 2010 NAKAMURA Usaku + + * vm_dump.c (dump_thread): remove ununsed optional arguments. + Wed Sep 29 13:26:30 2010 Kenta Murata * ext/bigdecimal/bigdecimal.c (BigDecimal_save_rounding_mode): diff --git a/vm_dump.c b/vm_dump.c index 48a1169c33..77ce09fc60 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -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); }