aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-create.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-04-17 18:16:55 +0930
committerAlan Modra <amodra@gmail.com>2024-04-18 10:31:59 +0930
commit170957ff9b847cf44f6121fd846f5483f2090afd (patch)
treea5b4eaec22c13f35175886a4a0df7247cc52ff11 /libctf/ctf-create.c
parent1c8102d17f5e56796adb27d9a9180f2c5013b913 (diff)
downloadgdb-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-create.c')
0 files changed, 0 insertions, 0 deletions