X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Funix%2Fgdb_funcs.c;h=29011f05ce16d0e227cd1555857ef299aef57933;hb=a690fdbfe179e0ea65818c03b52535bf9210efd0;hp=6f0dd208caf273e49ed9af7e503a766e8573f77f;hpb=86e8bce44f43c1f3c50a3397f9ab850f484f4cad;p=vpp.git diff --git a/src/vnet/unix/gdb_funcs.c b/src/vnet/unix/gdb_funcs.c index 6f0dd208caf..29011f05ce1 100644 --- a/src/vnet/unix/gdb_funcs.c +++ b/src/vnet/unix/gdb_funcs.c @@ -37,6 +37,21 @@ vl (void *p) return vec_len (p); } +/** + * @brief GDB callable function: pvh - Return vector header of vector + * + * @param *p - void - address of vector + * + * @return vh - vec_header_t, the vector header + * + */ +vec_header_t * +pvh (void *p) +{ + return _vec_find (p); +} + + /** * @brief GDB callable function: pe - call pool_elts - number of elements in a pool *