1diff -rc dietlibc-0.30-orig/include/asm/arm-sigcontext.h dietlibc-0.30/include/asm/arm-sigcontext.h
2*** dietlibc-0.30-orig/include/asm/arm-sigcontext.h 2002-05-09 03:05:10.000000000 +0200
3--- dietlibc-0.30/include/asm/arm-sigcontext.h 2006-10-19 12:40:30.000000000 +0200
4***************
5*** 1,5 ****
6
7! #define PC(ctx) (ctx.arm_pc)
8
9 /*
10 * Signal context structure - contains all info to do with the state
11--- 1,5 ----
12
13! #define __DIETLIBC_PC(ctx) (ctx.arm_pc)
14
15 /*
16 * Signal context structure - contains all info to do with the state
17diff -rc dietlibc-0.30-orig/include/asm/i386-sigcontext.h dietlibc-0.30/include/asm/i386-sigcontext.h
18*** dietlibc-0.30-orig/include/asm/i386-sigcontext.h 2005-09-21 09:33:08.000000000 +0200
19--- dietlibc-0.30/include/asm/i386-sigcontext.h 2006-10-19 12:40:41.000000000 +0200
20***************
21*** 38,44 ****
22 };
23
24 #define X86_FXSR_MAGIC 0x0000
25! #define PC(ctx) (ctx.eip)
26
27 struct sigcontext {
28 __u16 gs, __gsh;
29--- 38,44 ----
30 };
31
32 #define X86_FXSR_MAGIC 0x0000
33! #define __DIETLIBC_PC(ctx) (ctx.eip)
34
35 struct sigcontext {
36 __u16 gs, __gsh;
37diff -rc dietlibc-0.30-orig/include/asm/ia64-sigcontext.h dietlibc-0.30/include/asm/ia64-sigcontext.h
38*** dietlibc-0.30-orig/include/asm/ia64-sigcontext.h 2002-07-20 18:47:48.000000000 +0200
39--- dietlibc-0.30/include/asm/ia64-sigcontext.h 2006-10-19 12:39:40.000000000 +0200
40***************
41*** 1,6 ****
42 #include <sys/ptrace.h>
43
44! #define PC(ctx) (ctx.sc_ip)
45
46 struct sigcontext {
47 unsigned long sc_flags;
48--- 1,6 ----
49 #include <sys/ptrace.h>
50
51! #define __DIETLIBC_PC(ctx) (ctx.sc_ip)
52
53 struct sigcontext {
54 unsigned long sc_flags;
55diff -rc dietlibc-0.30-orig/profiling/profil.c dietlibc-0.30/profiling/profil.c
56*** dietlibc-0.30-orig/profiling/profil.c 2002-04-08 00:13:53.000000000 +0200
57--- dietlibc-0.30/profiling/profil.c 2006-10-19 12:40:58.000000000 +0200
58***************
59*** 43,51 ****
60 static void
61 profiler (int signal, struct sigcontext ctx)
62 {
63! size_t s = PC(ctx)-low_pc;
64 (void)signal;
65! if ((PC(ctx)) < low_pc) return;
66 s >>= 1;
67 if (s < maxhits)
68 ++buffer[s];
69--- 43,51 ----
70 static void
71 profiler (int signal, struct sigcontext ctx)
72 {
73! size_t s = __DIETLIBC_PC(ctx)-low_pc;
74 (void)signal;
75! if ((__DIETLIBC_PC(ctx)) < low_pc) return;
76 s >>= 1;
77 if (s < maxhits)
78 ++buffer[s];