This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Readline bug causes GDB crash on 64-bit
On Fri, Oct 20, 2006 at 11:10:43PM +0200, Ulrich Weigand wrote:
> Hello,
>
> GDB on s390x (64-bit) is crashing when you press ctrl-V.
> This is because xmalloc is used without prototype in scope
> in _rl_callback_data_alloc (readline/callback.c), and thus
> the returned pointer is improperly truncated/extended.
>
> Fixed by including "xmalloc.h". Tested on s390x-ibm-linux.
>
> What's the policy for readline bugs in GDB? It is OK to check
> this patch into GDB, or does it have to go upstream first?
> (Where is readline upstream?)
I don't want to mess with a readline import just now. So, unless you
want to try it, this patch is fine for now.
--
Daniel Jacobowitz
CodeSourcery