This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[pushed] Include header for enum target_stop_reason
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 15 May 2015 16:11:13 +0100
- Subject: [pushed] Include header for enum target_stop_reason
- Authentication-results: sourceware.org; auth=none
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".
---
gdb/ChangeLog | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 05c0b3f..ed0b309 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2015-05-15 Pedro Alves <palves@redhat.com>
+ * nat/linux-nat.h: Include "target/waitstatus.h".
+
+2015-05-15 Pedro Alves <palves@redhat.com>
+
* linux-tdep.c (linux_find_memory_regions_full): Rename local
'private' to 'priv'.
--
1.9.3