summaryrefslogtreecommitdiff
path: root/plugins/dwarf/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dwarf/format.c')
-rw-r--r--plugins/dwarf/format.c54
1 files changed, 54 insertions, 0 deletions
diff --git a/plugins/dwarf/format.c b/plugins/dwarf/format.c
index 3883606..96ce831 100644
--- a/plugins/dwarf/format.c
+++ b/plugins/dwarf/format.c
@@ -48,6 +48,12 @@ static void g_dwarf_format_dispose(GDwarfFormat *);
/* Procède à la libération totale de la mémoire. */
static void g_dwarf_format_finalize(GDwarfFormat *);
+/* Indique la désignation interne du format. */
+static const char *g_dwarf_format_get_name(const GDwarfFormat *);
+
+/* Fournit une description humaine du format. */
+static const char *g_dwarf_format_get_description(const GDwarfFormat *);
+
/* Assure l'interprétation d'un format en différé. */
static bool g_dwarf_format_analyze(GDwarfFormat *, wgroup_id_t, GtkStatusStack *);
@@ -119,6 +125,8 @@ static void g_dwarf_format_class_init(GDwarfFormatClass *klass)
fmt = G_BIN_FORMAT_CLASS(klass);
+ fmt->get_name = (format_get_name_fc)g_dwarf_format_get_name;
+ fmt->get_desc = (format_get_desc_fc)g_dwarf_format_get_description;
fmt->analyze = (format_analyze_fc)g_dwarf_format_analyze;
}
@@ -223,6 +231,52 @@ GDbgFormat *g_dwarf_format_new(GExeFormat *parent)
/******************************************************************************
* *
+* Paramètres : format = description de l'exécutable à consulter. *
+* *
+* Description : Indique la désignation interne du format. *
+* *
+* Retour : Description du format. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+static const char *g_dwarf_format_get_name(const GDwarfFormat *format)
+{
+ const char *result; /* Désignation à retourner */
+
+ result = "dwarf";
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : format = description de l'exécutable à consulter. *
+* *
+* Description : Fournit une description humaine du format. *
+* *
+* Retour : Description du format. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+static const char *g_dwarf_format_get_description(const GDwarfFormat *format)
+{
+ const char *result; /* Désignation à retourner */
+
+ result = "DWARF Debugging Information Format";
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : format = format chargé dont l'analyse est lancée. *
* gid = groupe de travail dédié. *
* status = barre de statut à tenir informée. *