tests/libInit.cc
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 11 Jan 2018 23:53:06 +0000
changeset 95 f417138e9c48
parent 92 0f11fece852c
child 97 b17c889076e4
permissions -rw-r--r--
Win32: initial support for Windows This commit brings an initial support for Windows: * Introduces a Windows-specific`GDBWindowsProcess` since there's no TTY/PTY support on Windows. It uses pipes to communicate with MI interface. To separate MI data from inferior output, it uses `set new-console on` - something that works only on Windows. It seems that this is the only way to get GDB/MI working on Windows. * Fixed `GDBMIParser` to support CR, LF or CRLF line ends * Fixed tests to work under Windows, skipping those that cannot. * Fixed thread creation/termination handling at various places

/*
 * $Header$
 *
 * DO NOT EDIT
 * automagically generated from the projectDefinition: jv_libgdbs_tests.
 */
#define __INDIRECTVMINITCALLS__
#include <stc.h>

#ifdef WIN32
# pragma codeseg INITCODE "INITCODE"
#endif

#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
DLL_EXPORT void _libjv_libgdbs_tests_Init() INIT_TEXT_SECTION;
DLL_EXPORT void _libjv_libgdbs_tests_InitDefinition() INIT_TEXT_SECTION;
#endif

extern void _GDBDebuggeesResource_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GDBDebuggerTestCase_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GDBInternalPipeStreamTests_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GDBMIParserTests_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GDBMIPrinterTests_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _jv_137libgdbs_137tests_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _GDBDebuggerTestsR_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);



void _libjv_libgdbs_tests_InitDefinition(int pass, struct __vmData__ *__pRT__, OBJ snd)
{
  __BEGIN_PACKAGE2__("libjv_libgdbs_tests__DFN", _libjv_libgdbs_tests_InitDefinition, "jv:libgdbs/tests");
    _jv_137libgdbs_137tests_Init(pass,__pRT__,snd);

  __END_PACKAGE__();
}

void _libjv_libgdbs_tests_Init(int pass, struct __vmData__ *__pRT__, OBJ snd)
{
  __BEGIN_PACKAGE2__("libjv_libgdbs_tests", _libjv_libgdbs_tests_Init, "jv:libgdbs/tests");
    _GDBDebuggeesResource_Init(pass,__pRT__,snd);
    _GDBDebuggerTestCase_Init(pass,__pRT__,snd);
    _GDBInternalPipeStreamTests_Init(pass,__pRT__,snd);
    _GDBMIParserTests_Init(pass,__pRT__,snd);
    _GDBMIPrinterTests_Init(pass,__pRT__,snd);
    _jv_137libgdbs_137tests_Init(pass,__pRT__,snd);
    _GDBDebuggerTestsR_Init(pass,__pRT__,snd);


  __END_PACKAGE__();
}