summaryrefslogtreecommitdiffstats
path: root/dexdump
diff options
context:
space:
mode:
authorDavid Sehr <sehr@google.com>2016-10-17 10:09:33 -0700
committerDavid Sehr <sehr@google.com>2016-10-17 13:50:35 -0700
commitf57589fd40e5b69dad5aff060ccef756507f381a (patch)
tree62d38e73660d9818b18c4741c6b3cce3306d63d5 /dexdump
parentc25dfeab1a66c942ae658fc7cd367f7c1ac502a1 (diff)
downloadandroid_art-f57589fd40e5b69dad5aff060ccef756507f381a.tar.gz
android_art-f57589fd40e5b69dad5aff060ccef756507f381a.tar.bz2
android_art-f57589fd40e5b69dad5aff060ccef756507f381a.zip
Remove logging dependency on runtime
Moved the abort backtracing function to runtime, forcing callers to supply the aborter at InitLogging. This makes runtime properly layer on top of logging by removing the cyclic dependency. Bug: 22322814 Test: test-art-host Change-Id: I8b2e72174e937bb88fe1bddd6d04b564cfb011a9
Diffstat (limited to 'dexdump')
-rw-r--r--dexdump/dexdump_main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dexdump/dexdump_main.cc b/dexdump/dexdump_main.cc
index 5c032a0bb6..74cae3c961 100644
--- a/dexdump/dexdump_main.cc
+++ b/dexdump/dexdump_main.cc
@@ -29,6 +29,7 @@
#include <unistd.h>
#include "base/logging.h"
+#include "runtime.h"
#include "mem_map.h"
namespace art {
@@ -59,7 +60,7 @@ static void usage(void) {
*/
int dexdumpDriver(int argc, char** argv) {
// Art specific set up.
- InitLogging(argv);
+ InitLogging(argv, Runtime::Aborter);
MemMap::Init();
// Reset options.