Christopher Ferris | 4675682 | 2014-01-14 20:16:30 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef _BACKTRACE_BACKTRACE_CONSTANTS_H |
| 18 | #define _BACKTRACE_BACKTRACE_CONSTANTS_H |
| 19 | |
| 20 | // When the pid to be traced is set to this value, then trace the current |
| 21 | // process. If the tid value is not BACKTRACE_NO_TID, then the specified |
| 22 | // thread from the current process will be traced. |
| 23 | #define BACKTRACE_CURRENT_PROCESS -1 |
| 24 | // When the tid to be traced is set to this value, then trace the specified |
| 25 | // current thread of the specified pid. |
| 26 | #define BACKTRACE_CURRENT_THREAD -1 |
| 27 | |
| 28 | #define MAX_BACKTRACE_FRAMES 64 |
| 29 | |
| 30 | #endif // _BACKTRACE_BACKTRACE_CONSTANTS_H |