* Find the line associated with the given address. */
| 160 | * Find the line associated with the given address. |
| 161 | */ |
| 162 | extern const Line *e9tool::findLine(const Lines &Ls, intptr_t addr) |
| 163 | { |
| 164 | auto i = Ls.lower_bound(addr); |
| 165 | if (i == Ls.end()) |
| 166 | return nullptr; |
| 167 | if (i->second.lb == addr) |
| 168 | return &i->second; |
| 169 | auto j = Ls.begin(); |
| 170 | if (i == j) |
| 171 | return nullptr; |
| 172 | i--; |
| 173 | if (i->second.lb <= addr && addr < i->second.ub) |
| 174 | return &i->second; |
| 175 | else |
| 176 | return nullptr; |
| 177 | } |
| 178 |
nothing calls this directly
no test coverage detected