Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Include missing header to get missing declarations
@ 2020-03-16 17:29 Kamil Rytarowski
  2020-03-16 17:36 ` Simon Marchi
  0 siblings, 1 reply; 2+ messages in thread
From: Kamil Rytarowski @ 2020-03-16 17:29 UTC (permalink / raw)
  To: gdb-patches

  CXX    amd64-bsd-nat.o
amd64-bsd-nat.c:42:1: error: no previous declaration void amd64bsd_fetch_inferior_registers(regcache*,  [-Werror=missing-declarations]
 amd64bsd_fetch_inferior_registers (struct regcache *regcache, int regnum)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
amd64-bsd-nat.c:118:1: error: no previous declaration void amd64bsd_store_inferior_registers(regcache*,  [-Werror=missing-declarations]
 amd64bsd_store_inferior_registers (struct regcache *regcache, int regnum)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Detected on NetBSD/amd64 9.99.49.

gdb/ChangeLog:

	* amd64-bsd-nat.c: Include amd64-bsd-nat.h".
---
 gdb/ChangeLog       | 4 ++++
 gdb/amd64-bsd-nat.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a0d97584189..d52e3242256 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2020-03-17  Kamil Rytarowski  <n54@gmx.com>
+
+	* amd64-bsd-nat.c: Include amd64-bsd-nat.h".
+
 2020-03-14  Tom Tromey  <tom@tromey.com>

 	* c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
diff --git a/gdb/amd64-bsd-nat.c b/gdb/amd64-bsd-nat.c
index d2be4bb2399..9a3c9c22c05 100644
--- a/gdb/amd64-bsd-nat.c
+++ b/gdb/amd64-bsd-nat.c
@@ -33,6 +33,7 @@
 #include "amd64-nat.h"
 #include "x86-bsd-nat.h"
 #include "inf-ptrace.h"
+#include "amd64-bsd-nat.h"
 \f

 /* Fetch register REGNUM from the inferior.  If REGNUM is -1, do this
--
2.25.0



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

* Re: [PATCH] Include missing header to get missing declarations
  2020-03-16 17:29 [PATCH] Include missing header to get missing declarations Kamil Rytarowski
@ 2020-03-16 17:36 ` Simon Marchi
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi @ 2020-03-16 17:36 UTC (permalink / raw)
  To: Kamil Rytarowski, gdb-patches

On 2020-03-16 1:29 p.m., Kamil Rytarowski wrote:
>   CXX    amd64-bsd-nat.o
> amd64-bsd-nat.c:42:1: error: no previous declaration void amd64bsd_fetch_inferior_registers(regcache*,  [-Werror=missing-declarations]
>  amd64bsd_fetch_inferior_registers (struct regcache *regcache, int regnum)
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> amd64-bsd-nat.c:118:1: error: no previous declaration void amd64bsd_store_inferior_registers(regcache*,  [-Werror=missing-declarations]
>  amd64bsd_store_inferior_registers (struct regcache *regcache, int regnum)
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Detected on NetBSD/amd64 9.99.49.
> 
> gdb/ChangeLog:
> 
> 	* amd64-bsd-nat.c: Include amd64-bsd-nat.h".

Thanks, that LGTM.

Simon



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

end of thread, other threads:[~2020-03-16 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-16 17:29 [PATCH] Include missing header to get missing declarations Kamil Rytarowski
2020-03-16 17:36 ` Simon Marchi

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