From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id fOmPI0M1AWCoNwAAWB0awg (envelope-from ) for ; Fri, 15 Jan 2021 01:25:07 -0500 Received: by simark.ca (Postfix, from userid 112) id 8385A1EF80; Fri, 15 Jan 2021 01:25:07 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 1198F1E945 for ; Fri, 15 Jan 2021 01:25:07 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7AABC3971807; Fri, 15 Jan 2021 06:25:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7AABC3971807 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1610691906; bh=3hd96wMoJvr5e6LpFgU9jYPLgx7GGiEFGrLQHx/rvco=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=sfU2qwVIphB0OlqsmGFeKqGptCWV775ncM9HCeZ3bbU2wBhO6OXzgHYac0KaWlx1a c4jz4aAwgzLqib856YW6MQTwbESVivJ5fK93lfBj6roWY77OjgnPXu65iPXTIyUpRN 6WE47zB0ku52VRtsPJGO4WPjmYDqgJOOXoK5gpf0= Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 762D73840C0B for ; Fri, 15 Jan 2021 06:25:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 762D73840C0B Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 9A48B335CEF; Fri, 15 Jan 2021 06:25:03 +0000 (UTC) Date: Fri, 15 Jan 2021 01:25:03 -0500 To: William Tambe Subject: Re: Threading support in binutils simulator such that gdb "info threads" sees it Message-ID: <20210115062503.GP6938@vapier> Mail-Followup-To: William Tambe , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8G1nIWD3RY794FAy" Content-Disposition: inline In-Reply-To: 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: , From: Mike Frysinger via Gdb Reply-To: Mike Frysinger Cc: gdb@sourceware.org Errors-To: gdb-bounces@sourceware.org Sender: "Gdb" --8G1nIWD3RY794FAy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On 20 Aug 2019 00:55, William Tambe wrote: > What should be implemented within the binutils simulator it's just "the simulator". no relation to binutils. > such that gdb "info threads" sees it ? there is no support for threads in the simulator. the simulator is simulating processors, not processes. so the concept doesn't even really map. if/when we finish up multiprocessor support, i'd expect we'd expose those as threads in gdb. but that would still be hardware level, not software level. > I tried using fork() within sim_create_inferior() but GDB would behave > erratically. it's unclear what you mean, but if you forked the sim, you now have two sims running ... and if the sim is built into gdb, you now have two gdbs running ... -mike --8G1nIWD3RY794FAy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmABNT8ACgkQQWM7n+g3 9YHbIw/+KSmhW7tMoQVobhQUYYyY72QGDeiiW8MB1ZYclCZBBLBbvBanv3h6nG4f 2gjK/whRSFCp5q05LH9CjB/0Eln5q2jPJ3VdQG5YR+C5gVLvslzGMpGbZFAArgAx 0J9dRi/O1WQ85GI/s9ZkQaUBAu8M3KlX8/cXBBBhsBaB3tJM32jJNvDWh2sAxxEg vmG3HBORzY2aRnFeSiGBT4rFblEkYsVl/ZsRHiB+OWtB7Adz05as6vqHAWRN/gRW /WY6KZfIvB7CSNMyc7mHb+n3Lbupn3KpPN7D988M0FmFo7vAf3gKrw8QqzEcFA2Y NItIQSQrpIbW8sw4D6fnQesbJbgPOQCgjmP7nts4iWwKUEO6/sE/SYnVvL1/b3fg VbzWDCRvZRtzWHDehQ81qSpKUUP0B4ZAAdivfjf6K44nfxk5uFF8/0IbJfIkFOAe b596WxX1OwuX6RWe8VxEIc2XqYHTRE80LcTis0uZXYBnKa2gIcpbnjO+2EbU0jax eBU/55hq/hcXFxjQ3ndDAlmR9+RCNbFcEOiwZqrHahz8X/PuoP/BdJEXyQR9jiAg 9vSXHhYj1o6u5sfaz+8SZb+2tJ1Ickaeqx5+IWYf0OyVmwCmzmqZKFzoyCcHWeZA G2VBsyu0ogJpuglKEdMD9FYipoYySbeb0pfH9q6QghkQIvJM2+Y= =tGT6 -----END PGP SIGNATURE----- --8G1nIWD3RY794FAy--