<<<<< add other types depending of the directory >>>>>>>>
# Run indent per GDB specs
types="-T FILE `cat *.h | sed -n \
-e 's/^.*[^a-z0-9_]\([a-z0-9_]*_ftype\).*$/-T \1/p' \
-e 's/^.*[^a-z0-9_]\([a-z0-9_]*_func\).*$/-T \1/p' \
-e 's/^typedef.*[^a-zA-Z0-9_]\([a-zA-Z0-9_]*[a-zA-Z0-9_]\);$/-T \1/p' \
| sort -u`"
${indent} ${types} "$@"
BTW: This script need to be less stricter in recognizing proper indent versions
because it only works with gnu indent 2.2.6
That is intentional (there is a gdb bug indicating that it should be
updated post GDB 5.3).