From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6324 invoked by alias); 21 Jun 2017 17:19:11 -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 6276 invoked by uid 89); 21 Jun 2017 17:19:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Temporary, progressive, investigated, Share 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 ESMTP; Wed, 21 Jun 2017 17:19:09 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DBDC46C02; Wed, 21 Jun 2017 17:19:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com DBDC46C02 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=sergiodj@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com DBDC46C02 Received: from localhost (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 903675C7A9; Wed, 21 Jun 2017 17:19:07 +0000 (UTC) From: Sergio Durigan Junior To: Simon Marchi Cc: GDB Patches , Pedro Alves , Tristan Gingold Subject: Re: [PATCH v7 3/4] Share fork_inferior et al with gdbserver References: <1482464361-4068-1-git-send-email-sergiodj@redhat.com> <20170604221803.17649-1-sergiodj@redhat.com> <20170604221803.17649-4-sergiodj@redhat.com> <542fdddc3c72c23a0e68b2c912d52746@polymtl.ca> Date: Wed, 21 Jun 2017 17:19:00 -0000 In-Reply-To: <542fdddc3c72c23a0e68b2c912d52746@polymtl.ca> (Simon Marchi's message of "Wed, 21 Jun 2017 19:01:09 +0200") Message-ID: <877f05dzsl.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00598.txt.bz2 On Wednesday, June 21 2017, Simon Marchi wrote: > On 2017-06-05 00:18, Sergio Durigan Junior wrote: >> This is the most important (and the biggest, sorry) patch of the >> series. It moves fork_inferior from gdb/fork-child.c to >> common/common-fork-child.c and makes all the necessary adjustments to >> both GDB and gdbserver to make sure everything works OK. >> >> There is no "most important change" with this patch; all changes are >> made in a progressive way, making sure that gdbserver had the >> necessary features while not breaking GDB at the same time. >> >> I decided to go ahead and implement a partial support for starting the >> inferior with a shell on gdbserver, although the full feature comes in >> the next patch. The user won't have the option to disable the >> startup-with-shell, and also won't be able to change which shell >> gdbserver will use (other than setting the $SHELL environment >> variable, that is). >> >> Everything is working as expected, and no regressions were present >> during the tests. > > I just started to play with GDB on macOS, and it seems currently > broken, a bisect pointed me to this commit > (2090129c36c7e582943b7d300968d19b46160d84). > > When trying to run/start, I get this: > > Temporary breakpoint 1 at 0x100000fb6: file /Users/simark/test.c, line > 2. > Starting program: /Users/simark/test > /Users/simark/src/binutils-gdb/gdb/darwin-nat.c:383: internal-error: > void darwin_check_new_threads(struct inferior *): Assertion `tp' > failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Quit this debugging session? (y or n) > > I haven't investigated yet, but I thought I'd share the information in > case somebody is interested . > > I am CCing Tristan because he's the last person who made fixes to keep > the macOS support somewhat working (thanks!). If you could at least > tell if you get the same error, it would be helpful. I'll try to investigate as well, but for obvious reasons I don't have a mac. I'll keep you posted. Thanks, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/