Re: Best way to check whether the "sim" is running standalone or by GDB

Mike Frysinger via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <20210115060431.GO6938@vapier>
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
signature.asc (application/pgp-signature, 833 B)
-----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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.