mirror of
https://github.com/LIV2/amitools.git
synced 2025-12-06 06:32:47 +00:00
show alloc size memory attributes
This commit is contained in:
parent
d1f4a92140
commit
cf9d2a63e6
@ -95,6 +95,11 @@ class HunkShow:
|
|||||||
else:
|
else:
|
||||||
alloc_size = None
|
alloc_size = None
|
||||||
|
|
||||||
|
if "alloc_type" in main:
|
||||||
|
alloc_type = main["alloc_type"]
|
||||||
|
else:
|
||||||
|
alloc_type = None
|
||||||
|
|
||||||
self.print_segment_header(
|
self.print_segment_header(
|
||||||
hunk_no,
|
hunk_no,
|
||||||
type_name,
|
type_name,
|
||||||
@ -103,6 +108,7 @@ class HunkShow:
|
|||||||
data_file_offset,
|
data_file_offset,
|
||||||
hunk_file_offset,
|
hunk_file_offset,
|
||||||
alloc_size,
|
alloc_size,
|
||||||
|
alloc_type,
|
||||||
)
|
)
|
||||||
if self.hexdump and "data" in main:
|
if self.hexdump and "data" in main:
|
||||||
print_hex(main["data"], indent=8)
|
print_hex(main["data"], indent=8)
|
||||||
@ -239,10 +245,14 @@ class HunkShow:
|
|||||||
data_file_offset,
|
data_file_offset,
|
||||||
hunk_file_offset,
|
hunk_file_offset,
|
||||||
alloc_size,
|
alloc_size,
|
||||||
|
alloc_type,
|
||||||
):
|
):
|
||||||
extra = ""
|
extra = ""
|
||||||
if alloc_size != None:
|
if alloc_size != None:
|
||||||
extra += "alloc size %08x " % alloc_size
|
if alloc_type:
|
||||||
|
extra += "alloc size (%s) %08x " % (alloc_type, alloc_size)
|
||||||
|
else:
|
||||||
|
extra += "alloc size %08x " % alloc_size
|
||||||
extra += "file header @%08x" % hunk_file_offset
|
extra += "file header @%08x" % hunk_file_offset
|
||||||
if data_file_offset != None:
|
if data_file_offset != None:
|
||||||
extra += " data @%08x" % data_file_offset
|
extra += " data @%08x" % data_file_offset
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user