From 6117ee72af5c0c2973a0f20fb847a216825db03f Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Fri, 18 Mar 2016 19:46:04 +0100 Subject: runtime_tools: Make dbg work with erl_tracer modules OTP-13500 --- lib/runtime_tools/doc/src/dbg.xml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'lib/runtime_tools/doc/src') diff --git a/lib/runtime_tools/doc/src/dbg.xml b/lib/runtime_tools/doc/src/dbg.xml index ccb3bca50e..0128e23a47 100644 --- a/lib/runtime_tools/doc/src/dbg.xml +++ b/lib/runtime_tools/doc/src/dbg.xml @@ -288,7 +288,7 @@ Error: fun containing local erlang function calls ('is_atomm' called in guard)\

The list can also include any of the flags allowed in - erlang:trace/3

+ erlang:trace/3

The function returns either an error tuple or a tuple {ok, List}. The List consists of specifications of how many processes and ports that matched (in the @@ -747,7 +747,7 @@ Error: fun containing local erlang function calls ('is_atomm' called in guard)\ Error = term() HandlerSpec = {HandlerFun, InitialData} HandlerFun = fun() (two arguments) - ModuleSpec = {TracerModule, TracerState} + ModuleSpec = fun() (no arguments) | {TracerModule, TracerState} ModuleModule = atom() InitialData = TracerState = term() @@ -779,9 +779,9 @@ Error: fun containing local erlang function calls ('is_atomm' called in guard)\ preferably generated by calling trace_port/2.

if Type is module, then the second parameter should - be a tuple describing the erl_tracer + be either a tuple describing the erl_tracer module to be used for tracing and the state to be used for - that tracer module.

+ that tracer module or a fun returning the same tuple.

If an error is returned, it can either be due to a tracer server already running ({error,already_started}) or due to the HandlerFun throwing an exception. @@ -800,8 +800,7 @@ Error: fun containing local erlang function calls ('is_atomm' called in guard)\

This function is equivalent to tracer/2, but acts on the given node. A tracer is started on the node - (Nodename) and the node is added to the list of traced - nodes. + (Nodename) and the node is added to the list of traced nodes.

This function is not equivalent to n/1. While @@ -1066,11 +1065,11 @@ hello Return the process or port to which all trace messages are sent. Nodename = atom() - Tracer = port() | pid() + Tracer = port() | pid() | {module(), term()} -

Returns the process or port to which all trace - messages are sent.

+

Returns the process, port or tracer module to which all trace + messages are sent.

-- cgit v1.2.3