aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-parse.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-06-04 13:17:33 +0200
committerTom de Vries <tdevries@suse.de>2022-06-04 13:17:33 +0200
commit7af9baa9faead8155e4459104c30cb1b6a15180e (patch)
treef374af83c99ae1de201ea30ac3416e4adf605a72 /gdb/rust-parse.c
parent4c4d769ab7b01dab8ff8c66209f992de98095a00 (diff)
downloadbinutils-7af9baa9faead8155e4459104c30cb1b6a15180e.zip
binutils-7af9baa9faead8155e4459104c30cb1b6a15180e.tar.gz
binutils-7af9baa9faead8155e4459104c30cb1b6a15180e.tar.bz2
[gdb/pascal] Fix literal truncation
Make sure we error out on overflow instead of truncating in all cases. The current implementation of parse_number contains a comment about PR16377, but that's related to C-like languages. In absence of information of whether the same fix is needed for pascal, take the conservative approach and keep behaviour for decimals unchanged. Tested on x86_64-linux, with a build with --enable-targets=all.
Diffstat (limited to 'gdb/rust-parse.c')
0 files changed, 0 insertions, 0 deletions