From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] GUD-MI's disassembly buffer should follow $PC in the absence of debug information. Date: Tue, 31 Jan 2012 18:53:44 +1300 Message-ID: <20263.33256.329678.646727@totara.tehura.co.nz> References: <1327828662.12356.4.camel@totara.tehura.co.nz> <1327960358.2892.5.camel@garuda3.sysenter> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327991124 7262 80.91.229.3 (31 Jan 2012 06:25:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2012 06:25:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: ksrenevasan@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 31 07:25:23 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 1Rs79f-0005Vw-99 for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2012 07:25:23 +0100 Original-Received: from localhost ([::1]:34322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs79e-0000WM-Ob for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2012 01:25:22 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs79b-0000W6-Sj for emacs-devel@gnu.org; Tue, 31 Jan 2012 01:25:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rs79Z-0003Jj-5k for emacs-devel@gnu.org; Tue, 31 Jan 2012 01:25:19 -0500 Original-Received: from snapmx1.ironport.snap.net.nz ([202.37.100.100]:11650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs79Y-0003Jf-R8 for emacs-devel@gnu.org; Tue, 31 Jan 2012 01:25:17 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvwEAOmAJ09vRfiH/2dsb2JhbABDrmSCdwEBAQQ6PxALGC4sK8EyE4pvAQUCAgkFDAcGAQoCAgMGAgQCAQQCAgYEDwMDAQSCdAMIFQkDAQteDQZAgxwElR6SaA X-IronPort-AV: E=Sophos;i="4.71,594,1320577200"; d="scan'208";a="94486845" Original-Received: from rupert.snap.net.nz ([202.37.100.140]) by smtp1.ironport.snap.net.nz with ESMTP; 31 Jan 2012 18:53:44 +1300 X-Sender-IP: 111.69.248.135 X-Sender-IP: 111.69.248.135 Original-Received: from totara (135.248.69.111.dynamic.snap.net.nz [111.69.248.135]) by rupert.snap.net.nz (Postfix) with ESMTP id 869D11FD26; Tue, 31 Jan 2012 18:53:44 +1300 (NZDT) Original-Received: by totara (Postfix, from userid 1000) id 68452118E94; Tue, 31 Jan 2012 18:53:44 +1300 (NZDT) In-Reply-To: <1327960358.2892.5.camel@garuda3.sysenter> X-Mailer: VM 7.19 under Emacs 23.1.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 202.37.100.100 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:148057 Archived-At: Kaushik Srenevasan writes: > On Sun, 2012-01-29 at 22:17 +1300, Nick Roberts wrote: > > That looks fine but would it be better to place the overlay arrow > > further down the window so that the user can see previous instructions? > > > > e.g, > > > > "-data-disassemble -s \"$pc - 80\" -e \"$pc + 80\" -- 0" > > Yes, that would definitely be useful except I couldn't figure out how to > reliably get to an instruction boundary while subtracting from $PC. GDB > doesn't seem to do it automatically. Ideas? 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. Nick