I finally got tired of misinchanting "gdb mumble .libs lt --args foo bar mumble" and dropped this into my ~/bin as lgdb:
#!/bin/bash prog=$1 shift exec gdb --args $(dirname $prog)/.libs/lt-$(basename $prog) "$@"
I am aware of the libtool gdb idiom, but that appears to have been deprecated. There is a current of thought within autotools people that abhors concision. I do not understand it.
(As long as I'm ranting, I wish that libtool would make the shell script + relinking case secondary to the binary case, if it is at all necessary.)
I hope this post is as superfluous as the last, for the world if not for my ego.