Bug 819833 (part 1) - DMD: Print PCs at the end of lines. r+a=jlebar
authorNicholas Nethercote <nnethercote@mozilla.com>
Mon, 10 Dec 2012 19:26:56 -0800
changeset 117689 d8725e9c09deb571dfb454be091fe1b5e6dd3cbf
parent 117688 ae183d4756e05050e7559e1b2471d1a8a95b219b
child 117690 aa03f010f52d32ad456bcdc985e140faa15ed90c
push id56
push userryanvm@gmail.com
push dateTue, 18 Dec 2012 22:42:14 +0000
bugs819833
milestone18.0
Bug 819833 (part 1) - DMD: Print PCs at the end of lines. r+a=jlebar
memory/replace/dmd/DMD.cpp
--- a/memory/replace/dmd/DMD.cpp
+++ b/memory/replace/dmd/DMD.cpp
@@ -597,18 +597,18 @@ StackTrace::Print(const Writer& aWriter)
     return;
   }
 
   for (uint32_t i = 0; i < mLength; i++) {
     nsCodeAddressDetails details;
     void* pc = mPcs[i];
     PcInfo(pc, &details);
     if (details.function[0]) {
-      W("   %14p %s[%s +0x%X]\n", pc, details.function, details.library,
-        details.loffset);
+      W("   %s[%s +0x%X] %p\n", details.function, details.library,
+        details.loffset, pc);
     }
   }
 }
 
 /* static */ const StackTrace*
 StackTrace::Get(Thread* aT)
 {
   MOZ_ASSERT(gStateLock->IsLocked());
@@ -1379,18 +1379,18 @@ FrameGroup::Print(const Writer& aWriter,
     Show(mGroupSize.Slop(),   gBuf3, kBufLen, showTilde));
 
   W(" %4.2f%% of the heap;  %4.2f%% of %s\n",
     Percent(mGroupSize.Usable(), aTotalUsableSize),
     Percent(mGroupSize.Usable(), aCategoryUsableSize),
     astr);
 
   W(" PC is\n");
-  W("   %14p %s[%s +0x%X]\n\n", mPc, details.function, details.library,
-    details.loffset);
+  W("   %s[%s +0x%X] %p\n\n", details.function, details.library,
+    details.loffset, mPc);
 }
 
 //---------------------------------------------------------------------------
 // DMD start-up
 //---------------------------------------------------------------------------
 
 static void RunTestMode(FILE* fp);
 static void RunStressMode(FILE* fp);