diff options
author | Christopher Ferris <cferris@google.com> | 2013-11-05 11:04:12 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2013-11-05 11:05:32 -0800 |
commit | cbfc7302fb3b5d5c77d2aa7974b26983ce479aa0 (patch) | |
tree | d6330895d0092a10f03c8449f892659151a48f06 /include/backtrace | |
parent | c8626ba480c0e2cab4f4d2fe43bd8f741320b404 (diff) | |
download | system_core-cbfc7302fb3b5d5c77d2aa7974b26983ce479aa0.zip system_core-cbfc7302fb3b5d5c77d2aa7974b26983ce479aa0.tar.gz system_core-cbfc7302fb3b5d5c77d2aa7974b26983ce479aa0.tar.bz2 |
Add some clarifying defines.
In order to be explicit in the Backtrace::Create() calls, adding a couple
of defines and some comments to describe what they mean.
Change-Id: I6ad08c529791821496a95fa33cea1c95b0a7eada
Diffstat (limited to 'include/backtrace')
-rw-r--r-- | include/backtrace/backtrace.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/backtrace/backtrace.h b/include/backtrace/backtrace.h index b35a6d5..a833982 100644 --- a/include/backtrace/backtrace.h +++ b/include/backtrace/backtrace.h @@ -23,6 +23,14 @@ __BEGIN_DECLS +// When the pid to be traced is set to this value, then trace the current +// process. If the tid value is not BACKTRACE_NO_TID, then the specified +// thread from the current process will be traced. +#define BACKTRACE_CURRENT_PROCESS -1 +// When the tid to be traced is set to this value, then trace the specified +// pid. +#define BACKTRACE_NO_TID -1 + #define MAX_BACKTRACE_FRAMES 64 typedef struct backtrace_map_info { |