Connecting Tech Pros Worldwide Help | Site Map

gdb

  #1  
Old March 18th, 2008, 08:15 PM
moongeegee
Guest
 
Posts: n/a


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

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

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

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
strtok segfaults in CLI but not in GDB Pietro Cerutti answers 29 May 21st, 2007 05:45 PM
Gdb issues with virtual inheritance Mahesh answers 2 May 2nd, 2007 08:45 AM
conditional breakpoints in gdb (c++) digz answers 4 March 24th, 2007 08:15 PM
Need help in understanding gdb messages O.R.Senthil Kumaran answers 2 November 15th, 2005 03:30 AM
xemacs,gdb,I can't input from the terminal in main function,but others functions well. davinci answers 6 September 8th, 2005 04:05 PM