public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Matheus Branco Borella <dark.ryu.550@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v4] Add support for creating new types from the Python API
Date: Tue, 16 Jan 2024 20:56:00 +0200	[thread overview]
Message-ID: <83v87taz0f.fsf@gnu.org> (raw)
In-Reply-To: <20240116182022.9550-1-dark.ryu.550@gmail.com> (message from Matheus Branco Borella on Tue, 16 Jan 2024 15:20:24 -0300)

> From: Matheus Branco Borella <dark.ryu.550@gmail.com>
> Cc: eli@gnu.org
> Date: Tue, 16 Jan 2024 15:20:24 -0300
> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
>  DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
>  FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
>  T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
> 
> Apologies for my previous empty response, my email client got a little
> trigger-happy (And I'm still getting the hang of it).
> 
> On Jan 16, 2024, at 9:45=E2=80=AFAM, Eli Zaretskii <eliz@gnu.org> wrote:
> > I asked previously what does BIT_SIZE mean for pointer types.  Is it
> > the size of the pointer or of the data type to which the pointer
> > points?  If it's the size of the pointer, then does it mean this
> > function can create pointers of arbitrary sizes regardless of the
> > sizes of pointers that are supported by the target?
> 
> It's the size of the pointer itself.

How can that work?  AFAIU, most architectures only allow pointers of
certain sizes, some allow pointers of just one size.  E.g., what
happens if I create a 16-bit pointer on a 64-bit target?

  reply	other threads:[~2024-01-16 18:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-16  4:54 Matheus Branco Borella
2024-01-16 12:45 ` Eli Zaretskii
2024-01-16 17:50   ` Matheus Branco Borella
2024-01-16 18:20   ` [PATCH v4] Add support for creating new types from the Python API Matheus Branco Borella
2024-01-16 18:56     ` Eli Zaretskii [this message]
2024-01-16 21:27       ` Matheus Branco Borella
2024-02-06 18:20 ` Tom Tromey
2024-02-21 18:11   ` Matheus Branco Borella

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=83v87taz0f.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dark.ryu.550@gmail.com \
    --cc=gdb-patches@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).