This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: read stabs from files with no .data section
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 08 Sep 2003 23:30:41 -0400
- Subject: Re: PATCH: read stabs from files with no .data section
- References: <vt2brtvytbz.fsf@zenia.home>
+ /* 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