public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Problem debugging ecos-App uisng  GDB on ARM7 PID
@ 2000-02-13  4:44 Dipanjan Ghosh
  2000-02-13  9:38 ` Jesper Skov
  0 siblings, 1 reply; 3+ messages in thread
From: Dipanjan Ghosh @ 2000-02-13  4:44 UTC (permalink / raw)
  To: ecos-discuss; +Cc: dghosh

Hi

I have another problem. I am trying to debug
a ecos-application using GDB on ARM7 PID
borad(the host is i586-cygwin)

After loading the binary if i type 'Continue' the
control doesn't come to applications main (or any
breakpoint set at the applications code).It simply
shows continuing. However, any image in which
the OS code is not included works fine and the contol
comes to any breakpoint set before typing 'continue'
what could be the possible problem? 

thanks

Dipanjan Ghosh
Silicon Automations Systems
Banglore, India


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

* Re: [ECOS] Problem debugging ecos-App uisng  GDB on ARM7 PID
  2000-02-13  4:44 [ECOS] Problem debugging ecos-App uisng GDB on ARM7 PID Dipanjan Ghosh
@ 2000-02-13  9:38 ` Jesper Skov
  0 siblings, 0 replies; 3+ messages in thread
From: Jesper Skov @ 2000-02-13  9:38 UTC (permalink / raw)
  To: Dipanjan Ghosh; +Cc: ecos-discuss

>>>>> "Dipanjan" == Dipanjan Ghosh <dghosh@sasi.com> writes:

Dipanjan> Hi I have another problem. I am trying to debug a
Dipanjan> ecos-application using GDB on ARM7 PID borad(the host is
Dipanjan> i586-cygwin)

Dipanjan> After loading the binary if i type 'Continue' the control
Dipanjan> doesn't come to applications main (or any breakpoint set at
Dipanjan> the applications code).It simply shows continuing. However,
Dipanjan> any image in which the OS code is not included works fine
Dipanjan> and the contol comes to any breakpoint set before typing
Dipanjan> 'continue' what could be the possible problem?

The problem is probably (as suggested by your previous mail) that you
have not programmed the board with the eCos stubs.

When you download an image without the OS, it's a simple application
which depends on the environment set up by Angel.

When you do include the OS it will take control of the exception
vectors, and thus Angel will not be able to handle breakpoints.

There are two solutions:
 1) Include GDB stubs in the OS configuration
 2) Program eCos GDB stubs on the board (described in Getting Started
    Guide)

Jesper

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

* Re: [ECOS] Problem debugging ecos-App uisng  GDB on ARM7 PID
       [not found] <00a401bf76d1$c701ce50$8420000a@pcc132.sasi.com>
@ 2000-02-14  2:05 ` Jesper Skov
  0 siblings, 0 replies; 3+ messages in thread
From: Jesper Skov @ 2000-02-14  2:05 UTC (permalink / raw)
  To: Dipanjan Ghosh; +Cc: ecos-discuss

>>>>> "Dipanjan" == Dipanjan Ghosh <dghosh@sasi.com> writes:

Dipanjan> Hi Thanks for the suggestion

>> 1) Include GDB stubs in the OS configuration

Dipanjan> I have tried this. I enabled all the GDB stub options in
Dipanjan> Ecos Config tool eCosHAL-Paltform-independent HAL Options
Dipanjan> and then build the OS. It didn't work

Doh! Of course not. Because GDB will be talking in Angel-protocol, not
GDB protocol.

>> 2) Program eCos GDB stubs on the board (described in Getting
>> Started Guide)

Dipanjan>  Can you please explain it a bit more, how to go about that

As I said, see the Getting Started Guide:

http://sourceware.cygnus.com/ecos/docs-1.2.1/tutorials/ecos-tutorial/arm-hardware-setup.html


Jesper

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

end of thread, other threads:[~2000-02-14  2:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-13  4:44 [ECOS] Problem debugging ecos-App uisng GDB on ARM7 PID Dipanjan Ghosh
2000-02-13  9:38 ` Jesper Skov
     [not found] <00a401bf76d1$c701ce50$8420000a@pcc132.sasi.com>
2000-02-14  2:05 ` Jesper Skov

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).