This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: Bare metal "server" - cleaning up after a program


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


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