Hi
When I want to debug with gdb, it complains about an invalid syntax

mahmood@srv:gem5$ gdb build/ALPHA_FS/m5.debug
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/mahmood/gem5/build/ALPHA_FS/m5.debug...done.
(gdb) run --debug-break=2000 configs/parsec/runscript.rcS
Starting program: /home/mahmood/gem5/build/ALPHA_FS/m5.debug
--debug-break=2000 configs/parsec/runscript.rcS
[Thread debugging using libthread_db enabled]
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Jul  4 2011 11:01:55
gem5 started Jul  4 2011 11:03:35
gem5 executing on srv
command line: /home/mahmood/gem5/build/ALPHA_FS/m5.debug
--debug-break=2000 configs/parsec/runscript.rcS
warn: need to stop all queues
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/mahmood/gem5/src/python/m5/main.py", line 328, in main
    filecode = compile(filedata, filename, 'exec')
  File "configs/parsec/runscript.rcS", line 4
    /sbin/m5 dumpresetstats
    ^
SyntaxError: invalid syntax

Program exited with code 01.
(gdb)

The runscript.rcS contains

#!/bin/sh
# File to run the blackscholes benchmark
cd /parsec/install/bin
/sbin/m5 dumpresetstats
./blackscholes 64 /parsec/install/inputs/blackscholes/in_4K.txt
/parsec/install/inputs/blackscholes/prices.txt
echo "Done :D"
/sbin/m5 exit

Any idea about that?
-- 
// Naderan *Mahmood;
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to