[PATCH] gdbsupport: add debug assertions in gdb::optional::get

Simon Marchi simon.marchi@polymtl.ca
Tue Aug 3 12:56:29 GMT 2021



On 2021-08-02 1:19 p.m., Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> Simon> The libstdc++ version of optional contains some runtime checks enabled
> Simon> when _GLIBCXX_DEBUG is defined.  I think it would be useful if our
> Simon> version contained similar checks.
> 
> I agree.  The patch looks good to me.
> 
> Tom
> 

Thanks, pushed.

Simon


More information about the Gdb-patches mailing list