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 7AAC03840C0B for ; Fri, 15 Jan 2021 06:04:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7AAC03840C0B Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 5AE63335C76; Fri, 15 Jan 2021 06:04:32 +0000 (UTC) Date: Fri, 15 Jan 2021 01:04:31 -0500 From: Mike Frysinger To: William Tambe Cc: gdb@sourceware.org Subject: Re: Best way to check whether the "sim" is running standalone or by GDB Message-ID: <20210115060431.GO6938@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="96dIhm/ZjrNld+BP" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.1 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:04:34 -0000 --96dIhm/ZjrNld+BP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On 28 Aug 2019 21:15, William Tambe wrote: > What is the best way to check whether the "sim" is running standalone > or by GDB ? this is the point of SIM_OPEN_KIND. it is set to SIM_OPEN_DEBUG when gdb (a debugger) is used, and SIM_OPEN_STANDALONE when it's not. -mike --96dIhm/ZjrNld+BP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmABMG8ACgkQQWM7n+g3 9YGy8A//RfFBJqzHEZSjKa+D4lifIlirjTXw+NOcarSTIo04RcV3P4M0MHD5mkKR +C2w8BxcTumzBRKyt9Abic2r2TlSJrG7yHKu5I3ka8YftgI86K+s+vquIZ4dDmLE UhrFJ7vncefK/gtCTWyZdmlBuJE1objaKM8XFELDw9gNx8uGmn9Hau5X1kHQMfAi 8ZE4RGvcLbPnFn0dlMXUnyM0SE5t2dHpy+NUs0QiMYU7/VflMiviETUZlbYOX78A 7ERxBcQcQk8+IL9m8DUg30NGGK87NC31Dl3NM5xFAJPA8K8O3eYnT8zVYBbQw/mX yzboc/5bYecsGnT0GBpB2JHvCNKpanXEDhcs25lqRvtpBECyaccMyOU7YVFPTNsx o8N47ESKYZrgictzjRM3nG2j25g6Z9MMRixf6dpmAVTWTgAn/d8dmVVzqU817jPW 7KpEarIGUMC91V1ddtKMxP5aFYmCC6lOZEwuGnZOwHqqJ/ztVy/UIHZjEqOJN3zQ L7/tP3+FEJmseC3+OcGrcOMV5znxZTGkUN/nnGf8tm0kdKGBEI7s0UFcDcqOYVON yS3cSSewTPZQDHa/6weUfCsu/EcBtS2x6LaIZMmaRCjyilFS3LB2DYi/+vFUN9yF cNDxPCXnLunDwwIXmmoJCiOKp+ABHW/kTxVkLSLr4swtQXBZPMo= =CER9 -----END PGP SIGNATURE----- --96dIhm/ZjrNld+BP--