ctf.c: Fix int/enum implicit cast
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 27 Oct 2015 14:53:24 +0000 (10:53 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 27 Oct 2015 14:54:21 +0000 (10:54 -0400)
commite0d13cbd4bcec3e8136925a3a07f85e58187da06
tree20f0fd1f63bd5eecd67ebbe625f424bee50d84c3
parent4666280441d1a8d3479d45f1ec5b67cf83d58f35
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.
gdb/ChangeLog
gdb/ctf.c
This page took 0.025471 seconds and 4 git commands to generate.