This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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.
Attachment:
smart_pointer.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |