public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Simon Marchi <simon.marchi@efficios.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb: add HtabPrinter to gdb-gdb.py.in
Date: Thu, 9 Feb 2023 14:52:48 -0500	[thread overview]
Message-ID: <50b79f54-f61b-f5aa-221c-6554ea53c001@simark.ca> (raw)
In-Reply-To: <20230209195056.100681-1-simon.marchi@efficios.com>

> diff --git a/gdb/gdb-gdb.py.in b/gdb/gdb-gdb.py.in
> index 95b7d84966f0..31ce80bb1e44 100644
> --- a/gdb/gdb-gdb.py.in
> +++ b/gdb/gdb-gdb.py.in
> @@ -369,6 +369,40 @@ class IntrusiveListPrinter:
>          return self._children_generator()
>  
>  
> +class HtabPrinter:
> +    """Pretty-printer for htab_t hash tables."""
> +
> +    def __init__(self, val):
> +        self._val = val
> +        self._entries = val["entries"]
> +        self._size = int(val["size"])
Just after sending, I realized that _entries and _size aren't necessary.
I removed them locally.

Simon


  reply	other threads:[~2023-02-09 19:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-09 19:50 Simon Marchi
2023-02-09 19:52 ` Simon Marchi [this message]
2023-02-27 18:10 ` Tom Tromey
2023-02-28  4:23   ` Simon Marchi
2023-02-28 14:30     ` Tom Tromey
2023-02-28 16:08       ` Simon Marchi

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=50b79f54-f61b-f5aa-221c-6554ea53c001@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@efficios.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).