]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
- updated to 14.1 + rebased Fedora buildid patches set
[packages/gdb.git] / gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
1 From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
2 From: Fedora GDB patches <invalid@email.com>
3 Date: Fri, 27 Oct 2017 21:07:50 +0200
4 Subject: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
5
6 FileName: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
7
8 ;; Workaround librpm BZ 643031 due to its unexpected exit() calls (BZ 642879).
9 ;;=push+jan
10 ---
11  gdb/build-id.c        | 13 +++++++++++++
12  gdb/proc-service.list |  3 +++
13  2 files changed, 16 insertions(+)
14
15 diff --git a/gdb/build-id.c b/gdb/build-id.c
16 index d60cf622dc..409a5b8c54 100644
17 --- a/gdb/build-id.c
18 +++ b/gdb/build-id.c
19 @@ -678,6 +678,19 @@ build_id_to_filename (const struct bfd_build_id *build_id, char **link_return)
20  #include <dlfcn.h>
21  #endif
22  
23 +/* Workarodun https://bugzilla.redhat.com/show_bug.cgi?id=643031
24 +   librpm must not exit() an application on SIGINT
25 +
26 +   Enable or disable a signal handler.  SIGNUM: signal to enable (or disable
27 +   if negative).  HANDLER: sa_sigaction handler (or NULL to use
28 +   rpmsqHandler()).  Returns: no. of refs, -1 on error.  */
29 +extern int rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler);
30 +int
31 +rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler)
32 +{
33 +  return 0;
34 +}
35 +
36  /* This MISSING_RPM_HASH tracker is used to collect all the missing rpm files
37     and avoid their duplicities during a single inferior run.  */
38  
39 diff --git a/gdb/proc-service.list b/gdb/proc-service.list
40 index 53f7ed8b1e..323f5e83c2 100644
41 --- a/gdb/proc-service.list
42 +++ b/gdb/proc-service.list
43 @@ -37,4 +37,7 @@
44    ps_pstop;
45    ps_ptread;
46    ps_ptwrite;
47 +
48 +  /* gdb-6.6-buildid-locate-rpm.patch */
49 +  rpmsqEnable;
50  };
51 -- 
52 2.14.3
53
This page took 0.059147 seconds and 3 git commands to generate.