From: "Nathan J. Williams" <nathanw@wasabisystems.com>
To: Mark Kettenis <kettenis@chello.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] bsd-kvm.c: get exec file name
Date: Sat, 07 Aug 2004 21:25:00 -0000 [thread overview]
Message-ID: <mtuekmiy72u.fsf@contents-vnder-pressvre.mit.edu> (raw)
In-Reply-To: <200408062113.i76LDJ4c022596@elgar.kettenis.dyndns.org>
Mark Kettenis <kettenis@chello.nl> 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 <nathanw@wasabisystems.com>
* 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 <fcntl.h>
@@ -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);
prev parent reply other threads:[~2004-08-07 21:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-06 18:13 Nathan J. Williams
2004-08-06 21:13 ` Mark Kettenis
2004-08-07 21:25 ` Nathan J. Williams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mtuekmiy72u.fsf@contents-vnder-pressvre.mit.edu \
--to=nathanw@wasabisystems.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@chello.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox