Jakub Jelinek <ja...@redhat.com> writes:

> On Wed, Jan 28, 2015 at 10:10:18PM +0100, Rainer Orth wrote:
>> passing argv[0] seems the easiest course of action.  As I said,
>> gfortran.dg/guality/guality.exp already does it, and there were no
>> issues even on Solaris.
>
> gfortran.dg/guality/guality.exp doesn't do that.
> The thing is, there are 2 kinds of guality tests, the C/C++ ones using
> guality.h, and then ones using gcc-gdb-test.exp, where the spawning of
> gdb is done in tcl.
> Those share just directories, nothing else, and gfortran.dg/guality
> for obvious reasons doesn't contain any such tests.

You're right, of course: I looked at lib/gcc-gdb-test.exp (gdb-test),
where gdb is called with the executable name, but there's no attach to
an already running process involved, so it cannot be done any other way.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to