Browse Source

Merge pull request #2236 from riscv-software-src/fix-2235

Don't error out if program buffer has size 0
pull/2210/merge
Andrew Waterman 1 month ago
committed by GitHub
parent
commit
68d4514685
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      riscv/debug_module.cc

2
riscv/debug_module.cc

@ -38,7 +38,7 @@ static unsigned field_width(unsigned n)
static bool region_descriptor_comparator(const region_descriptor &lhs,
const region_descriptor &rhs) {
return lhs.addr < rhs.addr;
return lhs.addr < rhs.addr || (lhs.addr == rhs.addr && lhs.len < rhs.len);
}
template <typename It>

Loading…
Cancel
Save