aboutsummaryrefslogtreecommitdiff
path: root/include/ctf.h
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-06-03 11:38:08 +0100
committerNick Alcock <nick.alcock@oracle.com>2019-06-04 17:05:08 +0100
commita610aa4f9cf61d38b8e0fe60dfaac078d636089f (patch)
tree00dfe5377dbe4479dda5a80da62ecb9448e1f5f4 /include/ctf.h
parent9186c494a3bb61a55a29ec04aa0d1684a8c46838 (diff)
downloadgdb-a610aa4f9cf61d38b8e0fe60dfaac078d636089f.zip
gdb-a610aa4f9cf61d38b8e0fe60dfaac078d636089f.tar.gz
gdb-a610aa4f9cf61d38b8e0fe60dfaac078d636089f.tar.bz2
libctf: fix the type of ctf_enum.cte_value
This stops the file format from depending on the size of the host int. (It does mean that we cannot encode enums with a value > 2^32 on platforms with an int > 2^32: this will be fixed in the next format revision.) include/ * ctf.h (ctf_enum.cte_value): Fix type to int32_t.
Diffstat (limited to 'include/ctf.h')
-rw-r--r--include/ctf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ctf.h b/include/ctf.h
index 2c3384f..e99a673 100644
--- a/include/ctf.h
+++ b/include/ctf.h
@@ -507,7 +507,7 @@ typedef struct ctf_lmember_v2
typedef struct ctf_enum
{
uint32_t cte_name; /* Reference to name in string table. */
- int cte_value; /* Value associated with this name. */
+ int32_t cte_value; /* Value associated with this name. */
} ctf_enum_t;
/* The ctf_archive is a collection of ctf_file_t's stored together. The format