mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-0_emteere minor SleighEditor bug fix for @if "!=" comparison
This commit is contained in:
parent
3e5a244838
commit
b966f85f76
2 changed files with 4 additions and 0 deletions
|
@ -110,6 +110,9 @@ class SleighParsingTest {
|
|||
@if defined(ENDIAN)
|
||||
reg = tmp;
|
||||
@endif
|
||||
@if ENDIAN != "big"
|
||||
reg = N;
|
||||
@endif
|
||||
}
|
||||
|
||||
Dest: loc is op=0 [ loc = inst_next; ] { export loc; }
|
||||
|
|
|
@ -49,6 +49,7 @@ IsDefined:
|
|||
DefineTest:
|
||||
( '(' test=DefineTest ')'
|
||||
| symref=DefineSym OP_EQUAL value=(STRING|intvalue|ID)
|
||||
| symref=DefineSym OP_NOTEQUAL value=(STRING|intvalue|ID)
|
||||
| isdefined=IsDefined ) ( (OP_BOOL_AND andtest=DefineTest) | (OP_BOOL_OR ortest=DefineTest) )?
|
||||
;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue