CVS: htdocs/cgi-bin disassemble.py,1.9,1.10

Chris Liechti <[email protected]> Sat, 26 Jan 2008 09:26:15 -0800
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/htdocs/cgi-bin
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28535

Modified Files:
	disassemble.py 
Log Message:
fix for renamned module name

Index: disassemble.py
===================================================================
RCS file: /cvsroot/mspgcc/htdocs/cgi-bin/disassemble.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -d -r1.9 -r1.10
--- disassemble.py	3 May 2005 16:40:20 -0000	1.9
+++ disassemble.py	26 Jan 2008 17:26:13 -0000	1.10
@@ -464,12 +464,12 @@
                                 cname, cvalue = const.split('=')
                                 bits_speacial[name][int(cvalue, 0)] = cname
             sys.stderr.write("---- file: %s ----\n" % options.binary)
-            import msp430, msp430.memory, msp430.elf
-            data = msp430.memory.Memory()
+            import mspgcc, mspgcc.memory, mspgcc.elf
+            data = mspgcc.memory.Memory()
             try:
                 #try to load elf, IntelHex or TI-Text
                 data.loadFile(options.binary)
-            except msp430.elf.ELFException:
+            except mspgcc.elf.ELFException:
                 #failed, treat it as binary file
                 sys.stderr.write("Attention: parsing binary file\n")
                 memory = file(options.binary, 'rb').read()
@@ -477,7 +477,7 @@
                     sys.stderr.write("odd length!!, cutting off last byte\n")
                     memory = memory[:-1]
                 #can't know startaddress, use cmdline option
-                data.append(msp430.memory.Segment(options.startadr, memory))
+                data.append(mspgcc.memory.Segment(options.startadr, memory))
             #disassemble memory
             memwords = []
             labels = {}


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/