Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to show instructions in one record
@ 2016-09-06 14:14 慕冬亮
  2016-09-06 14:59 ` Metzger, Markus T
       [not found] ` <20160906150017.GA22508@host1.jankratochvil.net>
  0 siblings, 2 replies; 6+ messages in thread
From: 慕冬亮 @ 2016-09-06 14:14 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-06 17:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-06 14:14 How to show instructions in one record 慕冬亮
2016-09-06 14:59 ` Metzger, Markus T
     [not found] ` <20160906150017.GA22508@host1.jankratochvil.net>
2016-09-06 15:43   ` 慕冬亮
2016-09-06 16:04     ` Jan Kratochvil
     [not found]       ` <CAD-N9QUaaNjG=rmH+PXyni=KBt7eNcbT54XhAr1bzCXb6KZoTw@mail.gmail.com>
2016-09-06 17:15         ` Jan Kratochvil
     [not found]           ` <CAD-N9QU4Ru6VDLB=bSQt5gpFN_YXgn+it3+PnW4rvYkoANVvNQ@mail.gmail.com>
2016-09-06 17:35             ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox