This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ammar2
Recipients Volker Weißmann, ammar2, terry.reedy
Date 2020-04-11.23:45:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586648736.09.0.896106459803.issue40218@roundup.psfhosted.org>
In-reply-to
Content
The reason you're seeing gdb still work even when all Pythons are deleted is because it embeds a Python interpreter in itself (https://docs.python.org/3/extending/embedding.html).

This issue is thus out of scope here and belongs on the gdb tracker, but I can tell you it's caused by these lines: https://github.com/bminor/binutils-gdb/blob/de7ac122a7f98c181c1ec175b0560bb48eabc6ea/gdb/python/python.c#L1668-L1694

The Py_SetProgramName() is what informs the sys.executable value.
History
Date User Action Args
2020-04-11 23:45:36ammar2setrecipients: + ammar2, terry.reedy, Volker Weißmann
2020-04-11 23:45:36ammar2setmessageid: <1586648736.09.0.896106459803.issue40218@roundup.psfhosted.org>
2020-04-11 23:45:36ammar2linkissue40218 messages
2020-04-11 23:45:35ammar2create