Re: gdb show thread names
Kamil Rytarowski <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
On 13.06.2020 02:16, Jonny Grant wrote: > Hello > Just wondering if gdb could show the thread names as they are created and deleted? > As created generally no, as it gets a meaningful name usually after creation from a dedicated syscall. If there is a legitimate use-case, I can implement reporting thread rename for NetBSD and report in GDB. But as we would report thread renames, what about other events? > > [Thread 0x7fff695e9700 (LWP 3580240) exited] > [New Thread 0x7fff98ff9700 (LWP 3580609)] > > $ cat /proc/3580609/comm > ThreadPoolForeg > > Could be a race condition, if GDB showed the name, before it was renamed by the application, but still pretty useful to see the names. > > If I break, and type "info thread" I can see those still created. > > Jonny >
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEELaxVpweEzw+lMDwuS7MI6bAudmwFAl7nXrUACgkQS7MI6bAu dmxz5RAAm5CDSLfoxVzN2tKwomx+jUi5JFulLIWXZP/w9J2Uraa6lxzTpPWb7ZQ5 Jzi1DzuEJ3x8T8kaSDsirWjWnk7Y+fl57yhUeG8MQh+wEEpezyMpZVFMtBQoYeLi IgWsUkUDAJ7I4F22O1jL0nQEfoG06DVdDVL38r5RWVah6weUq+8f+shJjM1UOqLD CvS1fFUgFRW9mMmUyz1WYztm+Hvs9I4oBRA81UxmSwNJm5SYVEDQP/GlDmDgZDFW XH9IG5MyBsnAqzR8KzjSvhCVBhYGr9suknzWJwL4Yfp4C3MseEA7S9NGMhN6NT6G 3MH3VFkRjZgfUbXHtIZPgk2jmFBdS5i829UKuxZDnWSOb7uGFDiQ5UZyJTSu3r4Z 8UaA/nW4lB6t+cgkK61WBN2wGTher9uQ4UQWkLHbZb9+kgVfZX9SEs71AbO1iN9D 9iCOS2r1qbWrvPX7zJkrmoYNu+ACMw1RE9SCqpGjkRD8yceyTMm/u3665kpHmSxC gWGU7QnRFS+oBXvDmTkxYqhi69ePgC4HTMWNjeNmSZUHMJrRpDfIDkuupOBApr9b BoSzBM0DLhf7n98IqUDEBQJn6qbMgfvlNeHTXe1qHMeCEoBkuhrjDmspVhzcpgnu BV4QsHW+g/kK7JMMligKim+UFl0OQUzcWnER79iBCnrSkCkPWMs= =4vpf -----END PGP SIGNATURE-----