wtxKludges.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #if !defined(_wtx_kludges_h)
00033 #define _wtx_kludges_h
00034
00035 #include "common/h/Types.h"
00036 #include "dynutil/h/dyntypes.h"
00037
00038 #ifndef HOST
00039 #define HOST // vxWorks foundation libraries require this to be defined.
00040 #endif
00041 #ifndef NOMINMAX
00042 #define NOMINMAX // vxWorks definition of min and max is problematic.
00043 #endif
00044 #include "wtx.h"
00045
00046 typedef enum {
00047 WTX_UNKNOWN,
00048 WTX_INITIALIZED,
00049 WTX_CONNECTED,
00050 WTX_INVALID
00051 } wtx_state_t;
00052
00053 extern HWTX wtxh;
00054 extern wtx_state_t wtx_state;
00055 extern std::vector<WTX_MODULE_INFO *> wtxDynLoadedMods;
00056 extern dyn_hash_map<std::string, WTX_MODULE_INFO *> wtxMods;
00057
00058 bool wtxDisconnect(void);
00059 void setAgentMode(WTX_AGENT_MODE_TYPE );
00060 bool wtxReadMem(const void *inTarget, u_int nbytes, void *inSelf);
00061 bool wtxWriteMem(void *inTarget, u_int nbytes, const void *inSelf);
00062 bool wtxFindSymbol(const char *name, WTX_SYMBOL_TYPE type, WTX_TGT_ID_T modId,
00063 Address &addr);
00064 bool wtxFindFunction(const char *name, WTX_TGT_ID_T modId, Address &addr);
00065 bool wtxFindVariable(const char *name, WTX_TGT_ID_T modId, Address &addr);
00066 bool wtxSuspendTask(WTX_TGT_ID_T ctxID);
00067 WTX_MODULE_INFO *wtxLoadObject(const std::string &objname);
00068 bool relocationTarget(const Address addr, Address *target);
00069 void printEventpoints(void);
00070 void printModuleInfo(WTX_MODULE_INFO *info);
00071
00072 #endif