diff options
| author | Christopher Ferris <cferris@google.com> | 2015-03-26 19:18:36 -0700 |
|---|---|---|
| committer | Christopher Ferris <cferris@google.com> | 2015-03-31 10:51:44 -0700 |
| commit | 2c43cff01d1271be451671567955158629b23670 (patch) | |
| tree | b08d199b9cc4d0b665d7dc844cadedf883d0590c /libbacktrace/UnwindMap.cpp | |
| parent | e29744d94df787fa83307572d90a954b1592f69b (diff) | |
| download | system_core-2c43cff01d1271be451671567955158629b23670.tar.gz system_core-2c43cff01d1271be451671567955158629b23670.tar.bz2 system_core-2c43cff01d1271be451671567955158629b23670.zip | |
Refactor the code.
The object hierarchy was confusing and convoluted. This removes
a lot of unnecessary code, and consolidates the BacktraceCurrent
and BacktraceThread code into BacktraceCurrent.
Change-Id: I01c8407d493712a48169df49dd3ff46db4a7c3ae
Diffstat (limited to 'libbacktrace/UnwindMap.cpp')
| -rw-r--r-- | libbacktrace/UnwindMap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbacktrace/UnwindMap.cpp b/libbacktrace/UnwindMap.cpp index 284a5615b..fa59d0789 100644 --- a/libbacktrace/UnwindMap.cpp +++ b/libbacktrace/UnwindMap.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include <pthread.h> +#include <stdint.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> @@ -142,7 +142,7 @@ BacktraceMap* BacktraceMap::Create(pid_t pid, bool uncached) { } if (!map->Build()) { delete map; - return NULL; + return nullptr; } return map; } |
