From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29989 invoked by alias); 21 Aug 2008 10:37:53 -0000 Received: (qmail 29979 invoked by uid 22791); 21 Aug 2008 10:37:52 -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, 21 Aug 2008 10:37:18 +0000 Received: (qmail 15158 invoked from network); 21 Aug 2008 10:37:16 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 21 Aug 2008 10:37:16 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: About displaced-stepping function Date: Thu, 21 Aug 2008 17:11:00 -0000 User-Agent: KMail/1.9.9 Cc: teawater References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808211138.04006.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2008-08/txt/msg00239.txt.bz2 On Thursday 21 August 2008 03:06:14, teawater wrote: > Hi guys, > > I used GDB cvs version to debug the KGDB and got a memory error. > I found that "displaced-stepping" function cause this error. And when > I use command "maintenance set can-use-displaced-stepping 0" close > this function. Everything is OK. > Did anyone meet this bug too? > Does debugging with against KGDB use the same gdbarch as debugging a linux app? Is there no separate OSABI or something? This is probably displaced stepping on x86 trying to use the entry point as scratch space, but it's most likely not possible to do that. -- Pedro Alves