nemiver r618 - in trunk: . src/dbgengine



Author: dodji
Date: 2007-11-18 20:14:01 +0000 (Sun, 18 Nov 2007)
New Revision: 618
ViewCVS link: http://svn.gnome.org/viewcvs/nemiver?rev=618&view=rev

Modified:
   trunk/ChangeLog
   trunk/src/dbgengine/nmv-var-walker.cc
Log:
Fix a crash triggered by a memory corruption

        The crash was happening randomly while single-stepping.

	* src/dbgengine/nmv-var-walker.cc: fixed a nasty memory corruption bug.
	  the map VarWalker::m_vars_to_visit was storing IDebugger::Variable*,
	  not IDebugger::VariableSafePtr. So at some point, the pointer to
	  variable were getting destroyed by the IDebugger internal somewhere.
	  So back to storing IDebugger::VariableSafePtr. The map then needs the
	  declaration of a comparison functor to be able to compare instance of
	  IDebugger::VariableSafePtr properly. So one got added.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]