misc: add gdb macros 52/27652/3
authorDave Barach <dave@barachs.net>
Tue, 23 Jun 2020 21:36:12 +0000 (17:36 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 25 Jun 2020 15:10:07 +0000 (15:10 +0000)
commit17c4531bf10d3d34b705d93b572365ef4784e9e6
tree43d7b21d0b7cd96df6beb3166570cfdf967380c3
parentfe77bdc1906cca6a76bd44b1aceffc971f64cec4
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
extras/gdb/gdbinit [new file with mode: 0644]
src/vppinfra/test_macros.c