Skip to content

Commit

Permalink
more fixes for arg printing
Browse files Browse the repository at this point in the history
  • Loading branch information
peadar committed Jul 8, 2024
1 parent 815879c commit 64b64d9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -879,13 +879,14 @@ RemoteValue::RemoteValue(const Process &p_, Elf::Addr addr_, bool isValue, DIE t
} else {
size = 0;
}
if (!size) {
if (size == 0) {
error = "<no size for type>";
}
buf.resize(size);
auto rc = p.io->read(addr, size, &buf[0]);
if (rc != size) {
error = "<failed to read from remote>";
} else {
buf.resize(size);
auto rc = p.io->read(addr, size, &buf[0]);
if (rc != size) {
error = "<failed to read from remote>";
}
}
}
}
Expand Down

0 comments on commit 64b64d9

Please sign in to comment.