aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/unix/gdb_funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/unix/gdb_funcs.c')
-rw-r--r--src/vnet/unix/gdb_funcs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vnet/unix/gdb_funcs.c b/src/vnet/unix/gdb_funcs.c
index 886d849c173..d6fdc985bd9 100644
--- a/src/vnet/unix/gdb_funcs.c
+++ b/src/vnet/unix/gdb_funcs.c
@@ -318,13 +318,11 @@ show_gdb_command_fn (vlib_main_t * vm,
return 0;
}
-/* *INDENT-OFF* */
VLIB_CLI_COMMAND (show_gdb_funcs_command, static) = {
.path = "show gdb",
.short_help = "Describe functions which can be called from gdb",
.function = show_gdb_command_fn,
};
-/* *INDENT-ON* */
vlib_buffer_t *
vgb (u32 bi)
@@ -421,6 +419,12 @@ gdb_dump_trajectory_trace (u32 bi)
#endif
}
+void
+gdb_dump_buffer (vlib_buffer_t *b)
+{
+ fformat (stderr, "%U\n", format_vnet_buffer, b);
+}
+
/* Cafeteria plan, maybe you don't want these functions */
clib_error_t *
gdb_func_init (vlib_main_t * vm)