This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/3] move the entry point info into the per-bfd object
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 13 Jan 2014 13:51:40 -0700
- Subject: Re: [PATCH 3/3] move the entry point info into the per-bfd object
- Authentication-results: sourceware.org; auth=none
- References: <1389040247-2620-1-git-send-email-tromey at redhat dot com> <1389040247-2620-4-git-send-email-tromey at redhat dot com> <52CD530D dot 6050903 at redhat dot com>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> I think this has reached sufficient levels of indirection
Pedro> that if I were writing this, I'd do:
Pedro> static void
Pedro> init_entry_point_info (struct objfile *objfile)
Pedro> {
Pedro> + struct entry_info *ei = &objfile->per_bfd->ei;
Pedro> and then use ei-> throughout the function instead, like:
Thanks, I made this change.
Tom