This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to reattach gdb, how to start gdb later


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]