This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

build/1216: shnbsd-nat.c is missing #include directive


>Number:         1216
>Category:       build
>Synopsis:       shnbsd-nat.c is missing #include directive
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          patch
>Submitter-Id:   net
>Arrival-Date:   Sat May 17 14:58:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Marcus Comstedt
>Release:        GDB 5.3
>Organization:
>Environment:
NetBSD 1.6.1 dreamcast
>Description:
The file shnbds-nat.c does not include the file "sh-tdep.h"
which contains the definitions of *_REGNUM.  Because of this
GDB does not compile when building natively on NetBSD/sh3.
>How-To-Repeat:
Try to build GDB natively on NetBSD/sh3.
>Fix:
Here's a patch:

--- shnbsd-nat.c.orig   Sat May 17 16:29:53 2003
+++ shnbsd-nat.c        Sat May 17 16:30:08 2003
@@ -26,6 +26,7 @@
 #include "defs.h"
 #include "inferior.h"
 
+#include "sh-tdep.h"
 #include "shnbsd-tdep.h"
 
 /* Determine if PT_GETREGS fetches this register. */
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]