X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=gdb-6.6-buildid-locate-rpm-librpm-workaround.patch;h=337871749705ae3de885562c282ba691b4a828c9;hb=58217991c389293ef6a7aa9b988627c072d5628e;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..3378717 100644 --- a/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch +++ b/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch @@ -1,6 +1,20 @@ ---- ./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 +Index: gdb-7.6.90.20140127/gdb/proc-service.list +=================================================================== +--- gdb-7.6.90.20140127.orig/gdb/proc-service.list 2014-02-06 17:32:42.810640320 +0100 ++++ gdb-7.6.90.20140127/gdb/proc-service.list 2014-02-06 17:33:35.406696964 +0100 +@@ -37,4 +37,7 @@ + ps_pstop; + ps_ptread; + ps_ptwrite; ++ ++ /* gdb-6.6-buildid-locate-rpm.patch */ ++ rpmsqEnable; + }; +Index: gdb-7.6.90.20140127/gdb/build-id.c +=================================================================== +--- gdb-7.6.90.20140127.orig/gdb/build-id.c 2014-02-06 17:30:14.230480264 +0100 ++++ gdb-7.6.90.20140127/gdb/build-id.c 2014-02-06 17:34:28.846754283 +0100 +@@ -677,6 +677,19 @@ build_id_to_filename (const struct elf_b #include #endif @@ -10,6 +24,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,13 +34,3 @@ /* 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 -@@ -37,4 +37,7 @@ - ps_pstop; - ps_ptread; - ps_ptwrite; -+ -+ /* gdb-6.6-buildid-locate-rpm.patch */ -+ rpmsqEnable; - };