git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AcessNative - Possible fix to ioctl() bugs
[tpg/acess2.git]
/
AcessNative
/
ld-acess_src
/
binary.c
diff --git
a/AcessNative/ld-acess_src/binary.c
b/AcessNative/ld-acess_src/binary.c
index
08ae6e9
..
fa2af0c
100644
(file)
--- a/
AcessNative/ld-acess_src/binary.c
+++ b/
AcessNative/ld-acess_src/binary.c
@@
-1,12
+1,13
@@
/*
* AcessNative
*/
/*
* AcessNative
*/
+#define DEBUG 1
#include "common.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "common.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h>
-#define LIBRARY_PATH "$$$$../Usermode/Output/x86/Libs"
+#define LIBRARY_PATH "$$$$../Usermode/Output/x86
_64
/Libs"
// === TYPES ===
typedef struct sBinary {
// === TYPES ===
typedef struct sBinary {
@@
-169,12
+170,12
@@
void *Binary_Load(const char *Filename, uintptr_t *EntryPoint)
}
#if DEBUG
}
#if DEBUG
- printf("fmt->Load(
%i
)...\n", fd);
+ printf("fmt->Load(
0x%x
)...\n", fd);
#endif
ret = fmt->Load(fd);
acess_close(fd);
#if DEBUG
#endif
ret = fmt->Load(fd);
acess_close(fd);
#if DEBUG
- printf("fmt->Load(
%p
): %p\n", fd, ret);
+ printf("fmt->Load(
0x%x
): %p\n", fd, ret);
#endif
if( !ret ) {
return NULL;
#endif
if( !ret ) {
return NULL;
@@
-251,6
+252,7
@@
int Binary_GetSymbol(const char *SymbolName, uintptr_t *Value, size_t *Size)
}
//printf("Binary_GetSymbol: RETURN 0, not found\n");
}
//printf("Binary_GetSymbol: RETURN 0, not found\n");
+ printf("--- ERROR: Unable to find symbol '%s'\n", SymbolName);
return 0;
}
return 0;
}
UCC
git Repository :: git.ucc.asn.au