Re: [RFA] tui-winsource.c, initialize sal.pspace

Michael Snyder
2011-03-03T17:29:13Z

Pedro Alves wrote:
> On Wednesday 02 March 2011 21:15:14, Michael Snyder wrote:
>> @@ -114,9 +114,11 @@ tui_update_source_window_as_is (struct t
>> {
>> struct symtab_and_line sal;
>>
>> + init_sal (&sal);
>
> This is good.
>
>> sal.line = line_or_addr.u.line_no +
>> (win_info->generic.content_size - 2);
>> sal.symtab = s;
>> + sal.pspace = current_program_space;
>
> Make this s->objfile->pspace instead.

Thanks! Done.