This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: Running an application - How to continue without gdb


Gary D. Thomas wrote:
On Wed, 2003-03-05 at 08:32, Bahadir Balban wrote:

Hi there,

When I compile a simple, stand alone program without ecos, after downloding to RAM, it continues to run on my E7T, even if I deattach the serial cable (I mean gdb). But with ecos it doesn't. It stops as soon as I deattach gdb.
How do I make it continue to run without control of gdb, after the download? (In fact it doesn't need gdb to be able to run I think)

If this is achiveable, I also want to use the serial port by which gdb has downloaded my program.

What I mean is, I will download and start it using gdb, and then deattach the serial cable, and use the same serial port for my application. I know that it is obviously not possible to do this while gdb is communicating with the target from same channel, but this case is different as you see. Is this possible? (i.e. does redboot block that channel even if there's no gdb on that channel anymore?)


Why not just use RedBoot to load & execute the program,
without involving GDB at all?

Particularly since the problem is probably that diagnostic output will still want to use the GDB protocol and therefore expect an ACK from GDB, which never arrives so the target stops.


To change your program to output "straight" i.e. not GDB output, your program has to change this programmatically. See
http://sources.redhat.com/ml/ecos-discuss/2003-02/msg00201.html


Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


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


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