This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch][python] Fix python/14513
- From: Tom Tromey <tromey at redhat dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 18 Sep 2013 14:26:26 -0600
- Subject: Re: [patch][python] Fix python/14513
- Authentication-results: sourceware.org; auth=none
- References: <5239A7E9 dot 8010202 at redhat dot com>
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> Parameters normally report what the value has been set too:
Phil> (gdb) set foobar 5
Phil> foobar has been set to 5.
Phil> This patch just checks the string length of the output string before
Phil> printing it.
Phil> OK?
Built-in parameters don't seem to do this printing:
(gdb) set print elements 500
(gdb)
I think the Python layer should follow this precedent.
Maybe get_set_string can be entirely removed.
Tom