This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] solib_global_lookup: Fetch arch from objfile.
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 06 Nov 2014 17:12:54 -0800
- Subject: Re: [PATCH] solib_global_lookup: Fetch arch from objfile.
- Authentication-results: sourceware.org; auth=none
- References: <m3tx2jbqpu dot fsf at seba dot sebabeach dot org>
Doug Evans <xdje42@gmail.com> writes:
> Hi.
>
> solib_global_lookup should be using the objfile's arch,
> not fetching it from global state.
>
> Regression tested on amd64-linux.
>
> 2014-10-31 Doug Evans <xdje42@gmail.com>
>
> * objfiles.c (get_objfile_arch): Constify.
> * objfiles.h (get_objfile_arch): Update prototype.
> * solib.c (solib_global_lookup): Fetch arch from objfile,
> not target_gdbarch.
Committed.