mirror of https://github.com/openXC7/prjxray.git
segprint: drop empty sections with -z -D
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
This commit is contained in:
parent
b588c5eaaf
commit
48e5b8fc8d
|
|
@ -308,7 +308,8 @@ def handle_segment(
|
|||
segtags = set()
|
||||
|
||||
# Found something to print?
|
||||
keep = not omit_empty_segs or len(segbits) > 0 or len(segtags) > 0
|
||||
keep = not omit_empty_segs or len(segbits) > 0 or (
|
||||
len(segtags) > 0 and not decode_omit)
|
||||
if not keep:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue