Commit Graph

4 Commits

Author SHA1 Message Date
Sergei Trofimovich
b92d82d2b2 BUILD: Fix missing <cstdint> include
Without the change mumble build fails on this week's gcc-13 snapshot as:

    plugins/Module.h:13:9: error: 'uint64_t' does not name a type
       13 | typedef uint64_t procptr_t;
          |         ^~~~~~~~
    plugins/Module.h:12:1: note: 'uint64_t' is defined in header '<cstdint>';
      did you forget to '#include <cstdint>'?
       11 | #include <unordered_map>
      +++ |+#include <cstdint>
       12 |

Co-authored-by: Davide Beatrici <github@davidebeatrici.dev>
2022-05-27 09:02:15 +01:00
Robert Adam
d100ff1467 MAINT: Update copyright to 2022 2022-01-04 20:17:33 +01:00
Robert Adam
59ae429972 MAINT: Update copyright notice to 2021
This was done by running scripts/updateLicenseHeaders.py and then
manually editing the LICENSE file.
2021-03-02 10:15:01 +01:00
Davide Beatrici
988b8417ac REFAC(positional-audio): Proper functions/classes for module-related operations
Previously, only module() was present: it retrieved the base address of the specified module.

It worked fine, but it iterated through the process' modules every time it was called.

This commit replaces it with modules(), which returns an std::unordered_map containing all modules.

The map uses the module name as key and Module as value.

Aside from the performance improvement, the new code also provides info for each module region:

- Start address.
- Size.
- Whether it's readable, writable and/or executable.
2020-11-06 21:37:06 +01:00