From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43164 invoked by alias); 24 Aug 2015 17:10:43 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 43145 invoked by uid 89); 24 Aug 2015 17:10:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 24 Aug 2015 17:10:40 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id F300F8C1D8 for ; Mon, 24 Aug 2015 17:10:38 +0000 (UTC) Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7OHAbGn022369 for ; Mon, 24 Aug 2015 13:10:38 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/2] Fix gdbserver crash on all non-GNU/Linux targets Date: Mon, 24 Aug 2015 17:10:00 -0000 Message-Id: <1440436237-24015-1-git-send-email-palves@redhat.com> X-SW-Source: 2015-08/txt/msg00690.txt.bz2 Documentation review needed on patch #1. This series fixes the crash Ulrich reported here: https://sourceware.org/ml/gdb-patches/2015-08/msg00675.html In order to add a test that exposes the issue on GNU/Linux, I need to add the missing "set remote ...-packet" knob to disable the multiprocess extensions. I've pushed this to the users/palves/gdbserver-crash-without-multiprocess branch for testing convenience. Pedro Alves (2): Add "set remote multiprocess-extensions-packet" command gdbserver crashes when multiprocess extensions aren't supported gdb/NEWS | 4 ++ gdb/doc/gdb.texinfo | 4 ++ gdb/gdbserver/inferiors.c | 8 +++ gdb/gdbserver/inferiors.h | 3 + gdb/gdbserver/remote-utils.c | 7 ++- gdb/remote.c | 7 ++- .../gdb.server/connect-without-multi-process.c | 22 +++++++ .../gdb.server/connect-without-multi-process.exp | 68 ++++++++++++++++++++++ 8 files changed, 118 insertions(+), 5 deletions(-) create mode 100644 gdb/testsuite/gdb.server/connect-without-multi-process.c create mode 100644 gdb/testsuite/gdb.server/connect-without-multi-process.exp -- 1.9.3