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

garbage collect write_inferior_status_register


Not used anymore.  Checked in.

-- 
Pedro Alves
2008-10-31  Pedro Alves  <pedro@codesourcery.com>

	* inferior.h (write_inferior_status_register): Delete.
	* infrun.c (write_inferior_status_register): Delete.

---
 gdb/inferior.h |    4 ----
 gdb/infrun.c   |   10 ----------
 2 files changed, 14 deletions(-)

Index: src/gdb/inferior.h
===================================================================
--- src.orig/gdb/inferior.h	2008-10-30 22:21:25.000000000 +0000
+++ src/gdb/inferior.h	2008-10-31 19:17:57.000000000 +0000
@@ -58,10 +58,6 @@ extern struct cleanup *make_cleanup_rest
 
 extern void discard_inferior_status (struct inferior_status *);
 
-extern void write_inferior_status_register (struct inferior_status
-					    *inf_status, int regno,
-					    LONGEST val);
-
 /* The -1 ptid, often used to indicate either an error condition
    or a "don't care" condition, i.e, "run all threads."  */
 extern ptid_t minus_one_ptid;
Index: src/gdb/infrun.c
===================================================================
--- src.orig/gdb/infrun.c	2008-10-30 22:32:06.000000000 +0000
+++ src/gdb/infrun.c	2008-10-30 22:32:46.000000000 +0000
@@ -4724,16 +4724,6 @@ struct inferior_status
   int proceed_to_finish;
 };
 
-void
-write_inferior_status_register (struct inferior_status *inf_status, int regno,
-				LONGEST val)
-{
-  int size = register_size (current_gdbarch, regno);
-  void *buf = alloca (size);
-  store_signed_integer (buf, size, val);
-  regcache_raw_write (inf_status->registers, regno, buf);
-}
-
 /* Save all of the information associated with the inferior<==>gdb
    connection.  INF_STATUS is a pointer to a "struct inferior_status"
    (defined in inferior.h).  */

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