aboutsummaryrefslogtreecommitdiff
path: root/bfd/pdp11.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-01-15 16:07:16 +1030
committerAlan Modra <amodra@gmail.com>2020-01-16 00:01:13 +1030
commitaad09917e04b33da463f1703aab8d057cfe3f54e (patch)
treedcf1d4382c6f91f58bb66771a768baa7489763ce /bfd/pdp11.c
parent131cb553d6d10412b20cf49bb0e3a5e736a90a36 (diff)
downloadgdb-aad09917e04b33da463f1703aab8d057cfe3f54e.zip
gdb-aad09917e04b33da463f1703aab8d057cfe3f54e.tar.gz
gdb-aad09917e04b33da463f1703aab8d057cfe3f54e.tar.bz2
tic4x disassembly static variables
tic4x uses a number of static variables for tables that are generated depending on the current machine (tic4x vs. tic3x). However, it is possible to change the machine from one invocation of print_insn_tic4x to the next. This patch throws away the old state if that happens, and uses a relatively small known size array of register names rather than a malloc'd table. * tic4x-dis.c (tic4x_version): Make unsigned long. (optab, optab_special, registernames): New file scope vars. (tic4x_print_register): Set up registernames rather than malloc'd registertable. (tic4x_disassemble): Delete optable and optable_special. Use optab and optab_special instead. Throw away old optab, optab_special and registernames when info->mach changes.
Diffstat (limited to 'bfd/pdp11.c')
0 files changed, 0 insertions, 0 deletions