Connecting Tech Pros Worldwide Forums | Help | Site Map

gdb

moongeegee
Guest
 
Posts: n/a
#1: Mar 18 '08


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.

(gdb) run
Starting program: /usr/home/grp/gramtest < inputdata
terminate called after throwing an instance of 'std::logic_error'
what(): empty rule


red floyd
Guest
 
Posts: n/a
#2: Mar 18 '08

re: gdb


moongeegee wrote:
Quote:
>
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.
>
(gdb) run
Starting program: /usr/home/grp/gramtest < inputdata
terminate called after throwing an instance of 'std::logic_error'
what(): empty rule
>
Wrong group. Try gnu.g++.help.

This group is for the discussion of the C++ language as defined by
ISO/IEC 14882:2003. How to use your specific toolset is offtopic.

Paavo Helde
Guest
 
Posts: n/a
#3: Mar 18 '08

re: gdb


moongeegee <moongeegee@gmail.comwrote in news:e52e669f-3801-4e66-9b1a-
6b0722017af7@m3g2000hsc.googlegroups.com:
Quote:
>
>
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.
>
(gdb) run
Starting program: /usr/home/grp/gramtest < inputdata
terminate called after throwing an instance of 'std::logic_error'
what(): empty rule
>
>
gdb is off-topic here, you should try some gcc group or read gdb manual.
There are also graphic front-ends for gdb which ought to be easier to use.

I just mention how to put a breakpoint on exception throwing in gdb as this
is really obscure: b __cxa_throw

regards
Paavo
=?UTF-8?B?RXJpayBXaWtzdHLDtm0=?=
Guest
 
Posts: n/a
#4: Mar 18 '08

re: gdb


On 2008-03-18 20:12, moongeegee wrote:
Quote:
>
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.
Google for "gdb tutorial" and select any of the first hits, RMS's is
quite good.

--
Erik Wikström
Victor Bazarov
Guest
 
Posts: n/a
#5: Mar 18 '08

re: gdb


moongeegee wrote:
Quote:
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.
>
(gdb) run
Starting program: /usr/home/grp/gramtest < inputdata
terminate called after throwing an instance of 'std::logic_error'
what(): empty rule
<shrug You're asking a tool question in a language newsgroup. You
are off-topic. Try gnu.tools.help.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


Closed Thread