Debug run won't stop on breakpoint [message #78426] |
Wed, 13 August 2003 17:03  |
Eclipse User |
|
|
|
Originally posted by: minhv.hotmail.com
My setup: Windows NT, Eclipse 2.1.1, latest CDT, MinGW with gdb 5.2.1
I followed the tutorial, got the helloworld program built.
Then Run | Debug... and have C:\MinGW\bin\gdb.exe as the debugger under the
Debugger tab.
Eclipse starts the program, suspends it on startup.
I set up a breakpoint, then resume the run. The program keeps running after
several loops w/o stopping at my breakpoint.
What's wrong?
Thanks for your help.
|
|
|
|
|
|
Re: Debug run won't stop on breakpoint [message #79739 is a reply to message #79696] |
Thu, 04 September 2003 10:33  |
Eclipse User |
|
|
|
Originally posted by: mikhailk.qnx.com
"Brian Harkness" <brian@qisoft.com> wrote in message
news:bj50rp$o89$1@eclipse.org...
>
> "Tan" <btvsoft@yahoo.com> wrote in message
news:bhte2v$e4f$1@eclipse.org...
> > I still have such problem
> > i use -g flag to compile but i use gdb.exe from cygwin
> >
> > Any advices ?
> > Thank you in advance
> >
> > Minh wrote:
> >
> > > I got the answer. I did not compile the code using -g flag :)
> > > Case closed.
> >
> >
> > > "Minh" <minhv@hotmail.com> wrote in message
> news:bhe8tt$h6k$1@eclipse.org...
> > > > My setup: Windows NT, Eclipse 2.1.1, latest CDT, MinGW with gdb
5.2.1
> > > > I followed the tutorial, got the helloworld program built.
> > > > Then Run | Debug... and have C:MinGWbingdb.exe as the debugger under
> > > the
> > > > Debugger tab.
> > > > Eclipse starts the program, suspends it on startup.
> > > > I set up a breakpoint, then resume the run. The program keeps
running
> > > after
> > > > several loops w/o stopping at my breakpoint.
> > > >
> > > > What's wrong?
> > > > Thanks for your help.
> > > >
> > > >
> >
> >
>
> I am using gdb.exe from cygwin and I had the same problem with the
debugger
> failing with the sample hello world program.
>
> After reading the thread 'CDT Debugging a C++ program on Solaris 8' I
found
> a solution:
>
> "Go to the "Window"->"Preferences"->"Debug"->"Registers view" preference
> page
> and uncheck the "Auto-Refresh by default" option."
>
> I don't know why this is a problem or which program the fault is with but
I
> can now stop on a break point and debug happily.
>
This is a bug in gdb. It crashes on some register-related commands. Try the
latest version of gdb.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03298 seconds