public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sergio Durigan Junior <sergiodj@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Temporarily add gdb-temporary-fix-arm-build-error.patch.
Date: Sat, 27 Jun 2026 23:59:37 GMT	[thread overview]
Message-ID: <178260477779.1.4358875685979212774.rpms-gdb-d1a098601d27@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : d1a098601d27184fe25ffe5bab93f9135d397b24
Author : Sergio Durigan Junior <sergiodj@redhat.com>
Date   : 2019-03-19T19:19:25-04:00
Stats  : +82/-0 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/d1a098601d27184fe25ffe5bab93f9135d397b24?branch=gdb-17.2-rebase-f44

Log:
Temporarily add gdb-temporary-fix-arm-build-error.patch.

---
diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include
index 02596be..07c7b93 100644
--- a/_gdb.spec.Patch.include
+++ b/_gdb.spec.Patch.include
@@ -466,3 +466,7 @@ Patch113: gdb-rhbz1553104-s390x-arch12-test.patch
 # Author: Sergio Durigan Junior.
 Patch114: gdb-rhbz795424-bitpos-arrayview.patch
 
+# Temporary patch to fix ARM build error.
+# https://kojipkgs.fedoraproject.org//work/tasks/9012/33639012/build.log
+Patch115: gdb-temporary-fix-arm-build-error.patch
+

diff --git a/_gdb.spec.patch.include b/_gdb.spec.patch.include
index afc8a74..b65d5b4 100644
--- a/_gdb.spec.patch.include
+++ b/_gdb.spec.patch.include
@@ -112,3 +112,4 @@
 %patch112 -p1
 %patch113 -p1
 %patch114 -p1
+%patch115 -p1

diff --git a/_patch_order b/_patch_order
index 89f69fe..4f86a39 100644
--- a/_patch_order
+++ b/_patch_order
@@ -112,3 +112,4 @@ gdb-archer.patch
 gdb-vla-intel-fix-print-char-array.patch
 gdb-rhbz1553104-s390x-arch12-test.patch
 gdb-rhbz795424-bitpos-arrayview.patch
+gdb-temporary-fix-arm-build-error.patch

diff --git a/gdb-temporary-fix-arm-build-error.patch b/gdb-temporary-fix-arm-build-error.patch
new file mode 100644
index 0000000..d802c69
--- /dev/null
+++ b/gdb-temporary-fix-arm-build-error.patch
@@ -0,0 +1,75 @@
+From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
+From: Alan Hayward <alan.hayward@arm.com>
+Date: Mon, 18 Mar 2019 16:13:12 +0000
+Subject: gdb-temporary-fix-arm-build-error.patch
+
+;; Temporary patch to fix ARM build error.
+;; https://kojipkgs.fedoraproject.org//work/tasks/9012/33639012/build.log
+
+Fix Arm build error
+
+The following commit broke the build for Arm:
+d3a70e03cf51c8fb6bc183eaff7559edffec2045
+Change iterate_over_lwps to take a gdb::function_view
+
+Correct the changes made to arm_linux_insert_hw_breakpoint1 and make
+similar changes to arm_linux_remove_hw_breakpoint1.
+
+2019-03-18  Alan Hayward  <alan.hayward@arm.com>
+
+	* arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
+	variable names.
+	(arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
+
+diff --git a/gdb/ChangeLog b/gdb/ChangeLog
+--- a/gdb/ChangeLog
++++ b/gdb/ChangeLog
+@@ -1,3 +1,9 @@
++2019-03-18  Alan Hayward  <alan.hayward@arm.com>
++
++	* arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
++	variable names.
++	(arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
++
+ 2019-03-18  Pedro Alves  <palves@redhat.com>
+ 	    Eli Zaretskii <eliz@gnu.org>
+ 
+diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c
+--- a/gdb/arm-linux-nat.c
++++ b/gdb/arm-linux-nat.c
+@@ -1005,8 +1005,8 @@ arm_linux_insert_hw_breakpoint1 (const struct arm_linux_hw_breakpoint* bpt,
+         iterate_over_lwps (pid_ptid,
+ 			   [=] (struct lwp_info *info)
+ 			   {
+-			     return update_registers_callback (info, watch,
+-							       index);
++			     return update_registers_callback (info, watchpoint,
++							       i);
+ 			   });
+         break;
+       }
+@@ -1024,7 +1024,6 @@ arm_linux_remove_hw_breakpoint1 (const struct arm_linux_hw_breakpoint *bpt,
+   gdb_byte count, i;
+   ptid_t pid_ptid;
+   struct arm_linux_hw_breakpoint* bpts;
+-  struct update_registers_data data;
+ 
+   pid = inferior_ptid.pid ();
+   pid_ptid = ptid_t (pid);
+@@ -1043,10 +1042,13 @@ arm_linux_remove_hw_breakpoint1 (const struct arm_linux_hw_breakpoint *bpt,
+   for (i = 0; i < count; ++i)
+     if (arm_linux_hw_breakpoint_equal (bpt, bpts + i))
+       {
+-        data.watch = watchpoint;
+-        data.index = i;
+         bpts[i].control = arm_hwbp_control_disable (bpts[i].control);
+-        iterate_over_lwps (pid_ptid, update_registers_callback, &data);
++	iterate_over_lwps (pid_ptid,
++			   [=] (struct lwp_info *info)
++			   {
++			     return update_registers_callback (info, watchpoint,
++							       i);
++			   });
+         break;
+       }
+ 

diff --git a/gdb.spec b/gdb.spec
index 3e6e235..777d52c 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -1027,6 +1027,7 @@ fi
 %changelog
 * Tue Mar 19 2019 Sergio Durigan Junior <sergiodj@redhat.com> - 8.3.50.20190319-2
 - Rebase to FSF GDB 8.3.50.20190319 (8.4pre).
+- Temporarily add gdb-temporary-fix-arm-build-error.patch.
 
 * Mon Mar  4 2019 Sergio Durigan Junior <sergiodj@redhat.com> - 8.3.50.20190304-1
 - Rebase to FSF GDB 8.3.50.20190304 (8.4pre).

                 reply	other threads:[~2026-06-27 23:59 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=178260477779.1.4358875685979212774.rpms-gdb-d1a098601d27@fedoraproject.org \
    --to=sergiodj@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