This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] bsd-kvm.c: get exec file name


   From: "Nathan J. Williams" <nathanw@wasabisystems.com>
   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  <nathanw@wasabisystems.com>

	   * 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]