[RFA 2/7 take 2] API for inhibiting section map updates
Pedro Alves
palves@redhat.com
Wed May 29 17:18:00 GMT 2013
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'?
> + gdb_assert (pspace_info->section_map_dirty != 0
> + || pspace_info->new_objfiles_available != 0);
>
--
Pedro Alves
More information about the Gdb-patches
mailing list