From: Vacha Bhavsar via Gdb <gdb@sourceware.org>
To: Tom Tromey <tom@tromey.com>
Cc: Vacha Bhavsar via Gdb <gdb@sourceware.org>
Subject: Re: Question Regarding Int Cast Error in GDB Python
Date: Wed, 3 Sep 2025 14:59:03 -0400 [thread overview]
Message-ID: <CAEWVDmt94t+n+=+7upFk0y5ruDC_JmzdvZCMJ-jSWjWf2cs1_A@mail.gmail.com> (raw)
In-Reply-To: <87o6ryt40u.fsf@tromey.com>
I have filed this in bugzilla.
Thanks,
Vacha
On Fri, Aug 29, 2025 at 1:46 PM Tom Tromey <tom@tromey.com> wrote:
> >>>>> ">" == Vacha Bhavsar via Gdb <gdb@sourceware.org> writes:
>
> >> v = gdb.parse_and_eval(reg)
> >> report(str(v.type) == "uint8_t", "size of %s" % (reg))
> >> report(int(v) == 0x1, "%s is 0x%x" % (reg, 0x1))
>
> >> This results in the following error:
>
> >> Python Exception <class 'gdb.error'>: That operation is not available
> >> on integers of more than 8 bytes.
>
> I think this is just a bug. Would you mind filing it in bugzilla?
>
> python/py-value.c:valpy_long uses value_as_long. However if it used
> value_as_mpz instead, it could handle types wider than 64 bits.
>
> Tom
>
prev parent reply other threads:[~2025-09-03 19:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-22 18:21 Vacha Bhavsar via Gdb
2025-08-25 8:35 ` Luis via Gdb
2025-08-25 13:23 ` Vacha Bhavsar via Gdb
2025-08-25 13:29 ` Vacha Bhavsar via Gdb
2025-08-26 20:49 ` Luis via Gdb
2025-08-27 19:16 ` Vacha Bhavsar via Gdb
2025-08-29 17:46 ` Tom Tromey
2025-09-03 18:59 ` Vacha Bhavsar via Gdb [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAEWVDmt94t+n+=+7upFk0y5ruDC_JmzdvZCMJ-jSWjWf2cs1_A@mail.gmail.com' \
--to=gdb@sourceware.org \
--cc=tom@tromey.com \
--cc=vacha.bhavsar@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox