diff options
author | Pedro Alves <palves@redhat.com> | 2015-05-15 16:00:40 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-05-15 16:00:40 +0100 |
commit | 2465e12e99c4ffd3e56e4725729cd3016d4e2c3d (patch) | |
tree | 3ae4a3e2a53e80ecae4db3c92e7b4044deffb2ca /gdb/nat | |
parent | 13fa0398d7dd8d2b468acf0aba5610ce014709a6 (diff) | |
download | gdb-2465e12e99c4ffd3e56e4725729cd3016d4e2c3d.zip gdb-2465e12e99c4ffd3e56e4725729cd3016d4e2c3d.tar.gz gdb-2465e12e99c4ffd3e56e4725729cd3016d4e2c3d.tar.bz2 |
Include header for enum target_stop_reason
Building in C++ mode errors with:
~~~
g++ -fpermissive (...) /home/pedro/gdb/mygit/src/gdb/gdbserver/../nat/x86-linux.c
In file included from /home/pedro/gdb/mygit/src/gdb/gdbserver/../nat/x86-linux.h:23:0,
from /home/pedro/gdb/mygit/src/gdb/gdbserver/../nat/x86-linux.c:21:
/home/pedro/gdb/mygit/src/gdb/gdbserver/../nat/linux-nat.h:74:13: error: use of enum ‘target_stop_reason’ without previous declaration
extern enum target_stop_reason lwp_stop_reason (struct lwp_info *lwp);
^
/home/pedro/gdb/mygit/src/gdb/gdbserver/../nat/linux-nat.h:74:70: error: invalid type in declaration before ‘;’ token
extern enum target_stop_reason lwp_stop_reason (struct lwp_info *lwp);
^
~~~
gdb/ChangeLog:
2015-05-15 Pedro Alves <palves@redhat.com>
* nat/linux-nat.h: Include "target/waitstatus.h".
Diffstat (limited to 'gdb/nat')
-rw-r--r-- | gdb/nat/linux-nat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/nat/linux-nat.h b/gdb/nat/linux-nat.h index 7cdaf40..0633fa9 100644 --- a/gdb/nat/linux-nat.h +++ b/gdb/nat/linux-nat.h @@ -20,6 +20,8 @@ #ifndef LINUX_NAT_H #define LINUX_NAT_H +#include "target/waitstatus.h" + struct lwp_info; struct arch_lwp_info; |