I think you can cross compile strace. Make sure to compile with -static
flag. I have strace binary but it's at work, can give you tomorrow if you
still need it.
reference: http://sourceforge.net/projects/strace/
On Thu, Jul 21, 2011 at 7:40 PM, Mudric, Dusan (Dusan) <dmud...@avaya.com>wrote:
> Linux on my phone does not have strace tool. Is there strace binary that
> can be loaded on ARM1176 so I can check what valgrind is trying to use?
>
> -----Original Message-----
> From: daniel.r.ke...@gmail.com [mailto:daniel.r.ke...@gmail.com] On Behalf
> Of Dan Kegel
> Sent: Thursday, July 21, 2011 12:35 PM
> To: Mudric, Dusan (Dusan)
> Cc: John Reiser; valgrind-users@lists.sourceforge.net
> Subject: Re: [Valgrind-users] Valgrind for ARM 1176 for linux
>
> On Thu, Jul 21, 2011 at 7:37 AM, Mudric, Dusan (Dusan)
> <dmud...@avaya.com> wrote:
> > However, valgrind can not find a library.
> > valgrind: failed to start tool 'memcheck' for platform 'arm-linux': No
> such file or directory
>
> strace might be able to tell you where it was looking for the library.
>
> $ strace -e trace=file -o log -f valgrind /bin/ls
> $ grep memcheck log
>
> 17724 execve("/usr/lib/valgrind/memcheck-x86-linux",
> ["/usr/bin/valgrind.bin", "/bin/ls"], [/* 46 vars */]) = 0
> 17724 access("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", R_OK) = 0
> 17724 stat64("/usr/lib/valgrind/memcheck-x86-linux",
> {st_mode=S_IFREG|0755, st_size=6070610, ...}) = 0
> 17724 open("/usr/lib/valgrind/memcheck-x86-linux", O_RDONLY|O_LARGEFILE) =
> 3
> 17724 stat64("/usr/lib/valgrind/memcheck-x86-linux",
> {st_mode=S_IFREG|0755, st_size=6070610, ...}) = 0
> 17724 open("/usr/lib/valgrind/memcheck-x86-linux", O_RDONLY|O_LARGEFILE) =
> 3
> 17724 open("/usr/lib/valgrind/memcheck-x86-linux", O_RDONLY) = 3
> 17724 readlink("/proc/self/fd/3",
> "/usr/lib/valgrind/memcheck-x86-linux", 4096) = 36
> 17724 open("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", O_RDONLY) =
> 3
> 17724 readlink("/proc/self/fd/3",
> "/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", 4096) = 49
> 17724 stat64("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so",
> {st_mode=S_IFREG|0644, st_size=99339, ...}) = 0
> 17724 open("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so",
> O_RDONLY|O_LARGEFILE) = 4
> 17724 readlink("/proc/self/fd/3",
> "/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", 4096) = 49
> 17724 stat64("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so",
> {st_mode=S_IFREG|0644, st_size=99339, ...}) = 0
> 17724 open("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so",
> O_RDONLY|O_LARGEFILE) = 4
> 17724 open("/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", O_RDONLY) =
> 4
> 17724 readlink("/proc/self/fd/4",
> "/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so", 4096) = 49
>
>
> ------------------------------------------------------------------------------
> 5 Ways to Improve & Secure Unified Communications
> Unified Communications promises greater efficiencies for business. UC can
> improve internal communications as well as offer faster, more efficient
> ways
> to interact with customers and streamline customer service. Learn more!
> http://www.accelacomm.com/jaw/sfnl/114/51426253/
> _______________________________________________
> Valgrind-users mailing list
> Valgrind-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>
--
Wan Mohd Fairuz WAN ISMAIL
OMAP System Multimedia Integration Team
Texas Instrument France
+33 (0)4 93 22 20 16
+33 (0)6 43 46 13 39
------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users