aboutsummaryrefslogtreecommitdiff
path: root/libiberty/pex-unix.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-03-20 10:16:28 +1030
committerAlan Modra <amodra@gmail.com>2020-03-20 12:35:51 +1030
commit833d919c93d52644173d587a6fc8e4dd36edc49e (patch)
tree84c6ed121c7730946bb995184cc572f44628de33 /libiberty/pex-unix.c
parenta859124df20f6544dbef96084e4e024bccebd853 (diff)
downloadgdb-833d919c93d52644173d587a6fc8e4dd36edc49e.zip
gdb-833d919c93d52644173d587a6fc8e4dd36edc49e.tar.gz
gdb-833d919c93d52644173d587a6fc8e4dd36edc49e.tar.bz2
PowerPC disassembly of odd sized sections
We shouldn't really decode a 2-byte left-over at the end of a section as if the section contains two more bytes of zeros. Not that it matters very much, but this patch tidies the corner case. * ppc-dis.c (print_insn_powerpc): Only clear needed bytes of partially filled buffer. Prevent lookup of 4-byte insns when only VLE 2-byte insns are possible due to section size. Print ".word" rather than ".long" for 2-byte leftovers.
Diffstat (limited to 'libiberty/pex-unix.c')
0 files changed, 0 insertions, 0 deletions