From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20872 invoked by alias); 7 Aug 2004 21:25:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20858 invoked from network); 7 Aug 2004 21:25:01 -0000 Received: from unknown (HELO biscayne-one-station.mit.edu) (18.7.7.80) by sourceware.org with SMTP; 7 Aug 2004 21:25:01 -0000 Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by biscayne-one-station.mit.edu (8.12.4/8.9.2) with ESMTP id i77LOwou015367; Sat, 7 Aug 2004 17:24:58 -0400 (EDT) Received: from contents-vnder-pressvre.mit.edu (CONTENTS-VNDER-PRESSVRE.MIT.EDU [18.7.16.67]) (authenticated bits=56) (User authenticated as nathanw@ATHENA.MIT.EDU) by melbourne-city-street.mit.edu (8.12.4/8.12.4) with ESMTP id i77LOvOn001810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 7 Aug 2004 17:24:58 -0400 (EDT) Received: (from nathanw@localhost) by contents-vnder-pressvre.mit.edu (8.12.9) id i77LOvtm022026; Sat, 7 Aug 2004 17:24:57 -0400 (EDT) To: Mark Kettenis Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] bsd-kvm.c: get exec file name References: <200408062113.i76LDJ4c022596@elgar.kettenis.dyndns.org> From: "Nathan J. Williams" Organization: Wasabi Systems, Inc. Date: Sat, 07 Aug 2004 21:25:00 -0000 In-Reply-To: <200408062113.i76LDJ4c022596@elgar.kettenis.dyndns.org> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-08/txt/msg00222.txt.bz2 Mark Kettenis writes: > OK, although I'd prefer to keep using the variable execfile instead of > wrapping the kvm_openfiles call: > > execfile = get_exec_file (0); > temp_kd = kvm_openfiles (execfile, filename, NULL, O_RDONLY, errbuf); Sure. Committed as follows: 2004-08-07 Nathan J. Williams * bsd-kvm.c: Include "gdbcore.h" (bsd_kvm_open): Use get_exec_file() to set 'execfile'. Index: bsd-kvm.c =================================================================== RCS file: /cvs/src/src/gdb/bsd-kvm.c,v retrieving revision 1.4 diff -u -r1.4 bsd-kvm.c --- bsd-kvm.c 3 Jul 2004 13:17:33 -0000 1.4 +++ bsd-kvm.c 7 Aug 2004 21:21:49 -0000 @@ -26,6 +26,7 @@ #include "regcache.h" #include "target.h" #include "value.h" +#include "gdbcore.h" /* for get_exec_file */ #include "gdb_assert.h" #include @@ -73,6 +74,7 @@ } } + execfile = get_exec_file (0); temp_kd = kvm_openfiles (execfile, filename, NULL, O_RDONLY, errbuf); if (temp_kd == NULL) error ("%s", errbuf);