From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1310 invoked by alias); 21 Sep 2018 13:16:53 -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 1289 invoked by uid 89); 21 Sep 2018 13:16:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*c:alternative X-HELO: mail-vs1-f46.google.com Received: from mail-vs1-f46.google.com (HELO mail-vs1-f46.google.com) (209.85.217.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Sep 2018 13:16:51 +0000 Received: by mail-vs1-f46.google.com with SMTP id y11-v6so4689858vso.5 for ; Fri, 21 Sep 2018 06:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W3cUqV5fA5MsgwRQXaXmT13RY8GOF9lMxCpsQBjZ0to=; b=PH1IgfDxvLfvE27g5DXipZvok4zT1CwbxFKK2vx9z0N+S3r+rik7ai3jdoVFIofPly xYlU70epF3cWaXF2xapoLSLyuOkjPhwQG4Em72XCJM3fcGmkeV4f02j+pHOAS1KtGnzO neOqAuMvvuPoc+AAabwntNUJTMlkbfUV/kJRAMQa34Ysb+Gg2yDaWYlpDW88HargaHPb jDm6jlRUgShHshT5qJTBpKQ64dL1g+VoUPF/kPPtwdDX9jPV0M3wSuWqys3lW9E8Sj2g YSVGH/FHBLkiPSImnCUx7c65bYiEHpXmvpBsLNckvRBLTq3hBD/Ho9CtNu6AZgX6Q10F qdBQ== MIME-Version: 1.0 References: <1537505346.14561.6.camel@gmail.com> In-Reply-To: From: Bill Morgan Date: Fri, 21 Sep 2018 13:16:00 -0000 Message-ID: Subject: Re: gdb tcp connection closing To: christo.crause@gmail.com Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00027.txt.bz2 On Fri, Sep 21, 2018 at 7:56 AM Bill Morgan wrote: > > On Thu, Sep 20, 2018 at 11:49 PM Christo wrote: > >> On Thu, 2018-09-20 at 17:48 -0500, Bill Morgan wrote: >> > I'm trying to write a GDB stub for an embedded application >> > >> > For some reason the GDB host is closing the TCP connection after it >> > requests qOffsets, and the stub sends an empty reply. >> > >> > Is that expected? >> >> Have you activated the debug remote option in gdb (set debug remote 1)? >> This is sometimes useful >> in pinpointing rsp problems. >> > > Thanks. It is saying the remote register packet is badly formatted. > > Which part of the packet is wrong? > > gdb.error: Remote register badly formatted: > T050b:00000000;0d:d87e2030;0f:d4523060;thread:9 > I was missing the trailing semicolon ';'