This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cannot specify --frame without --thread


Hi,
I have started gdb with this command:

gdb --interpreter=mi2

The complete list of commands I used is pasted below. Please have a look at the end of message where I get the error.

Is there any way to fix that?
?
mahmood@pc:gem5$ gdb --interpreter=mi2
=thread-group-added,id="i1"
~"GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08\n"
~"Copyright (C) 2011 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.? Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-linux-gnu\".\nFor bug reporting instructions, please see:\n"
~"<http://bugs.launchpad.net/gdb-linaro/>.\n"
(gdb) 
-gdb-show version
~"GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08\n"
~"Copyright (C) 2011 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.? Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-linux-gnu\".\nFor bug reporting instructions, please see:\n"
~"<http://bugs.launchpad.net/gdb-linaro/>.\n"
^done
(gdb) 
-gdb-set width 0
^done
(gdb) 
-gdb-set height 0
^done
(gdb) 
handle SIG32 pass nostop noprint
&"handle SIG32 pass nostop noprint\n"
~"Signal??????? Stop\tPrint\tPass to program\tDescription\n"
~"SIG32???????? No\tNo\tYes\t\tReal-time event 32\n"
^done
(gdb) 
handle SIG41 pass nostop noprint
&"handle SIG41 pass nostop noprint\n"
~"Signal??????? Stop\tPrint\tPass to program\tDescription\n"
~"SIG41???????? No\tNo\tYes\t\tReal-time event 41\n"
^done
(gdb) 
handle SIG42 pass nostop noprint
handle SIG43 pass nostop noprint
&"handle SIG42 pass nostop noprint\n"
~"Signal??????? Stop\tPrint\tPass to program\tDescription\n"
~"SIG42???????? No\tNo\tYes\t\tReal-time event 42\n"
^done
(gdb) 
&"handle SIG43 pass nostop noprint\n"
~"Signal??????? Stop\tPrint\tPass to program\tDescription\n"
~"SIG43???????? No\tNo\tYes\t\tReal-time event 43\n"
^done
(gdb) 
-enable-pretty-printing
^done
(gdb) 
-gdb-set charset UTF-8
^done
(gdb) 
-gdb-set print sevenbit-strings off
^done
(gdb) 
source /usr/share/kde4/apps/kdevgdb/printers/gdbinit
&"source /usr/share/kde4/apps/kdevgdb/printers/gdbinit\n"
^done
(gdb) 
-inferior-tty-set /dev/pts/1
^done
(gdb) 
-environment-cd /home/mahmood/gem5
^done
(gdb) 
-exec-arguments --debug-flags=Config,O3CPUAll,HWPrefetch,Cache --trace-start=1254044000 -d ./results/ --stats-file=bzip2_debug.stat configs/example/cmp.py --prog-interval=500000 -F 1000000 --maxinst 1000000 -d --caches --l2cache -b bzip2_dryer
^done
(gdb) 
-gdb-set print static-members off
^done
(gdb) 
-gdb-set print asm-demangle on
^done
(gdb) 
-file-exec-and-symbols /home/mahmood/gem5/build/X86_SE/m5.debug
^done
(gdb) 
-break-insert -f /home/mahmood/gem5/src/cpu/o3/lsq_unit.hh:571
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000070368e",func="LSQUnit<O3CPUImpl>::readForLoad(Request*, Request*, Request*, unsigned char*, int)",file="build/X86_SE/cpu/o3/lsq_unit.hh",fullname="/home/mahmood/gem5/build/X86_SE/cpu/o3/lsq_unit.hh",line="571",times="0",original-location="/home/mahmood/gem5/src/cpu/o3/lsq_unit.hh:571"}
(gdb) 
-exec-run
&"/dev/pts/1: No such file or directory.\n"
=thread-group-started,id="i1",pid="2280"
=thread-created,id="1",group-id="i1"
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1"
^error,msg="During startup program exited with code 1."
(gdb) 
-exec-run
=thread-group-started,id="i1",pid="2338"
=thread-created,id="1",group-id="i1"
^running
*running,thread-id="all"
(gdb) 
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libpthread.so.0",target-name="/lib/x86_64-linux-gnu/libpthread.so.0",host-name="/lib/x86_64-linux-gnu/libpthread.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libpython2.7.so.1.0",target-name="/usr/lib/libpython2.7.so.1.0",host-name="/usr/lib/libpython2.7.so.1.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libz.so.1",target-name="/lib/x86_64-linux-gnu/libz.so.1",host-name="/lib/x86_64-linux-gnu/libz.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/librt.so.1",target-name="/lib/x86_64-linux-gnu/librt.so.1",host-name="/lib/x86_64-linux-gnu/librt.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",target-name="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",host-name="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libgcc_s.so.1",target-name="/lib/x86_64-linux-gnu/libgcc_s.so.1",host-name="/lib/x86_64-linux-gnu/libgcc_s.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libssl.so.1.0.0",target-name="/lib/x86_64-linux-gnu/libssl.so.1.0.0",host-name="/lib/x86_64-linux-gnu/libssl.so.1.0.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libcrypto.so.1.0.0",target-name="/lib/x86_64-linux-gnu/libcrypto.so.1.0.0",host-name="/lib/x86_64-linux-gnu/libcrypto.so.1.0.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libdl.so.2",target-name="/lib/x86_64-linux-gnu/libdl.so.2",host-name="/lib/x86_64-linux-gnu/libdl.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/x86_64-linux-gnu/libutil.so.1",target-name="/lib/x86_64-linux-gnu/libutil.so.1",host-name="/lib/x86_64-linux-gnu/libutil.so.1",symbols-loaded="0",thread-group="i1"
~"[Thread debugging using libthread_db enabled]\n"
=library-loaded,id="/usr/lib/python2.7/lib-dynload/_heapq.so",target-name="/usr/lib/python2.7/lib-dynload/_heapq.so",host-name="/usr/lib/python2.7/lib-dynload/_heapq.so",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/python2.7/lib-dynload/datetime.so",target-name="/usr/lib/python2.7/lib-dynload/datetime.so",host-name="/usr/lib/python2.7/lib-dynload/datetime.so",symbols-loaded="0",thread-group="i1"
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x000000000070368e",func="LSQUnit<O3CPUImpl>::readForLoad",args=[{name="this",value="0x2064610"},{name="req",value="0x2743610"},{name="sreqLow",value="0x0"},{name="sreqHigh",value="0x0"},{name="data",value="0x7fffffffb498 \"\""},{name="load_idx",value="-1"}],file="build/X86_SE/cpu/o3/lsq_unit.hh",fullname="/home/mahmood/gem5/build/X86_SE/cpu/o3/lsq_unit.hh",line="571"},thread-id="1",stopped-threads="all",core="2"
(gdb) 
-stack-list-locals --frame 0 --simple-values
^error,msg="Cannot specify --frame without --thread"
(gdb) 


// Naderan *Mahmood;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]