|
From: Cai Q. <yuc...@gm...> - 2011-11-22 09:13:47
|
Hi:
As we know, the normal usage of Valgrind is: valgrind -options
"program_run_command" . Could it extended to use the PID as the args input?
For example, valgrind -pid "pidnumber". I only saw such in vgdb.
And what's more, anyone once use valgrind in arm phone? To detect
the issues on the running application on arm phone, suppose we have a
package
name com.a.pack, in command mode, for example, we can only start the
applications by "am start -n com.a.pack/.lauch". Then using valgrind, the
usage should be
"valgrind am start -n com.a.pack/.lauch"? I tried so, while the command
completed soon, but not as I wanted: finished as all the application itself
ends. Seems it only
detect what happened on "am.." but not the application. I also added the
command --trace-children, the same happened.
So anyone once use it in arm_phone and know the solution?
Thanks very much!
|
|
From: WAROQUIERS P. <phi...@eu...> - 2011-11-22 10:09:12
|
> As we know, the normal usage of Valgrind is: valgrind -options "program_run_command" . > Could it extended to use the PID as the args input? > For example, valgrind -pid "pidnumber". I only saw such in vgdb. This is not possible : a process has to be started under Valgrind. Valgrind cannot take control of an already running process. vgdb has a --pid argument to indicate to vgdb which already running *valgrind* pid it has to connect to. vgdb cannot connect to a pid which is not running under Valgrind. Philippe ____ This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender. |