From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simon.marchi@ericsson.com>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [PATCH] python: Make two functions return gdbpy_ref<>
Date: Sun, 09 Sep 2018 02:55:00 -0000 [thread overview]
Message-ID: <874lez5qhb.fsf@tromey.com> (raw)
In-Reply-To: <1536448885-6222-1-git-send-email-simon.marchi@ericsson.com> (Simon Marchi's message of "Sun, 9 Sep 2018 00:21:25 +0100")
>>>>> "Simon" == Simon Marchi <simon.marchi@ericsson.com> writes:
Simon> I noticed that we release a gdbpy_ref in pretty_print_one_value only to
Simon> create it again later. This patch fills the gap by returning a
Simon> gdbpy_ref all the way.
Simon> gdb/ChangeLog:
Simon> * python/py-prettyprint.c (pretty_print_one_value): Return
Simon> gdbpy_ref<>.
Simon> (print_string_repr): Adjust.
Simon> (apply_varobj_pretty_printer): Return gdbpy_ref<>.
Simon> * python/python-internal.h (apply_varobj_pretty_printer): Return
Simon> gdbpy_ref<>.
Simon> * varobj.c (varobj_value_get_print_value): Adjust.
Thanks, this seems like a good improvement to me.
I'm sure there are more of these lurking.
Tom
next prev parent reply other threads:[~2018-09-09 2:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-08 23:22 Simon Marchi
2018-09-09 2:55 ` Tom Tromey [this message]
2018-09-09 7:14 ` 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=874lez5qhb.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@ericsson.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