CVS: python/mspgcc memory.py,1.3,1.4

Chris Liechti <[email protected]> Thu, 22 May 2008 09:20:06 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/python/mspgcc
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20592/mspgcc

Modified Files:
	memory.py 
Log Message:
fix autodetection of filetype for files without extension


Index: memory.py
===================================================================
RCS file: /cvsroot/mspgcc/python/mspgcc/memory.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- memory.py	13 Mar 2007 11:34:00 -0000	1.3
+++ memory.py	22 May 2008 16:20:02 -0000	1.4
@@ -136,9 +136,11 @@
             try:
                 self.loadELF(fileobj)
             except elf.ELFException:
+                fileobj.seek(0)
                 try:
                     self.loadIHex(fileobj)
                 except FileFormatError:
+                    fileobj.seek(0)
                     try:
                         self.loadTIText(fileobj)
                     except FileFormatError:


-------------------------------------------------------------------------
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/