Julian Seward 7be9d63ed0 Add support for PIC executables (e.g. firefox on Ubuntu 11) by adding
the "auxv" protocol packet to gdbsrv.  (Philippe Waroquiers,
philippe.waroquiers@skynet.be).  Bug 214909 comment 108.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11836
2011-06-26 09:26:48 +00:00

15 lines
298 B
C

#include <stdio.h>
static void another_func(char *msg)
{
printf ("another func called msg %s\n", msg);
}
int main (int argc, char *argv[])
{
printf("address of main %p\n", &main);
printf("address of another_func %p\n", &another_func);
another_func("called from main");
return 0;
}