On Sunday, 4 October 2015 at 14:31:43 UTC, BBasile wrote:
On Friday, 2 October 2015 at 09:15:13 UTC, Dmitri wrote:
On Friday, 2 October 2015 at 04:50:59 UTC, BBasile wrote:
On Friday, 2 October 2015 at 04:46:51 UTC, BBasile wrote:
On Friday, 2 October 2015 at 04:24:11 UTC, Adam D. Ruppe wrote:
[...]

unfortunately it doesn't work, i get

---
(gdb) Function "d_throw"/"d_throwc" not defined.

it was almost that actually,
'break _d_throwc

Or you could break on a specific exception class's constructor.

This would be better.

1/ because I could propose a modifiable list of the exception kinds to track in the options). 2/ because with _d_trow_c, info stack #1 is really not interesting. #2 or #3 is usually where the 'thing' really happens.

How can I do that, for example with FileException class ?

Ast visitor -> ThrowStatement -> detect class from token text -> break file:line ? Puting BP manally is not an option. I ask this for GDB integration in my IDE ;)

Reply via email to