forked from minhngoc25a/freetype2
Make bytecode debugging with FontForge work again.
* src/truetype/ttinterp.c (TT_RunIns): Don't call `free_buffer_in_size' in case of error if a debugger is active.
This commit is contained in:
parent
6abb9232b6
commit
afd89d309d
|
@ -1,3 +1,10 @@
|
||||||
|
2010-09-15 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
Make bytecode debugging with FontForge work again.
|
||||||
|
|
||||||
|
* src/truetype/ttinterp.c (TT_RunIns): Don't call
|
||||||
|
`free_buffer_in_size' in case of error if a debugger is active.
|
||||||
|
|
||||||
2010-09-14 Werner Lemberg <wl@gnu.org>
|
2010-09-14 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
Improve tracing messages.
|
Improve tracing messages.
|
||||||
|
|
|
@ -8162,12 +8162,14 @@
|
||||||
*exc = cur;
|
*exc = cur;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* if any errors, function tables may be broken. */
|
/* If any errors have occurred, function tables may be broken. */
|
||||||
/* it should not be used for next interpretation. */
|
/* Force a re-execution of `prep' and `fpgm' tables if no */
|
||||||
if ( CUR.error )
|
/* bytecode debugger is run. */
|
||||||
|
if ( CUR.error && !CUR.instruction_trap )
|
||||||
{
|
{
|
||||||
FT_TRACE1(( " The interpreter returned error 0x%x\n", CUR.error ));
|
FT_TRACE1(( " The interpreter returned error 0x%x\n", CUR.error ));
|
||||||
free_buffer_in_size( exc );
|
free_buffer_in_size( exc );
|
||||||
|
|
||||||
exc->size->cvt_ready = FALSE;
|
exc->size->cvt_ready = FALSE;
|
||||||
exc->size->bytecode_ready = FALSE;
|
exc->size->bytecode_ready = FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue