X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gdb-6.6-buildid-locate-rpm-librpm-workaround.patch;h=f8dcbeb29df63c4e0f80a30ff87097e9b60082ed;hb=77d1099;hp=5807ace5ca1dd00111cf880bf929fb3ae450e6ff;hpb=6ed6bacf4ba8864535cd04c8acc393016fcf805d;p=packages%2Fgdb.git diff --git a/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch b/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch index 5807ace..f8dcbeb 100644 --- a/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch +++ b/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch @@ -1,6 +1,15 @@ ---- ./gdb/elfread.c 2010-10-14 17:07:45.000000000 +0200 -+++ ./gdb/elfread.c 2010-10-14 17:06:30.000000000 +0200 -@@ -1382,6 +1382,18 @@ build_id_to_filename (struct build_id *b +From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 +From: Fedora GDB patches +Date: Fri, 27 Oct 2017 21:07:50 +0200 +Subject: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch + +;; Workaround librpm BZ 643031 due to its unexpected exit() calls (BZ 642879). +;;=push+jan + +diff --git a/gdb/build-id.c b/gdb/build-id.c +--- a/gdb/build-id.c ++++ b/gdb/build-id.c +@@ -712,6 +712,19 @@ build_id_to_filename (const struct bfd_build_id *build_id, char **link_return) #include #endif @@ -10,6 +19,7 @@ + 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. */ ++extern int rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler); +int +rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler) +{ @@ -19,8 +29,9 @@ /* This MISSING_RPM_HASH tracker is used to collect all the missing rpm files and avoid their duplicities during a single inferior run. */ ---- ./gdb/proc-service.list 2010-05-28 20:50:30.000000000 +0200 -+++ ./gdb/proc-service.list 2010-10-14 17:06:30.000000000 +0200 +diff --git a/gdb/proc-service.list b/gdb/proc-service.list +--- a/gdb/proc-service.list ++++ b/gdb/proc-service.list @@ -37,4 +37,7 @@ ps_pstop; ps_ptread;