libtorrent-devel  

Re: [Libtorrent-devel] help to catch priority_queue_insert exception

Jari Sundell
Sun, 03 Jul 2011 05:26:26 -0700

On Sun, Jul 3, 2011 at 2:27 AM, Artifex Maximus <artife...@gmail.com> wrote:

> I had to install gdb from ports (6.1.1 -> 7.2) as that is newer but do
> not understand 'catch throw std::logic_error'.
>

Long time ago I remember doing something similar, however it might just be
false memories of a feature I wanted...


> So I tried a simple 'catch throw' but I got a lot of exception what
> makes debugging impossible.
>

All those following exceptions are part of the normal program flow, so what
you need to do is change those exceptions in rak/* to
torrent::internal_error and do a break in the
torrent::internal_error::internal_error(...) functions. Those have been made
non-inlined specifically in order to allow breakpoints to be set.

Jari Sundell
_______________________________________________
Libtorrent-devel mailing list
Libtorrent-devel@rakshasa.no
http://rakshasa.no/mailman/listinfo/libtorrent-devel