From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123561 invoked by alias); 23 Apr 2015 18:49:47 -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 123542 invoked by uid 89); 23 Apr 2015 18:49:46 -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,T_FROM_12LTRDOM 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; Thu, 23 Apr 2015 18:49:45 +0000 Received: from svr-orw-fem-05.mgc.mentorg.com ([147.34.97.43]) by relay1.mentorg.com with esmtp id 1YlMBy-0002f2-2P from Sandra_Loosemore@mentor.com ; Thu, 23 Apr 2015 11:49:42 -0700 Received: from [IPv6:::1] (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.3.224.2; Thu, 23 Apr 2015 11:49:41 -0700 Message-ID: <55393E8C.8090804@codesourcery.com> Date: Thu, 23 Apr 2015 18:49: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 Subject: [patch 0/3, nios2] unbreak nios2-linux-gnu GDB Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-04/txt/msg00904.txt.bz2 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. There are 3 patches: (1) revert to using "trap 31" for breakpoints (2) use PTRACE_GETREGSET/SETREGSET in gdbserver (3) fixes for new implementation of signal handler trampolines Since the old out-of-tree kernel/glibc ports are now obsolete, we haven't tried to maintain backward compatibility in these patches. Yao, I noticed that you haven't updated your e-mail address in MAINTAINERS; are you still acting as nios2 maintainer? -Sandra