| Christopher Ferris | 72a6fa6 | 2017-03-21 12:41:17 -0700 | [diff] [blame] | 1 | /* | 
|  | 2 | * Copyright (C) 2016 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 _LIBUNWINDSTACK_DWARF_ENCODING_H | 
|  | 18 | #define _LIBUNWINDSTACK_DWARF_ENCODING_H | 
|  | 19 |  | 
|  | 20 | #include <stdint.h> | 
|  | 21 |  | 
|  | 22 | enum DwarfEncoding : uint8_t { | 
|  | 23 | DW_EH_PE_omit = 0xff, | 
|  | 24 |  | 
|  | 25 | DW_EH_PE_absptr = 0x00, | 
|  | 26 | DW_EH_PE_uleb128 = 0x01, | 
|  | 27 | DW_EH_PE_udata2 = 0x02, | 
|  | 28 | DW_EH_PE_udata4 = 0x03, | 
|  | 29 | DW_EH_PE_udata8 = 0x04, | 
|  | 30 | DW_EH_PE_sleb128 = 0x09, | 
|  | 31 | DW_EH_PE_sdata2 = 0x0a, | 
|  | 32 | DW_EH_PE_sdata4 = 0x0b, | 
|  | 33 | DW_EH_PE_sdata8 = 0x0c, | 
|  | 34 |  | 
|  | 35 | DW_EH_PE_pcrel = 0x10, | 
|  | 36 | DW_EH_PE_textrel = 0x20, | 
|  | 37 | DW_EH_PE_datarel = 0x30, | 
|  | 38 | DW_EH_PE_funcrel = 0x40, | 
|  | 39 | DW_EH_PE_aligned = 0x50, | 
|  | 40 |  | 
|  | 41 | // The following are special values used to encode CFA and OP operands. | 
|  | 42 | DW_EH_PE_udata1 = 0x0d, | 
|  | 43 | DW_EH_PE_sdata1 = 0x0e, | 
|  | 44 | DW_EH_PE_block = 0x0f, | 
|  | 45 | }; | 
|  | 46 |  | 
|  | 47 | #endif  // _LIBUNWINDSTACK_DWARF_ENCODING_H |