diff options
author | Petr Machata <pmachata@redhat.com> | 2013-01-30 23:28:47 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2013-01-30 23:29:56 +0100 |
commit | 057caa59fc0063bd73568b0ae19bbf668b572737 (patch) | |
tree | b9898fc6b796b679bfd0eb242462476c8812d303 /handle_event.c | |
parent | 653085a32cdc89f5215c2d70249b58c9fe6aebb7 (diff) | |
download | ltrace-057caa59fc0063bd73568b0ae19bbf668b572737.tar.gz |
Introduce continue_after_exec
This needs to be handled differently on non-Linux platforms.
Diffstat (limited to 'handle_event.c')
-rw-r--r-- | handle_event.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/handle_event.c b/handle_event.c index dd1eaaa..9dbb696 100644 --- a/handle_event.c +++ b/handle_event.c @@ -1,6 +1,6 @@ /* * This file is part of ltrace. - * Copyright (C) 2011,2012 Petr Machata, Red Hat Inc. + * Copyright (C) 2011,2012,2013 Petr Machata, Red Hat Inc. * Copyright (C) 2010 Arnaud Patard, Mandriva SA * Copyright (C) 1998,2001,2002,2003,2004,2007,2008,2009 Juan Cespedes * Copyright (C) 2008 Luis Machado, IBM Corporation @@ -486,18 +486,7 @@ handle_exec(Event *event) goto untrace; } - continue_process(proc->pid); - - /* After the exec, we expect to hit the first executable - * instruction. - * - * XXX TODO It would be nice to have this removed, but then we - * need to do that also for initial call to wait_for_proc in - * execute_program. In that case we could generate a - * EVENT_FIRST event or something, or maybe this could somehow - * be rolled into EVENT_NEW. */ - wait_for_proc(proc->pid); - continue_process(proc->pid); + continue_after_exec(proc); } static void |