Skip to content

Debuginfo#179

Draft
jdupak wants to merge 6 commits intomasterfrom
debuginfo
Draft

Debuginfo#179
jdupak wants to merge 6 commits intomasterfrom
debuginfo

Conversation

@jdupak
Copy link
Copy Markdown
Collaborator

@jdupak jdupak commented Jan 1, 2026

  • Machine: Fix start address
  • GUI: Move assembler integration out of the main window
  • ASM: Refactor address name
  • Debuginfo support
  • Debuginfo tests and CLI tracing

jdupak added 4 commits January 1, 2026 01:56
Code can start ad 0x0.
Adds support for mapping addresses to source file locations (line numbers) for both integrated assembler and DWARF.

Add functionality to follow the execution in source files (automatically opening source files) ad well double click mapping from program dock.
@jdupak jdupak marked this pull request as draft January 1, 2026 00:57
@jdupak jdupak force-pushed the debuginfo branch 2 times, most recently from d083d97 to 94be0df Compare January 1, 2026 01:09
@ppisa
Copy link
Copy Markdown
Member

ppisa commented Jan 1, 2026

Thanks a lot for the effort. I have tried to build the branch with next confguration

cmake ../QtMips-riscv -DCMAKE_BUILD_TYPE=RelWithDebInfo -DQT_VERSION_MAJOR=6 -DSANITIZERS:STRING=none -DDEV_MODE=true

and there seems to be problem in the linking of the debuginfo_test

Linking CXX executable ../../target/debuginfo_test
/usr/bin/ld: cannot find -lcommon: No such file or directory
collect2: error: ld returned 1 exit status

As for the address to locate in the sources, it seems to focus on next PC address. It would be better to focuss on the address selected in program windows, i.e. Follow fetch, Follow decode, Follow execute etc.

The integrated assembler mapping to source line seems to be working but for GCC compiled program I receive

[INFO]  machine.ProgramLoader:  Loaded executable: 32bit
[WARN]  machine.ProgramLoader:  Failed to load debug info: unknown compilation unit version 5

Tested program: https://gitlab.fel.cvut.cz/b35apo/stud-support/-/tree/master/seminaries/qtrvsim/os-emu-example?ref_type=heads

GCC version: Debian 14.2.0-19

binutils: Debian 2.44

Have you tested with GCC or LLVM compiled code?

@jdupak jdupak force-pushed the debuginfo branch 9 times, most recently from db46777 to cbb398d Compare January 1, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants