diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-01-09 22:30:16 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-01-09 22:30:16 (GMT) |
commit | cc3e31eecd90766ae4f0bb391428c5c59567ef4c (patch) | |
tree | e442bbaf401855f7bac411ac45e3545aa96ba661 /src/arch/arm/context-int.h | |
parent | 50a4c165df49b04fe55278d5dcfa6b56d3cc1125 (diff) |
Chosen the right encoding to use when disassembling ARM binary.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@452 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/arm/context-int.h')
-rw-r--r-- | src/arch/arm/context-int.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/src/arch/arm/context-int.h b/src/arch/arm/context-int.h new file mode 100644 index 0000000..51ed6d0 --- /dev/null +++ b/src/arch/arm/context-int.h @@ -0,0 +1,74 @@ + +/* Chrysalide - Outil d'analyse de fichiers binaires + * context-int.h - prototypes internes pour le contexte lié à l'exécution d'un processeur + * + * Copyright (C) 2011-2014 Cyrille Bagard + * + * This file is part of Chrysalide. + * + * OpenIDA is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * OpenIDA is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Foobar. If not, see <http://www.gnu.org/licenses/>. + */ + + +#ifndef _ARCH_ARM_CONTEXT_INT_H +#define _ARCH_ARM_CONTEXT_INT_H + + +#include "context.h" + + +#include "../context-int.h" + + + +/* Découpage de la zone de désassemblage */ +typedef struct _disass_arm_area +{ + virt_t start; /* Début de la zone */ + virt_t end; /* Fin de la zone */ + + unsigned int marker; /* Type de décodage associé */ + +} disass_arm_area; + + +/* Définition d'un contexte pour processeur ARM (instance) */ +struct _GArmContext +{ + GProcContext parent; /* A laisser en premier */ + + disass_arm_area *areas; /* Désassemblage découpé */ + size_t acount; /* Nombre de zones définies */ + +}; + + +/* Définition d'un contexte pour processeur ARM (classe) */ +struct _GArmContextClass +{ + GProcContextClass parent; /* A laisser en premier */ + +}; + + + +/* Enregistre l'encodage (générique) utilisé à une adresse. */ +void _g_arm_context_define_encoding(GArmContext *, virt_t, unsigned int); + +/* Indique l'encodage (générique) utilisé à une adresse donnée. */ +unsigned int _g_arm_context_find_encoding(GArmContext *, virt_t); + + + +#endif /* _ARCH_ARM_CONTEXT_INT_H */ |