From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 07E0A3858D37 for ; Fri, 16 Oct 2020 06:25:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 07E0A3858D37 Received: by mail-wr1-x42e.google.com with SMTP id n18so1377039wrs.5 for ; Thu, 15 Oct 2020 23:25:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Eg1HWY37KYfYv/JupQSNWaPS5hrXhDJPOnfaEElGKws=; b=RzRX9CAkwKmJYNBzGWgiuNbXFzsntImf6pPYVYH6CdJfa97hd+DiVvHV5PgbVOMDse S2KRG1/rWydaPyddfUckIqQIsuBfaHsMlphiuDrZ7xu6KVuY+XzhYuStqdvhSMXMImqO h2xdtc4TawGntEZiXBbUT1eAUzLsBoeOZxSYvM9txp8eBUW+qPlrJEe5edEdw7ZQL9xN Nz4jG886VtLE6U5HIZENz9cKbt8+7Pk5avNLtyoo21IRMatNJG279YFWuA9wy5y5IUtv bWp3H0AaNdt8BAXjYdXahOzuP5u9APv3a981RUAnetORd3FNz2c2WTK0hF9Dz56I+JVL LqAA== X-Gm-Message-State: AOAM533YmVpLW/pIwaOr6mJ/HoqQSKoktohJ6u2pmf2dXpqHmY7Ip6Q1 9UV/JEFFRb2y4a9+3GB6Rnvx1+PF8/zi8zA9eKC6Gk0A3EY= X-Google-Smtp-Source: ABdhPJx449k/JNzhgwKv4D4mkHDLhUPwPYKbzibdntXUCPpp1zTguXSl15ZQqJ6xG4/uHxi/b457+ye6H7EJ5Vb9h6A= X-Received: by 2002:adf:ab50:: with SMTP id r16mr1907263wrc.235.1602829544170; Thu, 15 Oct 2020 23:25:44 -0700 (PDT) MIME-Version: 1.0 References: <2e91d8ee-00e0-1fe8-f2f3-9ee483319a70@linaro.org> In-Reply-To: <2e91d8ee-00e0-1fe8-f2f3-9ee483319a70@linaro.org> From: Christo Crause Date: Fri, 16 Oct 2020 08:25:32 +0200 Message-ID: Subject: Re: porting gdbserver To: Luis Machado Cc: William Tambe , gdb@sourceware.org X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2020 06:26:05 -0000 On Thu, 15 Oct 2020, 20:24 Luis Machado via Gdb, wrote: > Hi, > > On 10/15/20 1:34 PM, William Tambe via Gdb wrote: > > Is there an easy to follow documentation or commit that shows how to port > > gdbserver for baremetal ? > > > > I'm afraid there isn't. I suppose you are talking about actually coming > up with a debugging stub that implements the most minimal set of remote > protocol packets, right? Not "gdbserver" itself, which is always OS-hosted. An example of a bare metal stub on an 8 bit AVR: https://github.com/jdolinay/avr_debug The remote protocol handling is implemented here https://github.com/jdolinay/avr_debug/blob/master/avr8-stub/avr8-stub.c