Add a utility to print out contents of queue memory
This is helpful when debugging corruption of the queue, or other low
level debugging of queue state.
Change-Id: Id3ae06e6e131238d9f227b431d4cece8368322e8
diff --git a/aos/ipc_lib/BUILD b/aos/ipc_lib/BUILD
index 1916e7a..5e14abc 100644
--- a/aos/ipc_lib/BUILD
+++ b/aos/ipc_lib/BUILD
@@ -288,3 +288,14 @@
"@com_github_gflags_gflags//:gflags",
],
)
+
+cc_binary(
+ name = "print_lockless_queue_memory",
+ visibility = ["//visibility:public"],
+ srcs = [
+ "print_lockless_queue_memory.cc",
+ ],
+ deps = [
+ ":lockless_queue",
+ ],
+)