summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-09-18 20:12:26 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-09-18 20:12:26 (GMT)
commitaa3cb06f056ccf1a0467eaff8aa4b40701902f5e (patch)
treedde8cdc10459f932235ee8709dda3ae6b164c752 /src/analysis
parent175e8193759e01b45b1f6d2d7970e2993ec8c364 (diff)
Removed the old way to load binaries.
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/binary.c60
-rw-r--r--src/analysis/binary.h3
2 files changed, 0 insertions, 63 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 */
diff --git a/src/analysis/binary.h b/src/analysis/binary.h
index 648da10..7c2c760 100644
--- a/src/analysis/binary.h
+++ b/src/analysis/binary.h
@@ -153,9 +153,6 @@ bool _g_loaded_binary_remove_from_collection(GLoadedBinary *, DBFeatures, GDbIte
/* Fournit le format de fichier reconnu dans le contenu binaire. */
-bool g_loaded_binary_attach_debug_info(GLoadedBinary *, GBinContent *);
-
-/* Fournit le format de fichier reconnu dans le contenu binaire. */
GExeFormat *g_loaded_binary_get_format(const GLoadedBinary *);
/* Fournit le processeur de l'architecture liée au binaire. */