I found the bochsrc option "debug_symbols", and the equivalent bochs command "ldsym", both of which should be able to be used to load a symbol file for this purpose. Now, I'm not exactly sure what format it wants the symbol table to be in, so I tried the following: `objdump -t octos.img > octos.sym`, and then gave that file to the "debug_symbols" line in my bochsrc. When I do this and launch bochs, I get the following error:
Code: Select all
========================================================================
Bochs x86 Emulator 2.6.11
Built from SVN snapshot on January 5, 2020
Timestamp: Sun Jan 5 08:36:00 CET 2020
========================================================================
00000000000i[ ] BXSHARE not set. using compile time default '/usr/share/bochs'
00000000000i[ ] reading configuration from bochsrc
00000000000e[ ] bochsrc:3: ataX-master/slave CHS set to 0/0/0 - autodetection enabled
00000000000e[ ] bochsrc:4: ataX-master/slave CHS set to 0/0/0 - autodetection enabled
00000000000i[ ] Stopping on magic break points
octos.sym:1: missing symbol name
00000000000p[ ] >>PANIC<< bochsrc:9: debug_symbols: failed to load symbols from 'octos.sym'
00000000000e[SIM ] notify called, but no bxevent_callback function is registered
00000000000e[SIM ] notify called, but no bxevent_callback function is registered
========================================================================
Bochs is exiting with the following message:
[ ] bochsrc:9: debug_symbols: failed to load symbols from 'octos.sym'
========================================================================
00000000000i[SIM ] quit_sim called with exit code 1
Thanks