diff options
author | Alan Modra <amodra@gmail.com> | 2024-04-17 18:16:55 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-04-18 10:31:59 +0930 |
commit | 170957ff9b847cf44f6121fd846f5483f2090afd (patch) | |
tree | a5b4eaec22c13f35175886a4a0df7247cc52ff11 /libctf/ctf-string.c | |
parent | 1c8102d17f5e56796adb27d9a9180f2c5013b913 (diff) | |
download | gdb-170957ff9b847cf44f6121fd846f5483f2090afd.zip gdb-170957ff9b847cf44f6121fd846f5483f2090afd.tar.gz gdb-170957ff9b847cf44f6121fd846f5483f2090afd.tar.bz2 |
Tidy objdump opb expressions
I don't think any of these can overflow, but since all of the
expressions I'm editing here are inside a while loop with condition
addr_offset < stop_offset, this change makes it more obvious that they
can't overflow.
* objdump.c (disassemble_bytes): Calculate octet expressions
involving both addr_offset and stop_offset by first
subtracting addr_offset from stop_offset.
Diffstat (limited to 'libctf/ctf-string.c')
0 files changed, 0 insertions, 0 deletions