Debugging through exec() (Linux MAY_FOLLOW_EXEC)

Jan Kratochvil jan.kratochvil@redhat.com
Mon Sep 4 17:59:00 GMT 2006


On Fri, 18 Aug 2006 14:27:44 +0200, Eli Zaretskii wrote:
...
> Thanks for the explanations, but I seem to be dense today, because I
> don't get to the cheese yet.
> 
> Perhaps if you could describe a scenario where the current behavior is
> inconvenient, and what does your patch change in this respect, I will
> understand the issues.

I have a Perl script spawning scp(1) in PTY.  This scp(1) will not print the
progress bar if spawned by this Perl script, it shows it otherwise (it uses
isatty() to detect it).  I would like to debug scp(1) there as the bug is
(apparently) not reproducible when scp(1) is executed standalone.
Sure there are many ways how to debug it but I feel this is the right sample
problem for "catch exec".

Unfortunately that my patch will not provide correct enough debugging state
after the "exec" event for the new inferior.  Patch needs to be improven.


Regards,
Jan



More information about the Gdb mailing list