- if self.testcase.interactive:
- gdb_path = '/usr/bin/gdb'
- if os.path.isfile(gdb_path) and os.access(gdb_path, os.X_OK):
- # automatically attach gdb
- self.spawn_gdb(gdb_path, core_path)
- return
- else:
+ if self.testcase.debug_core:
+ if not spawn_gdb(self.testcase.vpp_bin, core_path):