[anjuta] gdb: bgo #783380 Unable to debug executable compiled with -pie option



commit a10b1b33ee89de8c86dc56f5b7a88c452ea246ed
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sat Jun 3 13:52:24 2017 +0200

    gdb: bgo #783380 Unable to debug executable compiled with -pie option

 plugins/gdb/anjuta-gdb.plugin.in |    2 +-
 plugins/gdb/plugin.c             |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/gdb/anjuta-gdb.plugin.in b/plugins/gdb/anjuta-gdb.plugin.in
index fb90b69..782c202 100644
--- a/plugins/gdb/anjuta-gdb.plugin.in
+++ b/plugins/gdb/anjuta-gdb.plugin.in
@@ -7,4 +7,4 @@ UserActivatable=yes
 Interfaces=IAnjutaDebugger
 
 [File Loader]
-SupportedMimeTypes=application/x-executable,application/octet-stream,application/x-core,application/x-shellscript
+SupportedMimeTypes=application/x-executable,application/octet-stream,application/x-core,application/x-shellscript,application/x-sharedlib
diff --git a/plugins/gdb/plugin.c b/plugins/gdb/plugin.c
index 526ec40..396000c 100644
--- a/plugins/gdb/plugin.c
+++ b/plugins/gdb/plugin.c
@@ -429,6 +429,7 @@ idebugger_load (IAnjutaDebugger *plugin, const gchar *file, const gchar* mime_ty
                /* Hope that the target is supported */
        }
        else if ((strcmp (mime_type, "application/x-executable") == 0) ||
+               (strcmp (mime_type, "application/x-sharedlib") == 0) ||
                (strcmp (mime_type, "application/octet-stream") == 0))
        {
                /* Supported target */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]