Re: Disassemble arbitrary memory with disas?

Joel Brobecker
2009-05-22T21:44:28Z

> I'm currently debugging a JIT which dynamically generates code, and
> I'd like to disassemble it with the "disas" command in GDB.
>
> However, since there isn't any symbolic information for the buffer in
> which the code is generated, GDB refuses to disassemble.

I think that the "x /i" command should work. Have a look at the GDB
documentation on the "x" command, it should give you more details
about how to use the /something modifiers.

--
Joel