Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Juha Aaltonen <turbopultti@gmail.com>,
	       gdb-mailing list <gdb@sourceware.org>
Subject: Re: Bare metal "server" - cleaning up after a program
Date: Fri, 09 Oct 2015 09:26:00 -0000	[thread overview]
Message-ID: <56178847.30605@redhat.com> (raw)
In-Reply-To: <CAHR0xd4Otr2YPgKgaJqmRmk-7+68oyx+YSAbeRk+3q-4wZETYQ@mail.gmail.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


      parent reply	other threads:[~2015-10-09  9:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-08 22:27 Juha Aaltonen
2015-10-08 22:40 ` Juha Aaltonen
2015-10-08 22:59 ` Duane Ellis
2015-10-09  9:26 ` Pedro Alves [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56178847.30605@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=turbopultti@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox