summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/unidasm.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2022-09-14 04:44:28 +1000
committer Vas Crabb <vas@vastheman.com>2022-09-14 04:46:58 +1000
commitf9728327f89e5cadaa36d3ddab9458580a00ac59 (patch)
tree454933e890f7a5113ad521eddc988d009ce5a012 /src/tools/unidasm.cpp
parentef8929995307607be0dd3729ca4c4c5d0c8e1278 (diff)
More miscellaneous fixes:
* Fixed tiny build for consolidated driver files. * tools/unidasm.cpp: Capture big objects by reference in lambdas. * misc/oneshot.cpp: Fixed unsigned comparison to zero bugs.
Diffstat (limited to 'src/tools/unidasm.cpp')
-rw-r--r--src/tools/unidasm.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/unidasm.cpp b/src/tools/unidasm.cpp
index cd5d04d6db6..3751db851a5 100644
--- a/src/tools/unidasm.cpp
+++ b/src/tools/unidasm.cpp
@@ -1477,7 +1477,7 @@ int disasm_file(util::random_read &file, u64 length, options &opts)
if(is_octal) {
switch(granularity) {
case 1:
- dump_raw_bytes = [step = disasm->opcode_alignment(), next_pc, base_buffer](offs_t pc, offs_t size) -> std::string {
+ dump_raw_bytes = [step = disasm->opcode_alignment(), &next_pc, &base_buffer](offs_t pc, offs_t size) -> std::string {
std::string result = "";
for(offs_t i=0; i != size; i++) {
if(i)
@@ -1491,7 +1491,7 @@ int disasm_file(util::random_read &file, u64 length, options &opts)
break;
case 2:
- dump_raw_bytes = [step = disasm->opcode_alignment(), next_pc, base_buffer](offs_t pc, offs_t size) -> std::string {
+ dump_raw_bytes = [step = disasm->opcode_alignment(), &next_pc, &base_buffer](offs_t pc, offs_t size) -> std::string {
std::string result = "";
for(offs_t i=0; i != size; i++) {
if(i)
@@ -1505,7 +1505,7 @@ int disasm_file(util::random_read &file, u64 length, options &opts)
break;
case 4:
- dump_raw_bytes = [step = disasm->opcode_alignment(), next_pc, base_buffer](offs_t pc, offs_t size) -> std::string {
+ dump_raw_bytes = [step = disasm->opcode_alignment(), &next_pc, &base_buffer](offs_t pc, offs_t size) -> std::string {
std::string result = "";
for(offs_t i=0; i != size; i++) {
if(i)
@@ -1519,7 +1519,7 @@ int disasm_file(util::random_read &file, u64 length, options &opts)
break;
case 8:
- dump_raw_bytes = [step = disasm->opcode_alignment(), next_pc, base_buffer](offs_t pc, offs_t size) -> std::string {
+ dump_raw_bytes = [step = disasm->opcode_alignment(), &next_pc, &base_buffer](offs_t pc, offs_t size) -> std::string {
std::string result = "";
for(offs_t i=0; i != size; i++) {
if(i)
@@ -1535,7 +1535,7 @@ int disasm_file(util::random_read &file, u64 length, options &opts)
} else {
switch(granularity) {
case 1:
- dump_raw_bytes = [step = disasm->opcode_alignment(), next_pc, base_buffer](offs_t pc, offs_t size) -> std::string {
+ dump_raw_bytes = [step = disasm->opcode_alignment(), &next_pc, &base_buffer](offs_t pc, offs_t size) -> std::string {
std::string result = "";
for(offs_t i=0; i != size; i++) {
if(i)
@@ -1549,7 +1549,7 @@ int disasm_file(util::random_read &file, u64 length, options &opts)
break;
case 2:
- dump_raw_bytes = [step = disasm->opcode_alignment(), next_pc, base_buffer](offs_t pc, offs_t size) -> std::string {
+ dump_raw_bytes = [step = disasm->opcode_alignment(), &next_pc, &base_buffer](offs_t pc, offs_t size) -> std::string {
std::string result = "";
for(offs_t i=0; i != size; i++) {
if(i)
@@ -1563,7 +1563,7 @@ int disasm_file(util::random_read &file, u64 length, options &opts)
break;
case 4:
- dump_raw_bytes = [step = disasm->opcode_alignment(), next_pc, base_buffer](offs_t pc, offs_t size) -> std::string {
+ dump_raw_bytes = [step = disasm->opcode_alignment(), &next_pc, &base_buffer](offs_t pc, offs_t size) -> std::string {
std::string result = "";
for(offs_t i=0; i != size; i++) {
if(i)
@@ -1577,7 +1577,7 @@ int disasm_file(util::random_read &file, u64 length, options &opts)
break;
case 8:
- dump_raw_bytes = [step = disasm->opcode_alignment(), next_pc, base_buffer](offs_t pc, offs_t size) -> std::string {
+ dump_raw_bytes = [step = disasm->opcode_alignment(), &next_pc, &base_buffer](offs_t pc, offs_t size) -> std::string {
std::string result = "";
for(offs_t i=0; i != size; i++) {
if(i)