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] Re: Regression for GDB global --statistics


On 07/11/2014 11:04 PM, Doug Evans wrote:
> Pedro Alves writes:

>  > It's not obvious to me how this can be NULL, given we initialize
>  > it so early.  If there's a good reason, could you please add
>  > a comment here mentioning it?

...

> -  ALL_SYMTABS (o, s)
> +  /* When collecting statistics during startup, this is called before
> +     pretty much anything in gdb has been initialized, and thus
> +     current_program_space may be NULL.  */
> +  if (current_program_space != NULL)

Great, thanks!

-- 
Pedro Alves


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