This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [python] Fix infpy_read_memory cleanups handling
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: archer at sourceware dot org
- Date: Mon, 03 Aug 2009 11:31:01 -0600
- Subject: Re: [python] Fix infpy_read_memory cleanups handling
- References: <20090802023330.GA29951@host0.dyn.jankratochvil.net>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> [ Not checked-in for archer-tromey-python. ]
Jan> It was crashing gdb.python/python-value.exp during a Fedora merge.
Jan> * python/python-inferior.c (infpy_read_memory): No longer initialize
Jan> cleanups to NULL, initialize it by null_cleanup later. Do not
Jan> reinitialize null_cleanup by xfree make_cleanup. Call do_cleanups on
Jan> any error exit path.
Looks good, please push it to archer-tromey-python.
Thanks.
Tom