public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] GDB stops randomly
@ 2007-02-05 11:14 Carlos Losada
  2007-02-05 11:43 ` Andrew Lunn
  2007-02-05 13:45 ` Donald Walton
  0 siblings, 2 replies; 4+ messages in thread
From: Carlos Losada @ 2007-02-05 11:14 UTC (permalink / raw)
  To: ecos-discuss

Hi,
 
I'm debugging an ecos application on an ARM/TDMI based
custom board (v. similar to EB40) using GDB through
Eclipse/CDT, but the debugger keeps stopping at random
places where there are no breakpoints set.  There is
always a SIGINT associated with this stop.  It's not
clear what's generating this signal; maybe it's an
interrupt. Configuring SIGINT not to stop debugger
loses control of my program
 
What can be done to ensure the debugger only stops at
requested breakpoints ?
 
Thanks




 
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] GDB stops randomly
  2007-02-05 11:14 [ECOS] GDB stops randomly Carlos Losada
@ 2007-02-05 11:43 ` Andrew Lunn
  2007-02-05 13:45 ` Donald Walton
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2007-02-05 11:43 UTC (permalink / raw)
  To: Carlos Losada; +Cc: ecos-discuss

On Mon, Feb 05, 2007 at 03:14:02AM -0800, Carlos Losada wrote:
> Hi,
>  
> I'm debugging an ecos application on an ARM/TDMI based
> custom board (v. similar to EB40) using GDB through
> Eclipse/CDT, but the debugger keeps stopping at random
> places where there are no breakpoints set.  There is
> always a SIGINT associated with this stop.  It's not
> clear what's generating this signal; maybe it's an
> interrupt. Configuring SIGINT not to stop debugger
> loses control of my program
>  
> What can be done to ensure the debugger only stops at
> requested breakpoints ?

It could be that your program has crashed and done something
illegal. The gdb stub has taken over control and is now letting you
debug the problem.

      Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] GDB stops randomly
  2007-02-05 11:14 [ECOS] GDB stops randomly Carlos Losada
  2007-02-05 11:43 ` Andrew Lunn
@ 2007-02-05 13:45 ` Donald Walton
  2007-02-21  7:45   ` [ECOS] " Dave Lawrence
  1 sibling, 1 reply; 4+ messages in thread
From: Donald Walton @ 2007-02-05 13:45 UTC (permalink / raw)
  To: Carlos Losada; +Cc: ecos-discuss

I have noticed this behavior when I use Insight. The cause was editing
the program in the area where a breakpoint had been set.  The editing
process can leave the previously set breakpoint invalid.

If you have breakpoints set when you go into your program, check them
before you run the program to verify they are still valid, i.e., on a
line of code.

Don
-- 
Don Walton
Defense Research Associates, Inc.
3915 Germany Lane, Suite 102
Beavercreek, OH 43431
(937) 431-1644  x118    (office)
(937) 427-4526          (fax)

On Mon, 2007-02-05 at 03:14 -0800, Carlos Losada wrote:
> Hi,
>  
> I'm debugging an ecos application on an ARM/TDMI based
> custom board (v. similar to EB40) using GDB through
> Eclipse/CDT, but the debugger keeps stopping at random
> places where there are no breakpoints set.  There is
> always a SIGINT associated with this stop.  It's not
> clear what's generating this signal; maybe it's an
> interrupt. Configuring SIGINT not to stop debugger
> loses control of my program
>  
> What can be done to ensure the debugger only stops at
> requested breakpoints ?
>  
> Thanks
> 
> 
> 
> 
>  
> ____________________________________________________________________________________
> We won't tell. Get more on shows you hate to love 
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
> http://tv.yahoo.com/collections/265 
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ECOS]  Re: GDB stops randomly
  2007-02-05 13:45 ` Donald Walton
@ 2007-02-21  7:45   ` Dave Lawrence
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Lawrence @ 2007-02-21  7:45 UTC (permalink / raw)
  To: ecos-discuss

I have also seen this with Insight, and annoyingly the GUI doesn't 
always indicate the presence of these breakpoints.  If you delete 
gdbtk.ini (or less drastic, edit it) the problem goes away, at least, it 
goes away for the current build of code, if you add more breakpoints, 
then the problem will come back for a future build...

Donald Walton wrote:
> I have noticed this behavior when I use Insight. The cause was editing
> the program in the area where a breakpoint had been set.  The editing
> process can leave the previously set breakpoint invalid.
> 
> If you have breakpoints set when you go into your program, check them
> before you run the program to verify they are still valid, i.e., on a
> line of code.
> 
> Don


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-21  7:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-05 11:14 [ECOS] GDB stops randomly Carlos Losada
2007-02-05 11:43 ` Andrew Lunn
2007-02-05 13:45 ` Donald Walton
2007-02-21  7:45   ` [ECOS] " Dave Lawrence

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).