[PATCH] add to set qemu in gdb mode

Sree Harsha Konduri sreehars at buffalo.edu
Tue Jul 30 00:53:13 UTC 2013


---
 sim-scripts/pc386.in |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/sim-scripts/pc386.in b/sim-scripts/pc386.in
index c4e15da..6b9b905 100644
--- a/sim-scripts/pc386.in
+++ b/sim-scripts/pc386.in
@@ -2,7 +2,7 @@
 #  i386/qemu Support 
 #
 
-bspUsesGDBSimulator="no"
+bspUsesGDBSimulator="yes"
 bspSupportsSMP="yes"
 runBSP=NOT_OVERRIDDEN
 if [ ! -r ${runBSP} ] ; then
@@ -84,9 +84,15 @@ runARGS()
   else
     CPUARGS="-cpu core2duo -smp ${number_of_cores}"
   fi
+  if [ ${bspUsesGDBSimulator} = "yes" ] ; then
+    GDBARGS="-s -S"
+  else
+    GDBARGS=""
+  fi
+
   echo "-m 512 -boot a ${CPUARGS} \
        -fda ${fd0Image} -hda fat:${hd0Dir} ${COVERAGE_ARG} \
-       -monitor null ${GRAPHIC_ARG} -serial ${SERIAL_ARG} --no-reboot"
+       -monitor null ${GRAPHIC_ARG} -serial ${SERIAL_ARG} --no-reboot ${GDBARGS}"
 }
 
 checkBSPFaults()
-- 
1.7.1




More information about the devel mailing list