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

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