Re: Bare metal "server" - cleaning up after a program

Pedro Alves <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 10/08/2015 11:27 PM, Juha Aaltonen wrote:
> I've been writing some kind of bare metal standalone gdb server/stub
> that works through a serial line.
> 
> The problem is: when to clean up between debugged programs?
> I have been wondering about the beginning of loading in a new program
> ("X0,0"-packet).
> Maybe there is a better way/situation.
> 
> Gdb seems so focused to debugging processes running within an OS, that
> "interpretation" in context of bare metal environment is hard.

I find it hard to answer the question, because I don't really understand
what you mean by "clean up".  Maybe you want to
use "target extended-remote" instead, and be able to use "kill" and "run"?

Thanks,
Pedro Alves
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.