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

Pedro Alves
2011-03-03T16:59:26Z

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.

> set_current_source_symtab_and_line (&sal);

--
Pedro Alves