mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-26 03:46:08 +08:00
GP-0_emteere minor SleighEditor bug fix for @if "!=" comparison
This commit is contained in:
+3
@@ -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; }
|
||||
|
||||
+1
@@ -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) )?
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user