This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Bare metal "server" - cleaning up after a program
- From: Pedro Alves <palves at redhat dot com>
- To: Juha Aaltonen <turbopultti at gmail dot com>, gdb-mailing list <gdb at sourceware dot org>
- Date: Fri, 09 Oct 2015 10:26:31 +0100
- Subject: Re: Bare metal "server" - cleaning up after a program
- Authentication-results: sourceware.org; auth=none
- References: <CAHR0xd4Otr2YPgKgaJqmRmk-7+68oyx+YSAbeRk+3q-4wZETYQ at mail dot gmail dot com>
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