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] Allow gdb.lookup_objfile to work with symlinked binary


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.


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