On 03.01.2012, at 19:04, Fabio Erculiani wrote: > On Tue, Jan 3, 2012 at 6:41 PM, Alexander Graf <ag...@suse.de> wrote: >> >> On 03.01.2012, at 17:07, Fabio Erculiani wrote: >> >>> ts->bprm->argv seems NULL here. >>> Isn't it supposed to be set? >> >> Good question. Maybe we need some other way to fetch argv0 then? > > or we could leave just an empty string for now -> "()" on the second > field of self/state. > That seems to work with ps as well. > Considering that the whole file doesn't bring any useful info other > than the stack base and pid, we might just wait the next round of > segfaults ;-)
Hrm. For the sake of simplicity I'd just make target_argv in main.c a global and directly access it. We only ever execute a single process in linux-user at a given time anyway. Alex