This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Add comment to psympriv.h
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 06 May 2013 09:47:26 -0700
- Subject: [commit] Add comment to psympriv.h
Hi.
While doing some cleanups it seemed like section_offsets wasn't
needed but then I found elfstab_section_offsets.
So I added a comment to help clarify things.
Committed.
2013-05-06 Doug Evans <dje@google.com>
* psympriv.h (struct partial_symtab): Augment comment for member
section_offsets.
Index: psympriv.h
===================================================================
RCS file: /cvs/src/src/gdb/psympriv.h,v
retrieving revision 1.20
diff -u -p -r1.20 psympriv.h
--- psympriv.h 20 Mar 2013 18:33:05 -0000 1.20
+++ psympriv.h 6 May 2013 05:10:47 -0000
@@ -98,7 +98,9 @@ struct partial_symtab
const char *dirname;
- /* Set of relocation offsets to apply to each section. */
+ /* Set of relocation offsets to apply to each section.
+ This is typically objfile->section_offsets, but in some cases
+ it's different. See, e.g., elfstab_offset_sections. */
struct section_offsets *section_offsets;