This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Patch][gdb] Initialise quiet flag for "info functions"
- From: Philippe Waroquiers <philippe dot waroquiers at skynet dot be>
- To: Matthew Malcomson <Matthew dot Malcomson at arm dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, "palves at redhat dot com" <palves at redhat dot com>
- Cc: nd <nd at arm dot com>
- Date: Fri, 02 Nov 2018 14:30:14 +0100
- Subject: Re: [Patch][gdb] Initialise quiet flag for "info functions"
- References: <VI1PR0801MB2014605E2BB011A75B4E9829E0CF0@VI1PR0801MB2014.eurprd08.prod.outlook.com>
Thanks for the analysis and fix,
I have pushed the below fix as obvious (and an equivalent fix in stack.c)
as d54cfd762b06.
Philippe
On Fri, 2018-11-02 at 11:30 +0000, Matthew Malcomson wrote:
> With this flag unset, using 'info functions' without a set quiet flag
> was not deterministic and was causing some flaky test failures.
>
> Failures seen in (at least).
> gdb.base/info_qt.exp
> gdb.dwarf2/dw2-case-insensitive.exp
> gdb.base/info-fun.exp
>
> Ok for trunk?
> I don't have commit rights.
>
> gdb/ChangeLog:
>
> 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
>
> * symtab.c (info_functions_command): Initialise quiet flag.
>
>
>
> ############### Attachment also inlined for ease of reply ###############
>
>
> diff --git a/gdb/symtab.c b/gdb/symtab.c
> index cd27a75e8ca2370a9d11ae6057d051ca6ce13f90..7649908d9c9341ad695626e0a22a085f2af302ef 100644
> --- a/gdb/symtab.c
> +++ b/gdb/symtab.c
> @@ -4760,7 +4760,7 @@ info_functions_command (const char *args, int from_tty)
> {
> std::string regexp;
> std::string t_regexp;
> - bool quiet;
> + bool quiet = false;
>
> while (args != NULL
> && extract_info_print_args (&args, &quiet, ®exp, &t_regexp))
>