JVM
debugging.h
Go to the documentation of this file.
1 #ifndef MEMORYINSPECT_H
2 #define MEMORYINSPECT_H
3 
4 #include <stdlib.h>
5 #include <stdio.h>
6 
7 #ifdef DEBUG
8 
9  void* memalloc(size_t bytes, const char* file, int line, const char* call);
10  void memfree(void* ptr, const char* file, int line, const char* call);
11  #define malloc(bytes) memalloc(bytes, __FILE__, __LINE__, #bytes)
12  #define free(ptr) memfree(ptr, __FILE__, __LINE__, #ptr)
13 
14 #include "operandstack.h"
15 #include "methods.h"
16 #include "framestack.h"
17 #include "jvm.h"
18 
19  int debugGetFrameId(Frame* frame);
20  void debugPrintMethod(JavaClass* jc, method_info* method);
21  void debugPrintMethodFieldRef(JavaClass* jc, cp_info* cpi);
22  void debugPrintOperandStack(OperandStack* os);
23  void debugPrintLocalVariables(int32_t* localVars, uint16_t count);
24  void debugPrintNewObject(Reference* obj);
25 #endif
26 
27 #endif // MEMORYINSPECT_H
Definition: jvm.h:59
Structure that will be associated with a method and holds the information necessary to run the method...
Definition: framestack.h:12
Definition: constantpool.h:9
Definition: javaclass.h:96
Definition: operandstack.h:13
Definition: methods.h:10