This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gdb: introduce objfile text_section_offset and data_section_offset methods


>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:

Simon> The pattern
Simon> objfile-> section_offsets[SECT_OFF_TEXT (objfile)]

Simon> ... appears very often, to get the offset of the text section of an
Simon> objfile.  I thought it would be more readable to write it as:

Simon> objfile-> text_section_offset ()

Simon> ... so I added this method and used it where possible.  I also added
Simon> data_section_offset, although it is not used as much.

Thanks.  This looks good to me.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]