|
Atari coding BBS
Re: gcc and hatari debugging |
Posted by: dml
|
Jul,06.2017-17:32
|
ok, found an actual example. the 'fgrep' removes locals and some other unwanted clutter from the symbol table. the rest is straightforward.
# prefix for all toolchain tools
TOOLCHAIN_PREFIX = m68k-atari-mint-
NM = $(TOOLCHAIN_PREFIX)nm
HATARI_WORKING_DIR = hatari
PRG = test.prg
$(NM) -n $(PRG) > debug_.sym
fgrep -v -e ".L" -e " ." -e ".o" -e "/" debug_.sym > debug.sym
cp debug.sym $(HATARI_WORKING_DIR)/
HATARI DEBUGGER:
>symbols debug.sym TEXT
...may see a bunch of spam from symbol import step, but hopefully no errors
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|