I stumbled across a recent port of valgrind-2.4 that "works" for PPC's

        http://valgrind.org/downloads/variants.html?pmk
        
I ran some, but not all,  of the tests and they appear to work.

Next on my list of hacker tools for PPC's is a working version of
memprof-0.5.1

        http://www.gnome.org/projects/memprof/

I have done an initial hack modifying three troublesome source files:
* bfdutils.c  
* memintercept-utils.c  
* stack-frame.c

to get memprof to build. 

The patches for the first two routines arise from coding changes in
libbfd since 2002.

The patch for stack-frame.c is a blatant hack to work around some i386
specific code. Constructing the "correct" patch should be a simple task
for someone who is actually fluent in PPC assembler. I am not...

Some other hacker-tools that build on a PPC
* alleyoop-0.8.3
* at-poke-0.2.2  
* devhelp-0.10  
* ghex-2.8.1    
* mlview-0.7.1

can be found at

        http://ftp.gnome.org/

-Joseph

-- 
joseph_sacco [at] comcast [dot] net
--- bfdutils.c-	2005-02-17 17:04:02.000000000 -0500
+++ bfdutils.c	2005-02-17 17:04:15.000000000 -0500
@@ -164,7 +164,7 @@
 				 * into the internals instead. :-(
 				 */
 				/* (*func) (addr, bfd_section_size (map->abfd, section), user_data); */
-				(*func) (addr, section->_cooked_size, user_data);
+				(*func) (addr, section->size, user_data);
 			}
 		}
 }
--- memintercept-utils.c-	2005-02-17 16:59:56.000000000 -0500
+++ memintercept-utils.c	2005-02-17 17:00:21.000000000 -0500
@@ -272,7 +272,7 @@
 	return result;
 #else
 	/* Hope for the best */
-	return *++p;
+	return *++addr;
 #endif
 }
 
@@ -287,7 +287,7 @@
 	return result;
 #else
 	/* Hope for the best */
-	return *--p;
+	return *--addr;
 #endif
 }
 
--- stack-frame.c-	2005-02-17 17:02:22.000000000 -0500
+++ stack-frame.c	2005-02-17 17:02:37.000000000 -0500
@@ -69,7 +69,7 @@
 
 #define HAVE_FRAME_ACCESSORS
 
-#if defined (__GNUC__) && defined (__i386__)
+#if defined (__GNUC__) 
 typedef struct stack_frame_struct stack_frame;
 struct stack_frame_struct {
     stack_frame *next;
_______________________________________________
yellowdog-general mailing list
[email protected]
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
HINT: to Google archives, try  '<keywords> site:terrasoftsolutions.com'

Reply via email to