aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/client_channel/client_channel.h
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 /src/core/ext/client_channel/client_channel.h
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 'src/core/ext/client_channel/client_channel.h')
-rw-r--r--src/core/ext/client_channel/client_channel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ext/client_channel/client_channel.h b/src/core/ext/client_channel/client_channel.h
index f02587d0c1..5e6e64e58b 100644
--- a/src/core/ext/client_channel/client_channel.h
+++ b/src/core/ext/client_channel/client_channel.h
@@ -57,4 +57,8 @@ void grpc_client_channel_watch_connectivity_state(
grpc_exec_ctx *exec_ctx, grpc_channel_element *elem, grpc_pollset *pollset,
grpc_connectivity_state *state, grpc_closure *on_complete);
+/* Debug helper: pull the subchannel call from a call stack element */
+grpc_subchannel_call *grpc_client_channel_get_subchannel_call(
+ grpc_call_element *elem);
+
#endif /* GRPC_CORE_EXT_CLIENT_CHANNEL_CLIENT_CHANNEL_H */