* How to log instructions with GDB @ 2021-03-08 14:32 Mahmood Naderan [not found] ` <DM5PR11MB1690D03D9484A8043834A68BDE919@DM5PR11MB1690.namprd11.prod.outlook.com> 0 siblings, 1 reply; 3+ messages in thread From: Mahmood Naderan @ 2021-03-08 14:32 UTC (permalink / raw) To: gdb Hi, I would like to know if GDB has a mechanism to trace the execution instructions while debugging. I am looking for a way to write the executed instructions (similar to the disassembly format) in a file. Regards, Mahmood ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <DM5PR11MB1690D03D9484A8043834A68BDE919@DM5PR11MB1690.namprd11.prod.outlook.com>]
* Re: How to log instructions with GDB [not found] ` <DM5PR11MB1690D03D9484A8043834A68BDE919@DM5PR11MB1690.namprd11.prod.outlook.com> @ 2021-03-10 12:14 ` Mahmood Naderan 2021-03-10 13:00 ` Metzger, Markus T 0 siblings, 1 reply; 3+ messages in thread From: Mahmood Naderan @ 2021-03-10 12:14 UTC (permalink / raw) To: Metzger, Markus T, gdb I am trying that on virtualbox. I get (gdb) record btrace Target does not support branch tracing. Also, I would like to know where is the file contains "record full" information? Regards, Mahmood On Wed, Mar 10, 2021 at 12:27 PM Metzger, Markus T < markus.t.metzger@intel.com> wrote: > Hello Mahmood, > > There's the 'record' command to start recording the execution. By > default, you'd > get s/w recording ('record full') that also records data. With 'record > btrace' you'd > get a h/w recording solution on systems that support it. > > At least 'record btrace' supports 'record instruction-history', which > should do > what you're looking for. It is supported on recent IA systems. > > There's some documentation on those in the GDB manual. > > Regards, > Markus. > > > -----Original Message----- > > From: Gdb <gdb-bounces@sourceware.org> On Behalf Of Mahmood Naderan via > > Gdb > > Sent: Montag, 8. März 2021 15:33 > > To: gdb@sourceware.org > > Subject: How to log instructions with GDB > > > > Hi, > > I would like to know if GDB has a mechanism to trace the execution > > instructions while debugging. > > I am looking for a way to write the executed instructions (similar to the > > disassembly format) in a file. > > > > Regards, > > Mahmood > Intel Deutschland GmbH > Registered Address: Am Campeon 10, 85579 Neubiberg, Germany > Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de> > Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva > Chairperson of the Supervisory Board: Nicole Lau > Registered Office: Munich > Commercial Register: Amtsgericht Muenchen HRB 186928 > ^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: How to log instructions with GDB 2021-03-10 12:14 ` Mahmood Naderan @ 2021-03-10 13:00 ` Metzger, Markus T 0 siblings, 0 replies; 3+ messages in thread From: Metzger, Markus T @ 2021-03-10 13:00 UTC (permalink / raw) To: Mahmood Naderan, gdb Looks like neither PT nor BTS is virtualized. You’d need to try on a physical system. The GDB manual describes record full and there’s also ‘help record’. Regards, Markus. From: Mahmood Naderan <mahmood.nt@gmail.com> Sent: Mittwoch, 10. März 2021 13:15 To: Metzger, Markus T <markus.t.metzger@intel.com>; gdb@sourceware.org Subject: Re: How to log instructions with GDB I am trying that on virtualbox. I get (gdb) record btrace Target does not support branch tracing. Also, I would like to know where is the file contains "record full" information? Regards, Mahmood On Wed, Mar 10, 2021 at 12:27 PM Metzger, Markus T <markus.t.metzger@intel.com<mailto:markus.t.metzger@intel.com>> wrote: Hello Mahmood, There's the 'record' command to start recording the execution. By default, you'd get s/w recording ('record full') that also records data. With 'record btrace' you'd get a h/w recording solution on systems that support it. At least 'record btrace' supports 'record instruction-history', which should do what you're looking for. It is supported on recent IA systems. There's some documentation on those in the GDB manual. Regards, Markus. > -----Original Message----- > From: Gdb <gdb-bounces@sourceware.org<mailto:gdb-bounces@sourceware.org>> On Behalf Of Mahmood Naderan via > Gdb > Sent: Montag, 8. März 2021 15:33 > To: gdb@sourceware.org<mailto:gdb@sourceware.org> > Subject: How to log instructions with GDB > > Hi, > I would like to know if GDB has a mechanism to trace the execution > instructions while debugging. > I am looking for a way to write the executed instructions (similar to the > disassembly format) in a file. > > Regards, > Mahmood Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de<http://www.intel.de> <http://www.intel.de> Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de> Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-10 13:00 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-03-08 14:32 How to log instructions with GDB Mahmood Naderan [not found] ` <DM5PR11MB1690D03D9484A8043834A68BDE919@DM5PR11MB1690.namprd11.prod.outlook.com> 2021-03-10 12:14 ` Mahmood Naderan 2021-03-10 13:00 ` Metzger, Markus T
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).