2007-05-23 12:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/debug.c
! fixed access/assign local variables from debugger in functions
with variable number of parameters
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
|
||||
2007-05-23 12:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/source/vm/debug.c
|
||||
! fixed access/assign local variables from debugger in functions
|
||||
with variable number of parameters
|
||||
|
||||
2007-05-23 11:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/include/Makefile
|
||||
+ added hbapidbg.h
|
||||
|
||||
@@ -202,7 +202,15 @@ HB_EXPORT PHB_ITEM hb_dbg_vmVarLGet( int iLevel, int iLocal )
|
||||
}
|
||||
|
||||
if( iLocal >= 0 )
|
||||
{
|
||||
PHB_ITEM pBase = hb_stackItem( lBaseOffset - 1 );
|
||||
|
||||
if( pBase->item.asSymbol.paramcnt > pBase->item.asSymbol.paramdeclcnt &&
|
||||
iLocal > pBase->item.asSymbol.paramdeclcnt )
|
||||
iLocal += pBase->item.asSymbol.paramcnt - pBase->item.asSymbol.paramdeclcnt;
|
||||
|
||||
pLocal = hb_stackItem( lBaseOffset + iLocal );
|
||||
}
|
||||
else
|
||||
pLocal = hb_codeblockGetRef( hb_stackItem( lBaseOffset )->item.asBlock.value, iLocal );
|
||||
|
||||
@@ -245,7 +253,15 @@ HB_FUNC( HB_DBG_VMVARLSET )
|
||||
}
|
||||
|
||||
if( iLocal >= 0 )
|
||||
{
|
||||
PHB_ITEM pBase = hb_stackItem( lBaseOffset - 1 );
|
||||
|
||||
if( pBase->item.asSymbol.paramcnt > pBase->item.asSymbol.paramdeclcnt &&
|
||||
iLocal > pBase->item.asSymbol.paramdeclcnt )
|
||||
iLocal += pBase->item.asSymbol.paramcnt - pBase->item.asSymbol.paramdeclcnt;
|
||||
|
||||
pLocal = hb_stackItem( lBaseOffset + iLocal );
|
||||
}
|
||||
else
|
||||
pLocal = hb_codeblockGetRef( hb_stackItem( lBaseOffset )->item.asBlock.value, iLocal );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user