diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-07 21:50:38 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-07 21:50:38 (GMT) |
commit | a9328553fc558bca2e75f2c93b35acc5518d9568 (patch) | |
tree | ce15e5259df278d386683dac217ec2b4a86e7c94 /src/format/format-int.h | |
parent | 5f55377ff6c014d513f13b76ec5faf56c31da478 (diff) |
Stored all errors detected when loading and disassembling a binary file.
Diffstat (limited to 'src/format/format-int.h')
-rw-r--r-- | src/format/format-int.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/format/format-int.h b/src/format/format-int.h index d50b053..0ab0e85 100644 --- a/src/format/format-int.h +++ b/src/format/format-int.h @@ -47,6 +47,17 @@ typedef void (* format_decompile_fc) (const GBinFormat *, void/*GCodeBuffer*/ *, #define EXTRA_POINT_BLOCK 100 +/* Description d'une erreur */ +typedef struct _fmt_error +{ + BinaryFormatError type; /* Type d'erreur */ + + vmpa2t addr; /* Localisation du problème */ + char *desc; /* Description du soucis */ + +} fmt_error; + + /* Format binaire générique (instance) */ struct _GBinFormat { @@ -74,6 +85,13 @@ struct _GBinFormat size_t def_source; /* Fichier source principal */ format_decompile_fc decompile; /* Décompilation d'un fichier */ + fmt_error *errors; /* Liste d'erreurs rencontrées */ + size_t error_count; /* Taille de cette liste */ + GMutex error_mutex; /* Verrou pour l'accès */ +#ifndef NDEBUG + gint error_locked; /* Statut d'accès à la liste */ +#endif + }; /* Format binaire générique (classe) */ |