fixes issue 1055

Added drmgr_current_bb_phase().  Added a call to it from
drutil_expand_rep_string_ex() to ensure it's used properly.

Added a USAGE_ERROR to drutil_expand_rep_string_ex() if meta instrs exist.

Tested on the memtrace,inscount order from the issue.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1841 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
fix message w/ pointer to cmake bug

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1842 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Restore /debug to client libs in tests

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1843 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1061: Check fragment flag compatibility for new unexpected vmareas

When we flush code from non-module vmareas, we remove the area completely.
When we re-execute it, we re-add the area, and we check whether to sandbox
it based on stats in written_areas.  The current flag compatibility check
happens before re-adding the area, but we should also check compatibility
after adding the area.

Fixes issue 1061.

Review URL: https://codereview.appspot.com/7135057

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1844 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Add bbbuf sample to demonstrate how to use TLS field for per-thread profiling
Add DR_REG_START/STOP_GPR in instr.h for general registers range

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1845 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Make sure instr_decode_with_current_dcontext() isn't inlined in instr.c

This is a micro-optimization that saves ~800 bytes of .text and has negligible
impact on execution time.  It just shows up as cold code in things like
instr_is_exit_cti(), which are what I'm really trying to optimize.

Review URL: https://codereview.appspot.com/7179050

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1846 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Internally inline instr flag predicates

This results in a ~2% speedup in DumpRenderTree.

Review URL: https://codereview.appspot.com/7133066

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1847 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6