gdb: Trim sources that create empty objects.