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

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

From: Gabriela Gibson <gabriela.gibson_at_gmail.com>
Date: Mon, 21 Jan 2013 11:41:40 +0000

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
Received on 2013-01-21 12:42:03 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.