From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104166 invoked by alias); 8 Oct 2015 22:40:15 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 104153 invoked by uid 89); 8 Oct 2015 22:40:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f196.google.com Received: from mail-wi0-f196.google.com (HELO mail-wi0-f196.google.com) (209.85.212.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 08 Oct 2015 22:40:13 +0000 Received: by wibuq7 with SMTP id uq7so1116364wib.3 for ; Thu, 08 Oct 2015 15:40:10 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.12.241 with SMTP id b17mr7211612wic.55.1444344010268; Thu, 08 Oct 2015 15:40:10 -0700 (PDT) Received: by 10.28.61.198 with HTTP; Thu, 8 Oct 2015 15:40:10 -0700 (PDT) In-Reply-To: References: Date: Thu, 08 Oct 2015 22:40:00 -0000 Message-ID: Subject: Re: Bare metal "server" - cleaning up after a program From: Juha Aaltonen To: gdb-mailing list Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00025.txt.bz2 Or would 'kill' ('k'-packet) be "the choice"? On Fri, Oct 9, 2015 at 1:27 AM, 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.