xed-inst-printer.h

Go to the documentation of this file.
00001 /*BEGIN_LEGAL 
00002 Copyright (c) 2007, Intel Corp.
00003 All rights reserved.
00004 
00005 Redistribution and use in source and binary forms, with or without
00006 modification, are permitted provided that the following conditions are
00007 met:
00008 
00009     * Redistributions of source code must retain the above copyright
00010       notice, this list of conditions and the following disclaimer.
00011 
00012     * Redistributions in binary form must reproduce the above
00013       copyright notice, this list of conditions and the following
00014       disclaimer in the documentation and/or other materials provided
00015       with the distribution.
00016 
00017     * Neither the name of Intel Corporation nor the names of its
00018       contributors may be used to endorse or promote products derived
00019       from this software without specific prior written permission.
00020 
00021 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00022 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00023 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00024 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00025 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00026 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00027 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00028 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00029 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00030 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00031 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00032 END_LEGAL */
00035 
00036 
00037 #ifndef _XED_INST_PRINTER_H_
00038 # define _XED_INST_PRINTER_H_
00039 #include "xed-types.h"
00040 #include "xed-decoded-inst.h"
00041 #include "xed-syntax-enum.h"
00042 
00044 
00045 
00046 
00047 
00048 
00049 
00050 
00051 
00052 
00053 
00054 XED_DLL_EXPORT xed_bool_t
00055 xed_format_att(xed_decoded_inst_t* xedd,
00056                char* out_buffer,
00057                xed_uint32_t buffer_len,
00058                xed_uint64_t runtime_instruction_address);
00059 
00069 XED_DLL_EXPORT xed_bool_t
00070 xed_format_intel(xed_decoded_inst_t* xedd,
00071                  char* out_buffer,
00072                  xed_uint32_t buffer_len,
00073                  xed_uint64_t runtime_instruction_address);
00074 
00085 XED_DLL_EXPORT xed_bool_t
00086 xed_format_xed(xed_decoded_inst_t* xedd,
00087                char* out_buffer,
00088                xed_uint32_t buffer_len,
00089                xed_uint64_t runtime_instruction_address);
00090 
00091 
00102 XED_DLL_EXPORT xed_bool_t
00103 xed_format(xed_syntax_enum_t syntax,
00104            xed_decoded_inst_t* xedd,
00105            char* out_buffer,
00106            int  buffer_len,
00107            xed_uint64_t runtime_instruction_address);
00108 
00109 
00111 
00112 
00113 
00115 
00116 
00117 
00118 
00119 
00120 
00121 
00122 
00123 
00124 
00125 
00126 XED_DLL_EXPORT xed_bool_t
00127 xed_format_att_context(xed_decoded_inst_t* xedd,
00128                        char* out_buffer,
00129                        xed_uint32_t buffer_len,
00130                        xed_uint64_t runtime_instruction_address,
00131                        void* context);
00132 
00143 XED_DLL_EXPORT xed_bool_t
00144 xed_format_intel_context(xed_decoded_inst_t* xedd,
00145                          char* out_buffer,
00146                          xed_uint32_t buffer_len,
00147                          xed_uint64_t runtime_instruction_address,
00148                          void* context);
00149 
00150 
00162 XED_DLL_EXPORT xed_bool_t
00163 xed_format_context(xed_syntax_enum_t syntax,
00164                    xed_decoded_inst_t* xedd,
00165                    char* out_buffer,
00166                    int  buffer_len,
00167                    xed_uint64_t runtime_instruction_address,
00168                    void* context);
00170 #endif
00171 
00172 //Local Variables:
00173 //pref: "../../xed-inst-printer.c"
00174 //End:

Generated on Thu May 15 03:15:09 2008 for XED2 by  doxygen 1.4.6