Skip to content

Commit

Permalink
Also handle '+' in objdump output
Browse files Browse the repository at this point in the history
This character can appear in objdump from GNU Binutils version 2.35.2
as seen on Debian.

Draw it as a combined '-' and '|', add test coverage too.

Fixes: #555
  • Loading branch information
milianw committed Nov 11, 2023
1 parent 35d173b commit 639656e
Show file tree
Hide file tree
Showing 3 changed files with 786 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/resultsdisassemblypage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ class BranchDelegate : public QStyledItemDelegate
lines.append({xmid, top, xmid, bottom});
}
break;
case '+':
if (horizontalLineStart == -1)
horizontalLineStart = x;
lines.append({xmid, top, xmid, bottom});
break;
case '>':
if (!jumps.fromSibling) {
if (i == size - 2) {
Expand Down
Loading

0 comments on commit 639656e

Please sign in to comment.