Re: disassembly in gdb?

Kevin Buettner
2003-05-22T22:53:29Z

On May 22, 5:24pm, Kumar Gala wrote:

> How does gdb know which disassembler options to use for a given
> architecture target? For example on PPC there are various flags to
> enable such things as SPE, AltiVec, ISEL, etc.
>
> Is there anyway in an existing gdb to have the disassembler understand
> a different subset of opcodes for the architecture?

This is supposed to be handled by the disassembler_options field in
the disassemble_info struct. Unfortunately, I don't see anything
in the public GDB sources which set these options for any of the
PPC cores. (mips and i386 have some code which do this though.)

Kevin