diff options
author | Doug Evans <dje@google.com> | 2013-05-06 18:50:08 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-05-06 18:50:08 +0000 |
commit | a7bfba49b274e06c468abeff7ca92156c0d72293 (patch) | |
tree | 2adfdf0605bbedbe47eb5704b04c9e85d807b8b0 /gdb | |
parent | b5364c9e5155961c96fc3d771e82824f81ed7f82 (diff) | |
download | gdb-a7bfba49b274e06c468abeff7ca92156c0d72293.zip gdb-a7bfba49b274e06c468abeff7ca92156c0d72293.tar.gz gdb-a7bfba49b274e06c468abeff7ca92156c0d72293.tar.bz2 |
* symfile.c (syms_from_objfile_1): Use correct section count when
objfile->sf == NULL.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/symfile.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2596291..43a502a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-05-06 Doug Evans <dje@google.com> + + * symfile.c (syms_from_objfile_1): Use correct section count when + objfile->sf == NULL. + 2013-05-06 Mike Frysinger <vapier@gentoo.org> * common/linux-btrace.c (intel_supports_btrace): Fix indentation. diff --git a/gdb/symfile.c b/gdb/symfile.c index 13740df..48d5f73 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -949,7 +949,7 @@ syms_from_objfile_1 (struct objfile *objfile, /* No symbols to load, but we still need to make sure that the section_offsets table is allocated. */ int num_sections = gdb_bfd_count_sections (objfile->obfd); - size_t size = SIZEOF_N_SECTION_OFFSETS (num_offsets); + size_t size = SIZEOF_N_SECTION_OFFSETS (num_sections); objfile->num_sections = num_sections; objfile->section_offsets |