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 2/7 take 2] API for inhibiting section map updates


Pedro Alves wrote:
> On 05/24/2013 08:47 AM, Gary Benson wrote:
> >    /* Update the table in exec_ops, used to read memory.  */
> >    ALL_OBJFILE_OSECTIONS (objfile, s)
> > @@ -1291,11 +1300,14 @@ static void
> >  update_section_map (struct program_space *pspace,
> >  		    struct obj_section ***pmap, int *pmap_size)
> >  {
> > +  struct objfile_pspace_info *pspace_info;
> >    int alloc_size, map_size, i;
> >    struct obj_section *s, **map;
> >    struct objfile *objfile;
> >  
> > -  gdb_assert (get_objfile_pspace_data (pspace)->objfiles_changed_p != 0);
> > +  pspace_info = get_objfile_pspace_data (current_program_space);
> 
> Shouldn't this be 'pspace' instead of 'current_program_space'?

Good catch, thank you.

Gary

-- 
http://gbenson.net/


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