How to break gdb on D exception ?

BBasile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 4 07:31:42 PDT 2015


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:
>>>> On Friday, 2 October 2015 at 03:58:45 UTC, BBasile wrote:
>>>>> none of the following GB commands work:
>>>>
>>>> give
>>>>
>>>> break d_throw
>>>>
>>>> or maybe `break d_throwc` a try
>>>
>>> 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 ?


More information about the Digitalmars-d-learn mailing list