Hello Ralf, Thanks for this practical shorthand re-introduction!
> the requirement for a mode seems > to have been present for at least 10 years. I could use "libtool gdb" in version 1.5.x; only since version 2.0 or 2.2 it became necessary to use --mode=execute. > Aside, I am not quite sure whether it is portable (to other systems or > debugger versions) to assume that gdb will not be interactive when > started with stdin redirected to /dev/null. Good point. gdb might fail to exit immediately if the user has a $HOME/.gdbinit file with some weird contents. Therefore... > +AT_CHECK([$LIBTOOL --mode=execute gdb /bin/ls </dev/null || exit 77], [], > [ignore], [ignore]) > +AT_CHECK([$LIBTOOL gdb /bin/ls </dev/null], [], [ignore], [ignore]) ... better use "gdb --nx" instead of "gdb" here. Bruno