summaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-06-23 17:36:12 -0400
committerFlorin Coras <florin.coras@gmail.com>2020-06-25 15:10:07 +0000
commit17c4531bf10d3d34b705d93b572365ef4784e9e6 (patch)
tree43d7b21d0b7cd96df6beb3166570cfdf967380c3 /src/vppinfra
parentfe77bdc1906cca6a76bd44b1aceffc971f64cec4 (diff)
misc: add gdb macros
These gdb macros should prove very helpul when poking around in core files. Pifi (pool_is_free_index) is not straighforward. Best to work it out once. Others: bitmap_get = clib_bitmap_get vl = vec_len pe = pool_elts node_name_from_index, as described vnet_buffer_opaque, prints the primary buffer opaque vnet_buffer_opaque2, prints the secondary buffer opaque Fix vppinfra unit-test compile error Type: improvement Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: Id2a2391a47e5a07cf3757f473e3805cc04784161
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/test_macros.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vppinfra/test_macros.c b/src/vppinfra/test_macros.c
index f130604d691..ad3ea37a903 100644
--- a/src/vppinfra/test_macros.c
+++ b/src/vppinfra/test_macros.c
@@ -32,8 +32,9 @@ test_macros_main (unformat_input_t * input)
clib_macro_set_value (mm, "bar", "bar");
fformat (stdout, "evaluate: %s\n",
- clib_macro_eval (mm, (i8 *) "returns '$(foo)'",
- 1 /* complain */ ));
+ clib_macro_eval (mm, (i8 *) "returns '$(foo)'", 1 /* complain */ ,
+ 0 /* recursion_level */ ,
+ 8 /* max recursion level */ ));
clib_macro_free (mm);