Blame SOURCES/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch

7a6771
Index: gdb-7.6.90.20140127/gdb/proc-service.list
7a6771
===================================================================
7a6771
--- gdb-7.6.90.20140127.orig/gdb/proc-service.list	2014-02-06 17:32:42.810640320 +0100
7a6771
+++ gdb-7.6.90.20140127/gdb/proc-service.list	2014-02-06 17:33:35.406696964 +0100
7a6771
@@ -37,4 +37,7 @@
7a6771
   ps_pstop;
7a6771
   ps_ptread;
7a6771
   ps_ptwrite;
7a6771
+
7a6771
+  /* gdb-6.6-buildid-locate-rpm.patch */
7a6771
+  rpmsqEnable;
7a6771
 };
7a6771
Index: gdb-7.6.90.20140127/gdb/build-id.c
7a6771
===================================================================
7a6771
--- gdb-7.6.90.20140127.orig/gdb/build-id.c	2014-02-06 17:30:14.230480264 +0100
7a6771
+++ gdb-7.6.90.20140127/gdb/build-id.c	2014-02-06 17:34:28.846754283 +0100
7a6771
@@ -677,6 +677,19 @@ build_id_to_filename (const struct elf_b
7a6771
 #include <dlfcn.h>
7a6771
 #endif
7a6771
 
7a6771
+/* Workarodun https://bugzilla.redhat.com/show_bug.cgi?id=643031
7a6771
+   librpm must not exit() an application on SIGINT
7a6771
+
7a6771
+   Enable or disable a signal handler.  SIGNUM: signal to enable (or disable
7a6771
+   if negative).  HANDLER: sa_sigaction handler (or NULL to use
7a6771
+   rpmsqHandler()).  Returns: no. of refs, -1 on error.  */
7a6771
+extern int rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler);
7a6771
+int
7a6771
+rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler)
7a6771
+{
7a6771
+  return 0;
7a6771
+}
7a6771
+
7a6771
 /* This MISSING_RPM_HASH tracker is used to collect all the missing rpm files
7a6771
    and avoid their duplicities during a single inferior run.  */
7a6771