public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Backport upstream commit 54195469c18, fixing a build problem
Date: Sun, 28 Jun 2026 00:01:28 GMT	[thread overview]
Message-ID: <178260488849.1.4744227282698216058.rpms-gdb-46b67ac265b7@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 46b67ac265b7e278fc4e800e8004b2a24531fcef
Author : Kevin Buettner <kevinb@redhat.com>
Date   : 2024-01-17T13:10:14-07:00
Stats  : +47/-0 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/46b67ac265b7e278fc4e800e8004b2a24531fcef?branch=gdb-17.2-rebase-f44

Log:
Backport upstream commit 54195469c18, fixing a build problem

---
diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include
index ee95bce..f7ee2f4 100644
--- a/_gdb.spec.Patch.include
+++ b/_gdb.spec.Patch.include
@@ -196,3 +196,6 @@ Patch045: gdb-rhbz2250652-avoid-PyOS_ReadlineTState.patch
 # Backport potential fix for RH BZ 2257562.
 Patch046: gdb-rhbz2257562-cp-namespace-null-ptr-check.patch
 
+
+Patch047: gdb-ftbs-swapped-calloc-args.patch
+

diff --git a/_gdb.spec.patch.include b/_gdb.spec.patch.include
index 80df31a..8258dc9 100644
--- a/_gdb.spec.patch.include
+++ b/_gdb.spec.patch.include
@@ -44,3 +44,4 @@
 %patch -p1 -P044
 %patch -p1 -P045
 %patch -p1 -P046
+%patch -p1 -P047

diff --git a/_patch_order b/_patch_order
index 327a629..ea078f3 100644
--- a/_patch_order
+++ b/_patch_order
@@ -44,3 +44,4 @@ gdb-rhbz-2232086-generate-dwarf-5-index-consistently.patch
 gdb-rhbz2250652-gdbpy_gil.patch
 gdb-rhbz2250652-avoid-PyOS_ReadlineTState.patch
 gdb-rhbz2257562-cp-namespace-null-ptr-check.patch
+gdb-ftbs-swapped-calloc-args.patch

diff --git a/gdb-ftbs-swapped-calloc-args.patch b/gdb-ftbs-swapped-calloc-args.patch
new file mode 100644
index 0000000..3486c8e
--- /dev/null
+++ b/gdb-ftbs-swapped-calloc-args.patch
@@ -0,0 +1,42 @@
+From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
+From: Kevin Buettner <kevinb@redhat.com>
+Date: Wed, 17 Jan 2024 12:53:53 -0700
+Subject: gdb-ftbs-swapped-calloc-args.patch
+
+Backport upstream commit 54195469c18ec9873cc5ba6907f768509473fa9b
+which fixes a build problem in which arguments to calloc were swapped.
+
+[opcodes] ARC + PPC: Fix -Walloc-size warnings
+
+Recently, -Walloc-size warnings started to kick in. Fix these two
+calloc() calls to match the intended usage pattern.
+
+opcodes/ChangeLog:
+
+	* arc-dis.c (init_arc_disasm_info): Fix calloc() call.
+	* ppc-dis.c (powerpc_init_dialect): Ditto.
+
+diff --git a/opcodes/arc-dis.c b/opcodes/arc-dis.c
+--- a/opcodes/arc-dis.c
++++ b/opcodes/arc-dis.c
+@@ -147,7 +147,7 @@ static bool
+ init_arc_disasm_info (struct disassemble_info *info)
+ {
+   struct arc_disassemble_info *arc_infop
+-    = calloc (sizeof (*arc_infop), 1);
++    = calloc (1, sizeof (*arc_infop));
+ 
+   if (arc_infop == NULL)
+     return false;
+diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c
+--- a/opcodes/ppc-dis.c
++++ b/opcodes/ppc-dis.c
+@@ -348,7 +348,7 @@ powerpc_init_dialect (struct disassemble_info *info)
+ {
+   ppc_cpu_t dialect = 0;
+   ppc_cpu_t sticky = 0;
+-  struct dis_private *priv = calloc (sizeof (*priv), 1);
++  struct dis_private *priv = calloc (1, sizeof (*priv));
+ 
+   if (priv == NULL)
+     return;

                 reply	other threads:[~2026-06-28  0:01 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=178260488849.1.4744227282698216058.rpms-gdb-46b67ac265b7@fedoraproject.org \
    --to=kevinb@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