This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Fix gdb.base/define.exp
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 28 Nov 2006 10:17:36 -0500
- Subject: Re: Fix gdb.base/define.exp
- References: <456551AE.6020604@codesourcery.com>
On Thu, Nov 23, 2006 at 07:45:50AM +0000, Nathan Sidwell wrote:
> the define.exp test requires malloc to be in the target executable
>
> whilenospace
> evaluation of this expression requires the program to have a function
> "malloc".
> (gdb) FAIL: gdb.base/define.exp: test whilenospace is parsed correctly
>
> This patch forces malloc to be there. ok?
OK. If you want, actually call the function somewhere; some compilers
(like ARM's I think?) default to the equivalent of --gc-sections.
--
Daniel Jacobowitz
CodeSourcery