On Feb 2, 11:40 am, Yoav Weiss <
yoav.weiss...@gmail.com> wrote:
> I'm not trying to valgrind an application, I'm trying to valgrind one of the
> native libraries (which I modified). So there's no virtual machine in the
> mix. As far as I understood, the Simulator is a single Linux process running
> (more or less) the entire Android environment in it, so valgrind should
> detect memory problems in one of the libraries.
You need to run "simulator", and when the UI pops up check the "Use
valgrind" checkbox. (If you find yourself changing this often, go
into File->Preferences->Simulator and uncheck "Boot runtime when
simulator starts". That'll give you an opportunity to fiddle with the
options before things kick in.)
You can also check "Use debugger" to have things break in gdb. If
both "use debugger" and "use valgrind" are enabled, you get "--db-
attach=yes" behavior.
Running valgrind on the simulator front-end is not very useful unless
you'd like to help the wxWidgets developers fix some things.
Customary warning: this is not a supported component, and we don't
promise it will do anything useful.