Search site Dead Hackers Society
Other BBSes »
 
 
Demoscene   º   Coding   º   CT60   º   Buy/sell   º   Misc/crap   º   Alive magazine   º   SNDH/Tracking

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]

Topic Posted by  Date 
gcc and hatari debugging MKM Jul,06.2017-13:11
  Re: gcc and hatari debugging dml Jul,06.2017-17:24
    Re: gcc and hatari debugging dml Jul,06.2017-17:32
      Re: gcc and hatari debugging ggn Jul,06.2017-19:05
        Re: gcc and hatari debugging MKM Jul,06.2017-21:21
  Re: gcc and hatari debugging mikro Jul,06.2017-23:13
    Re: gcc and hatari debugging MKM Jul,07.2017-09:07
      Re: gcc and hatari debugging saulot Jul,07.2017-21:39


Reply to this message
Name:
Topic:
Human verification (enter the text of the ASCII-art below):

   _   _   _   _  _  _        _  
 _|_ _|_ _|_ _|_ (_)  ) |_|_ / \ 
  |   |   |   |  (_) /_   |  \_/
Message:




© 1994-2017 Dead Hackers Society Contact: Anders Eriksson