From 45f1f9263fe62c2eb086a092c823f8308e55fea2 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Thu, 26 Nov 2009 10:38:31 +0100 Subject: [PATCH] add a property debugging function --- simgear/props/props_io.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/simgear/props/props_io.cxx b/simgear/props/props_io.cxx index 622ef367..48244c7b 100644 --- a/simgear/props/props_io.cxx +++ b/simgear/props/props_io.cxx @@ -602,6 +602,13 @@ writeProperties (const string &file, const SGPropertyNode * start_node, } } +// Another variation, useful when called from gdb +void +writeProperties (const char* file, const SGPropertyNode * start_node) +{ + writeProperties(string(file), start_node, true); +} + //////////////////////////////////////////////////////////////////////// -- 2.39.5