test-gdb userland

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-28 00:00:02 +00:00
parent cd44e3b5e2
commit e7494419fc

View File

@@ -944,8 +944,9 @@ Incompatible archs are skipped.
env['image'] = self.resolve_baremetal_executable(env['baremetal']) env['image'] = self.resolve_baremetal_executable(env['baremetal'])
source_path_noext = os.path.splitext(join( source_path_noext = os.path.splitext(join(
env['root_dir'], env['root_dir'],
os.path.relpath(env['image'], env['baremetal_build_dir']) env['image'][len(env['baremetal_build_dir']) + 1:]
))[0] ))[0]
env['source_path'] = None
for ext in env['baremetal_build_in_exts']: for ext in env['baremetal_build_in_exts']:
source_path = source_path_noext + ext source_path = source_path_noext + ext
if os.path.exists(source_path): if os.path.exists(source_path):
@@ -953,6 +954,16 @@ Incompatible archs are skipped.
break break
elif env['userland'] is not None: elif env['userland'] is not None:
env['image'] = self.resolve_userland_executable(env['userland']) env['image'] = self.resolve_userland_executable(env['userland'])
source_path_noext = os.path.splitext(join(
env['userland_source_dir'],
env['image'][len(env['userland_build_dir']) + 1:]
))[0]
env['source_path'] = None
for ext in env['build_in_exts']:
source_path = source_path_noext + ext
if os.path.exists(source_path):
env['source_path'] = source_path
break
else: else:
if env['emulator'] == 'gem5': if env['emulator'] == 'gem5':
env['image'] = env['vmlinux'] env['image'] = env['vmlinux']