diff options
author | Cube <alessandro.devito91@gmail.com> | 2021-01-11 19:28:03 +0300 |
---|---|---|
committer | Cube <alessandro.devito91@gmail.com> | 2021-01-13 22:24:48 +0300 |
commit | 827eaae276a609431c8725cef49c2bbb58e3b55b (patch) | |
tree | 6cdefebd20a51d2cef6e8e129978df5dcce3d9c7 | |
parent | 9910ceda2e48955e72ab523a57a9aff75b125e47 (diff) |
IsDebuggerPresent -> IsGdbPresent, since it conflicts with IsDebuggerPresent Win API
-rw-r--r-- | mpclient.c | 2 | ||||
-rw-r--r-- | mpscript.c | 2 | ||||
-rw-r--r-- | peloader/util.c | 2 | ||||
-rw-r--r-- | peloader/util.h | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -154,7 +154,7 @@ int main(int argc, char **argv, char **envp) #endif } else { // Calculate the commands needed to get export and map symbols visible in gdb. - if (IsDebuggerPresent()) { + if (IsGdbPresent()) { LogMessage("GDB: add-symbol-file %s %#x+%#x", image.name, image.image, @@ -120,7 +120,7 @@ int main(int argc, char **argv, char **envp) } // Calculate the commands needed to get export and map symbols visible in gdb. - if (IsDebuggerPresent()) { + if (IsGdbPresent()) { LogMessage("GDB: add-symbol-file %s %#x+%#x", image.name, image.image, diff --git a/peloader/util.c b/peloader/util.c index 33c9c23..8db615a 100644 --- a/peloader/util.c +++ b/peloader/util.c @@ -30,7 +30,7 @@ #include "util.h" // Quick check if I'm running under GDB. -bool IsDebuggerPresent() +bool IsGdbPresent() { char *statusline; FILE *status; diff --git a/peloader/util.h b/peloader/util.h index befbb42..4d579ba 100644 --- a/peloader/util.h +++ b/peloader/util.h @@ -2,7 +2,7 @@ #define __UTIL_H #pragma once -bool IsDebuggerPresent(); +bool IsGdbPresent(); #ifdef __linux__ #define __thiscall __attribute__((thiscall)) |