Skip to content

Instantly share code, notes, and snippets.

@ibndias
Created April 14, 2021 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibndias/917334eb0993d878ab453266d1160f8d to your computer and use it in GitHub Desktop.
Save ibndias/917334eb0993d878ab453266d1160f8d to your computer and use it in GitHub Desktop.
GDB Script for log executed asm instruction (RISCV)
set confirm off
tbreak start_trigger
r
set logging overwrite on
set logging on
set height 0
set style enabled off
while (1)
x/i $pc
stepi
end
quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment