summaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r--gdb/gdbtypes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 9254ec994e3..319a7731bca 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -340,6 +340,11 @@ struct dynamic_prop
m_data.const_val = const_val;
}
+ /* Return true if this property has a constant value, false
+ otherwise. */
+ bool is_constant () const
+ { return m_kind == PROP_CONST; }
+
const dwarf2_property_baton *baton () const
{
gdb_assert (m_kind == PROP_LOCEXPR