From: deraadt Date: Mon, 6 May 1996 11:27:24 +0000 (+0000) Subject: gdb -k did not call kvm_open() with correct pathname; netbsd pr#2375; from mhitch... X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=080043b7046601ed48bf99798a722d80218fbf05;p=openbsd gdb -k did not call kvm_open() with correct pathname; netbsd pr#2375; from mhitch@gemini.oscs.montana.edu --- diff --git a/gnu/usr.bin/gdb/gdb/kcorelow.c b/gnu/usr.bin/gdb/gdb/kcorelow.c index 9e8dcbad0c3..b3d3f640f9a 100644 --- a/gnu/usr.bin/gdb/gdb/kcorelow.c +++ b/gnu/usr.bin/gdb/gdb/kcorelow.c @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: kcorelow.c,v 1.1.1.1 1995/10/18 08:40:01 deraadt Exp $ + $Id: kcorelow.c,v 1.2 1996/05/06 11:27:24 deraadt Exp $ */ #ifdef KERNEL_DEBUG @@ -180,7 +180,7 @@ kcore_open (filename, from_tty) old_chain = make_cleanup (free, filename); - core_kd = kvm_open (NULL, filename, NULL, + core_kd = kvm_open (bfd_get_filename(exec_bfd), filename, NULL, write_files? O_RDWR: O_RDONLY, 0); if (core_kd == NULL) perror_with_name (filename);