[PATCH 6.11 420/558] scripts/gdb: add iteration function for rbtree