Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [pushed] Include header for enum target_stop_reason
@ 2015-05-15 15:11 Pedro Alves
  2015-05-15 15:14 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Pedro Alves @ 2015-05-15 15:11 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-15 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-15 15:11 [pushed] Include header for enum target_stop_reason Pedro Alves
2015-05-15 15:14 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox