Fix: flt.lttng-utils.debug-info: Error in src line reporting
[babeltrace.git] / plugins / lttng-utils / dwarf.c
index 307bd2aa733396edcaba6d19691e19e6414483d4..534d2883bd9f48d5333512135897d41da2c107c5 100644 (file)
@@ -131,6 +131,12 @@ void bt_dwarf_die_destroy(struct bt_dwarf_die *die)
        g_free(die);
 }
 
+BT_HIDDEN
+int bt_dwarf_die_has_children(struct bt_dwarf_die *die)
+{
+       return dwarf_haschildren(die->dwarf_die);
+}
+
 BT_HIDDEN
 int bt_dwarf_die_child(struct bt_dwarf_die *die)
 {
@@ -242,7 +248,7 @@ int bt_dwarf_die_get_name(struct bt_dwarf_die *die, char **name)
                goto error;
        }
 
-       *name = strdup(_name);
+       *name = g_strdup(_name);
        if (!*name) {
                goto error;
        }
@@ -297,7 +303,7 @@ int bt_dwarf_die_get_call_file(struct bt_dwarf_die *die, char **filename)
                goto error;
        }
 
-       *filename = strdup(_filename);
+       *filename = g_strdup(_filename);
 
        bt_dwarf_die_destroy(cu_die);
        g_free(file_attr);
This page took 0.025799 seconds and 4 git commands to generate.