With it add also a function which can be used in an assert()-like situation to display the contents of the ring buffer. Within gdb this call also be called if the program is loaded/still loaded into memory.
The global variable will be used in a later patch to be accessed from a python gdb script.
b1f5f807 weston-log-flight-rec: Add a global variable to access the ring buffer
include/libweston/weston-log.h | 3 +++
libweston/weston-log-flight-rec.c | 53 ++++++++++++++++++++++++++++++++-------
2 files changed, 47 insertions(+), 9 deletions(-)