资源简介
CE官方6.8.3源码

代码片段和文件信息
/*
* api.c
*
* Created on: Jul 20 2011
* Author: erich
*
* This unit will implement the api‘s CE uses
* This will be the main point of interest when porting to another system
*/
//#define _XOPEN_SOURCE 500
//todo for in the far future: Hook syscalls
#define _FILE_OFFSET_BITS 64
#define _LARGEFILE64_SOURCE
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#ifndef __x86_64__
#include
#endif
#include
#include
#include
#include
#include
#include
#ifndef __x86_64__
#include
#include
#endif
#ifdef __arm__
#include
#endif
//blatantly stolen from the kernel source
#define PTRACE_GETHBPREGS 29
#define PTRACE_SETHBPREGS 30
/* Breakpoint */
#define ARM_BREAKPOINT_EXECUTE 0
/* Watchpoints */
#define ARM_BREAKPOINT_LOAD 1
#define ARM_BREAKPOINT_STORE 2
/* Privilege Levels */
#define ARM_BREAKPOINT_PRIV 1
#define ARM_BREAKPOINT_USER 2
/* Lengths */
#define ARM_BREAKPOINT_LEN_1 0x1
#define ARM_BREAKPOINT_LEN_2 0x3
#define ARM_BREAKPOINT_LEN_4 0xf
#define ARM_BREAKPOINT_LEN_8 0xff
static inline unsigned int encode_ctrl_reg(int mismatch int len int type int privilege int enabled)
{
return (mismatch << 22) | (len << 5) | (type << 3) | (privilege << 1) | enabled;
}
#ifndef __ANDROID__
#if defined(__i386__) || defined(__x86_64__)
#include
#endif
#endif
#include “api.h“
#include “porthelp.h“
#include “ceserver.h“
#include “threads.h“
#include “symbols.h“
#include “context.h“
//#include
sem_t sem_DebugThreadEvent;
pthread_mutex_t memorymutex;
pthread_mutex_t debugsocketmutex;
//pthread_mutex_t mut_RPM;
typedef struct
{
int ReferenceCount;
int processListIterator;
int processCount;
PProcessListEntry processList;
} ProcessList *PProcessList;
typedef struct
{
int ReferenceCount;
int moduleListIterator;
int moduleCount;
PModuleListEntry moduleList;
} ModuleList *PModuleList;
int VerboseLevel=0;
int WakeDebuggerThread()
{
sem_post(&sem_DebugThreadEvent);
}
void mychildhandler(int signal struct siginfo *info void *context)
{
//only call re-entrant functions
int orig_errno = errno;
WakeDebuggerThread();
errno = orig_errno;
}
int GetDebugPort(HANDLE hProcess)
//return the debugserver fd
{
if (GetHandleType(hProcess) == htProcesHandle )
{
PProcessData p=(PProcessData)GetPointerFromHandle(hProcess);
if (p->isDebugged)
{
return p->debuggerServer;
}
}
return -1;
}
int FindPaused
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 55 2019-02-08 03:03 ce6.8.3官方源码\.gitignore
文件 51 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\aboutunit.ddp
文件 31836 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\aboutunit.lfm
文件 1062 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\aboutunit.lrt
文件 7095 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\aboutunit.pas
文件 1511 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\AccessCheck.pas
文件 6565 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\accessedmemory.lfm
文件 1122 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\accessedmemory.lrt
文件 6011 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\accessedmemory.pas
文件 51 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\AddAddress.ddp
文件 762 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\AddAddress.lrt
文件 1266 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\addressedit.pas
文件 67565 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\addresslist.pas
文件 4890 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\addresslisteditor.pas
文件 3350 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\addresslisthandlerunit.pas
文件 9118 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\addressparser.pas
文件 51 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\AdvancedOptionsUnit.ddp
文件 8407 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\AdvancedOptionsUnit.lfm
文件 1076 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\AdvancedOptionsUnit.lrt
文件 24171 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\AdvancedOptionsUnit.pas
文件 1201 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\allochook\allochook.dpr
文件 7772 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\allochook\allochook.lpi
文件 590 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\allochook\allochook.lpr
文件 9873 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\allochook\hookedfunctions.pas
文件 4288 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\APIhooktemplatesettingsfrm.lfm
文件 575 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\APIhooktemplatesettingsfrm.lrt
文件 1152 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\APIhooktemplatesettingsfrm.pas
文件 15438 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\asktorunluasc
文件 1806 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\asktorunluasc
文件 74 2019-02-08 03:03 ce6.8.3官方源码\Cheat Engine\Assembler.pas
............此处省略1647个文件信息
- 上一篇:动态电力系统的理论和分析
- 下一篇:灰色系统理论建模软件
相关资源
- Scratch源码
- E4A无障碍跨程序操作类库(带源码、
- 设备管理系统源码
- 安卓wifi直连app源码
- 我的世界源码(易语言版)
- labview编程软件滤波器以及编写程序设
- 我的界面(visual foxpro)源码
- 易语言:一键cf基址源码
- The Secret Path 3D 3D魔方迷宫[源码][scra
- scratch垃圾分类源码(最终版本).sb
- 安卓QQ6.71协议源码易语言,qq协议源码
- 编译原理实验工具及参考源码(lex&
- E盾偷后台工具源码
- UNIX/LINUX编程实践教程的源码
- 十以内加减法练习 powerbuilder源码
- 农场开发项目
- OCR源码
- PLC上位机编程软件
- 用foobar2000听google音乐[更新一下]
- 学生信息管理系统源码
- 用VC 编写的仿QQ聊天室程序源代码
- 毕业论文之温度传感器DS18B20(源码
- 可自定义导航网站源码
- 栅栏填充算法源码(VC)
- msp430F149操作红外接收模块源码
- [免费]图像识别c 源码
- 周易排盘源码
- RSA算法源码
- 一个人脸识别程序源码
- 编译原理课程设计:词法语法编译器
评论
共有 条评论