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: [RFA] tui-winsource.c, initialize sal.pspace


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.



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