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

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