Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Debug run won't stop on breakpoint
Debug run won't stop on breakpoint [message #78426] Wed, 13 August 2003 17:03 Go to next message
Eclipse UserFriend
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 #78488 is a reply to message #78426] Wed, 13 August 2003 21:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: minhv.hotmail.com

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:\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 #78647 is a reply to message #78488] Tue, 19 August 2003 11:00 Go to previous messageGo to next message
Eclipse UserFriend
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.
> >
> >
Re: Debug run won't stop on breakpoint [message #79696 is a reply to message #78647] Wed, 03 September 2003 11:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brian.qisoft.com

"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.
Re: Debug run won't stop on breakpoint [message #79739 is a reply to message #79696] Thu, 04 September 2003 10:33 Go to previous message
Eclipse UserFriend
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.

>
>
Previous Topic:Can I remove build targets
Next Topic:urgent: #ifdef parsing
Goto Forum:
  


Current Time: Mon May 12 17:43:02 EDT 2025

Powered by FUDForum. Page generated in 0.03219 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top