Skip to content

Commit

Permalink
Update rizin to latest dev (#3266)
Browse files Browse the repository at this point in the history
Some fields were changed from RzList to RzPVector in Rizin.
  • Loading branch information
thestr4ng3r authored Nov 19, 2023
1 parent 7256fbb commit 653435c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion rizin
Submodule rizin updated 57 files
+4 −0 librz/analysis/dwarf_process.c
+1 −1 librz/analysis/fcn.c
+244 −0 librz/analysis/hexagon_dwarf_reg_num_table.inc
+11 −8 librz/analysis/p/analysis_arm_cs.c
+3 −3 librz/analysis/var.c
+422 −421 librz/asm/arch/hexagon/hexagon_disas.c
+50 −50 librz/asm/arch/hexagon/hexagon_insn.h
+30 −12 librz/bin/bin.c
+3 −1 librz/bin/bin_language.c
+7 −7 librz/bin/bobj.c
+5 −4 librz/bin/bobj_process_field.c
+2 −2 librz/bin/bobj_process_file.c
+7 −7 librz/bin/format/dex/dex.c
+1 −1 librz/bin/format/dex/dex.h
+1 −1 librz/bin/format/elf/elf.h
+6 −6 librz/bin/format/elf/elf_info.c
+13 −12 librz/bin/format/java/class_bin.c
+1 −1 librz/bin/format/java/class_bin.h
+4 −4 librz/bin/format/le/le.c
+1 −1 librz/bin/format/le/le.h
+6 −6 librz/bin/format/mach0/mach0.c
+1 −1 librz/bin/format/mach0/mach0.h
+2 −2 librz/bin/p/bin_coff.c
+1 −1 librz/bin/p/bin_dex.c
+6 −6 librz/bin/p/bin_dmp64.c
+7 −7 librz/bin/p/bin_elf.inc
+1 −1 librz/bin/p/bin_java.c
+4 −4 librz/bin/p/bin_mach0.c
+5 −5 librz/bin/p/bin_mdmp.c
+1 −1 librz/bin/p/bin_nro.c
+1 −1 librz/bin/p/bin_p9.c
+4 −4 librz/bin/p/bin_pe.c
+4 −5 librz/bin/p/bin_pe.inc
+4 −4 librz/bin/p/bin_pe64.c
+1 −1 librz/bin/p/bin_wasm.c
+3 −3 librz/bin/p/bin_xbe.c
+5 −2 librz/core/analysis_objc.c
+11 −7 librz/core/cbin.c
+15 −10 librz/core/cfile.c
+2 −2 librz/core/tui/visual.c
+6 −6 librz/core/tui/vmenus.c
+42 −17 librz/flag/flag.c
+7 −8 librz/include/rz_bin.h
+3 −0 librz/include/rz_vector.h
+21 −21 librz/main/rz-diff.c
+7 −0 librz/type/format.c
+19 −0 librz/util/vector.c
+42 −0 test/db/analysis/arm
+8 −7 test/db/archos/darwin-arm64/dbg
+53 −0 test/db/asm/hexagon
+7 −0 test/db/cmd/types
+1 −1 test/db/formats/elf/helloworld-gcc-elf
+20 −20 test/db/formats/elf/reloc
+1 −1 test/db/formats/mach0/relocs
+1 −1 test/db/formats/mach0/thumb
+39 −0 test/unit/test_flags.c
+15 −0 test/unit/test_vector.c
8 changes: 2 additions & 6 deletions src/core/Cutter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3226,23 +3226,19 @@ QList<HeaderDescription> CutterCore::getAllHeaders()
if (!bf) {
return {};
}
const RzList *fields = rz_bin_object_get_fields(bf->o);
const RzPVector *fields = rz_bin_object_get_fields(bf->o);
if (!fields) {
return {};
}
RzListIter *iter;
RzBinField *field;
QList<HeaderDescription> ret;

CutterRzListForeach (fields, iter, RzBinField, field) {
for (auto field : CutterPVector<RzBinField>(fields)) {
HeaderDescription header;
header.vaddr = field->vaddr;
header.paddr = field->paddr;
header.value = RZ_STR_ISEMPTY(field->comment) ? "" : field->comment;
header.name = field->name;
ret << header;
}

return ret;
}

Expand Down
4 changes: 2 additions & 2 deletions src/widgets/Dashboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ void Dashboard::updateContents()
setPlainText(ui->percentageLineEdit, QString::number(precentage) + "%");

ui->libraryList->setPlainText("");
const RzList *libs = bf ? rz_bin_object_get_libs(bf->o) : nullptr;
const RzPVector *libs = bf ? rz_bin_object_get_libs(bf->o) : nullptr;
if (libs) {
QString libText;
bool first = true;
for (const auto &lib : CutterRzList<char>(libs)) {
for (const auto &lib : CutterPVector<char>(libs)) {
if (!first) {
libText.append("\n");
}
Expand Down

0 comments on commit 653435c

Please sign in to comment.