mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-26 07:47:07 +08:00
GP-5612: Fix listing of zero-length sections in gdb.
This commit is contained in:
@@ -1291,7 +1291,10 @@ def put_modules(modules: Optional[Dict[str, util.Module]] = None,
|
||||
if start_base != start_addr.space:
|
||||
trace.create_overlay_space(
|
||||
start_base, start_addr.space)
|
||||
secobj.set_value('Range', start_addr.extend(s.end - s.start))
|
||||
if s.end == s.start:
|
||||
secobj.set_value('Address', start_addr)
|
||||
else:
|
||||
secobj.set_value('Range', start_addr.extend(s.end - s.start))
|
||||
secobj.set_value('Offset', hex(s.offset))
|
||||
secobj.set_value('Attrs', s.attrs, schema=sch.STRING_ARR)
|
||||
secobj.insert()
|
||||
|
||||
Reference in New Issue
Block a user