aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-io.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-06-17 11:39:11 +0200
committerMartin Liska <mliska@suse.cz>2021-06-17 11:39:11 +0200
commitc0954059dba9b369439bcb77643655e42f9a181e (patch)
tree59875b816a8cf8511a530f315f83854899e26ae2 /gcc/gcov-io.h
parenta4fc63e0c3c6c7b895225c883137d152743be7fc (diff)
downloadgcc-c0954059dba9b369439bcb77643655e42f9a181e.zip
gcc-c0954059dba9b369439bcb77643655e42f9a181e.tar.gz
gcc-c0954059dba9b369439bcb77643655e42f9a181e.tar.bz2
gcov: update documentation entry about string format
gcc/ChangeLog: * gcov-io.h: Update documentation entry about string format.
Diffstat (limited to 'gcc/gcov-io.h')
-rw-r--r--gcc/gcov-io.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h
index f7584eb..ff92afe 100644
--- a/gcc/gcov-io.h
+++ b/gcc/gcov-io.h
@@ -42,15 +42,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
Numbers are recorded in the 32 bit unsigned binary form of the
endianness of the machine generating the file. 64 bit numbers are
- stored as two 32 bit numbers, the low part first. Strings are
- padded with 1 to 4 NUL bytes, to bring the length up to a multiple
- of 4. The number of 4 bytes is stored, followed by the padded
+ stored as two 32 bit numbers, the low part first.
+ The number of bytes is stored, followed by the
string. Zero length and NULL strings are simply stored as a length
of zero (they have no trailing NUL or padding).
int32: byte3 byte2 byte1 byte0 | byte0 byte1 byte2 byte3
int64: int32:low int32:high
- string: int32:0 | int32:length char* char:0 padding
+ string: int32:0 | int32:length char* char:0
padding: | char:0 | char:0 char:0 | char:0 char:0 char:0
item: int32 | int64 | string