good idea
I merged the VMFL vmalloc.h debugging hooks from ast.h
and your AST_PROFILE_NEWOF hooks into a single debugging header
<ast_debug.h>
ast.h now includes ast_debug.h
and use the _AST_DEBUG_* namespace to enable debugging
for newof/oldof you would build everything with
-D_AST_DEBUG_newof
ast_debug.h is attached
this will be in the next alpha
the hook calls will show up in the debugger and you can enable stderr debug
trace by
export ERROR_OPTIONS=debug=2
On Sun, 5 May 2013 02:30:07 +0200 Roland Mainz wrote:
> Attached (as "astksh20130503_purge_newof_part001.diff.gz") is a small
> cleanup patch which replaces |newof()| usage with |oldof()| (same as
> |newof()| but uses |malloc()| instead of |calloc()|) ...
ast_debug.h
Description: application/cc
_______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
