From 615f9f18fc025757a255f936748fc1e86e922783 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Mon, 18 Nov 2013 23:52:02 +0100 Subject: lib: include thread information in backtraces now that we know what thread we're currently executing, let's add that information to SEGV / assert backtraces. Signed-off-by: David Lamparter --- lib/thread.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/thread.h') diff --git a/lib/thread.h b/lib/thread.h index a088b472..9743a22d 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -234,4 +234,8 @@ extern unsigned long thread_consumed_time(RUSAGE_T *after, RUSAGE_T *before, extern struct timeval recent_time; /* Similar to recent_time, but a monotonically increasing time value */ extern struct timeval recent_relative_time (void); + +/* only for use in logging functions! */ +extern struct thread *thread_current; + #endif /* _ZEBRA_THREAD_H */ -- cgit v1.2.3