Fix hprof dumping from DDMS.
Hprof needs to use Get32 and Get64 (or handle every single type specially) ---
you can't GetInt on a char[] field, say, like this code used to do.
Change-Id: I37eda049b7f341f8ad3c8326b9bcf2997efd7b04
diff --git a/src/hprof/hprof.cc b/src/hprof/hprof.cc
index a7047ac..20fc426 100644
--- a/src/hprof/hprof.cc
+++ b/src/hprof/hprof.cc
@@ -247,7 +247,7 @@
CHECK(obj != NULL);
CHECK(arg != NULL);
hprof_context_t *ctx = (hprof_context_t *)arg;
- hprofDumpHeapObject(ctx, obj);
+ DumpHeapObject(ctx, obj);
}
/*
@@ -262,7 +262,7 @@
*
* Returns 0 on success, or an error code on failure.
*/
-int hprofDumpHeap(const char* fileName, int fd, bool directToDdms)
+int DumpHeap(const char* fileName, int fd, bool directToDdms)
{
hprof_context_t *ctx;
int success;