This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Dealing with version-specific syntax
- From: Anton Ertl <anton at mips dot complang dot tuwien dot ac dot at>
- To: André Pönitz <andre dot poenitz at nokia dot com>
- Cc: "anton at mips dot complang dot tuwien dot ac dot at" <anton at mips dot complang dot tuwien dot ac dot at>, gdb at sourceware dot org
- Date: Sat, 15 Jan 2011 17:32:59 +0100
- Subject: Re: Dealing with version-specific syntax
- References: <20110112192750.GA30525@a4.complang.tuwien.ac.at> <201101130833.40498.andre.poenitz@nokia.com>
- Reply-to: anton at mips dot complang dot tuwien dot ac dot at
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