Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

machostruc.cc

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      machostruc.cc
00004  *
00005  *      Copyright (C) 1999-2002 Stefan Weyergraf (stefan@weyergraf.de)
00006  *
00007  *      This program is free software; you can redistribute it and/or modify
00008  *      it under the terms of the GNU General Public License version 2 as
00009  *      published by the Free Software Foundation.
00010  *
00011  *      This program is distributed in the hope that it will be useful,
00012  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *      GNU General Public License for more details.
00015  *
00016  *      You should have received a copy of the GNU General Public License
00017  *      along with this program; if not, write to the Free Software
00018  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #include "machostruc.h"
00022 #include "global.h"
00023 #include "htendian.h"
00024 
00025 byte MACHO_HEADER_struct[]= {
00026         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00027         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00028         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00029         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00030         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00031         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00032         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00033         0
00034 };
00035 
00036 byte MACHO_COMMAND_struct[]= {
00037         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00038         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00039         0
00040 };
00041 
00042 byte MACHO_SEGMENT_COMMAND_struct[]= {
00043         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00044         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00045         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00046         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00047         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00048         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00049         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00050         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00051         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00052         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00053         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00054         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00055         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00056         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00057         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00058         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00059         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00060         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00061         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00062         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00063         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00064         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00065         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00066         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00067         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00068         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00069         0
00070 };
00071 
00072 byte MACHO_SECTION_struct[]= {
00073 // sectname
00074         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00075         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00076         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00077         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00078         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00079         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00080         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00081         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00082         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00083         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00084         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00085         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00086         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00087         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00088         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00089         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00090 // segname
00091         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00092         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00093         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00094         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00095         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00096         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00097         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00098         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00099         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00100         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00101         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00102         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00103         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00104         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00105         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00106         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00107 //
00108         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00109         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00110         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00111         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00112         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00113         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00114         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00115         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00116         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00117         0
00118 };
00119 
00120 byte MACHO_THREAD_COMMAND_struct[] = {
00121         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00122         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00123         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00124         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00125         // .state not included !
00126         0
00127 };
00128 
00129 byte MACHO_PPC_THREAD_STATE_struct[] = {
00130         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00131         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00132         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00133         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00134         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00135         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00136         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00137         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00138         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00139         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00140         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00141         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00142         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00143         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00144         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00145         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00146         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00147         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00148         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00149         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00150         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00151         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00152         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00153         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00154         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00155         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00156         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00157         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00158         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00159         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00160         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00161         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00162         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00163         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00164         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00165         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00166         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00167         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00168         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00169         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00170         0
00171 };
00172 
00173 byte MACHO_I386_THREAD_STATE_struct[] = {
00174         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00175         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00176         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00177         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00178         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00179         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00180         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00181         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00182         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00183         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00184         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00185         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00186         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00187         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00188         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00189         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00190         0
00191 };
00192 
00193 byte MACHO_SYMTAB_COMMAND_struct[] = {
00194         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00195         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00196         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00197         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00198         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00199         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00200         0
00201 };
00202 
00203 byte MACHO_SYMTAB_NLIST_struct[] = {
00204         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00205         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00206         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00207         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00208         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00209         0
00210 };

Generated on Fri May 7 21:15:41 2004 by doxygen 1.3.5