public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] info threads on Synthetic target
@ 1999-09-24  7:52 Andrew Lunn
  1999-09-24  8:27 ` Jonathan Larmour
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 1999-09-24  7:52 UTC (permalink / raw)
  To: ecos-discuss

Hi Folks
 
For the Synthetic linux target, is gdb supposed to be able to see the
threads? The "info threads" command does not work. I have the HAL
option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT enabled.
 
        Thanks
                Andrew

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

* Re: [ECOS] info threads on Synthetic target
  1999-09-24  7:52 [ECOS] info threads on Synthetic target Andrew Lunn
@ 1999-09-24  8:27 ` Jonathan Larmour
  1999-09-24 10:16   ` [ECOS] " Bart Veer
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Larmour @ 1999-09-24  8:27 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

Andrew Lunn wrote:
> 
> Hi Folks
> 
> For the Synthetic linux target, is gdb supposed to be able to see the
> threads? The "info threads" command does not work. I have the HAL
> option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT enabled.

Simple answer: nope. It would require gdb support to be added I'm afraid.

Jifl
-- 
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK.  Tel: +44 (1223) 728762
"I used to have an open mind but || Get yer free open source RTOS's here...
 my brains kept falling out."    || http://sourceware.cygnus.com/ecos
Help fight spam! http://spam.abuse.net/  These opinions are all my own fault

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

* [ECOS] Re: info threads on Synthetic target
  1999-09-24  8:27 ` Jonathan Larmour
@ 1999-09-24 10:16   ` Bart Veer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Veer @ 1999-09-24 10:16 UTC (permalink / raw)
  To: jlarmour; +Cc: lunn, ecos-discuss

>>>>> "Jifl" == Jonathan Larmour <jlarmour@cygnus.co.uk> writes:

    >> For the Synthetic linux target, is gdb supposed to be able to
    >> see the threads? The "info threads" command does not work. I
    >> have the HAL option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
    >> enabled.

    Jifl> Simple answer: nope. It would require gdb support to be
    Jifl> added I'm afraid.

Or for a more complete explanation (although be warned that I am not a
gdb expert)...

On embedded targets such as an evaluation board, gdb typically works
by interacting with gdb stub code on the target via a serial line.
With eCos we have control over the gdb stubs, so they know how eCos
threads work and can send back the right data in response to the
relevant gdb packets.

For the synthetic target there are no target-side stubs involved.
Instead gdb will use exactly the same debugging techniques that it
would use for a native Linux application, i.e. the ptrace() system
call or something along those lines. For gdb to provide thread-aware
debugging in these circumstances, it would need to know about eCos
kernel data structures so that it can peek around the synthetic target
address space. This is not impossible (although implementing it
cleanly is non-trivial), but the work has not yet been done.

Bart Veer // eCos net maintainer

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

end of thread, other threads:[~1999-09-24 10:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-24  7:52 [ECOS] info threads on Synthetic target Andrew Lunn
1999-09-24  8:27 ` Jonathan Larmour
1999-09-24 10:16   ` [ECOS] " Bart Veer

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