From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9596 invoked by alias); 6 Aug 2004 21:13:22 -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 9589 invoked from network); 6 Aug 2004 21:13:21 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.77.109) by sourceware.org with SMTP; 6 Aug 2004 21:13:21 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i76LDKxp009880; Fri, 6 Aug 2004 23:13:20 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i76LDJ11022599; Fri, 6 Aug 2004 23:13:19 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i76LDJ4c022596; Fri, 6 Aug 2004 23:13:19 +0200 (CEST) Date: Fri, 06 Aug 2004 21:13:00 -0000 Message-Id: <200408062113.i76LDJ4c022596@elgar.kettenis.dyndns.org> From: Mark Kettenis To: nathanw@wasabisystems.com CC: gdb-patches@sources.redhat.com In-reply-to: (nathanw@wasabisystems.com) Subject: Re: [RFA] bsd-kvm.c: get exec file name References: X-SW-Source: 2004-08/txt/msg00184.txt.bz2 From: "Nathan J. Williams" Date: 06 Aug 2004 14:04:36 -0400 This changes bsd_kvm_open() to pass the exec file in use to kvm_openfiles() rather than NULL, which improves results when you run "gdb /some/other/kernel" "target kvm kernel.core". 2004-08-06 Nathan J. Williams * bsd-kvm.c: Include "gdbcore.h" (bsd_kvm_open): Delete variable 'execfile'. Pass return value of get_exec_file() to kvm_openfiles(). OK to commit? 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); Mark