| 68 | } |
| 69 | |
| 70 | section_offset |
| 71 | cursor::offset() |
| 72 | { |
| 73 | switch (sec->fmt) { |
| 74 | case format::dwarf32: |
| 75 | return fixed<uint32_t>(); |
| 76 | case format::dwarf64: |
| 77 | return fixed<uint64_t>(); |
| 78 | default: |
| 79 | throw logic_error("cannot read offset with unknown format"); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | void |
| 84 | cursor::string(std::string &out) |
no outgoing calls
no test coverage detected