Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/taviso/loadlibrary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCube <alessandro.devito91@gmail.com>2021-01-11 19:28:03 +0300
committerCube <alessandro.devito91@gmail.com>2021-01-13 22:24:48 +0300
commit827eaae276a609431c8725cef49c2bbb58e3b55b (patch)
tree6cdefebd20a51d2cef6e8e129978df5dcce3d9c7
parent9910ceda2e48955e72ab523a57a9aff75b125e47 (diff)
IsDebuggerPresent -> IsGdbPresent, since it conflicts with IsDebuggerPresent Win API
-rw-r--r--mpclient.c2
-rw-r--r--mpscript.c2
-rw-r--r--peloader/util.c2
-rw-r--r--peloader/util.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/mpclient.c b/mpclient.c
index 4cfeaaa..5391235 100644
--- a/mpclient.c
+++ b/mpclient.c
@@ -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,
diff --git a/mpscript.c b/mpscript.c
index 2c1e374..f843122 100644
--- a/mpscript.c
+++ b/mpscript.c
@@ -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))