www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - GDB, cant break on _d_throwc anymore !

reply Basile B. <b2.temp gmx.com> writes:
Hello, I'm sure it was working last time I've tried (I can't say 
when, maybe > 6 months). I'm on linux x86_64, GDB 7.8

If I send to GDB "break _d_assert" it will break correctly on 
"assert(false);" so I can jump over. But the equivalent for 
_d_throwc doesn't work anymore !

Any idea ?
Sep 18 2016
next sibling parent reply Guillaume Piolat <first.last gmail.com> writes:
On Sunday, 18 September 2016 at 15:40:09 UTC, Basile B. wrote:
 Hello, I'm sure it was working last time I've tried (I can't 
 say when, maybe > 6 months). I'm on linux x86_64, GDB 7.8

 If I send to GDB "break _d_assert" it will break correctly on 
 "assert(false);" so I can jump over. But the equivalent for 
 _d_throwc doesn't work anymore !

 Any idea ?
How about _d_throw_exception ?
Sep 18 2016
parent reply Basile B. <b2.temp gmx.com> writes:
On Sunday, 18 September 2016 at 15:40:55 UTC, Guillaume Piolat 
wrote:
 On Sunday, 18 September 2016 at 15:40:09 UTC, Basile B. wrote:
 Hello, I'm sure it was working last time I've tried (I can't 
 say when, maybe > 6 months). I'm on linux x86_64, GDB 7.8

 If I send to GDB "break _d_assert" it will break correctly on 
 "assert(false);" so I can jump over. But the equivalent for 
 _d_throwc doesn't work anymore !

 Any idea ?
How about _d_throw_exception ?
Yes, thx much, this symbol works. Do you know what 's happened to _d_throw_c (it's still in druntime) ? I remember that Walter changed some stuff to EH but IIRC it's was only related to C++.
Sep 18 2016
next sibling parent Basile B. <b2.temp gmx.com> writes:
On Sunday, 18 September 2016 at 15:48:27 UTC, Basile B. wrote:
 On Sunday, 18 September 2016 at 15:40:55 UTC, Guillaume Piolat 
 wrote:
 On Sunday, 18 September 2016 at 15:40:09 UTC, Basile B. wrote:
 Hello, I'm sure it was working last time I've tried (I can't 
 say when, maybe > 6 months). I'm on linux x86_64, GDB 7.8

 If I send to GDB "break _d_assert" it will break correctly on 
 "assert(false);" so I can jump over. But the equivalent for 
 _d_throwc doesn't work anymore !

 Any idea ?
How about _d_throw_exception ?
Yes, thx much, this symbol works. Do you know what 's happened to _d_throw_c (it's still in druntime) ? I remember that Walter changed some stuff to EH but IIRC it's was only related to C++.
strangely enough: https://github.com/dlang/druntime/search?utf8=%E2%9C%93&q=_d_throw_exception
Sep 18 2016
prev sibling parent Basile B. <b2.temp gmx.com> writes:
On Sunday, 18 September 2016 at 15:48:27 UTC, Basile B. wrote:
 On Sunday, 18 September 2016 at 15:40:55 UTC, Guillaume Piolat 
 wrote:
 On Sunday, 18 September 2016 at 15:40:09 UTC, Basile B. wrote:
 Hello, I'm sure it was working last time I've tried (I can't 
 say when, maybe > 6 months). I'm on linux x86_64, GDB 7.8

 If I send to GDB "break _d_assert" it will break correctly on 
 "assert(false);" so I can jump over. But the equivalent for 
 _d_throwc doesn't work anymore !

 Any idea ?
How about _d_throw_exception ?
Yes, thx much, this symbol works.
No I add an orphan breakpoint on a variable declaration that's mislead me. Actually _d_throw_exception doesn't work.
Sep 18 2016
prev sibling parent Basile B. <b2.temp gmx.com> writes:
On Sunday, 18 September 2016 at 15:40:09 UTC, Basile B. wrote:
 Hello, I'm sure it was working last time I've tried (I can't 
 say when, maybe > 6 months). I'm on linux x86_64, GDB 7.8

 If I send to GDB "break _d_assert" it will break correctly on 
 "assert(false);" so I can jump over. But the equivalent for 
 _d_throwc doesn't work anymore !

 Any idea ?
If anyone encounter this problem, it's indeed related to EH changes made during this year. "break _d_throwdwarf
Sep 18 2016