mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 03:24:15 +02:00
Update breakpad to make it work with MinGW
This commit is contained in:
20
thirdparty/breakpad/processor/cfi_frame_info.cc
vendored
20
thirdparty/breakpad/processor/cfi_frame_info.cc
vendored
@@ -38,11 +38,17 @@
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "common/scoped_ptr.h"
|
||||
#include "processor/postfix_evaluator-inl.h"
|
||||
#include "processor/scoped_ptr.h"
|
||||
|
||||
namespace google_breakpad {
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#include <pthread.h>
|
||||
#elif defined(_WIN32)
|
||||
#define strtok_r strtok_s
|
||||
#endif
|
||||
|
||||
template<typename V>
|
||||
bool CFIFrameInfo::FindCallerRegs(const RegisterValueMap<V> ®isters,
|
||||
const MemoryRegion &memory,
|
||||
@@ -88,14 +94,14 @@ bool CFIFrameInfo::FindCallerRegs(const RegisterValueMap<V> ®isters,
|
||||
}
|
||||
|
||||
// Explicit instantiations for 32-bit and 64-bit architectures.
|
||||
template bool CFIFrameInfo::FindCallerRegs<u_int32_t>(
|
||||
const RegisterValueMap<u_int32_t> ®isters,
|
||||
template bool CFIFrameInfo::FindCallerRegs<uint32_t>(
|
||||
const RegisterValueMap<uint32_t> ®isters,
|
||||
const MemoryRegion &memory,
|
||||
RegisterValueMap<u_int32_t> *caller_registers) const;
|
||||
template bool CFIFrameInfo::FindCallerRegs<u_int64_t>(
|
||||
const RegisterValueMap<u_int64_t> ®isters,
|
||||
RegisterValueMap<uint32_t> *caller_registers) const;
|
||||
template bool CFIFrameInfo::FindCallerRegs<uint64_t>(
|
||||
const RegisterValueMap<uint64_t> ®isters,
|
||||
const MemoryRegion &memory,
|
||||
RegisterValueMap<u_int64_t> *caller_registers) const;
|
||||
RegisterValueMap<uint64_t> *caller_registers) const;
|
||||
|
||||
string CFIFrameInfo::Serialize() const {
|
||||
std::ostringstream stream;
|
||||
|
Reference in New Issue
Block a user