From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92416 invoked by alias); 21 Sep 2018 04:49:16 -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 92404 invoked by uid 89); 21 Sep 2018 04:49:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=morgan, Morgan X-HELO: mail-wm1-f46.google.com Received: from mail-wm1-f46.google.com (HELO mail-wm1-f46.google.com) (209.85.128.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Sep 2018 04:49:14 +0000 Received: by mail-wm1-f46.google.com with SMTP id o18-v6so1720629wmc.0 for ; Thu, 20 Sep 2018 21:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=gOm1Wim6Im1WLTuXuLJuP/Vv4TfJN0Zo0oUxbccm7w8=; b=bf/VELNhtmrB8MFM7H3GUa1yAg9JraJMaSRAT3w/DREDKZbKHLgLZFsJjTV+yd8oBD VBq1eGcpDOw+7Rx4jaNU4xU/GTwgp3Zmda8DEYg6QnUxcC6DHxcUqRSSTQeIKFUmANYC XCgJi18JImaAiHQHsAG87QFikjVNjSdg9lTPqilPk8nVsSLBbGKp5ZFgmOtFs2VNwqoA oBH8Lo8xiYwSOrMbR8ImWnjeEDa2rZcQLGVqmRaKz4QYhyjOYify4PKy32PlhRb4WgSQ CQkcTdPnkPlVQfCNbJZNeSg/hZZKU74Qr2kVVGmOYB4TEAYVTq3KzgdjDHSIEx46y/2K GaWw== Return-Path: Received: from [192.168.1.11] ([105.226.3.4]) by smtp.gmail.com with ESMTPSA id r1-v6sm4310792wmg.9.2018.09.20.21.49.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 21:49:11 -0700 (PDT) Message-ID: <1537505346.14561.6.camel@gmail.com> Subject: Re: gdb tcp connection closing From: Christo To: gdb@sourceware.org Cc: Bill Morgan Date: Fri, 21 Sep 2018 04:49:00 -0000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00025.txt.bz2 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.