This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Use correct default for target functions that return pointer
- From: Tom Tromey <tromey at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 07 Jan 2014 14:07:47 -0700
- Subject: Re: [PATCH] Use correct default for target functions that return pointer
- Authentication-results: sourceware.org; auth=none
- References: <871u0jbk9i dot fsf at igel dot home>
>>>>> "Andreas" == Andreas Schwab <schwab@linux-m68k.org> writes:
Andreas> * target.c (return_null): Define.
Andreas> (update_current_target): Use it instead of return_zero for
Andreas> functions that return a pointer.
Ok.
FWIW I have a coming massive patch series that removes
nearly all uses of return_zero. After the series there are few enough
uses that we can make this code truly type-safe.
Tom