From f57589fd40e5b69dad5aff060ccef756507f381a Mon Sep 17 00:00:00 2001 From: David Sehr Date: Mon, 17 Oct 2016 10:09:33 -0700 Subject: 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 --- dexdump/dexdump_main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dexdump') 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 #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. -- cgit v1.2.3