public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: [ppc] Backport hardware watchpoints fix (Edjunior Machado, BZ 967915).
@ 2026-06-27 23:56 Jan Kratochvil
  0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2026-06-27 23:56 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : a5cf0a66f18f274b2c662b713206a27e3b6ff7b7
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2013-05-28T18:11:47+02:00
Stats  : +52/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/a5cf0a66f18f274b2c662b713206a27e3b6ff7b7?branch=gdb-17.2-rebase-f44

Log:
[ppc] Backport hardware watchpoints fix (Edjunior Machado, BZ 967915).

---
diff --git a/gdb-upstream.patch b/gdb-upstream.patch
index 3240ab2..5d7665c 100644
--- a/gdb-upstream.patch
+++ b/gdb-upstream.patch
@@ -1293,3 +1293,51 @@ http://sourceware.org/ml/gdb-cvs/2013-05/msg00063.html
  gdb_test_no_output "set breakpoint pending off" \
      "disable pending breakpoints for linespec tests"
  
+
+
+
+https://bugzilla.redhat.com/show_bug.cgi?id=967915
+http://sourceware.org/ml/gdb-cvs/2013-05/msg00146.html
+
+### src/gdb/ChangeLog	2013/05/17 18:09:05	1.15569
+### src/gdb/ChangeLog	2013/05/17 23:05:00	1.15570
+## -1,3 +1,9 @@
++2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
++
++	* ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
++	region is ok for a hardware watchpoint using the new ptrace interface
++	on Power servers.
++
+ 2013-05-17  Doug Evans  <dje@google.com>
+ 
+ 	* NEWS: Mention new maintenance commands check-symtabs, and
+--- src/gdb/ppc-linux-nat.c	2013/05/07 07:43:33	1.119
++++ src/gdb/ppc-linux-nat.c	2013/05/17 23:05:00	1.120
+@@ -1503,16 +1503,19 @@
+      to determine the hardcoded watchable region for watchpoints.  */
+   if (have_ptrace_booke_interface ())
+     {
+-      /* DAC-based processors (i.e., embedded processors), like the PowerPC 440
+-	 have ranged watchpoints and can watch any access within an arbitrary
+-	 memory region.  This is useful to watch arrays and structs, for
+-	 instance.  It takes two hardware watchpoints though.  */
++      /* Embedded DAC-based processors, like the PowerPC 440 have ranged
++	 watchpoints and can watch any access within an arbitrary memory
++	 region. This is useful to watch arrays and structs, for instance.  It
++         takes two hardware watchpoints though.  */
+       if (len > 1
+-	  && booke_debug_info.features & PPC_DEBUG_FEATURE_DATA_BP_RANGE)
++	  && booke_debug_info.features & PPC_DEBUG_FEATURE_DATA_BP_RANGE
++	  && ppc_linux_get_hwcap () & PPC_FEATURE_BOOKE)
+ 	return 2;
+-      else if (booke_debug_info.data_bp_alignment
+-	       && (addr + len > (addr & ~(booke_debug_info.data_bp_alignment - 1))
+-		   + booke_debug_info.data_bp_alignment))
++      /* Server processors provide one hardware watchpoint and addr+len should
++         fall in the watchable region provided by the ptrace interface.  */
++      if (booke_debug_info.data_bp_alignment
++	  && (addr + len > (addr & ~(booke_debug_info.data_bp_alignment - 1))
++	      + booke_debug_info.data_bp_alignment))
+ 	return 0;
+     }
+   /* addr+len must fall in the 8 byte watchable region for DABR-based

diff --git a/gdb.spec b/gdb.spec
index 8aada04..8a1d388 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -36,7 +36,7 @@ Version: 7.6
 
 # 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: 30%{?dist}
+Release: 31%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
 Group: Development/Debuggers
@@ -1402,6 +1402,9 @@ fi
 %endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
 
 %changelog
+* Tue May 28 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6-31.fc19
+- [ppc] Backport hardware watchpoints fix (Edjunior Machado, BZ 967915).
+
 * Tue May 21 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6-30.fc19
 - Backported Python frame filters (Phil Muldoon).
 - Backported breakpoint conditions crash fix (Sergio Durigan Junior).

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-27 23:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 23:56 [rpms/gdb] gdb-17.2-rebase-f44: [ppc] Backport hardware watchpoints fix (Edjunior Machado, BZ 967915) Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox