Re: gdb says that "disassemble /m" is not a valid command

Thomas Schwinge <[email protected]> Fri, 14 Aug 2009 10:22:39 +0200
Newsgroups gmane.comp.gdb.general
Message-ID <[email protected]>
Hello!

On Wed, Aug 12, 2009 at 07:44:35PM +0300, Nikos Chantziaras wrote:
>   (gdb) disassemble /m
>   A syntax error in expression, near `/m'.
> 
> Is the documentation out of date?  How do I get source and assembly at 
> the same time?  "help disassemble" doesn't say anything about "/m" and 
> neither the gdb info pages.

Your version of GDB is too old, or this feature is too new: it is
available since 2008-05-05 only, whereas GDB 6.8 has been released on
2008-03-27 already.

What you can use, outside of the debugger, is ``objdump -S''.


Regards,
 Thomas
signature.asc (application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFKhR7OsmqaiQAHQR4RAh2lAJ4tJboHS/cYE5I90h+sL8WshtoGFgCgtTRb
fJOmeTIL8uIhR70oaj2m6k0=
=h1Ge
-----END PGP SIGNATURE-----