This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dealing with version-specific syntax


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]