459eecb28b
Modify libfdtrack to use the normal Unwinder object. In addition, update the libfdtrack so that it doesn't record frames in libfdtrack.so rather than skipping frames it thinks will be in the library. Modify the malloc debug code to use the normal Unwinder object. Bug: 120606663 Test: All unit tests pass. Change-Id: I3c9612dd10e62389e6219e68045ee87f7b2625f5
32 lines
1 KiB
C++
32 lines
1 KiB
C++
/*
|
|
* Copyright (C) 2015 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef MALLOC_DEBUG_TESTS_BACKTRACE_FAKE_H
|
|
#define MALLOC_DEBUG_TESTS_BACKTRACE_FAKE_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <vector>
|
|
|
|
#include <unwindstack/Unwinder.h>
|
|
|
|
void backtrace_fake_clear_all();
|
|
void backtrace_fake_add(const std::vector<uintptr_t>& ips);
|
|
|
|
void BacktraceUnwindFakeClearAll();
|
|
void BacktraceUnwindFake(const std::vector<unwindstack::FrameData>& frames);
|
|
|
|
#endif // MALLOC_DEBUG_TESTS_BACKTRACE_FAKE_H
|