aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-27 10:53:24 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-10-27 10:54:21 -0400
commite0d13cbd4bcec3e8136925a3a07f85e58187da06 (patch)
tree20f0fd1f63bd5eecd67ebbe625f424bee50d84c3 /gdb/language.h
parent4666280441d1a8d3479d45f1ec5b67cf83d58f35 (diff)
downloadgdb-e0d13cbd4bcec3e8136925a3a07f85e58187da06.zip
gdb-e0d13cbd4bcec3e8136925a3a07f85e58187da06.tar.gz
gdb-e0d13cbd4bcec3e8136925a3a07f85e58187da06.tar.bz2
ctf.c: Fix int/enum implicit cast
This patch was taken directly from Pedro's branch. Right now, SET_INT32_FIELD is used to set enum fields. This works in C, but not C++. Therefore, define the new SET_ENUM_FIELD, which casts the value to the right enum type. gdb/ChangeLog: * ctf.c (SET_ENUM_FIELD): New macro. (ctf_read_status): Use it. (ctf_read_tp): Use it.
Diffstat (limited to 'gdb/language.h')
0 files changed, 0 insertions, 0 deletions