flt.lttng-utils.debug-info: use glib memory and string functions
[deliverable/babeltrace.git] / plugins / lttng-utils / bin-info.h
index 05d0d797d0372697a45eb23f33394507df965ed0..2bcd9fae42cd55b1896fe41f765300abdb667da6 100644 (file)
@@ -46,24 +46,27 @@ struct bin_info {
        /* Size of exec address space. */
        uint64_t memsz;
        /* Paths to ELF and DWARF files. */
-       char *elf_path;
-       char *dwarf_path;
+       gchar *elf_path;
+       gchar *dwarf_path;
        /* libelf and libdw objects representing the files. */
        Elf *elf_file;
        Dwarf *dwarf_info;
        /* Optional build ID info. */
        uint8_t *build_id;
        size_t build_id_len;
+
        /* Optional debug link info. */
-       char *dbg_link_filename;
+       gchar *dbg_link_filename;
        uint32_t dbg_link_crc;
        /* FDs to ELF and DWARF files. */
        int elf_fd;
        int dwarf_fd;
        /* Configuration. */
-       char *debug_info_dir;
+       gchar *debug_info_dir;
        /* Denotes whether the executable is position independent code. */
        bool is_pic:1;
+       /* denotes whether the build id in the trace matches to one on disk. */
+       bool file_build_id_matches:1;
        /*
         * Denotes whether the executable only has ELF symbols and no
         * DWARF info.
@@ -73,7 +76,7 @@ struct bin_info {
 
 struct source_location {
        uint64_t line_no;
-       char *filename;
+       gchar *filename;
 };
 
 /**
This page took 0.024412 seconds and 5 git commands to generate.