Change how complex types are printed in C
[deliverable/binutils-gdb.git] / gdb / linux-fork.c
index c77fb6c73ac98dbef349e4af30d357bd451f2670..357188685d071f41642abc4e82cda0f12b717187 100644 (file)
@@ -110,8 +110,7 @@ find_last_fork (void)
 static bool
 one_fork_p ()
 {
-  return (!fork_list.empty ()
-         && &fork_list.front () == &fork_list.back ());
+  return fork_list.size () == 1;
 }
 
 /* Add a new fork to the internal fork list.  */
@@ -751,8 +750,9 @@ restart_command (const char *args, int from_tty)
   linux_fork_context (fp, from_tty);
 }
 
+void _initialize_linux_fork ();
 void
-_initialize_linux_fork (void)
+_initialize_linux_fork ()
 {
   /* Checkpoint command: create a fork of the inferior process
      and set it aside for later debugging.  */
This page took 0.023585 seconds and 4 git commands to generate.