From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1600 invoked by alias); 24 Jan 2012 02:44:19 -0000 Received: (qmail 1591 invoked by uid 22791); 24 Jan 2012 02:44:18 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-qw0-f41.google.com (HELO mail-qw0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Jan 2012 02:44:05 +0000 Received: by qadc11 with SMTP id c11so2290237qad.0 for ; Mon, 23 Jan 2012 18:44:04 -0800 (PST) Received: by 10.224.192.10 with SMTP id do10mr12447762qab.50.1327373044189; Mon, 23 Jan 2012 18:44:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.100.14 with HTTP; Mon, 23 Jan 2012 18:43:43 -0800 (PST) In-Reply-To: <201201231329.q0NDTGAR004332@d06av02.portsmouth.uk.ibm.com> References: <201201231329.q0NDTGAR004332@d06av02.portsmouth.uk.ibm.com> From: Nicholas Sherlock Date: Tue, 24 Jan 2012 02:44:00 -0000 Message-ID: Subject: Re: ARM EABI Linux, breakpoints cause SIGILL and target dies To: Ulrich Weigand Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00070.txt.bz2 On 24 January 2012 02:29, Ulrich Weigand wrote: > If this does not work correctly for some reason, this would explain > both why GDB doesn't recognize the situation *and* also why the > kernel doesn't recognize the breakpoint instruction to convert the > signal into a SIGTRAP. Yeah, that sounds likely. > Do you see any differences either here in traps.c, or in one of the > entry-*.S assembler files, between your two kernels? Thanks for the pointer! I found the commit that fixed this bug in the ARM kernel entry routine: https://github.com/cyanogen/cm-kernel-exp/commit/d12aee22b3e025a4b76d4078f76542ea8cbd0315#diff-0 I'll port that patch over to my kernel and see if it fixes GDB. Cheers, Nicholas Sherlock