diff options
author | Alan Modra <amodra@gmail.com> | 2024-02-15 11:12:01 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-02-15 11:24:13 +1030 |
commit | 2fbbadc2c336cad228be998a118e3bab3be30757 (patch) | |
tree | ff430b7baafaabf784d228c71918b0be9f9cf6d2 /gdb/python/py-disasm.c | |
parent | cf95b909e2c29476525da29bfb4f0d2c8211e8b6 (diff) | |
download | binutils-2fbbadc2c336cad228be998a118e3bab3be30757.zip binutils-2fbbadc2c336cad228be998a118e3bab3be30757.tar.gz binutils-2fbbadc2c336cad228be998a118e3bab3be30757.tar.bz2 |
PR30308, infinite recursion in i386_intel_simplify
This patch exposes the symbol "resolving" flag for use in
i386_intel_simplify, not only preventing infinite recursion on the
testcase in the PR but also more complicated cases like:
.intel_syntax
b = a
a = b
mov eax, [a]
PR 30308
* symbols.c (symbol_mark_resolving, symbol_clear_resolving),
(symbol_resolving_p): New functions.
* symbols.h: Declare them.
* config/tc-i386-intel.c (i386_intel_simplify): Delete forward
declaration. Formatting.
(i386_intel_simplify_symbol): Use resolving flag to prevent
infinite recursion.
Diffstat (limited to 'gdb/python/py-disasm.c')
0 files changed, 0 insertions, 0 deletions