This solves a small TODO: the global debug map list was not protected by any lock. I'm not sure if that ever caused problems, but now it should be correct.
In addition, I took the opportunity to convert the global variable name to g_*, and use standard list.h instead of ad-hoc lists.
How to test this PR?
Existing tests should be enough: they include GDB integration, as well as various fork and exec scenarios.
Description of the changes
This solves a small TODO: the global debug map list was not protected by any lock. I'm not sure if that ever caused problems, but now it should be correct.
In addition, I took the opportunity to convert the global variable name to
g_*
, and use standardlist.h
instead of ad-hoc lists.How to test this PR?
Existing tests should be enough: they include GDB integration, as well as various fork and exec scenarios.
This change is