Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2019 Google
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
 
15
#pragma once
16
 
17
#include <stdint.h>
18
 
19
#include "Crashlytics/Crashlytics/Helpers/FIRCLSFeatures.h"
20
 
21
#if CLS_DWARF_UNWINDING_SUPPORTED
22
 
23
#if CLS_CPU_64BIT
24
#define CLS_INVALID_ADDRESS (0xffffffffffffffff)
25
#else
26
#define CLS_INVALID_ADDRESS (0xffffffff)
27
#endif
28
 
29
// basic data types
30
uint8_t FIRCLSParseUint8AndAdvance(const void** cursor);
31
uint16_t FIRCLSParseUint16AndAdvance(const void** cursor);
32
int16_t FIRCLSParseInt16AndAdvance(const void** cursor);
33
uint32_t FIRCLSParseUint32AndAdvance(const void** cursor);
34
int32_t FIRCLSParseInt32AndAdvance(const void** cursor);
35
uint64_t FIRCLSParseUint64AndAdvance(const void** cursor);
36
int64_t FIRCLSParseInt64AndAdvance(const void** cursor);
37
uintptr_t FIRCLSParsePointerAndAdvance(const void** cursor);
38
uint64_t FIRCLSParseULEB128AndAdvance(const void** cursor);
39
int64_t FIRCLSParseLEB128AndAdvance(const void** cursor);
40
const char* FIRCLSParseStringAndAdvance(const void** cursor);
41
 
42
// FDE/CIE-specifc structures
43
uint64_t FIRCLSParseRecordLengthAndAdvance(const void** cursor);
44
uintptr_t FIRCLSParseAddressWithEncodingAndAdvance(const void** cursor, uint8_t encoding);
45
 
46
#endif