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?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.