Dealing with version-specific syntax

Anton Ertl anton@mips.complang.tuwien.ac.at
Sat Jan 15 16:33:00 GMT 2011


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



More information about the Gdb mailing list