[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnet ChangeLog dumpasm/dump_method.c engine/deb...
From: |
Radek Polak |
Subject: |
[dotgnu-pnet-commits] pnet ChangeLog dumpasm/dump_method.c engine/deb... |
Date: |
Sun, 11 Feb 2007 14:48:54 +0000 |
CVSROOT: /sources/dotgnu-pnet
Module name: pnet
Changes by: Radek Polak <radekp> 07/02/11 14:48:54
Modified files:
. : ChangeLog
dumpasm : dump_method.c
engine : debugger.c
include : il_dumpasm.h
Log message:
added option for dumping offsets in IL disassembly
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnet/ChangeLog?cvsroot=dotgnu-pnet&r1=1.3414&r2=1.3415
http://cvs.savannah.gnu.org/viewcvs/pnet/dumpasm/dump_method.c?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pnet/engine/debugger.c?cvsroot=dotgnu-pnet&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/pnet/include/il_dumpasm.h?cvsroot=dotgnu-pnet&r1=1.10&r2=1.11
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.3414
retrieving revision 1.3415
diff -u -b -r1.3414 -r1.3415
--- ChangeLog 11 Feb 2007 14:34:32 -0000 1.3414
+++ ChangeLog 11 Feb 2007 14:48:54 -0000 1.3415
@@ -1,3 +1,11 @@
+2007-02-11 Radek Polak <address@hidden>
+
+ * include/il_dumpasm.h, dumpasm/dump_method.c: Added option for
+ printing IL offsets in dumped function.
+
+ * engine/debugger.c: Dump offsets so that debugger can display
+ current position in IL disassembly.
+
2007-02-11 Klaus Treichel <address@hidden>
* engine/cctormgr.c, engine/cctormgr.h: Add support for locking methods
Index: dumpasm/dump_method.c
===================================================================
RCS file: /sources/dotgnu-pnet/pnet/dumpasm/dump_method.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- dumpasm/dump_method.c 9 Feb 2007 21:54:16 -0000 1.1
+++ dumpasm/dump_method.c 11 Feb 2007 14:48:54 -0000 1.2
@@ -306,7 +306,7 @@
static int DumpInstructions(ILImage *image, FILE *outstream,
unsigned char *buf,
unsigned long size,
unsigned long addr,
ILException *clauses,
- int flags)
+ int flags, int
dumpOffsets)
{
ILUInt32 *jumpPoints;
int result = 0;
@@ -468,6 +468,11 @@
fprintf(outstream, "\t?L%lx:\n", offset + addr);
}
+ if(dumpOffsets)
+ {
+ fprintf(outstream, "%ld", offset);
+ }
+
/* Extract the instruction from the method input stream */
if(*temp == (unsigned char)0xFE)
{
@@ -876,7 +881,7 @@
void ILDAsmDumpMethod(ILImage *image, FILE *outstream,
ILMethod *method, int flags,
- int isEntryPoint)
+ int isEntryPoint, int dumpOffsets)
{
unsigned long addr;
ILMethodCode code;
@@ -926,7 +931,7 @@
/* Dump the instructions within the method */
if(!DumpInstructions(image, outstream, (unsigned char *)(code.code),
- code.codeLen, addr, clauses,
flags))
+ code.codeLen, addr, clauses,
flags, dumpOffsets))
{
ILMethodFreeExceptions(clauses);
return;
Index: engine/debugger.c
===================================================================
RCS file: /sources/dotgnu-pnet/pnet/engine/debugger.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- engine/debugger.c 9 Feb 2007 21:54:16 -0000 1.12
+++ engine/debugger.c 11 Feb 2007 14:48:54 -0000 1.13
@@ -1771,7 +1771,7 @@
pos = ftell(stream);
image = ILClassToImage(ILMethod_Owner(debugger->dbthread->method));
- ILDAsmDumpMethod(image, stream, debugger->dbthread->method, 0, 0);
+ ILDAsmDumpMethod(image, stream, debugger->dbthread->method, 0, 0, 1);
/* Read stream to memory so that we can dump with xml quoting */
str = ReadStream(stream);
Index: include/il_dumpasm.h
===================================================================
RCS file: /sources/dotgnu-pnet/pnet/include/il_dumpasm.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- include/il_dumpasm.h 9 Feb 2007 21:54:16 -0000 1.10
+++ include/il_dumpasm.h 11 Feb 2007 14:48:54 -0000 1.11
@@ -183,7 +183,7 @@
*/
void ILDAsmDumpMethod(ILImage *image, FILE *outstream,
ILMethod *method, int flags,
- int isEntryPoint);
+ int isEntryPoint, int dumpOffsets);
/*
* Dump the contents of a Java method.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnet ChangeLog dumpasm/dump_method.c engine/deb...,
Radek Polak <=