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 Tue, Jul 15, 2014 at 10:37 AM, Pedro Alves <palves@redhat.com> wrote:
> 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

Apologies for the repeat (note to self: try to remember to not send
email to list from phone).

Committed to trunk and 7.8.

Jan: Please commit your testcase (no point in resending both messages, bleah).


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