This is the mail archive of the gdb@sourceware.cygnus.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]

Minor change to dcache.c


I'm working on a project which would benefit from being able to
turn on dcache at initialization time, so I'd like to propose
the following patch which provides a method for enabling the
dcache state via a set_dcache_state() function call.

Any objections or comments?

-chris

Index: gdb/dcache.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/dcache.c,v
retrieving revision 2.25
diff -u -p -r2.25 dcache.c
--- dcache.c	1999/10/15 08:15:30	2.25
+++ dcache.c	1999/11/29 16:42:16
@@ -539,6 +539,12 @@ dcache_info (exp, tty)
 }
 
 void
+set_dcache_state (int what)
+{
+  dcache_enabled_p = what;
+}
+
+void
 _initialize_dcache ()
 {
   add_show_from_set
Index: gdb/dcache.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/dcache.h,v
retrieving revision 2.6
diff -u -p -r2.6 dcache.h
--- dcache.h	1999/07/07 23:51:05	2.6
+++ dcache.h	1999/11/29 16:42:16
@@ -48,4 +48,8 @@ int dcache_xfer_memory PARAMS ((DCACHE *
 
 /* Write the bytes at ADDR into the data cache and the remote machine. */
 int dcache_poke_block PARAMS ((DCACHE * cache, CORE_ADDR mem, char *my, int len));
+
+/* Turn dcache state on or off */
+void set_dcache_state (int);
+
 #endif /* DCACHE_H */

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