This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] smart pointer support
>>>>> "Sami" == sami wagiaalla <swagiaal@redhat.com> writes:
Tom> This seems strange. When can the result here be NULL? And what does
Tom> that mean? It seems like this either ought to be impossible, or it
Tom> should be an error of some kind.
Sami> Yes this is incorrect. value_x_unop never returns null. If the
Sami> operator is not found it throws an error. I added a try catch
Sami> statement and tests for the failing case.
Why a try/catch? I would think that letting any error propagate would
be more appropriate.
Tom