Skip to content

Conversation

@stnolting
Copy link
Owner

  • add GDB helper script: neorv32/sw/example/demo_tracer/neorv32_tracer.gdb
    • restart tracer for CPU 0 or CPU 1
    • dump and pretty-print trace log
  • updated documentation's tracer section

Using the tracer from GDB:

(gdb) make clean elf
...
(gdb) load
...
(gdb) c
...
(gdb) source neorv32_tracer.gdb
(gdb) tracer_get
[0] SRC: 0x3b0 -> DST: 0x2cc <TRACE_START>
Line 128 of "main.c" starts at address 0x3b0 <main+212> and ends at 0x3b4 <main+216>.
Line 68 of "main.c" starts at address 0x2cc <test_code> and ends at 0x2d0 <test_code+4>.
...

@stnolting stnolting self-assigned this Jul 18, 2025
@stnolting stnolting added SW Software-related enhancement New feature or request labels Jul 18, 2025
@stnolting stnolting marked this pull request as ready for review July 18, 2025 05:30
@stnolting stnolting merged commit c3d0900 into main Jul 18, 2025
8 checks passed
@stnolting stnolting deleted the gdb_tracer branch July 18, 2025 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request SW Software-related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants