hacker-tools
- From: "Joseph E. Sacco, PhD" <joseph_sacco comcast net>
- To: garnome-list gnome org
- Subject: hacker-tools
- Date: Thu, 07 Jul 2005 22:02:05 -0400
With the advent of a working valgrind for linuxPPC
http://valgrind.org/downloads/variants.html?pmk
I have managed to build all of the hacker-tools.
Updates:
* mlview: 0.7.1 -> 0.8
hacks:
* memprof-0.5.1
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...
-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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]