diff options
Diffstat (limited to 'gdb/cli/cli-decode.h')
-rw-r--r-- | gdb/cli/cli-decode.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h index 1692a6e..241535a 100644 --- a/gdb/cli/cli-decode.h +++ b/gdb/cli/cli-decode.h @@ -94,7 +94,10 @@ struct cmd_list_element { return this->func == nullptr; } void set_context (void *context) - { m_context = context; } + { + gdb_assert (m_context == nullptr); + m_context = context; + } void *context () const { return m_context; } |