From 8743dbd0c93a059b7e66bdf43121eeac397990f5 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 13 Apr 2016 09:20:05 -0700 Subject: [PATCH] elf-symbol-resolver: add GObject Introspection tag When we see addresses in libgobject-introspection, give them the "Introspection" tag to make it clear which library the symbol came from. This is particularly useful since so many functions overlap with g_ prefixes. --- lib/sp-elf-symbol-resolver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sp-elf-symbol-resolver.c b/lib/sp-elf-symbol-resolver.c index 2c7cf239..c034378e 100644 --- a/lib/sp-elf-symbol-resolver.c +++ b/lib/sp-elf-symbol-resolver.c @@ -162,6 +162,9 @@ guess_tag (SpElfSymbolResolver *self, else if (strstr (map->filename, "/libgio-2.0.")) tag = g_quark_from_static_string ("Gio"); + else if (strstr (map->filename, "/libgirepository-1.0.")) + tag = g_quark_from_static_string ("Introspection"); + else if (strstr (map->filename, "/libgtk-3.")) tag = g_quark_from_static_string ("Gtk+");