Skip to content

Commit 35e8b19

Browse files
author
Anciety
authored
Merge pull request #61 from ioo0s/master
Fix decompile build error
2 parents 36378a6 + 3862dc3 commit 35e8b19

File tree

5 files changed

+34
-5
lines changed

5 files changed

+34
-5
lines changed

.github/workflows/main.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ jobs:
9595
with:
9696
gradle-version: 7.1.1
9797
arguments: --console plain buildGhidra
98+
- name: "MOVE decompile"
99+
uses: eskatos/gradle-command-action@v1
100+
with:
101+
gradle-version: 7.1.1
102+
arguments: --console plain buildGhidra
103+
- name: "MOVE decompile"
104+
uses: eskatos/gradle-command-action@v1
105+
with:
106+
gradle-version: 7.1.1
107+
arguments: --console plain buildGhidra
98108
- name: "Upload package"
99109
uses: NyaMisty/upload-artifact@nightly
100110
with:

Ghidra/Features/Base/src/test/resources/ghidra/app/util/cparser/CParserTest.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/* ###
2+
* IP: GHIDRA
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
/* ###
217
* IP: Copyright
318
* EXCLUDE: YES

Ghidra/Features/Decompiler/src/decompile/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2018"
88

99
[dependencies]
1010
cxx = "1.0"
11-
clap = "3.0.0-beta.2"
11+
clap = { git = "https://github.com/clap-rs/clap/"}
1212
easy-repl = { git = "https://github.com/Escapingbug/easy-repl.git", branch = "different_types" }
1313
anyhow = "1.0"
1414
serde = { version = "1.0", features = ["derive"] }

Ghidra/Features/Decompiler/src/decompile/build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ const DECOMPILER_SOURCE_BASE_CXX: &[&str] = &[
9292
"string_ghidra.cc",
9393
"xml.cc",
9494
"ruststream.cc",
95-
"testfunction.cc"
95+
"testfunction.cc",
96+
"interface.cc",
97+
"ifacedecomp.cc",
98+
"grammar.cc",
99+
"callgraph.cc"
96100
];
97101

98102
const DECOMPILER_YACC: &[&'static str] = &["xml.y", "grammar.y"];

Ghidra/Features/Decompiler/src/decompile/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
use clap::{Clap, AppSettings};
16+
use clap::{Parser, ColorChoice};
1717
use std::env;
1818

1919
pub mod patch;
@@ -22,9 +22,9 @@ pub mod bridge;
2222
pub mod cli;
2323
mod serde_int;
2424

25-
#[derive(Clap)]
25+
#[derive(Parser)]
2626
#[clap(version = "1.0", author = "BinCraft Team")]
27-
#[clap(setting = AppSettings::ColoredHelp)]
27+
#[clap(color = ColorChoice::Auto)]
2828
struct Opts {
2929
/// commandline debugging mode
3030
#[cfg(debug_assertions)]

0 commit comments

Comments
 (0)