mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Change section_data dumping to print hex numbers instead of using
python's %r. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113685 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4,6 +4,8 @@ import struct
|
||||
import sys
|
||||
import StringIO
|
||||
|
||||
import common_dump
|
||||
|
||||
class Reader:
|
||||
def __init__(self, path):
|
||||
if path == "-":
|
||||
@@ -95,7 +97,8 @@ class Section:
|
||||
print " ])"
|
||||
elif dumpdata:
|
||||
f.seek(self.sh_offset)
|
||||
print " ('_section_data', %r)" % f.read(self.sh_size)
|
||||
data = f.read(self.sh_size)
|
||||
print " ('_section_data', %s)" % common_dump.dataToHex(data)
|
||||
print " ),"
|
||||
|
||||
def dumpSymtab(f, section, strtab):
|
||||
|
Reference in New Issue
Block a user