aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/test/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-12-27 15:15:30 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-02-03 11:50:04 -0800
commit8b1d59cafac9b2dd30cd080450ee68e85a039dc4 (patch)
tree309539b0552ddfbbcde65bf3e714a8bac6e451cd /templates/test/core
parente805ba0bec3bc448b11591aaac23b3be12052452 (diff)
Add some debug utilities
This PR adds a set of debug helpers that are intended for calling only from gdb. They cross abstraction boundaries and allow quickly accessing one thing from another thing. I expect to grow this library significantly over time to aid debugging tricky problems.
Diffstat (limited to 'templates/test/core')
-rw-r--r--templates/test/core/end2end/end2end_defs.include3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/test/core/end2end/end2end_defs.include b/templates/test/core/end2end/end2end_defs.include
index b828f84f1c..4086a30360 100644
--- a/templates/test/core/end2end/end2end_defs.include
+++ b/templates/test/core/end2end/end2end_defs.include
@@ -42,6 +42,8 @@
#include <grpc/support/log.h>
+#include "src/core/ext/debug/debugger_macros.h"
+
static bool g_pre_init_called = false;
% for test in tests:
@@ -52,6 +54,7 @@ extern void ${test}_pre_init(void);
void grpc_end2end_tests_pre_init(void) {
GPR_ASSERT(!g_pre_init_called);
g_pre_init_called = true;
+ grpc_summon_debugger_macros();
% for test in tests:
${test}_pre_init();
% endfor