From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24470 invoked by alias); 23 Nov 2006 07:45:08 -0000 Received: (qmail 24458 invoked by uid 22791); 23 Nov 2006 07:45:07 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 23 Nov 2006 07:45:03 +0000 Received: (qmail 17035 invoked from network); 23 Nov 2006 07:45:01 -0000 Received: from unknown (HELO ?192.168.189.103?) (nathan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 23 Nov 2006 07:45:01 -0000 Message-ID: <456551AE.6020604@codesourcery.com> Date: Thu, 23 Nov 2006 07:45:00 -0000 From: Nathan Sidwell User-Agent: Thunderbird 1.5.0.8 (X11/20061115) MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Fix gdb.base/define.exp Content-Type: multipart/mixed; boundary="------------080109080402080500050200" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00276.txt.bz2 This is a multi-part message in MIME format. --------------080109080402080500050200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 442 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? nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk --------------080109080402080500050200 Content-Type: text/plain; name="all.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="all.diff" Content-length: 793 2006-11-22 Nathan Sidwell * gdb.base/break.c (need_malloc): New. Index: testsuite/gdb.base/break.c =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/break.c,v retrieving revision 1.5 diff -c -3 -p -r1.5 break.c *** testsuite/gdb.base/break.c 13 Jun 2006 08:46:17 -0000 1.5 --- testsuite/gdb.base/break.c 22 Nov 2006 15:17:42 -0000 *************** extern void marker3 (); *** 66,71 **** --- 66,78 ---- extern void marker4 (); #endif + /* We're used by a test that requires malloc, so make sure it is in + the executable. */ + void *need_malloc () + { + return malloc (1); + } + /* * This simple classical example of recursion is useful for * testing stack backtraces and such. --------------080109080402080500050200--