Re: Threading support in binutils simulator such that gdb "info threads" sees it
Mike Frysinger via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <20210115062503.GP6938@vapier> |
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
signature.asc
(application/pgp-signature, 833 B)
-----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-----