PATCH: read stabs from files with no .data section

Andrew Cagney ac131313@redhat.com
Tue Sep 9 03:30:00 GMT 2003


> +   /* If the objfile has no .data section, try using the .bss section.  */
> +   data_sect_index = objfile->sect_index_data;
> +   if (data_sect_index == -1)
> +     data_sect_index = SECT_OFF_BSS (objfile);
> +   gdb_assert (data_sect_index != -1);
> + 

So what happens if there is no .data and no .bss?

Andrew




More information about the Gdb-patches mailing list