How to show instructions in one record

慕冬亮 <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAD-N9QV0vLTAmyo76HGZZYuToDZbOZzsrvDfmj535Wb8VWANvg@mail.gmail.com>
Dear all,

I encounter the following problem when I show instructions in one record,

(gdb) b main
Breakpoint 1 at 0x80483f3: file simple.c, line 7.
(gdb) r
Starting program: /home/vagrant/simple/simple

Breakpoint 1, main (argc=1, argv=0xbffff7a4) at simple.c:7
7    crash = buff;
(gdb) record
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x08048420 in main (argc=1, argv=0xbffff7a4) at simple.c:10
10    for (p=buff,q=argv[1];(*q);p++,q++)
(gdb) record
btrace                 full                   goto
save
delete                 function-call-history  instruction-history
stop
(gdb) record instruction-history
You can't do that when your target is `record-full'

Then I try "record-core", the same result.
At last, I try "record-btrace", my system does not support branch tracing.
So how to show instructions in one record?

--
My best regards to you.

     No System Is Safe!
     Dongliang Mu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.