summaryrefslogtreecommitdiffstats
path: root/sim-scripts/gdb-sim-run.in
diff options
context:
space:
mode:
Diffstat (limited to 'sim-scripts/gdb-sim-run.in')
-rwxr-xr-xsim-scripts/gdb-sim-run.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/sim-scripts/gdb-sim-run.in b/sim-scripts/gdb-sim-run.in
index 252bd19..16c79b6 100755
--- a/sim-scripts/gdb-sim-run.in
+++ b/sim-scripts/gdb-sim-run.in
@@ -274,15 +274,17 @@ checkGenericExits()
catLog()
{
logfile=${1}
- if [ ${doCatOutput} = "no" ] ; then
- return
- fi
if [ ${bspNeedsDos2Unix} = "yes" ] ; then
- dos2unix ${logfile}
+ sed --in-place -e 's/\r//g' ${logfile}
+ # alternative way to do the above
+ # tr -d "\015" <${logfile}
fi
- tr -d "\015" <${logfile}
+ if [ ${doCatOutput} = "no" ] ; then
+ return
+ fi
+ cat ${logfile}
echo
}