mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +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)
|
@if defined(ENDIAN)
|
||||||
reg = tmp;
|
reg = tmp;
|
||||||
@endif
|
@endif
|
||||||
|
@if ENDIAN != "big"
|
||||||
|
reg = N;
|
||||||
|
@endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Dest: loc is op=0 [ loc = inst_next; ] { export loc; }
|
Dest: loc is op=0 [ loc = inst_next; ] { export loc; }
|
||||||
|
|
|
@ -49,6 +49,7 @@ IsDefined:
|
||||||
DefineTest:
|
DefineTest:
|
||||||
( '(' test=DefineTest ')'
|
( '(' test=DefineTest ')'
|
||||||
| symref=DefineSym OP_EQUAL value=(STRING|intvalue|ID)
|
| 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) )?
|
| isdefined=IsDefined ) ( (OP_BOOL_AND andtest=DefineTest) | (OP_BOOL_OR ortest=DefineTest) )?
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue