This is the mail archive of the gdb-patches@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: [RFC] Add support for Renesas RX architecture


> Rather, it's that such support was always planned, it just needed
> someone to add it.

For the record, here's the limitations I've found...

* The opcode descriptions are generated by exploding macros to get all
  the prefix/operand byte permutations (about 12,000 total).  I.e. a
  single variable-length opcode is converted into dozens of
  fixed-length opcodes.  Regenerating takes about an hour, and
  maintenance is a nightmare.

* cgen doesn't handle the opcode-vs-decodable bits in m32c very well.
  The hash table has nothing left to work with (every bit is an
  operand in *some* opcode), so the disassembler takes a noticably
  long time starting up, especially given that the exploding macros
  create many opcodes to hash.

* The disassembler always reads MAX(opsize) bytes, so the .text
  sections have to be padded with NOP bytes to prevent crashes.


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