diff --git a/ChangeLog b/ChangeLog index 5aba439095..6fa8074e57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 26 10:48:23 2010 NAKAMURA Usaku + + * vm_dump.c (dump_thread): follow the output of glibc. + see [ruby-dev:42627] + Fri Nov 26 09:48:45 2010 NAKAMURA Usaku * re.c (rb_reg_initialize_str): should succeed the taint status from diff --git a/vm_dump.c b/vm_dump.c index a1f4a7c529..757bf7eb3d 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -741,12 +741,12 @@ dump_thread(void *arg) fprintf(stderr, "%s", libpath); fprintf(stderr, "(%s)", info->Name); } - + fprintf(stderr, " [0x%p]", (void *)(VALUE)addr); memset(&line, 0, sizeof(line)); line.SizeOfStruct = sizeof(line); if (pSymGetLineFromAddr64(ph, addr, &tmp, &line)) fprintf(stderr, " %s:%lu", line.FileName, line.LineNumber); - fprintf(stderr, " [%p]\n", (void *)(VALUE)addr); + fprintf(stderr, "\n"); } }