tests/libInit.cc
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 08 Jul 2019 13:31:11 +0100
changeset 178 5d1c3e5fab6b
parent 143 df7f89efd39d
permissions -rw-r--r--
Initial support for VDB python-based variable objects Due to a limitation of GDB itself, one cannot create variable object for "synthetic" argument/local created by custom frame decorator. Therefore one cannot "dig deeper" and inspect contents of such a variable in case it is a kind of composite - like an object on a heap referring to another objects. This is a problem when a debugee is does not have debug information and / or it's language is not C - such as when debugging JITed code. This (experimental) commit adds a parallel implementation of variable objects done completely in python. This new varobj MI interface is a super-set of GDB's builtin varobj MI interface.

/*
 * $Header$
 *
 * DO NOT EDIT
 * automagically generated from the projectDefinition: jv_vdb_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_vdb_tests_Init() INIT_TEXT_SECTION;
DLL_EXPORT void _libjv_vdb_tests_InitDefinition() INIT_TEXT_SECTION;
#endif

extern void _VDBAbstractApplicationTests_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _VDBSimpleConsoleViewTest_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _VDBVariableObjectTests_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _jv_137vdb_137tests_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _VDBInstructionListApplicationTests_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);
extern void _VDBSimpleDebuggerConsoleApplicationTest_Init(int pass, struct __vmData__ *__pRT__, OBJ snd);



void _libjv_vdb_tests_InitDefinition(int pass, struct __vmData__ *__pRT__, OBJ snd)
{
  __BEGIN_PACKAGE2__("libjv_vdb_tests__DFN", _libjv_vdb_tests_InitDefinition, "jv:vdb/tests");
    _jv_137vdb_137tests_Init(pass,__pRT__,snd);

  __END_PACKAGE__();
}

void _libjv_vdb_tests_Init(int pass, struct __vmData__ *__pRT__, OBJ snd)
{
  __BEGIN_PACKAGE2__("libjv_vdb_tests", _libjv_vdb_tests_Init, "jv:vdb/tests");
    _VDBAbstractApplicationTests_Init(pass,__pRT__,snd);
    _VDBSimpleConsoleViewTest_Init(pass,__pRT__,snd);
    _VDBVariableObjectTests_Init(pass,__pRT__,snd);
    _jv_137vdb_137tests_Init(pass,__pRT__,snd);
    _VDBInstructionListApplicationTests_Init(pass,__pRT__,snd);
    _VDBSimpleDebuggerConsoleApplicationTest_Init(pass,__pRT__,snd);


  __END_PACKAGE__();
}