[Bug gdb/34416] Incorrect loss of sign in 64-bit multiply (e.g.: DW_OP_mul in DWARF evaluation)
tromey at sourceware dot org via Gdb-prs <[email protected]>
| Newsgroups | gmane.comp.gdb.bugs.discuss |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://sourceware.org/bugzilla/show_bug.cgi?id=34416
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-07-21
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
I couldn't try your test program, so instead I hacked the dw2-const.exp
test case to use this DWARF expression:
DW_AT_location {
DW_OP_const8u 0x61e2c0df6f7857a5
DW_OP_const8u 0xff51afd7ed558ccd
DW_OP_mul
DW_OP_stack_value
} SPECIAL_expr
Then if I run it and print the variable I do see the same result you get:
(gdb) print/x val8
$2 = 0xbf5e897211ea94df
--
You are receiving this mail because:
You are on the CC list for the bug.