diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-13 01:22:05 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-13 05:52:51 -0500 |
commit | c54f3efdc2f85554a1604c68d5e9d0f55edfd330 (patch) | |
tree | bca6fe89d5844c5d898209359c9fa7a48eab56fd /gdb/python/python-internal.h | |
parent | 62fe7512a78962a9eda0db7fde0c8a76cf535714 (diff) | |
download | binutils-c54f3efdc2f85554a1604c68d5e9d0f55edfd330.zip binutils-c54f3efdc2f85554a1604c68d5e9d0f55edfd330.tar.gz binutils-c54f3efdc2f85554a1604c68d5e9d0f55edfd330.tar.bz2 |
sim: watch: fix range expression processing
The code supports a <start>[,<end>] syntax, but the logic for handling
the <end> check was broken: it would detect the first byte was ",", but
then include that in the strtoul call meaning the result is always 0.
Further, it (re)assigned to arg0 when it meant arg1 which means this
code always processed a range expression as 0,0. Oops.
Diffstat (limited to 'gdb/python/python-internal.h')
0 files changed, 0 insertions, 0 deletions