[Interest] bad_alloc raised : Amout of RAM available ?

Thiago Macieira thiago.macieira at intel.com
Mon Jul 8 17:44:13 CEST 2013


On segunda-feira, 8 de julho de 2013 15.05.30, qt.dantec at free.fr wrote:
> I know I have to debug my apps. That's what I am trying to do here.
> 
> What I do not know is how to set up a breakpoint on a std exception I
> did not raise, not knowing where it was raised.
> 
> I am using gdb under QtCreator 2.6.1.

I think new gdbs can break on exceptions thrown, and Creator can make use of 
that setting. Check the Debugger options.

If you can't find the option, put a breakpoint in the function __cxa_throw. 
It's the function called for throwing an exception. That works on all 
applications built with GCC.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130708/8ee26367/attachment.sig>


More information about the Interest mailing list