| 1047 | /* Read initial_length from BUF and advance the appropriate number of bytes. */ |
| 1048 | |
| 1049 | static uint64_t |
| 1050 | read_initial_length (struct dwarf_buf *buf, int *is_dwarf64) |
| 1051 | { |
| 1052 | uint64_t len; |
| 1053 | |
| 1054 | len = read_uint32 (buf); |
| 1055 | if (len == 0xffffffff) |
| 1056 | { |
| 1057 | len = read_uint64 (buf); |
| 1058 | *is_dwarf64 = 1; |
| 1059 | } |
| 1060 | else |
| 1061 | *is_dwarf64 = 0; |
| 1062 | |
| 1063 | return len; |
| 1064 | } |
| 1065 | |
| 1066 | /* Free an abbreviations structure. */ |
| 1067 |
no test coverage detected