Re: PATCH: read stabs from files with no .data section

Andrew Cagney
2003-09-09T03:30:43Z

> + /* 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