mirror of
https://github.com/reactos/reactos.git
synced 2025-06-29 05:39:42 +00:00

This system allows the kernel debugger to be scripted with the new js command. Functions for reading and writing memory, as well as reading the module list, the registry, and the trap frame registers are provided. A simple mechanism is provided for reading javascript initialization from the registry so that the user may provide custom functions for use during debugging sessions. I have already used it to find a bug in kdb itself; as well as to list sections in modules and perform various other tedious tasks often required while debugging linked lists, etc. This is a static library that will be built when KDBG=1, and linked with ntoskrnl. svn path=/trunk/; revision=7554
24 lines
602 B
C
24 lines
602 B
C
#ifndef KJS_H
|
|
#define KJS_H
|
|
|
|
#include "jsint.h"
|
|
#include "js.h"
|
|
#include "kjs_structs.h"
|
|
|
|
typedef struct system_ctx_st SystemCtx;
|
|
|
|
typedef struct _KJS {
|
|
JSInterpPtr interp;
|
|
JSVirtualMachine *vm;
|
|
SystemCtx *ctx;
|
|
} KJS, *PKJS;
|
|
|
|
extern PKJS kjs_create_interp( VOID *Reserved );
|
|
extern VOID kjs_destroy_interp( PKJS kjs );
|
|
extern VOID kjs_eval( PKJS js_interp, PCHAR commands );
|
|
extern VOID kjs_system_register( PKJS js_interp, PCHAR method, PVOID context,
|
|
PKJS_METHOD function );
|
|
extern VOID kjs_system_unregister( PKJS js_interp, PVOID context,
|
|
PKJS_METHOD function );
|
|
|
|
#endif/*KJS_H*/
|