From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushik Srenevasan Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] GUD-MI's disassembly buffer should follow $PC in the absence of debug information. Date: Mon, 30 Jan 2012 23:19:56 -0800 Message-ID: <1327994396.10781.11.camel@garuda3.sysenter> References: <1327828662.12356.4.camel@totara.tehura.co.nz> <1327960358.2892.5.camel@garuda3.sysenter> <20263.33256.329678.646727@totara.tehura.co.nz> Reply-To: ksrenevasan@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327994476 27433 80.91.229.3 (31 Jan 2012 07:21:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2012 07:21:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 31 08:21:15 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rs81j-0007wb-DB for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2012 08:21:15 +0100 Original-Received: from localhost ([::1]:52156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs81i-0006mG-62 for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2012 02:21:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs81b-0006m4-Sq for emacs-devel@gnu.org; Tue, 31 Jan 2012 02:21:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rs81X-00025K-Ol for emacs-devel@gnu.org; Tue, 31 Jan 2012 02:21:07 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:32959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs81X-00025D-LS for emacs-devel@gnu.org; Tue, 31 Jan 2012 02:21:03 -0500 Original-Received: by iagz16 with SMTP id z16so629550iag.0 for ; Mon, 30 Jan 2012 23:21:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=MbJPXPbwpu8TG/ER4jJ3dwHqqejS4Z0s9IzfYJFAd4Y=; b=GJEbtVmUHKhvV13KfGAFCE1bgG1V47E54MBcAygQSynGoBK/9lUl4Y4ZTbNmCr94BN JnF8iIMPSKm3MUoBGymlb9f2XHpLXZcGxqIbZacNAUd5n3XCyWja232hxInljCOJPwJk Y2NbuXQXdEi8jAHYylwXO3oGLqJoovA9wKmL0= Original-Received: by 10.50.36.230 with SMTP id t6mr20897319igj.5.1327994462843; Mon, 30 Jan 2012 23:21:02 -0800 (PST) Original-Received: from [192.168.2.3] (c-98-237-183-126.hsd1.wa.comcast.net. [98.237.183.126]) by mx.google.com with ESMTPS id g34sm20960695ibk.10.2012.01.30.23.21.01 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Jan 2012 23:21:01 -0800 (PST) In-Reply-To: <20263.33256.329678.646727@totara.tehura.co.nz> X-Mailer: Evolution 2.30.3 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148059 Archived-At: On Tue, 2012-01-31 at 18:53 +1300, Nick Roberts wrote: > It seemed work OK when I tried it on x86_64. I don't know in what situations > it wouldn't work or how to fix it when it doesn't. > It generally works except, AFAIK, when making a call where both the callee and the caller don't have debug information. In such a situation, executing a step while stopped at a CALL instruction produces the wrong disassembly. There are other GDB commands too (such as NEXTI) that don't work when both the caller and callee don't have debug information, that I'm trying to fix (in GDB); and would prefer to fix GUD-MI (to display a few instructions before $PC) once GDB works as expected in these cases. What do you think? -Kaushik