On Tue, Jan 18, 2011 at 03:56:13PM +0100, Mark Wielaard wrote: > On Tue, 2011-01-18 at 20:04 +0530, K.Prasad wrote: > > It appears that the probe is placed on top of the stack... > > What do you mean by that? > I think I missed out a few words when pruning the sentence....kindly ignore. > > pasting the relevant log here (while complete screen logs are attached). > > > > selected function print_hw > > prologue searching function 'print_hw' 0x10000530-0x10000570@/home/prasadkr/helloworld.c:4 > > checking line record 0x10000530@/home/prasadkr/helloworld.c:5 > > prologue found function 'print_hw' (naked) = 0x10000530 > > probe print_hw@/home/prasadkr/helloworld.c:4 process=/home/prasadkr/helloworld reloc=.absolute pc=0x10000530 > > So, we actually are putting the probe at address 0x10000530, and uaddr() > does return that address from within the probe context. Good. But our > translation table doesn't contain "print_hw" at that address. > > Could you check some things? > - Can you run it under gdb and put a breakpoint at print_hw, > which address does that give? > - What is the output of eu-readelf -s helloworld? > > Thanks, > > Mark > # gdb helloworld GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/prasadkr/helloworld...done. (gdb) break print_hw Breakpoint 1 at 0x10000544: file helloworld.c, line 6. (gdb) q I'm attaching the output of eu-readelf to this mail. Thanks, K.Prasad