aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-03-08 08:15:55 +0100
committerBjörn Gustavsson <[email protected]>2011-08-18 10:00:27 +0200
commit03abff77e4a0c116f816443434b1864fa8ee12ec (patch)
treebd95539d333be75b86130b8f56f29418d94bd35a /erts/doc
parent962c9a185eb4897d38b37170f20695608ca9a21b (diff)
downloadotp-03abff77e4a0c116f816443434b1864fa8ee12ec.tar.gz
otp-03abff77e4a0c116f816443434b1864fa8ee12ec.tar.bz2
otp-03abff77e4a0c116f816443434b1864fa8ee12ec.zip
Implement process_info(Pid, current_{location,stacktrace})
Diffstat (limited to 'erts/doc')
-rw-r--r--erts/doc/src/erlang.xml19
1 files changed, 17 insertions, 2 deletions
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index b7d775541f..b59fda7ef7 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -3809,11 +3809,26 @@ os_prompt%</pre>
catches in this process. This <c>InfoTuple</c> may be
changed or removed without prior notice.</p>
</item>
- <tag><c>{current_function, {Module, Function, Args}}</c></tag>
+ <tag><c>{current_function, {Module, Function, Arity}}</c></tag>
<item>
- <p><c>Module</c>, <c>Function</c>, <c>Args</c> is
+ <p><c>Module</c>, <c>Function</c>, <c>Arity</c> is
the current function call of the process.</p>
</item>
+ <tag><c>{current_location, {Module, Function, Arity, Location}}</c></tag>
+ <item>
+ <p><c>Module</c>, <c>Function</c>, <c>Arity</c> is
+ the current function call of the process.
+ <c>Location</c> is a list of two-tuples that describes the
+ location in the source code.
+ </p>
+ </item>
+ <tag><c>{current_stacktrace, Stack}</c></tag>
+ <item>
+ <p>Return the current call stack back-trace (<em>stacktrace</em>)
+ of the process. The stack has the same format as returned by
+ <seealso marker="#get_stacktrace/1">erlang:get_stacktrace/0</seealso>.
+ </p>
+ </item>
<tag><c>{dictionary, Dictionary}</c></tag>
<item>
<p><c>Dictionary</c> is the dictionary of the process.</p>