binutils-gdb/gdb/testsuite/gdb.rust
Tom Tromey 6eb63917ce Handle "info symbol" in Rust language mode
When I changed the Rust parser to handle 128-bit ints, this
inadvertently broke some other gdb commands.  For example, "info
symbol 0xffffffffffffffff" now fails, because the resulting value is
128 bits, but this is rejected by extract_integer.

This patch fixes the problem by changing extract_integer to allow
over-long integers as long as the high bytes are either 0, or (for
signed types) 0xff.

Regression tested on x86-64 Fedora 38.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31565
Approved-By: Andrew Burgess <aburgess@redhat.com>
2024-06-20 10:45:05 -06:00
..
completion.exp
completion.rs
dwindex.exp
dwindex.rs
expr.exp
finish.exp
finish.rs
fnfield.exp
fnfield.rs
generics.exp
generics.rs
main-crash.exp
main.rs
methods.exp
methods.rs
modules.exp
modules.rs
onetwoeight.exp
onetwoeight.rs
pp.exp
pp.py
pp.rs
rawids.exp
rawids.rs
rust-start.exp
rust-style.exp
rust-style.rs
simple.exp Handle "info symbol" in Rust language mode 2024-06-20 10:45:05 -06:00
simple.rs
traits.exp
traits.rs
unicode.exp
unicode.rs
union.exp
union.rs
unsized.exp Print type name when printing Rust slice 2024-04-02 11:37:32 -06:00
unsized.rs
unsized2.exp
unsized2.rs
watch.exp
watch.rs