[PATCH] Allow for PowerPC 750

Paul Gilliam pgilliam@us.ibm.com
Mon Dec 5 19:37:00 GMT 2005


This patch allows gdb users to specify an architecture (on set 
architecture) of powerpc:750.  This will allow system level debugging of 
applications on PowerPC 750 systems (meaning that the full set of system 
registers and be displayed and/or modified).  gdb already has the 
definition of the PowerPC 750 system registers (in cpu-powerpc.c) -- this 
patch simply allows users to specify that gdb should use this register set 
when reading/modifying registers on the target system.


2005-12-05  Paul Gilliam  <pgilliam@us.ibm.com>

        * bfd/cpu-powerpc.c: add ppc 750 to list of supported PowerPC chips.

diff -r -u gdb-6.3/bfd/cpu-powerpc.c myown_gdb-6.3/bfd/cpu-powerpc.c
--- gdb-6.3/bfd/cpu-powerpc.c   2003-11-20 12:42:21.000000000 -0600
+++ myown_gdb-6.3/bfd/cpu-powerpc.c     2005-10-14 11:46:32.436415625 -0500
@@ -295,6 +295,20 @@
     FALSE, /* not the default */
     powerpc_compatible,
     bfd_default_scan,
+    &bfd_powerpc_archs[15]
+  },
+  {
+    32, /* 32 bits in a word */
+    32, /* 32 bits in an address */
+    8,  /* 8 bits in a byte */
+    bfd_arch_powerpc,
+    bfd_mach_ppc_750,
+    "powerpc",
+    "powerpc:750",
+    3,
+    FALSE, /* not the default */
+    powerpc_compatible,
+    bfd_default_scan,
     0
   }
 };



More information about the Binutils mailing list