aboutsummaryrefslogtreecommitdiff
path: root/gdb/extract-store-integer.h
AgeCommit message (Collapse)AuthorFilesLines
2024-06-20Handle "info symbol" in Rust language modeTom Tromey1-2/+2
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-11Remove extract_long_unsigned_integerTom Tromey1-3/+0
The function extract_long_unsigned_integer is unused, so remove it. Tested by rebuilding. Approved-By: Andrew Burgess <aburgess@redhat.com>
2024-04-23gdb: adjust copyright years of extract-store-integer.{c,h}Simon Marchi1-1/+1
The contents of these files was copied from defs.h and findvar. Copy over the copyright years (1986-2024). Change-Id: Idfb0f255fbcfda7e107e9a82804cece3d81ed5fc
2024-04-22gdb: move RequireLongest to gdbsupport/traits.hSimon Marchi1-0/+2
Move it out of defs.h. Change-Id: Ie1743d41a57f81667650048563e66073c72230cf Approved-By: John Baldwin <jhb@FreeBSD.org>
2024-04-22gdb: move store/extract integer functions to extract-store-integer.{c,h}Simon Marchi1-0/+111
Move the declarations out of defs.h, and the implementations out of findvar.c. I opted for a new file, because this functionality of converting integers to bytes and vice-versa seems a bit to generic to live in findvar.c. Change-Id: I524858fca33901ee2150c582bac16042148d2251 Approved-By: John Baldwin <jhb@FreeBSD.org>