| commit | ded6f97d105f3597246376d45ff455d16016c3f0 | [log] [tgz] |
|---|---|---|
| author | Petr Machata <pmachata@redhat.com> | Fri Apr 13 23:15:48 2012 +0200 |
| committer | Petr Machata <pmachata@redhat.com> | Thu Apr 19 01:38:03 2012 +0200 |
| tree | 684c0a8cf0fd0af1dc6cbb050803780ad6ca451e | |
| parent | 4e6c437e54f8308f12c4b09dd38515a0e9b895c6 [diff] [blame] |
Clone callstack in process_clone
diff --git a/proc.c b/proc.c index 79af573..fb07758 100644 --- a/proc.c +++ b/proc.c
@@ -183,6 +183,10 @@ }; dict_apply_to_all(proc->breakpoints, &clone_single_bp, &data); + /* And finally the call stack. */ + memcpy(retp->callstack, proc->callstack, sizeof(retp->callstack)); + retp->callstack_depth = proc->callstack_depth; + if (data.error < 0) goto fail2;