wtxKludges.h

Go to the documentation of this file.
00001 /*
00002  * See the dyninst/COPYRIGHT file for copyright information.
00003  * 
00004  * We provide the Paradyn Tools (below described as "Paradyn")
00005  * on an AS IS basis, and do not warrant its validity or performance.
00006  * We reserve the right to update, modify, or discontinue this
00007  * software at any time.  We shall have no obligation to supply such
00008  * updates or modifications or any other form of support to you.
00009  * 
00010  * By your use of Paradyn, you understand and agree that we (or any
00011  * other person or entity with proprietary rights in Paradyn) are
00012  * under no obligation to provide either maintenance services,
00013  * update services, notices of latent defects, or correction of
00014  * defects for Paradyn.
00015  * 
00016  * This library is free software; you can redistribute it and/or
00017  * modify it under the terms of the GNU Lesser General Public
00018  * License as published by the Free Software Foundation; either
00019  * version 2.1 of the License, or (at your option) any later version.
00020  * 
00021  * This library is distributed in the hope that it will be useful,
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00024  * Lesser General Public License for more details.
00025  * 
00026  * You should have received a copy of the GNU Lesser General Public
00027  * License along with this library; if not, write to the Free Software
00028  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
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 /*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
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1