Extracting execution log from gdb entry in VM virtual machine

I am trying to use the gdb write function to create a list of instructions executed for a case study

I can use the gdb entry to take a quick and successful step forward and save the execution log to a file using "save entry".

I think what I want to do is “record the history of commands”, which is from docs

Parses instructions from a written execution log

But when I try to do this, I get an error:

You cannot do this when your goal is “full record”

Attempting to set the write target in btrace returns an error:

The target does not support branch tracing.

I am running gdb 7.6 in a virtual virtual machine, I need to run it initially or is there some other magic that I do not see.

+8
virtualbox record gdb
Jun 07 '13 at 19:27
source share
1 answer

Your problem is related to the problem of VirtualBox itself to perform this operation. As you can see in this link , more specifically in these lines:

 if (packet->support != PACKET_ENABLE) error (_("Target does not support branch tracing.")); 

This problem is explained here.

 But VirtualBox does NOT emulate certain debugging features of modern x86 CPUs like branch target store or performance counters. 

My best guess is to install some other VirtualBox features that allow you to perform such operations or switch to a new virtual environment.

I will continue to search for information.

+2
Dec 26 '13 at 17:26
source share



All Articles