From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Mike Frysinger To: William Tambe Cc: gdb@sourceware.org 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-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Fri, 15 Jan 2021 06:25:05 -0000 --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--