summaryrefslogtreecommitdiff
path: root/src/analysis/binary.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/binary.c')
-rw-r--r--src/analysis/binary.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index fd0dd3b..5b84f58 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -44,7 +44,6 @@
#include "../common/cpp.h"
#include "../common/xdg.h"
#include "../core/collections.h"
-#include "../core/formats.h"
#include "../core/global.h"
#include "../core/logs.h"
#include "../core/params.h"
@@ -1236,65 +1235,6 @@ bool _g_loaded_binary_remove_from_collection(GLoadedBinary *binary, DBFeatures f
* *
******************************************************************************/
-bool g_loaded_binary_attach_debug_info(GLoadedBinary *binary, GBinContent *content)
-{
- bool result; /* Bilan à retourner pour info */
- FormatMatchStatus status; /* Statut d'une reconnaissance */
- char *target; /* Sous-traitance requise */
- const char *desc; /* Description humaine associée*/
- GDbgFormat *debug; /* Format de débogage trouvé */
-
- status = find_matching_format(content, binary->format, &target);
-
- if (status == FMS_MATCHED)
- {
- result = false;
-
- desc = get_binary_format_name(target);
-
- if (desc == NULL)
- log_simple_message(LMT_INFO, _("Unknown binary debug format"));
-
- else
- {
- log_variadic_message(LMT_INFO, _("Detected debug format: %s"), desc);
-
- debug = G_DBG_FORMAT(load_new_named_format(target, content, binary->format));
-
- if (debug == NULL)
- log_simple_message(LMT_ERROR, _("Error while loading the debug information for binary"));
-
- else
- {
- result = true;
- g_exe_format_add_debug_info(binary->format, debug);
- }
-
- }
-
- free(target);
-
- }
- else
- result = true;
-
- return result;
-
-}
-
-
-/******************************************************************************
-* *
-* Paramètres : binary = élément binaire à consulter. *
-* *
-* Description : Fournit le format de fichier reconnu dans le contenu binaire.*
-* *
-* Retour : Instance du format reconnu. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
GExeFormat *g_loaded_binary_get_format(const GLoadedBinary *binary)
{
GExeFormat *result; /* Instance à retourner */