From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21959 invoked by alias); 15 Jan 2011 16:33:11 -0000 Received: (qmail 21947 invoked by uid 22791); 15 Jan 2011 16:33:08 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from a4.complang.tuwien.ac.at (HELO a4.complang.tuwien.ac.at) (128.130.173.65) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 15 Jan 2011 16:33:02 +0000 Received: from anton by a4.complang.tuwien.ac.at with local (Exim 4.69) (envelope-from ) id 1Pe93j-0002gZ-E2; Sat, 15 Jan 2011 17:32:59 +0100 Date: Sat, 15 Jan 2011 16:33:00 -0000 From: Anton Ertl To: =?iso-8859-1?Q?Andr=E9_P=F6nitz?= Cc: "anton@mips.complang.tuwien.ac.at" , gdb@sourceware.org Subject: Re: Dealing with version-specific syntax Message-ID: <20110115163259.GD9736@a4.complang.tuwien.ac.at> Reply-To: anton@mips.complang.tuwien.ac.at References: <20110112192750.GA30525@a4.complang.tuwien.ac.at> <201101130833.40498.andre.poenitz@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201101130833.40498.andre.poenitz@nokia.com> User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2011-01/txt/msg00060.txt.bz2 On Thu, Jan 13, 2011 at 08:33:40AM +0100, André Pönitz wrote: > You could decide what syntax to use in the same session before loading > a file: > > disassemble 0 1 > > will produce either > > Dump of assembler code from 0x0 to 0x1: > 0x00000000: Cannot access memory at address 0x0 > > or > > A syntax error in expression, near `1'. Thank you. I have now taken this approach, outside gdb: http://www.complang.tuwien.ac.at/viewcvs/cgi-bin/viewcvs.cgi/gforth/dis-gdb.fs?annotate=1.12 - anton