This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] initialize err variable in load_section_callback()
- From: Paul Schlie <schlie at comcast dot net>
- To: <gdb-patches at sources dot redhat dot com>
- Date: Thu, 02 Dec 2004 09:44:46 -0500
- Subject: Re: [RFA] initialize err variable in load_section_callback()
Might it be possible to "OK" the check in of Theodore Roth's
load_section_callback() bug-fix patch into both 6.3 and head,
that he proposed earlier in October? (as otherwise GDB can't
write/update the memory contents of affected platforms/targets).
http://sources.redhat.com/ml/gdb-patches/2004-10/msg00324.html
(This is likely the most reliable fix for this problem, as without
properly initializing the err variable introduced in this function,
it's initial value is indeterminate, and otherwise fragilely relies
on subsequent function calls signaling both success and failure,
although traditionally only errors are typically signaled though
this means.)