]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 23 May 2010 14:23:31 +0000 (14:23 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 23 May 2010 14:23:31 +0000 (14:23 +0000)
Code cleanup.
* target.c (push_target): Return only void.  Remove the return value
comment.
* target.h (push_target): Return only void.

gdb/ChangeLog
gdb/target.c
gdb/target.h

index 4f49802131836103e1fb8c228c9953069545f917..b831c4ce4fa6e6a161c0171867a303754dd375a2 100644 (file)
@@ -1,3 +1,10 @@
+2010-05-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * target.c (push_target): Return only void.  Remove the return value
+       comment.
+       * target.h (push_target): Return only void.
+
 2010-05-23  Pedro Alves  <pedro@codesourcery.com>
 
        Update gnulib from latest git.
index d60ef2a98fb48e0f0a43015dc104cc8ec530f18e..35a29b7480a666a244fd033c22ef96cf3c8605af 100644 (file)
@@ -872,14 +872,11 @@ update_current_target (void)
 /* Push a new target type into the stack of the existing target accessors,
    possibly superseding some of the existing accessors.
 
-   Result is zero if the pushed target ended up on top of the stack,
-   nonzero if at least one target is on top of it.
-
    Rather than allow an empty stack, we always have the dummy target at
    the bottom stratum, so we can call the function vectors without
    checking them.  */
 
-int
+void
 push_target (struct target_ops *t)
 {
   struct target_ops **cur;
@@ -920,9 +917,6 @@ push_target (struct target_ops *t)
   (*cur) = t;
 
   update_current_target ();
-
-  /* Not on top?  */
-  return (t != target_stack);
 }
 
 /* Remove a target_ops vector from the stack, wherever it may be.
index d4bd00759b0fcdf65b2cf1b6084366139dfcc077..6f4b6609e8cfc9a1df54cbfc11e645951fb45778 100644 (file)
@@ -1414,7 +1414,7 @@ int target_verify_memory (const gdb_byte *data,
 
 extern void add_target (struct target_ops *);
 
-extern int push_target (struct target_ops *);
+extern void push_target (struct target_ops *);
 
 extern int unpush_target (struct target_ops *);