⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdefs.h

📁 unix下调试内存泄露的工具源代码
💻 H
字号:
/*---------------------------------------------------------------*//*---                                                         ---*//*--- This file (guest-ppc32/gdefs.h) is                      ---*//*--- Copyright (C) OpenWorks LLP.  All rights reserved.      ---*//*---                                                         ---*//*---------------------------------------------------------------*//*   This file is part of LibVEX, a library for dynamic binary   instrumentation and translation.   Copyright (C) 2004-2005 OpenWorks LLP.  All rights reserved.   This library is made available under a dual licensing scheme.   If you link LibVEX against other code all of which is itself   licensed under the GNU General Public License, version 2 dated June   1991 ("GPL v2"), then you may use LibVEX under the terms of the GPL   v2, as appearing in the file LICENSE.GPL.  If the file LICENSE.GPL   is missing, you can obtain a copy of the GPL v2 from the Free   Software Foundation Inc., 51 Franklin St, Fifth Floor, Boston, MA   02110-1301, USA.   For any other uses of LibVEX, you must first obtain a commercial   license from OpenWorks LLP.  Please contact info@open-works.co.uk   for information about commercial licensing.   This software is provided by OpenWorks LLP "as is" and any express   or implied warranties, including, but not limited to, the implied   warranties of merchantability and fitness for a particular purpose   are disclaimed.  In no event shall OpenWorks LLP be liable for any   direct, indirect, incidental, special, exemplary, or consequential   damages (including, but not limited to, procurement of substitute   goods or services; loss of use, data, or profits; or business   interruption) however caused and on any theory of liability,   whether in contract, strict liability, or tort (including   negligence or otherwise) arising in any way out of the use of this   software, even if advised of the possibility of such damage.   Neither the names of the U.S. Department of Energy nor the   University of California nor the names of its contributors may be   used to endorse or promote products derived from this software   without prior written permission.*//* Only to be used within the guest-ppc32 directory. */#ifndef __LIBVEX_GUEST_PPC32_DEFS_H#define __LIBVEX_GUEST_PPC32_DEFS_H/*---------------------------------------------------------*//*--- ppc32 to IR conversion                            ---*//*---------------------------------------------------------*//* Convert one ppc32 insn to IR.  See the type DisOneInstrFn in   bb_to_IR.h. */externDisResult disInstr_PPC32 ( IRBB*        irbb,                           Bool         put_IP,                           Bool         (*resteerOkFn) ( Addr64 ),                           UChar*       guest_code,                           Long         delta,                           Addr64       guest_IP,                           VexArchInfo* archinfo,                           Bool         host_bigendian );/* Used by the optimiser to specialise calls to helpers. */externIRExpr* guest_ppc32_spechelper ( HChar* function_name,                                 IRExpr** args );/* Describes to the optimser which part of the guest state require   precise memory exceptions.  This is logically part of the guest   state description. */extern Bool guest_ppc32_state_requires_precise_mem_exns ( Int, Int );externVexGuestLayout ppc32Guest_layout;/* FP Rounding mode - different encoding to IR */typedef   enum {      PPC32rm_NEAREST = 0,      PPC32rm_NegINF  = 1,      PPC32rm_PosINF  = 2,      PPC32rm_ZERO    = 3   } PPC32RoundingMode;/* Floating point comparison values - different encoding to IR */typedef   enum {      PPC32cr_LT = 0x8,      PPC32cr_GT = 0x4,      PPC32cr_EQ = 0x2,      PPC32cr_UN = 0x1   }   PPC32CmpF64Result;/*---------------------------------------------------------*//*--- ppc32 guest helpers                                 ---*//*---------------------------------------------------------*//* --- CLEAN HELPERS --- */// Calculate XER flagsextern UInt ppc32g_calculate_xer_ov  ( UInt op,                                 UInt res, UInt argL, UInt argR );extern UInt ppc32g_calculate_xer_ca  ( UInt op,                                 UInt res, UInt argL, UInt argR,                                 UInt old_ca );/*  Enumeration for xer_ca/ov calculation helper functions*/enum {   /* 0  */ PPC32G_FLAG_OP_ADD=0,   // addc[o], addic   /* 1  */ PPC32G_FLAG_OP_ADDE,    // adde[o], addme[o], addze[o]   /* 2  */ PPC32G_FLAG_OP_DIVW,    // divwo   /* 3  */ PPC32G_FLAG_OP_DIVWU,   // divwuo   /* 4  */ PPC32G_FLAG_OP_MULLW,   // mullwo   /* 5  */ PPC32G_FLAG_OP_NEG,     // nego   /* 6  */ PPC32G_FLAG_OP_SUBF,    // subfo   /* 7  */ PPC32G_FLAG_OP_SUBFC,   // subfc[o]   /* 8  */ PPC32G_FLAG_OP_SUBFE,   // subfe[o], subfme[o], subfze[o]   /* 9  */ PPC32G_FLAG_OP_SUBFI,   // subfic   /* 10 */ PPC32G_FLAG_OP_SRAW,    // sraw   /* 11 */ PPC32G_FLAG_OP_SRAWI,   // srawi   PPC32G_FLAG_OP_NUMBER};#endif /* ndef __LIBVEX_GUEST_PPC32_DEFS_H *//*---------------------------------------------------------------*//*--- end                                 guest-ppc32/gdefs.h ---*//*---------------------------------------------------------------*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -