[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Running gdb in the build tree Re: OWP: Introduction for Gabriela Gibson

From: Daniel Shahaf <danielsh_at_apache.org>
Date: Mon, 21 Jan 2013 11:05:20 +0000

On Mon, Dec 10, 2012 at 11:02:22PM -0500, C. Michael Pilato wrote:
> On 12/10/2012 07:32 PM, Daniel Shahaf wrote:
> > Gabriela Gibson wrote on Tue, Dec 11, 2012 at 00:21:19 +0000:
> >> For my initial submission I have written a test for issue 4263 which
> >> I'll mail shortly. I admit that I struggled to figure out how to
> >> connect gdb to svnrdump in my build tree (since svnrdump is actually a
> >> shell script, and svnrdump reads from stdin) but I am now working on a
> >> fix for 4263.
> >>
> >
> > libtool --mode=execute gdb -args subversion/svnrdump/svnrdump
> >
> > (documentation patches welcome...)
> I often run gdb using subversion/svnrdump/.libs/lt-svnrdump. But note that
> that program doesn't exist until after the first post-compilation invocation
> of subversion/svnrdump/svnrdump itself, so I'm thankful to also learn of the
> method Daniel reports here.

For completion, need to re-set $SHELL too:

libtool --mode=execute env SHELL=$SHELL gdb ./subversion/svn/svn

(That is so shelling out from gdb will start your $SHELL, rather than sh.)
Received on 2013-01-21 12:05:33 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.