att parser: support for more mnemonic

found some 'jg,pt' in icc/mkl generated binaries which crashed the
parser, here an example:
 dd8ccd:   3e 7f 90   jg,pt  dd8c60 <mkl_blas_avx2_dtrsm_kernel...
This commit is contained in:
jdomke
2021-01-05 15:26:22 +09:00
parent 3c7971b347
commit 4f8ed13309

View File

@@ -158,7 +158,7 @@ class ParserX86ATT(BaseParser):
# Instructions
# Mnemonic
mnemonic = pp.ZeroOrMore(pp.Literal('data16') | pp.Literal('data32')) + pp.Word(
pp.alphanums
pp.alphanums + ','
).setResultsName('mnemonic')
# Combine to instruction form
operand_first = pp.Group(