]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[Part of 2003-09-19 change, mistakenly not committed.]
authorJim Blandy <jimb@codesourcery.com>
Fri, 17 Oct 2003 21:44:26 +0000 (21:44 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 17 Oct 2003 21:44:26 +0000 (21:44 +0000)
Merge from mainline:

2003-09-12  Jim Blandy  <jimb@redhat.com>

* dbxread.c (read_dbx_symtab): Don't report an internal error if
the file has no .data, .bss, or .rodata sections.  Instead wait
until we see a variable alleged to live in one of those sections.

2003-09-12  Jim Blandy  <jimb@redhat.com>

* 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.

2003-09-12  Jim Blandy  <jimb@redhat.com>

* dbxread.c (read_dbx_symtab): Add FIXME about finding section
offsets for global and static variables.

2003-09-09  Jim Blandy  <jimb@redhat.com>

* dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
symbol types are, by definition, in the .data section, so it is
correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
If there is no .data section, there should be no N_DATA or N_DATA
| N_EXT symbols.

2003-07-10  Jim Blandy  <jimb@redhat.com>

* Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
* dbxread.c: #include "gdb_assert.h".
(read_dbx_symtab): If the objfile has no .data section, use the
section index for the .bss section instead.

gdb/Makefile.in

index 93073190bcaa2ebb48fe2863ef5072b24c8f75a3..aa842fcefc5119a07db841f5a910b3887cd62456 100644 (file)
@@ -1663,7 +1663,7 @@ dbxread.o: dbxread.c $(defs_h) $(gdb_string_h) $(gdb_obstack_h) \
        $(gdb_stat_h) $(symtab_h) $(breakpoint_h) $(target_h) $(gdbcore_h) \
        $(libaout_h) $(symfile_h) $(objfiles_h) $(buildsym_h) $(stabsread_h) \
        $(gdb_stabs_h) $(demangle_h) $(language_h) $(complaints_h) \
-       $(cp_abi_h) $(aout_aout64_h) $(aout_stab_gnu_h)
+       $(cp_abi_h) $(aout_aout64_h) $(aout_stab_gnu_h) $(gdb_assert_h)
 dcache.o: dcache.c $(defs_h) $(dcache_h) $(gdbcmd_h) $(gdb_string_h) \
        $(gdbcore_h) $(target_h)
 delta68-nat.o: delta68-nat.c $(defs_h)