public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] How to reattach gdb, how to start gdb later
@ 2009-07-14 17:59 Stanislav Meduna
  0 siblings, 0 replies; only message in thread
From: Stanislav Meduna @ 2009-07-14 17:59 UTC (permalink / raw)
  To: eCos Discussion

Hi,

1) I'd like to let the redboot load and run the application,
   but allow to attach debugger over the serial line later
   if necessary. However, if I tell the Redboot to "go",
   the application starts with no output mangling and the
   gdb does not connect.

   Is it possible to let the RedBoot switch to gdb stubs
   and emulate gdb target remote / load / cont, so that
   the gdb can connect anytime later?

2) Is it possible to detach the gdb, let the application
   continue and attach later? Right now if I break
   into the debugger with ctrl-c, the application
   stops and a "detach" lets it continue. Attaching
   with "target remote" kind of works .. it stops the
   application, but shows bogus addresses in the threads
   and corrupt stack for e.g. "thread 4; where".
   "cont" lets the application continue. However,
   the ctrl-c no more works.

   I am assuming the basic asynchronous break works -
   otherwise the "target remote" would not stop
   the application. Any ideas?


Thanks
-- 
                                 Stano

-- 
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] only message in thread

only message in thread, other threads:[~2009-07-14 17:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-14 17:59 [ECOS] How to reattach gdb, how to start gdb later Stanislav Meduna

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