Re: How to log instructions with GDB

Mahmood Naderan via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CADa2P2XoiJXRqFje4fEYn-VAL3nRQZGo=vgQ7j2AgYTfxeB0wA@mail.gmail.com>
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 <
[email protected]> 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 <[email protected]> On Behalf Of Mahmood Naderan via
> > Gdb
> > Sent: Montag, 8. März 2021 15:33
> > To: [email protected]
> > 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
>
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.