Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 18th, 2008, 08:15 PM
moongeegee
Guest
 
Posts: n/a
Default gdb



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

  #2  
Old March 18th, 2008, 09:05 PM
red floyd
Guest
 
Posts: n/a
Default 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.

  #3  
Old March 18th, 2008, 09:45 PM
Paavo Helde
Guest
 
Posts: n/a
Default 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
  #4  
Old March 18th, 2008, 10:25 PM
=?UTF-8?B?RXJpayBXaWtzdHLDtm0=?=
Guest
 
Posts: n/a
Default 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
  #5  
Old March 18th, 2008, 10:55 PM
Victor Bazarov
Guest
 
Posts: n/a
Default 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


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles