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

elf_analy.h

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      elf_analy.h
00004  *
00005  *      Copyright (C) 1999-2002 Sebastian Biallas (sb@web-productions.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 #ifndef elf_analy_h
00022 #define elf_analy_h
00023 
00024 #include "analy.h"
00025 #include "htelf.h"
00026 
00027 //test
00028 #include "elfstruc.h"
00029 
00030 class ElfAnalyser: public Analyser {
00031 public:
00032         ht_elf_shared_data              *elf_shared;
00033         ht_streamfile                   *file;
00034         Area                                    *validarea;
00035 
00036                 void            init(ht_elf_shared_data *elf_shared, ht_streamfile *File);
00037                 int             load(ht_object_stream *f);
00038         virtual void            done();
00039         virtual OBJECT_ID       object_id() const;
00040 
00041         virtual void            beginAnalysis();
00042         virtual uint            bufPtr(Address *Addr, byte *buf, int size);
00043                 bool            convertAddressToELFAddress(Address *addr, ELFAddress *r);
00044         virtual Address         *createAddress();
00045                 Address         *createAddress32(dword addr);
00046                 Address         *createAddress64(qword addr);
00047         virtual Assembler       *createAssembler();
00048         virtual const char      *getName();
00049         virtual const char      *getType();
00050         virtual void            initCodeAnalyser();
00051                 void            initInsertSymbols(int shidx);
00052                 void            initInsertFakeSymbols();
00053         virtual void            initUnasm();
00054         virtual void            log(const char *msg);
00055         virtual Address         *nextValid(Address *Addr);
00056         virtual void            store(ht_object_stream *f);
00057         virtual int             queryConfig(int mode);
00058         virtual bool            validAddress(Address *Addr, tsectype action);
00059         virtual Address         *fileofsToAddress(FILEOFS fileofs);
00060         virtual FILEOFS         addressToFileofs(Address *Addr);
00061         virtual char            *getSegmentNameByAddress(Address *Addr);
00062 };
00063 
00064 #endif

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