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 v2][PR cli/22573] Honour 'print pretty' when printing result of finish command


On 06/14/2018 10:47 AM, Tom de Vries wrote:

> Indeed. For gcc I've been using a pre-commit script (
> https://github.com/vries/bin-scripts/blob/master/git-prepare-gnu-commit.sh )
> that:
> - updates the date in the log message
> - copies all ChangeLog hunks to the appropriate ChangeLog files, prefixing
>   each hunk with the date/author line and the PR line
> 
> So, the log message is not explicit about which files the ChangeLog hunks are
> meant for, but the script makes sure they end up where they should.

I see.  FYI, most folks here follow the convention at
<https://sourceware.org/gdb/wiki/ContributionChecklist>
("In your patch email (...)").

> [ FWIW, I've just found GDBTestcaseCookbook on the wiki, and saw that
> template.exp uses untested instead of fail in such a situation, I'm not sure
> how relevant the difference is. ]

Not much.

>> Please resend a v2 with the issue addressed, and it should be
>> ready to go.
> 
> [gdb/cli] Honour 'print pretty' when printing result of finish command

OK with the typo below fixed.  Please make sure the git commit log
includes the rationale [1], and push.

> 
> 2018-06-08  Tom de Vries  <tdevries@suse.de>
> 
> 	PR cli/22573
> 	* infcmd.c (print_return_value_1): Use get_user_print_options instead of
> 	get_no_prettyformat_print_options.
> 
> 	* gdb.base/finish-pretty.c: New test.
> 	* gdb.base/finish-pretty.exp: New file.

> +
> +# Check whether finish respect the print pretty user setting when printing the
> +# function result.

"respect" -> "respects"

Thanks,
Pedro Alves

[1] - sorry to be a nag, but your previous push did not include it.  :-)


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