This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB and LD_PRELOAD library-call interception
here is a link the the post:
http://sourceware.org/ml/gdb-patches/2009-05/msg00409.html
I was rather thinking about following the fork()s and exec()s (don't
really know much about tty and pts), so that instead of executing
> $shell -c $wrapper $bin
where GDB has to skip 2 or 3 'exec', we could do something like
> $shell -c xterm -e $bin
where GDB would skip 2 exec, and attach to the child forked by 'xterm'
(or equivalent).
in fact, it could look like an 'set fork-wrapper', because the
debuggee is not 'exec'ed, but forked
I'll give it a try, and come back on the thread if it seems to work
(one way or ther other)
Kevin
On Thu, Mar 31, 2011 at 5:06 PM, Tom Tromey <tromey@redhat.com> wrote:
>
> >>>>> "Kevin" == Kevin Pouget <kevin.pouget@gmail.com> writes:
>
> Kevin> I was wondering if there could be a way to hack this exec-wrapper to
> Kevin> launch for instance the executable in an xterm window?
>
> Thiago sent a patch a while back for this. ?Look for "[RFC] patch to
> make GDB open a new terminal window for the inferior", on May 19 2009.
>
> I never tried it, but it seems like a decent idea.
>
> Tom