2017-12-08 04:31:26 +00:00
|
|
|
From f193c41757aab810d11339c1a001b6ea33b9575f Mon Sep 17 00:00:00 2001
|
2017-12-04 19:24:00 +00:00
|
|
|
From: Fedora GDB patches <invalid@email.com>
|
|
|
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
|
|
Subject: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
|
|
|
|
|
|
|
|
FileName: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
|
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
;; Workaround librpm BZ 643031 due to its unexpected exit() calls (BZ 642879).
|
|
|
|
;;=push+jan
|
|
|
|
---
|
|
|
|
gdb/build-id.c | 13 +++++++++++++
|
|
|
|
gdb/proc-service.list | 3 +++
|
|
|
|
2 files changed, 16 insertions(+)
|
2017-12-04 19:24:00 +00:00
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
diff --git a/gdb/build-id.c b/gdb/build-id.c
|
|
|
|
index d420e3f9e7..a1fd3bfaab 100644
|
|
|
|
--- a/gdb/build-id.c
|
|
|
|
+++ b/gdb/build-id.c
|
|
|
|
@@ -678,6 +678,19 @@ build_id_to_filename (const struct bfd_build_id *build_id, char **link_return)
|
2010-11-16 04:54:18 +00:00
|
|
|
#include <dlfcn.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+/* Workarodun https://bugzilla.redhat.com/show_bug.cgi?id=643031
|
|
|
|
+ librpm must not exit() an application on SIGINT
|
|
|
|
+
|
|
|
|
+ Enable or disable a signal handler. SIGNUM: signal to enable (or disable
|
|
|
|
+ if negative). HANDLER: sa_sigaction handler (or NULL to use
|
|
|
|
+ rpmsqHandler()). Returns: no. of refs, -1 on error. */
|
2012-06-03 17:40:44 +00:00
|
|
|
+extern int rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler);
|
2010-11-16 04:54:18 +00:00
|
|
|
+int
|
|
|
|
+rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
/* This MISSING_RPM_HASH tracker is used to collect all the missing rpm files
|
|
|
|
and avoid their duplicities during a single inferior run. */
|
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
diff --git a/gdb/proc-service.list b/gdb/proc-service.list
|
|
|
|
index 79c2e5b7fc..ac8364928c 100644
|
|
|
|
--- a/gdb/proc-service.list
|
|
|
|
+++ b/gdb/proc-service.list
|
|
|
|
@@ -37,4 +37,7 @@
|
|
|
|
ps_pstop;
|
|
|
|
ps_ptread;
|
|
|
|
ps_ptwrite;
|
|
|
|
+
|
|
|
|
+ /* gdb-6.6-buildid-locate-rpm.patch */
|
|
|
|
+ rpmsqEnable;
|
|
|
|
};
|
|
|
|
--
|
|
|
|
2.14.3
|
|
|
|
|