This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Allow gdb.lookup_objfile to work with symlinked binary
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 13 Jan 2015 17:05:22 -0800
- Subject: Re: [PATCH] Allow gdb.lookup_objfile to work with symlinked binary
- Authentication-results: sourceware.org; auth=none
- References: <yjt2ioh8pma3 dot fsf at ruffy dot mtv dot corp dot google dot com>
Doug Evans writes:
> Hi.
>
> This patch enhances gdb.lookup_objfile so that it works with a
> symlinked binary.
>
> Regression tested on amd64-linux.
>
> 2014-12-18 Doug Evans <dje@google.com>
>
> * objfiles.c (objfile_filename): New function.
> * objfiles.h (objfile_filename): Declare it.
> (objfile_name): Add function comment.
> * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
> bfd file name (which may be realpath'd), and the original name.
>
> testsuite/
> * gdb.python/py-objfile.exp: Test gdb.lookup_objfile on symlinked
> binary.
Committed.