]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
- fix build on x32
[packages/gdb.git] / gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
CommitLineData
321e94d6 1Index: gdb-7.6.90.20140127/gdb/proc-service.list
a7de96f0 2===================================================================
321e94d6
BS
3--- gdb-7.6.90.20140127.orig/gdb/proc-service.list 2014-02-06 17:32:42.810640320 +0100
4+++ gdb-7.6.90.20140127/gdb/proc-service.list 2014-02-06 17:33:35.406696964 +0100
5@@ -37,4 +37,7 @@
6 ps_pstop;
7 ps_ptread;
8 ps_ptwrite;
9+
10+ /* gdb-6.6-buildid-locate-rpm.patch */
11+ rpmsqEnable;
12 };
13Index: gdb-7.6.90.20140127/gdb/build-id.c
14===================================================================
15--- gdb-7.6.90.20140127.orig/gdb/build-id.c 2014-02-06 17:30:14.230480264 +0100
16+++ gdb-7.6.90.20140127/gdb/build-id.c 2014-02-06 17:34:28.846754283 +0100
17@@ -677,6 +677,19 @@ build_id_to_filename (const struct elf_b
6ed6bacf
AM
18 #include <dlfcn.h>
19 #endif
20
21+/* Workarodun https://bugzilla.redhat.com/show_bug.cgi?id=643031
22+ librpm must not exit() an application on SIGINT
23+
24+ Enable or disable a signal handler. SIGNUM: signal to enable (or disable
25+ if negative). HANDLER: sa_sigaction handler (or NULL to use
26+ rpmsqHandler()). Returns: no. of refs, -1 on error. */
a7de96f0 27+extern int rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler);
6ed6bacf
AM
28+int
29+rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler)
30+{
31+ return 0;
32+}
33+
34 /* This MISSING_RPM_HASH tracker is used to collect all the missing rpm files
35 and avoid their duplicities during a single inferior run. */
36
This page took 0.039989 seconds and 4 git commands to generate.