From 080043b7046601ed48bf99798a722d80218fbf05 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 6 May 1996 11:27:24 +0000 Subject: [PATCH] gdb -k did not call kvm_open() with correct pathname; netbsd pr#2375; from mhitch@gemini.oscs.montana.edu --- gnu/usr.bin/gdb/gdb/kcorelow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1