root/ompi/debuggers/ompi_debugger_canary.c

/* [<][>][^][v][top][bottom][index][help] */
   1 /*
   2  * Copyright (c) 2008 Cisco Systems, Inc.  All rights reserved
   3  * Copyright (c) 2008-2009 Sun Microystems, Inc.  All rights reserved
   4  * $COPYRIGHT$
   5  *
   6  * Additional copyrights may follow
   7  *
   8  * $HEADER$
   9  */
  10 
  11 #include "ompi_config.h"
  12 
  13 /*
  14  * Include all header files for the datatypes that we care about / use
  15  * in the DLL code
  16  */
  17 #include "ompi/mca/topo/topo.h"
  18 #include "ompi/mca/pml/base/pml_base_request.h"
  19 #include "ompi/mca/pml/base/pml_base_sendreq.h"
  20 #include "ompi/mca/pml/base/pml_base_recvreq.h"
  21 #include "opal/datatype/opal_datatype.h"
  22 #include "ompi/datatype/ompi_datatype.h"
  23 
  24 /*
  25  * Define ompi_field_offset() to be a debugging macro only -- just
  26  * instantiate a variable and then use the field member that we're
  27  * trying to use in the DLL.  If it compiles, good.  If it doesn't,
  28  * then it means that the DLL no longer matches the main OMPI code
  29  * base.
  30  */
  31 #define ompi_field_offset(out_name, qh_type, struct_name, field_name)  \
  32     { struct_name foo; char *bogus = (char*) &foo.field_name; *bogus = 'a'; }
  33 
  34 /*
  35  * Now include the common dll .c file that will use the above macro.
  36  */
  37 #include "ompi_common_dll.c"

/* [<][>][^][v][top][bottom][index][help] */