Home | History | Annotate | Download | only in coregrind
      1 /*--------------------------------------------------------------------*/
      2 /*--- Empty implementation of vgdb invoker subsystem.              ---*/
      3 /*--------------------------------------------------------------------*/
      4 
      5 /*
      6    This file is part of Valgrind, a dynamic binary instrumentation
      7    framework.
      8 
      9    Copyright (C) 2011-2015 Philippe Waroquiers
     10 
     11    This program is free software; you can redistribute it and/or
     12    modify it under the terms of the GNU General Public License as
     13    published by the Free Software Foundation; either version 2 of the
     14    License, or (at your option) any later version.
     15 
     16    This program is distributed in the hope that it will be useful, but
     17    WITHOUT ANY WARRANTY; without even the implied warranty of
     18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     19    General Public License for more details.
     20 
     21    You should have received a copy of the GNU General Public License
     22    along with this program; if not, write to the Free Software
     23    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
     24    02111-1307, USA.
     25 
     26    The GNU General Public License is contained in the file COPYING.
     27 */
     28 
     29 #include "vgdb.h"
     30 
     31 #include <stdio.h>
     32 #include <sys/time.h>
     33 
     34 void invoker_restrictions_msg(void)
     35 {
     36    fprintf(stderr,
     37            "Note: vgdb invoker not implemented on this platform.\n"
     38            "For more info: read user manual section"
     39            " 'Limitations of the Valgrind gdbserver'.\n");
     40 }
     41 
     42 void invoker_cleanup_restore_and_detach(void *v_pid)
     43 {
     44    DEBUG(1, "invoker_cleanup_restore_and_detach");
     45 }
     46 
     47 Bool invoker_invoke_gdbserver(pid_t pid)
     48 {
     49    DEBUG(2, "invoker_invoke_gdbserver not implemented\n");
     50    /* Returning True signals to not retry (too soon) to invoke. */
     51    return True;
     52 }
     53 
     54 void invoker_valgrind_dying(void)
     55 {
     56 }
     57