From 4da17d081610dee797068af6461af1f00d5f8d42 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 26 Apr 2018 13:24:15 +0100 Subject: [PATCH] rungdb: store cd into rungdb.sh to make it actually rerunnable --- rungdb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rungdb b/rungdb index 1aa9cb6..fc3b4a0 100755 --- a/rungdb +++ b/rungdb @@ -48,7 +48,6 @@ fi set_common_vars "$arch" "$gem5" gdb="${host_dir}/usr/bin/${arch}-linux-gdb \\ ${before}" -cd "${build_dir}/linux-custom/" if "$kgdb"; then cmd="\ ${gdb} \ @@ -88,4 +87,5 @@ ${brk} \ ${lx_symbols} \ " fi -"${root_dir}/eeval" "$cmd $after" "${common_out_run_dir}/rungdb.sh" +"${root_dir}/eeval" "cd '${build_dir}/linux-custom/' && \\ +$cmd $after" "${common_out_run_dir}/rungdb.sh"