Hatari debugging with DRI symbols, ignore .a files

A forum about the Hatari ST/STE emulator - the current version is v2.0.0

Moderators: simonsunnyboy, thothy, Moderator Team

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 4849
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Hatari debugging with DRI symbols, ignore .a files

Postby simonsunnyboy » Sun Nov 12, 2017 12:32 pm

I was debugging a program with DRI symbols compiled with gcc.

I get the following symbol load output for the Hatari debugger:

Code: Select all

NOTE: ignored 3 globally defined equated values.
NOTE: ignored 843 unnamed / local symbols (= name starts with '.L').
NOTE: ignored 19 object file names (= name has '/' or ends in '.o').
WARNING: symbols '_spw_text' & 'liblinkfile.a' have the same 0x11016 address.
WARNING: symbols '_DBG_AddTrace' & 'libnatfeats_debug.a' have the same 0x111d2 address.
WARNING: addresses 0xe646 & 0xe794 have the same '_DB_SearchNextEntryByS' name.
Loaded 155 symbols from '/home/marndt/Projects/Atari/harddisk_menu/example_hd/AUTO/hdmenu.prg'.


Hatari should ignore the .a symbols as well if they only mark start of linked static libraries. This would reduce warning output.
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1542
Joined: Sun Jul 31, 2011 1:11 pm

Re: Hatari debugging with DRI symbols, ignore .a files

Postby Eero Tamminen » Sun Nov 12, 2017 11:42 pm

Commited support for that to Hatari:
https://hg.tuxfamily.org/mercurialroot/ ... 16337fa53e

Please test!

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 4849
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: Hatari debugging with DRI symbols, ignore .a files

Postby simonsunnyboy » Fri Nov 17, 2017 5:32 pm

I tried the new feature and it seems to be working. Thank you! I only get an "ignored" message now.
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1542
Joined: Sun Jul 31, 2011 1:11 pm

Re: Hatari debugging with DRI symbols, ignore .a files

Postby Eero Tamminen » Fri Nov 17, 2017 8:36 pm

Thanks for feedback! :-)

Btw. Which GCC version you're using? My ancient sparemint version of GCC adds just *.o symbols to the binary, not *.a ones...

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 4849
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: Hatari debugging with DRI symbols, ignore .a files

Postby simonsunnyboy » Sat Nov 18, 2017 10:24 am

Host: gcc version 6.3.0 20170406 (Ubuntu 6.3.0-12ubuntu2)
Atari target: gcc version 4.6.4 (MiNT 20170417) (GCC)

The latter as provided by Vincent's Ubuntu packages for 17.04
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org


Social Media

     

Return to “Hatari”

Who is online

Users browsing this forum: No registered users and 3 guests