On 21/01/13 11:05, Daniel Shahaf wrote:
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...)

A collection of 'how to debug svn' tips would be nice to have, and this thread seems like a good place to post them.


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.)

It turns out that emacs 24.1.1 can run gdb with libtool inside gdb mode if you add the -epoch switch like so:

libtool --mode=execute gdb -i=mi -epoch /your/target.file

There is also this rather entertaining course on debugging currently available:
http://www.udacity.com/view#Course/cs259/CourseRev/1/Unit/135001/Nugget/137001

Reply via email to