[Stackless-checkins] CVS: slpdev/src/2.3/psyco-1.2/py-utils xam.py, 1.1.1.1, 1.2
Christian Tismer
tismer at centera.de
Thu Jul 22 19:49:44 CEST 2004
Update of /home/cvs/slpdev/src/2.3/psyco-1.2/py-utils
In directory centera.de:/tmp/cvs-serv7665/psyco-1.2/py-utils
Modified Files:
xam.py
Log Message:
trying to get psyco disassembly right under Windows.
It seems not to work with vc7, since it does pdb files, only.
Will need to switch to map file reading.
Index: xam.py
===================================================================
RCS file: /home/cvs/slpdev/src/2.3/psyco-1.2/py-utils/xam.py,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** xam.py 15 Jul 2004 18:32:33 -0000 1.1.1.1
--- xam.py 22 Jul 2004 17:49:42 -0000 1.2
***************
*** 9,12 ****
--- 9,14 ----
objdump = 'objdump -b binary -m i386 --adjust-vma=%(origin)d -D %(file)s'
+ if sys.platform == "win32":
+ objdump = 'c:/cygwin/bin/' + objdump
#objdump = 'ndisasm -o %(origin)d -u %(file)s'
***************
*** 15,18 ****
--- 17,22 ----
# psyco_dump_code_buffers() in psyco.c.
symbolfiles = [sys.executable]
+ if sys.platform == "win32":
+ symbolfiles = [os.environ["SYSTEMROOT"] + r"\SYSTEM32\python23.dll"]
try:
from psyco import _psyco
***************
*** 25,28 ****
--- 29,38 ----
re_symbolentry = re.compile(r'([0-9a-fA-F]+)\s\w\s(.*)')
+ if sys.platform == "win32":
+ symbollister = r'dumpbin.exe /exports "%s"'
+ # must have run vcvars.bat before.
+ # popen will not work with spaces in paths
+ re_symbolentry = re.compile(r'\s+[0-9a-fA-F]+\s+[0-9a-fA-F]+\s([0-9a-fA-F]+)\s(.*)')
+
re_addr = re.compile(r'[\s,$]0x([0-9a-fA-F]+)')
re_lineaddr = re.compile(r'\s*0?x?([0-9a-fA-F]+)')
_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins
More information about the Stackless-checkins
mailing list