Patchwork Add missing include to bsd-kvm.c for gdb_abspath

login
register
mail settings
Submitter Doug Evans via gdb-patches
Date Dec. 16, 2019, 9:01 p.m.
Message ID <20191216210126.212047-1-cbiesinger@google.com>
Download mbox | patch
Permalink /patch/36898/
State New
Headers show

Comments

Doug Evans via gdb-patches - Dec. 16, 2019, 9:01 p.m.
Commit ff8577f64987a898e1dc5eb6afb66a404fb7bb16 added a call to
gdb_abspath in bsd-kvm.c, but doesn't include its header file.
This commit fixes that.

gdb/ChangeLog:

2019-12-16  Christian Biesinger  <cbiesinger@google.com>

	* bsd-kvm.c: Include gdbsupport/pathstuff.h.

Change-Id: I647c3620d8ae978ae27c38dbe0b3347a97c5bfc2
---
 gdb/bsd-kvm.c | 1 +
 1 file changed, 1 insertion(+)
Doug Evans via gdb-patches - Dec. 17, 2019, 8:09 p.m.
On Mon, Dec 16, 2019 at 3:01 PM Christian Biesinger
<cbiesinger@google.com> wrote:
>
> Commit ff8577f64987a898e1dc5eb6afb66a404fb7bb16 added a call to
> gdb_abspath in bsd-kvm.c, but doesn't include its header file.
> This commit fixes that.
>
> gdb/ChangeLog:
>
> 2019-12-16  Christian Biesinger  <cbiesinger@google.com>
>
>         * bsd-kvm.c: Include gdbsupport/pathstuff.h.

I pushed this as an obvious patch.

To ssh://sourceware.org/git/binutils-gdb.git
   9b30da15e7..e3169fe0bb  HEAD -> master

Christian

> Change-Id: I647c3620d8ae978ae27c38dbe0b3347a97c5bfc2
> ---
>  gdb/bsd-kvm.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c
> index 895686ef62..954a2687f0 100644
> --- a/gdb/bsd-kvm.c
> +++ b/gdb/bsd-kvm.c
> @@ -29,6 +29,7 @@
>  #include "gdbcore.h"
>  #include "inferior.h"          /* for get_exec_file */
>  #include "gdbthread.h"
> +#include "gdbsupport/pathstuff.h"
>
>  #include <fcntl.h>
>  #include <kvm.h>
> --
> 2.24.1.735.g03f4e72817-goog
>

Patch

diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c
index 895686ef62..954a2687f0 100644
--- a/gdb/bsd-kvm.c
+++ b/gdb/bsd-kvm.c
@@ -29,6 +29,7 @@ 
 #include "gdbcore.h"
 #include "inferior.h"          /* for get_exec_file */
 #include "gdbthread.h"
+#include "gdbsupport/pathstuff.h"
 
 #include <fcntl.h>
 #include <kvm.h>