From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11567 invoked by alias); 19 Sep 2012 11:14:43 -0000 Received: (qmail 11554 invoked by uid 22791); 19 Sep 2012 11:14:42 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Sep 2012 11:14:27 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8JBER0P002963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 19 Sep 2012 07:14:27 -0400 Received: from host2.jankratochvil.net (ovpn-113-58.phx2.redhat.com [10.3.113.58]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q8JBEN1E028513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 19 Sep 2012 07:14:26 -0400 Date: Wed, 19 Sep 2012 11:14:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: Re: [RFA 4/4 take 2] Improved linker-debugger interface Message-ID: <20120919111422.GA17988@host2.jankratochvil.net> References: <20120719110518.GE16185@redhat.com> <20120815172346.GA5696@host2.jankratochvil.net> <20120919094933.GA3023@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120919094933.GA3023@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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: 2012-09/txt/msg00386.txt.bz2 Hi Gary, On Wed, 19 Sep 2012 11:49:34 +0200, Gary Benson wrote: > How do I configure/build/test gdb so that it is using linux-low.c? > I've updated the tests to work with gdbserver, but with my current > setup solib-svr4.c is being used, so all the tests are passing. it is enough to use gdbserver: http://sourceware.org/gdb/wiki/TestingGDB#Testing_gdbserver_in_a_native_configuration I have put there a debug dump and for example for gdb.base/return.exp it really prints several SVR4:PASS and no SVR4:FAIL. There are some corner cases where solib-svr4.c logic may be used but those are only rare and discussed in some past gdb-patches mails. Could you be more specific how do you run the test and how have you found gdb/gdbserver/linux-low.c is not used? Thanks, Jan diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 3d60aa1..4a431f3 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1277,8 +1277,10 @@ svr4_current_sos (void) info->main_lm_addr = library_list.main_lm; } +puts("SVR4:PASS"); return library_list.head ? library_list.head : svr4_default_sos (); } +puts("SVR4:FAIL"); info = get_svr4_info ();