message: Fixed how traps information are retrieved (for
diff: @@ -65,8 +65,10 @@ impl ModuleInfoFrameInfo {
  /// Gets a function given a pc
  fn function_info(&self, pc: usize) -> Option<&FunctionInfo> {
  - let (end, func) = self.functions.range(pc..).next()?;
  - if func.start <= pc && pc <= *end {
  + // the +1 is to avoid selecting an interval that end with pc,
  + // as end should be non-inclusive
  + let (end, func) = self.functions.range((pc + 1)..).next()?;
  + if func.start <= pc && pc < *end {
  Some(func)
  } else {
  None
  @@ -151,8 +153,10 @@ impl GlobalFrameInfo {
  /// Gets a module given a pc
  fn module_info(&self, pc: usize) -> Option<&ModuleInfoFrameInfo> {
  - let (end, module_info) = self.ranges.range(pc..).next()?;
  - if module_info.start <= pc && pc <= *end {
  + // the +1 is to avoid selecting an interval that end with pc,
  + // as end should be non-inclusive
  + let (end, module_info) = self.ranges.range((pc + 1)..).next()?;
  + if module_info.start <= pc && pc < *end {
  Some(module_info)
  } else {
  None
  