libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool --mode=execute gdb


From: Bruno Haible
Subject: Re: libtool --mode=execute gdb
Date: Tue, 20 Jan 2009 23:36:18 +0100
User-agent: KMail/1.9.9

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]