public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: [dts+el7] [x86*] Bundle libipt - fix its initialization (RH BZ 1256513).
Date: Sat, 27 Jun 2026 23:57:45 GMT	[thread overview]
Message-ID: <178260466554.1.11186706828424173781.rpms-gdb-92d45fce5d8b@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 92d45fce5d8ba3e0ff5089d410c5810278c24dc2
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2016-08-23T09:22:28+02:00
Stats  : +30/-2 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/92d45fce5d8ba3e0ff5089d410c5810278c24dc2?branch=gdb-17.2-rebase-f44

Log:
[dts+el7] [x86*] Bundle libipt - fix its initialization (RH BZ 1256513).

---
diff --git a/gdb-linux_perf-bundle.patch b/gdb-linux_perf-bundle.patch
index b8bc3e8..aeb4f10 100644
--- a/gdb-linux_perf-bundle.patch
+++ b/gdb-linux_perf-bundle.patch
@@ -2,7 +2,7 @@ Index: gdb-7.11.1/gdb/nat/linux-btrace.h
 ===================================================================
 --- gdb-7.11.1.orig/gdb/nat/linux-btrace.h	2016-02-10 04:19:39.000000000 +0100
 +++ gdb-7.11.1/gdb/nat/linux-btrace.h	2016-08-19 20:49:18.735477251 +0200
-@@ -28,6 +28,176 @@
+@@ -28,6 +28,177 @@
  #  include <linux/perf_event.h>
  #endif
  
@@ -11,6 +11,7 @@ Index: gdb-7.11.1/gdb/nat/linux-btrace.h
 +# error "PERF_ATTR_SIZE_VER5_BUNDLE && !HAVE_LINUX_PERF_EVENT_H"
 +#endif
 +#ifndef PERF_ATTR_SIZE_VER5
++#define PERF_ATTR_SIZE_VER5
 +#define perf_event_mmap_page perf_event_mmap_page_bundle
 +// kernel-headers-3.10.0-493.el7.x86_64/usr/include/linux/perf_event.h
 +/*
@@ -205,3 +206,16 @@ Index: gdb-7.11.1/gdb/configure.ac
  #endif
    ]]), [perf_event=yes], [perf_event=no])
    if test "$perf_event" != yes; then
+--- gdb-7.11.1/gdb/gdb.c-orig	2016-02-10 04:19:39.000000000 +0100
++++ gdb-7.11.1/gdb/gdb.c	2016-08-23 09:15:13.169650953 +0200
+@@ -25,6 +25,10 @@ main (int argc, char **argv)
+ {
+   struct captured_main_args args;
+ 
++  // RHEL DTS bundle:
++  extern void __libipt_init(void);
++  __libipt_init();
++
+   memset (&args, 0, sizeof args);
+   args.argc = argc;
+   args.argv = argv;

diff --git a/gdb.spec b/gdb.spec
index 8b3e806..90b906c 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -27,7 +27,7 @@ Version: 7.11.1
 
 # The release always contains a leading reserved number, start it at 1.
 # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 80%{?dist}
+Release: 81%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL
 Group: Development/Debuggers
@@ -1457,6 +1457,9 @@ then
 fi
 
 %changelog
+* Tue Aug 23 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.11.1-81.fc24
+- [dts+el7] [x86*] Bundle libipt - fix its initialization (RH BZ 1256513).
+
 * Mon Aug 22 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.11.1-80.fc24
 - [dts] Upgrade libstdc++-v3-python to 6.1.1-20160817.
 

diff --git a/v1.5-libipt-static.patch b/v1.5-libipt-static.patch
index 93bc0f8..477b6c4 100644
--- a/v1.5-libipt-static.patch
+++ b/v1.5-libipt-static.patch
@@ -9,3 +9,14 @@
    ${LIBIPT_FILES}
  )
  
+--- processor-trace-1.5/libipt/src/posix/init.c-orig	2016-04-07 08:52:14.000000000 +0200
++++ processor-trace-1.5/libipt/src/posix/init.c	2016-08-23 09:04:11.540176668 +0200
+@@ -29,7 +29,7 @@
+ #include "pt_ild.h"
+ 
+ 
+-static void __attribute__((constructor)) init(void)
++void __libipt_init(void)
+ {
+ 	/* Initialize the Intel(R) Processor Trace instruction decoder. */
+ 	pt_ild_init();

                 reply	other threads:[~2026-06-27 23:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178260466554.1.11186706828424173781.rpms-gdb-92d45fce5d8b@fedoraproject.org \
    --to=jan.kratochvil@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox