From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40449 invoked by alias); 28 Apr 2015 15:10:07 -0000 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 Received: (qmail 40436 invoked by uid 89); 28 Apr 2015 15:10:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Apr 2015 15:09:56 +0000 Received: from svr-orw-fem-04.mgc.mentorg.com ([147.34.97.41]) by relay1.mentorg.com with esmtp id 1Yn78z-0000wT-JQ from Sandra_Loosemore@mentor.com ; Tue, 28 Apr 2015 08:09:53 -0700 Received: from [IPv6:::1] (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.3.224.2; Tue, 28 Apr 2015 08:09:53 -0700 Message-ID: <553FA286.2050604@codesourcery.com> Date: Tue, 28 Apr 2015 15:14:00 -0000 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Yao Qi CC: Subject: Re: [patch 0/3, nios2] unbreak nios2-linux-gnu GDB References: <55393E8C.8090804@codesourcery.com> <86iocgwmb5.fsf@gmail.com> In-Reply-To: <86iocgwmb5.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-04/txt/msg01047.txt.bz2 On 04/28/2015 04:59 AM, Yao Qi wrote: > Sandra Loosemore writes: > >> GDB support for nios2-linux-gnu became broken during the time when >> glibc and kernel support for that target was transitioning to the >> upstream repositories. Both ports were accepted around the first of >> the year, but then the initial 3.19 kernel was not usable for testing >> due to some unrelated problems with the ethernet support, it took a >> long time to track down a bug that caused a kernel hang, and then we >> ran into some additional bugs with kernel cache flushing. The icache >> flush issues were fixed in time for the 4.0 kernel release and GDB is >> working pretty well with that kernel version now for manual use, but >> to get consistent results from automated testing I had to apply an >> additional local patch to flush the dcache more aggressively. I >> expect some version of that will make it into future kernel releases >> since Altera is aware of the trouble now. > > In short, with your patches applied, GDB/GDBserver should work well with > kernel 4.0 release (with your local patch to flush dcache), is it a > correct statement? Yes. GDB works well for ordinary manual debugging even without the dcache fix kernel patch (I couldn't reproduce the random failures I saw in automated testing by hand). > Do you have a GDB test summary (number of PASS and > FAIL) to show how well it does now? Sure. This is from dropping mainline GDB into a 2015.05 CodeBench build (GCC 4.9.2, glibc 2.21): # of expected passes 19447 # of unexpected failures 105 # of unexpected successes 1 # of expected failures 31 # of known failures 69 # of unresolved testcases 1 # of untested testcases 67 # of unsupported tests 269 ....which is a big improvement over the status quo of not being usable at all. :-) -Sandra