Ghidra is a software reverse engineering (SRE) framework
GP-5612: Fix listing of zero-length sections in gdb.
Dan1398e1f9b929
diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/commands.py b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/commands.pyindex ca89c0b63b..c405999c0b 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/commands.py+++ b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/commands.py@@ -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()