This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[RFA] Move include of regcache.h
- To: insight at sources dot redhat dot com
- Subject: [RFA] Move include of regcache.h
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Tue, 31 Jul 2001 13:21:34 -0400
If one builds with -Werror, gdbtk-register.c doesn't build because it
calls register_read, and regcache.h is not included. I believe this
was a fallout of moving those functions to their own file, from
gdbtk-cmds.c.
OK to commit?
Elena
2001-07-31 Elena Zannoni <ezannoni@redhat.com>
* generic/gdbtk-cmds.c: Don't include regcache.h.
* generic/gdbtk-register.c: Include regcache.h.
Index: gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.36
diff -u -p -r1.36 gdbtk-cmds.c
--- gdbtk-cmds.c 2001/05/25 21:06:18 1.36
+++ gdbtk-cmds.c 2001/07/31 17:10:11
@@ -34,7 +34,6 @@
#include "target.h"
#include "gdbcore.h"
#include "demangle.h"
-#include "regcache.h"
#include "linespec.h"
#include "tui/tui-file.h"
Index: gdbtk-register.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-register.c,v
retrieving revision 1.2
diff -u -p -r1.2 gdbtk-register.c
--- gdbtk-register.c 2001/07/20 22:19:50 1.2
+++ gdbtk-register.c 2001/07/31 17:10:11
@@ -20,6 +20,7 @@
#include "defs.h"
#include "frame.h"
+#include "regcache.h"
#include "value.h"
#include <tcl.h>