This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][python] Fix python/14513


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]