Update of /cvsroot/wxlua/wxLua/modules/wxluadebug/include
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv29706/wxLua/modules/wxluadebug/include
Modified Files:
wxldebug.h
Log Message:
check return values of debuger server to exit more gracefully on failure
move port number into wxLuaDebuggerBase
Index: wxldebug.h
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/include/wxldebug.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** wxldebug.h 3 Oct 2006 05:12:45 -0000 1.27
--- wxldebug.h 4 Oct 2006 22:07:23 -0000 1.28
***************
*** 1,22 ****
/////////////////////////////////////////////////////////////////////////////
! // Purpose: Implements the debugger end of wxLua debugging session
! // Author: J. Winwood
// Created: June 2003
// Copyright: (c) 2002 Lomtick Software. All rights reserved.
// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
- // Ray Gilbert moved class definitions out of wxLuaDebuggerServer, wxLuaDebugIO
- // to allow alternate debugger model
- //
- // Original Debugging Model:
- // wxLuaDebuggerServer, wxLuaDebugTarget
- // The current process acts as a server - debugger (wxLuaDebuggerServer)
- // starts a new process which starts up as a client - debuggee (wxLuaDebugTarget)
- // that connects back to server process.
- //
- // Alternative Debugging Model:
- // wxLuaDebugService, wxLuaDebuggee, wxLuaDebugger
- // The current process acts as a server - debuggee (wxLuaDebugService; wxLuaDebuggee).
- // This service waits for client - debugger to connect.
#ifndef WX_LUA_DEBUG_H
--- 1,9 ----
/////////////////////////////////////////////////////////////////////////////
! // Purpose: lua and wxLua debugging code
! // Author: J. Winwood, John Labenski
// Created: June 2003
// Copyright: (c) 2002 Lomtick Software. All rights reserved.
// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#ifndef WX_LUA_DEBUG_H
***************
*** 36,40 ****
// ----------------------------------------------------------------------------
! // wxLuaDebugDataItem
// ----------------------------------------------------------------------------
--- 23,27 ----
// ----------------------------------------------------------------------------
! // wxLuaDebugDataItem -
// ----------------------------------------------------------------------------
***************
*** 62,72 ****
private:
! wxString m_itemName;
! wxString m_itemType;
! wxString m_itemValue;
! wxString m_itemSource;
! int m_nReference;
! int m_nIndex;
! bool m_fExpanded;
};
--- 49,59 ----
private:
! wxString m_itemName;
! wxString m_itemType;
! wxString m_itemValue;
! wxString m_itemSource;
! int m_nReference;
! int m_nIndex;
! bool m_fExpanded;
};
***************
*** 88,93 ****
wxLuaDebugData(const wxLuaDebugData &debugData) { Ref(debugData); }
- virtual ~wxLuaDebugData() {}
-
// Get the data array, please use safe array access functions if possible
wxLuaDebugDataItemArray* GetArray();
--- 75,78 ----
***************
*** 95,98 ****
--- 80,85 ----
// wxArray functions mapped to the internal array w/ error checking
+ // The wxLuaDebugDataItem items added must be created with 'new' and
+ // will be deleted when this class is destroyed.
size_t GetCount() const;
wxLuaDebugDataItem* Item(size_t index) const;
***************
*** 102,108 ****
--- 89,102 ----
// returns the number of stack entries added
int EnumerateStack(const wxLuaState& wxlState);
+ // fill this with the locals from a particular stack entry, if an item is a
+ // table then add a reference to it in the references array
int EnumerateStackEntry(const wxLuaState& wxlState, int stackRef, wxArrayInt& references);
+ // fill this with the name and value of items in a table at the given reference,
+ // if the table has a sub table then add a reference to it to the references array
int EnumerateTable(const wxLuaState& wxlState, int nRef, int nEntry, wxArrayInt& references);
+ // These functions are static to allow them to be used in other places to
+ // give a consistent feel to the display of lua values.
+
// Get a human readable string name of the lua_type(L, index) and the
// value at the index, returns the value of lua_type
|