diff options
author | Jim Blandy <jimb@codesourcery.com> | 2003-09-13 00:00:32 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2003-09-13 00:00:32 +0000 |
commit | 9d96e6a993190040d27658b40f70b5154c9a13cd (patch) | |
tree | 02055200db134356169b51cf69564ea082d38946 /gdb/dbxread.c | |
parent | 5712e52140f0c5d19f9730c7e3e34b35f776ff6e (diff) | |
download | gdb-9d96e6a993190040d27658b40f70b5154c9a13cd.tar.gz |
* dbxread.c (read_dbx_symtab): If we have no .data section and no
.bss section, presume that any variables we find live in the
.rodata section.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 57201307066..8bfaf1c8e91 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -1380,6 +1380,8 @@ read_dbx_symtab (struct objfile *objfile) data_sect_index = objfile->sect_index_data; if (data_sect_index == -1) data_sect_index = SECT_OFF_BSS (objfile); + if (data_sect_index == -1) + data_sect_index = SECT_OFF_RODATA (objfile); gdb_assert (data_sect_index != -1); for (symnum = 0; symnum < DBX_SYMCOUNT (objfile); symnum++) |