summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-05-06 11:27:24 +0000
committerderaadt <deraadt@openbsd.org>1996-05-06 11:27:24 +0000
commit080043b7046601ed48bf99798a722d80218fbf05 (patch)
tree7fd0e2368f54020fa3754a73477e3d7e3722d4bb
parentfix typos; netbsd pr#2376; from beal@umiacs.UMD.EDU (diff)
downloadwireguard-openbsd-080043b7046601ed48bf99798a722d80218fbf05.tar.xz
wireguard-openbsd-080043b7046601ed48bf99798a722d80218fbf05.zip
gdb -k did not call kvm_open() with correct pathname; netbsd pr#2375; from mhitch@gemini.oscs.montana.edu
-rw-r--r--gnu/usr.bin/gdb/gdb/kcorelow.c4
1 files 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);