diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-05-11 04:56:08 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-05-11 04:56:08 +0000 |
commit | 5488dafb5a9528b7381ea2a0d6218504fce92b68 (patch) | |
tree | 043545375d78e295485ee951fe2222227f825390 /gdb/symfile.h | |
parent | 403676b5704d576dfc3a663e4d55d6525053ce3f (diff) | |
download | gdb-5488dafb5a9528b7381ea2a0d6218504fce92b68.zip gdb-5488dafb5a9528b7381ea2a0d6218504fce92b68.tar.gz gdb-5488dafb5a9528b7381ea2a0d6218504fce92b68.tar.bz2 |
gdb/
Make addrs->SECTINDEX always defined.
* symfile.c (relative_addr_info_to_section_offsets): Check for
SECTINDEX -1, not for zero ADDR.
(addrs_section_compar): Remove checking for invalid SECTINDEX.
(addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
* symfile.h (struct section_addr_info) <sectindex>: Update the comment
on its validity.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r-- | gdb/symfile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h index 4dfd4d3..3544475 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -86,7 +86,7 @@ struct section_addr_info CORE_ADDR addr; char *name; - /* SECTINDEX must be valid for associated BFD if ADDR is not zero. */ + /* SECTINDEX must be valid for associated BFD or set to -1. */ int sectindex; } other[1]; }; |