summaryrefslogtreecommitdiff
path: root/plugins/dwarf
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dwarf')
-rw-r--r--plugins/dwarf/abbrev.c2
-rw-r--r--plugins/dwarf/format.c32
-rw-r--r--plugins/dwarf/info.c4
3 files changed, 19 insertions, 19 deletions
diff --git a/plugins/dwarf/abbrev.c b/plugins/dwarf/abbrev.c
index 0deb12f..0c528b0 100644
--- a/plugins/dwarf/abbrev.c
+++ b/plugins/dwarf/abbrev.c
@@ -427,7 +427,7 @@ dw_abbrev_brotherhood *load_all_dwarf_abbreviations(GDwarfFormat *format, const
{
/* Définition d'un zone de travail */
- content = G_BIN_FORMAT(format)->content;
+ content = G_KNOWN_FORMAT(format)->content;
restricted = g_restricted_content_new(content, &range);
copy_vmpa(&pos, get_mrange_addr(&range));
diff --git a/plugins/dwarf/format.c b/plugins/dwarf/format.c
index cedac49..867ccd3 100644
--- a/plugins/dwarf/format.c
+++ b/plugins/dwarf/format.c
@@ -49,10 +49,10 @@ static void g_dwarf_format_dispose(GDwarfFormat *);
static void g_dwarf_format_finalize(GDwarfFormat *);
/* Indique la désignation interne du format. */
-static const char *g_dwarf_format_get_name(const GDwarfFormat *);
+static char *g_dwarf_format_get_key(const GDwarfFormat *);
/* Fournit une description humaine du format. */
-static const char *g_dwarf_format_get_description(const GDwarfFormat *);
+static 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 *);
@@ -116,18 +116,18 @@ G_DEFINE_TYPE(GDwarfFormat, g_dwarf_format, G_TYPE_DBG_FORMAT);
static void g_dwarf_format_class_init(GDwarfFormatClass *klass)
{
GObjectClass *object; /* Autre version de la classe */
- GBinFormatClass *fmt; /* Version en format basique */
+ GKnownFormatClass *known; /* Version de format connu */
object = G_OBJECT_CLASS(klass);
object->dispose = (GObjectFinalizeFunc/* ! */)g_dwarf_format_dispose;
object->finalize = (GObjectFinalizeFunc)g_dwarf_format_finalize;
- fmt = G_BIN_FORMAT_CLASS(klass);
+ known = G_KNOWN_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;
+ known->get_key = (known_get_key_fc)g_dwarf_format_get_key;
+ known->get_desc = (known_get_desc_fc)g_dwarf_format_get_description;
+ known->analyze = (known_analyze_fc)g_dwarf_format_analyze;
}
@@ -218,9 +218,9 @@ GDbgFormat *g_dwarf_format_new(GExeFormat *parent)
g_debuggable_format_attach_executable(G_DBG_FORMAT(result), parent);
- content = G_BIN_FORMAT(parent)->content;
+ content = G_KNOWN_FORMAT(parent)->content;
- G_BIN_FORMAT(result)->content = content;
+ G_KNOWN_FORMAT(result)->content = content;
g_object_ref(G_OBJECT(content));
return G_DBG_FORMAT(result);
@@ -234,17 +234,17 @@ GDbgFormat *g_dwarf_format_new(GExeFormat *parent)
* *
* Description : Indique la désignation interne du format. *
* *
-* Retour : Description du format. *
+* Retour : Désignation du format. *
* *
* Remarques : - *
* *
******************************************************************************/
-static const char *g_dwarf_format_get_name(const GDwarfFormat *format)
+static char *g_dwarf_format_get_key(const GDwarfFormat *format)
{
- const char *result; /* Désignation à retourner */
+ char *result; /* Désignation à retourner */
- result = "dwarf";
+ result = strdup("dwarf");
return result;
@@ -263,11 +263,11 @@ static const char *g_dwarf_format_get_name(const GDwarfFormat *format)
* *
******************************************************************************/
-static const char *g_dwarf_format_get_description(const GDwarfFormat *format)
+static char *g_dwarf_format_get_description(const GDwarfFormat *format)
{
- const char *result; /* Désignation à retourner */
+ char *result; /* Désignation à retourner */
- result = "DWARF Debugging Information Format";
+ result = strdup("DWARF Debugging Information Format");
return result;
diff --git a/plugins/dwarf/info.c b/plugins/dwarf/info.c
index ad4b69a..10c6a82 100644
--- a/plugins/dwarf/info.c
+++ b/plugins/dwarf/info.c
@@ -101,7 +101,7 @@ bool load_dwarf_debug_information(GDwarfFormat *format, wgroup_id_t gid, GtkStat
if (result)
{
- content = G_BIN_FORMAT(format)->content;
+ content = G_KNOWN_FORMAT(format)->content;
restricted = g_restricted_content_new(content, &range);
@@ -228,7 +228,7 @@ static bool extract_dies_from_debug_info(const work_data *data, size_t i, GtkSta
* différents cas ici.
*/
- content = G_BIN_FORMAT(format)->content;
+ content = G_KNOWN_FORMAT(format)->content;
exe = G_DBG_FORMAT(format)->executable;