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

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. This feature is mostly intended
for cases where proper types may not be available - such as reverse
engineering - but may still be desirable. While one could get around
the lack of such a function by using `gdb.Type.pointer()`, I felt like
there was no reason to restrict it, and that trusting that the
consumers of the API will pick sizes that are valid for the target was
probably good enough.


  parent reply	other threads:[~2024-01-16 18:22 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   ` Matheus Branco Borella [this message]
2024-01-16 18:56     ` [PATCH v4] Add support for creating new types from the Python API Eli Zaretskii
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=20240116182022.9550-1-dark.ryu.550@gmail.com \
    --to=dark.ryu.550@gmail.com \
    --cc=eli@gnu.org \
    --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).