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