parameters: (val, name)
docstring: Check whether @p val (gdb.Value) has a field named @p name
docstring_summary: Check whether
docstring_tokens: Check whether
function: def has_field(val, name):
      """Check whether @p val (gdb.Value) has a field named @p name"""
      try:
          val[name]
          return True
      except Exception:
          return False
function_tokens: def has_field ( val , name ) : try : val [ name ] return True except Exception : return False