aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/src/dbg.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-08-03 15:40:07 +0200
committerLukas Larsson <[email protected]>2011-08-03 15:40:07 +0200
commit875fd93c65810378dd377604bea67c4c1f933b87 (patch)
tree988ac0ba9cc06c54c202d8454aaba420b387dc5e /lib/runtime_tools/src/dbg.erl
parentb16af6d09ef2a5843e1fb491114906780f3f970d (diff)
downloadotp-875fd93c65810378dd377604bea67c4c1f933b87.tar.gz
otp-875fd93c65810378dd377604bea67c4c1f933b87.tar.bz2
otp-875fd93c65810378dd377604bea67c4c1f933b87.zip
Add two additional built-in trace patterns, c and cx
c means [{'_',[],[{message,{caller}}]}] cx means [{'_',[],[{exception_trace},{message,{caller}}]}]
Diffstat (limited to 'lib/runtime_tools/src/dbg.erl')
-rw-r--r--lib/runtime_tools/src/dbg.erl13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/runtime_tools/src/dbg.erl b/lib/runtime_tools/src/dbg.erl
index 56283f4d3d..446de63064 100644
--- a/lib/runtime_tools/src/dbg.erl
+++ b/lib/runtime_tools/src/dbg.erl
@@ -1449,6 +1449,19 @@ new_pattern_table() ->
ets:insert(PT,
{exception_trace,
term_to_binary(x)}),
+ ets:insert(PT,
+ {c,
+ term_to_binary([{'_',[],[{message,{caller}}]}])}),
+ ets:insert(PT,
+ {caller_trace,
+ term_to_binary(c)}),
+ ets:insert(PT,
+ {cx,
+ term_to_binary([{'_',[],[{exception_trace},
+ {message,{caller}}]}])}),
+ ets:insert(PT,
+ {caller_exception_trace,
+ term_to_binary(cx)}),
PT.