MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / read_address

Function read_address

Dependencies/tracy/libbacktrace/dwarf.cpp:918–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916 bytes. */
917
918static uint64_t
919read_address (struct dwarf_buf *buf, int addrsize)
920{
921 switch (addrsize)
922 {
923 case 1:
924 return read_byte (buf);
925 case 2:
926 return read_uint16 (buf);
927 case 4:
928 return read_uint32 (buf);
929 case 8:
930 return read_uint64 (buf);
931 default:
932 dwarf_buf_error (buf, "unrecognized address size", 0);
933 return 0;
934 }
935}
936
937/* Return whether a value is the highest possible address, given the
938 address size. */

Callers 5

read_attributeFunction · 0.85
resolve_addr_indexFunction · 0.85
add_ranges_from_rangesFunction · 0.85
add_ranges_from_rnglistsFunction · 0.85
read_line_programFunction · 0.85

Calls 5

read_byteFunction · 0.85
read_uint16Function · 0.85
read_uint32Function · 0.85
read_uint64Function · 0.85
dwarf_buf_errorFunction · 0.85

Tested by

no test coverage detected