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: [rhel] Adjust the previous patch for compilation on older GCCs.
Date: Sat, 27 Jun 2026 23:56:47 GMT	[thread overview]
Message-ID: <178260460712.1.11980615324726923478.rpms-gdb-5175ae097f58@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 5175ae097f5834989d79f6fa52d49bee21f56e27
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2014-08-14T07:55:59+02:00
Stats  : +7/-3 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/5175ae097f5834989d79f6fa52d49bee21f56e27?branch=gdb-17.2-rebase-f44

Log:
[rhel] Adjust the previous patch for compilation on older GCCs.

---
diff --git a/gdb-python-gil.patch b/gdb-python-gil.patch
index d839b6b..b2d9de9 100644
--- a/gdb-python-gil.patch
+++ b/gdb-python-gil.patch
@@ -31,7 +31,7 @@ diff -dup -ruNp gdb-7.8-orig/gdb/python/python-internal.h gdb-7.8/gdb/python/pyt
 diff -dup -ruNp gdb-7.8-orig/gdb/python/python.c gdb-7.8/gdb/python/python.c
 --- gdb-7.8-orig/gdb/python/python.c	2014-08-13 22:04:14.164441273 +0200
 +++ gdb-7.8/gdb/python/python.c	2014-08-13 22:07:20.895643867 +0200
-@@ -620,14 +620,18 @@ execute_gdb_command (PyObject *self, PyO
+@@ -620,14 +620,19 @@ execute_gdb_command (PyObject *self, PyO
  {
    const char *arg;
    PyObject *from_tty_obj = NULL, *to_string_obj = NULL;
@@ -43,7 +43,8 @@ diff -dup -ruNp gdb-7.8-orig/gdb/python/python.c gdb-7.8/gdb/python/python.c
 +  static char *keywords[] = {"command", "from_tty", "to_string",
 +			     "release_gil", NULL };
    char *result = NULL;
-+  PyThreadState *state;
++  /* Initialize it just to avoid a GCC false warning.  */
++  PyThreadState *state = NULL;
  
 -  if (! PyArg_ParseTupleAndKeywords (args, kw, "s|O!O!", keywords, &arg,
 +  if (! PyArg_ParseTupleAndKeywords (args, kw, "s|O!O!O!", keywords, &arg,

diff --git a/gdb.spec b/gdb.spec
index a073c81..1870402 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -26,7 +26,7 @@ Version: 7.8
 
 # 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: 17%{?dist}
+Release: 18%{?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
@@ -1310,6 +1310,9 @@ then
 fi
 
 %changelog
+* Thu Aug 14 2014 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.8-18.fc21
+- [rhel] Adjust the previous patch for compilation on older GCCs.
+
 * Wed Aug 13 2014 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.8-17.fc21
 - Fix Python GIL with gdb.execute("continue") (Phil Muldoon, BZ 1116957).
 

                 reply	other threads:[~2026-06-27 23:56 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=178260460712.1.11980615324726923478.rpms-gdb-5175ae097f58@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