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

861f93
Index: gdb-7.4.50.20120602/gdb/elfread.c
861f93
===================================================================
861f93
--- gdb-7.4.50.20120602.orig/gdb/elfread.c	2012-06-02 21:35:09.669510757 +0200
861f93
+++ gdb-7.4.50.20120602/gdb/elfread.c	2012-06-02 21:35:31.106502660 +0200
861f93
@@ -1658,6 +1658,19 @@ build_id_to_filename (struct build_id *b
861f93
 #include <dlfcn.h>
861f93
 #endif
861f93
 
861f93
+/* Workarodun https://bugzilla.redhat.com/show_bug.cgi?id=643031
861f93
+   librpm must not exit() an application on SIGINT
861f93
+
861f93
+   Enable or disable a signal handler.  SIGNUM: signal to enable (or disable
861f93
+   if negative).  HANDLER: sa_sigaction handler (or NULL to use
861f93
+   rpmsqHandler()).  Returns: no. of refs, -1 on error.  */
861f93
+extern int rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler);
861f93
+int
861f93
+rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler)
861f93
+{
861f93
+  return 0;
861f93
+}
861f93
+
861f93
 /* This MISSING_RPM_HASH tracker is used to collect all the missing rpm files
861f93
    and avoid their duplicities during a single inferior run.  */
861f93
 
861f93
Index: gdb-7.4.50.20120602/gdb/proc-service.list
861f93
===================================================================
861f93
--- gdb-7.4.50.20120602.orig/gdb/proc-service.list	2012-06-02 21:35:09.669510757 +0200
861f93
+++ gdb-7.4.50.20120602/gdb/proc-service.list	2012-06-02 21:35:14.296508989 +0200
861f93
@@ -37,4 +37,7 @@
861f93
   ps_pstop;
861f93
   ps_ptread;
861f93
   ps_ptwrite;
861f93
+
861f93
+  /* gdb-6.6-buildid-locate-rpm.patch */
861f93
+  rpmsqEnable;
861f93
 };