public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] PPC fix for stfiwx instruction (and additional stores with primary opcode of 31)
@ 2021-10-13 18:17 Carl Love
  0 siblings, 0 replies; only message in thread
From: Carl Love @ 2021-10-13 18:17 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1284c2264cca5c848e2f9622ea53e42c97e4e838

commit 1284c2264cca5c848e2f9622ea53e42c97e4e838
Author: Carl Love <cel@us.ibm.com>
Date:   Fri Oct 8 22:54:05 2021 +0000

    PPC fix for stfiwx instruction (and additional stores with primary opcode of 31)
    
    [gdb] Fix address being recorded in rs6000-tdep.c, ppc_process_record_op31.
    
    The GDB record function was recording the variable addr that was passed in
    rather than the calculated effective address (ea) by the
    ppc_process_record_op31 function.

Diff:
---
 gdb/rs6000-tdep.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 826f0266ed8..9c2bfca3e9c 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -4993,20 +4993,20 @@ ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache,
       switch (ext)
 	{
 	case 167:	/* Store Vector Element Halfword Indexed */
-	  addr = addr & ~0x1ULL;
+	  ea = ea & ~0x1ULL;
 	  break;
 
 	case 199:	/* Store Vector Element Word Indexed */
-	  addr = addr & ~0x3ULL;
+	  ea = ea & ~0x3ULL;
 	  break;
 
 	case 231:	/* Store Vector Indexed */
 	case 487:	/* Store Vector Indexed LRU */
-	  addr = addr & ~0xfULL;
+	  ea = ea & ~0xfULL;
 	  break;
 	}
 
-      record_full_arch_list_add_mem (addr, size);
+      record_full_arch_list_add_mem (ea, size);
       return 0;
 
     case 397:		/* Store VSX Vector with Length */


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

only message in thread, other threads:[~2021-10-13 18:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 18:17 [binutils-gdb] PPC fix for stfiwx instruction (and additional stores with primary opcode of 31) Carl Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).