Creating dumputils library.

This moves methods and variables needed for stack trace dumps to a
separate library so that incidentd can also get dumps without
duplicating too much code.

Bug: 72177715
Test: flash device and collect a regular bug report
Change-Id: I68f367c32cbcac99f43305f73bb504ba7a1e4437
diff --git a/cmds/dumpstate/Android.bp b/cmds/dumpstate/Android.bp
index 562898d..b04543b 100644
--- a/cmds/dumpstate/Android.bp
+++ b/cmds/dumpstate/Android.bp
@@ -76,6 +76,7 @@
         "libdebuggerd_client",
         "libdumpstateaidl",
         "libdumpstateutil",
+        "libdumputils",
         "libhidlbase",
         "libhidltransport",
         "liblog",
@@ -119,4 +120,4 @@
         "tests/dumpstate_smoke_test.cpp",
     ],
     static_libs: ["libgmock"],
-}
\ No newline at end of file
+}