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

[PATCH] Make i386_supply_gregset public


I need this for some NetBSD-related changes.

Committed.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* i386-tdep.h (i386_supply_gregset): Provide prototype.
	* i386-tdep.c (i386_supply_gregset): Make public.

Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.175
diff -u -p -r1.175 i386-tdep.c
--- i386-tdep.c 16 Nov 2003 10:43:07 -0000 1.175
+++ i386-tdep.c 16 Nov 2003 15:05:08 -0000
@@ -1547,7 +1547,7 @@ i386_value_to_register (struct frame_inf
    to register cache REGCACHE.  If REGNUM is -1, do this for all
    registers in REGSET.  */
 
-static void
+void
 i386_supply_gregset (const struct regset *regset, struct regcache *regcache,
 		     int regnum, const void *gregs, size_t len)
 {
Index: i386-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.h,v
retrieving revision 1.32
diff -u -p -r1.32 i386-tdep.h
--- i386-tdep.h 26 Oct 2003 15:03:42 -0000 1.32
+++ i386-tdep.h 16 Nov 2003 15:05:08 -0000
@@ -188,6 +188,13 @@ extern char const *i386_register_name (i
 extern int i386_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
 				     struct reggroup *group);
 
+/* Supply register REGNUM from the general-purpose register set REGSET
+   to register cache REGCACHE.  If REGNUM is -1, do this for all
+   registers in REGSET.  */
+extern void i386_supply_gregset (const struct regset *regset,
+				 struct regcache *regcache, int regnum,
+				 const void *gregs, size_t len);
+
 /* Return the appropriate register set for the core section identified
    by SECT_NAME and SECT_SIZE.  */
 extern const struct regset *


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