This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] gdb/record-full: Use xmalloc instead of alloca for temporary memory storage.
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: koriakin at 0x04 dot net (Marcin KoÅcielnicki)
- Cc: brobecker at adacore dot com, gdb-patches at sourceware dot org, koriakin at 0x04 dot net (Marcin KoÅcielnicki)
- Date: Wed, 4 Nov 2015 15:21:00 +0100 (CET)
- Subject: Re: [PATCH v2] gdb/record-full: Use xmalloc instead of alloca for temporary memory storage.
- Authentication-results: sourceware.org; auth=none
Marcin KoÅ?cielnicki <koriakin@0x04.net> wrote:
> On the newly added s390 target, it's possible for a single instruction
> to write practically unbounded amount of memory (eg. MVCLE). This caused
> a stack overflow when alloca was used.
>
> gdb/ChangeLog:
>
> * record-full.c (record_full_exec_insn): Use xmalloc for temporary
> memory storage.
This is OK.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com