This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2, doc] python: Provide textual representation for Inferior and Objfile
> From: Simon Marchi <simon.marchi@ericsson.com>
> CC: Simon Marchi <simon.marchi@ericsson.com>
> Date: Wed, 12 Sep 2018 18:50:01 -0400
>
> [New in v2: the doc part]
Thanks.
> +Some types of the @code{gdb} module come with a textual representation
> +(accessible through @code{repr()} or @code{str()}). These are offered for
> +debugging purposes only, expect them to change over time.
Please use @code{repr}, without the parens. GNU Coding Standards
frown on using the latter to indicate a function:
Please do not write '()' after a function name just to indicate it is
a function. 'foo ()' is not a function, it is a function call with no
arguments.
Otherwise OK.