This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] tui-winsource.c, initialize sal.pspace
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Michael Snyder <msnyder at vmware dot com>
- Date: Thu, 3 Mar 2011 16:59:27 +0000
- Subject: Re: [RFA] tui-winsource.c, initialize sal.pspace
- References: <4D6EB362.705@vmware.com>
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