[Haiku-commits] r31245 - haiku/trunk/src/add-ons/kernel/debugger/demangle

bonefish at BerliOS bonefish at mail.berlios.de
Fri Jun 26 02:37:35 CEST 2009


Author: bonefish
Date: 2009-06-26 02:37:34 +0200 (Fri, 26 Jun 2009)
New Revision: 31245
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31245&view=rev

Modified:
   haiku/trunk/src/add-ons/kernel/debugger/demangle/gcc3+.cpp
Log:
Allow calling with NULL _isObjectMethod parameter.


Modified: haiku/trunk/src/add-ons/kernel/debugger/demangle/gcc3+.cpp
===================================================================
--- haiku/trunk/src/add-ons/kernel/debugger/demangle/gcc3+.cpp	2009-06-25 23:51:09 UTC (rev 31244)
+++ haiku/trunk/src/add-ons/kernel/debugger/demangle/gcc3+.cpp	2009-06-26 00:37:34 UTC (rev 31245)
@@ -3674,6 +3674,10 @@
 demangle_symbol_gcc3(const char* mangledName, char* buffer, size_t bufferSize,
 	bool* _isObjectMethod)
 {
+	bool isObjectMethod;
+	if (_isObjectMethod == NULL)
+		_isObjectMethod = &isObjectMethod;
+
 	Demangler demangler;
 	DemanglingInfo info(true);
 	if (demangler.Demangle(mangledName, buffer, bufferSize, info) != ERROR_OK)




More information about the Haiku-commits mailing list