diff options
author | Karel Klic <kklic@redhat.com> | 2009-11-12 17:02:02 +0100 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2009-11-12 17:02:02 +0100 |
commit | 0ecc573a8ba79bca8e37809c41f92f0b629149e8 (patch) | |
tree | cffdec4bf6dd41664d7f658673910899d540eb8d /src/Backtrace | |
parent | 32cee84a34c005fe0d2863f439007ec633687fa8 (diff) | |
download | abrt-0ecc573a8ba79bca8e37809c41f92f0b629149e8.tar.gz abrt-0ecc573a8ba79bca8e37809c41f92f0b629149e8.tar.xz abrt-0ecc573a8ba79bca8e37809c41f92f0b629149e8.zip |
Backtrace print tree wip
Diffstat (limited to 'src/Backtrace')
-rw-r--r-- | src/Backtrace/backtrace.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Backtrace/backtrace.c b/src/Backtrace/backtrace.c index 3777c0f4..b2a1e6d3 100644 --- a/src/Backtrace/backtrace.c +++ b/src/Backtrace/backtrace.c @@ -96,6 +96,10 @@ struct thread *thread_add_sibling(struct thread *a, struct thread *b) return a; } +static void thread_print_tree(struct thread *thread) +{ +} + struct backtrace *backtrace_new() { struct backtrace *bt = malloc(sizeof(struct backtrace)); @@ -135,4 +139,10 @@ static int backtrace_get_thread_count(struct backtrace *bt) void backtrace_print_tree(struct backtrace *bt) { printf("Thread count: %d\n", backtrace_get_thread_count(bt)); + struct thread *thread = bt->threads; + while (thread) + { + thread_print_tree(thread); + thread = thread->next; + } } |