[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb
From: |
Paul Pluzhnikov |
Subject: |
Re: gdb |
Date: |
Wed, 19 Mar 2008 23:07:39 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
moongeegee <moongeegee@gmail.com> writes:
> I am learning gdb to debug the program. As soon as I run the program,
> it prompt me an error and terminated.
> How to step into it or set breakpoint and find the problem. Thanks.
You may get better answers if you specify which platform you are
using, which version of the compiler, etc.
Try setting breakpoint on __cxa_throw.
>
> (gdb) run
> Starting program: /usr/home/grp/gramtest < inputdata
> terminate called after throwing an instance of 'std::logic_error'
> what(): empty rule
It sounds as if you (or some code you link to) installed non-default
terminate handler, which printed above message.
Default terminate() should have aborted the program, at which point
gdb should have told you where that's happening.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
- gdb, moongeegee, 2008/03/18
- Re: gdb,
Paul Pluzhnikov <=