Re: Question Regarding Int Cast Error in GDB Python
Luis via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 8/25/25 14:29, Vacha Bhavsar wrote: > Hi, > > Apologies, it seems I pasted the wrong snippet in the original email. > The code in my reply just prior to this is the correct code. The snippet > that > should have been included in the first email, which causes the error, is > the one below: > > v = gdb.parse_and_eval(reg) > report(str(v.type) == "uint128_t", "size of %s" % (reg)) Right, so gdb doesn't like casting integers to/from 8+ bytes. That's a limitation currently. But why are you considering this particular cast? To optimize the checks instead of using the byte vectors?