English Amiga Board    


Go Back   English Amiga Board > » Coders > Coders. Language

Reply
 
Thread Tools
Old 13 February 2012, 04:07   #1
tygre
Registered User
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 157
GCC and GCCFindHit

Dear all!

Has anyone of you used GCCFindHit to debug a program cross-compiled with Windows/CygWin/GCC for AmigaOS v3.1?

When compiling thttp, I use the options -g -O2. When running thttpd, Enforcer reports some hits. I would like to use the data from Enforcer to locate the sources of the hits:

Code:
----> 680B907C - "LIBS:locale.library"  Hunk 0000 Offset 00001AF4
but GCCFindHit thttpd 00001AF4 returns nothing (nothing is printed in the console). What am I doing wrong? Should I use -gstabs? Any suggestions/comments are welcome

Cheers!
Tygre

PS. I just found a page dedicated to AmigaOS 4, that uses -gstabs and addr2line to get the line number causing a hit, however I can't seem to find addr2line for AmigaOS 3.
__________________
Tygre

--
"I have seen things you people would not believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time like tears in the rain. Time to die."
Roy Batty - Blade Runner

Last edited by tygre; 13 February 2012 at 04:15. Reason: Added more info.
tygre is offline   Reply With Quote
Old 14 February 2012, 03:22   #2
matthey
Registered User
 
Join Date: Jan 2010
Location: Kansas
Posts: 205
It's been a while since I used Enforcer (I use MuForce) so I'm not sure of the output but I believe thttp has called (jumped into) a function in locale.library where the hit occurs. This is usually caused by incorrect data being passed to an AmigaOS function (probably in locale.library). GCCFindHit thttpd 00001AF4 looks for the offset in thttpd but the hit looks to me like it occurs in the locale.library (different hunk). If GCCFindHit was possible with locale.library, it would probably give you the locale.library function being passed the bad function data. There are ways to find out the locale.library function with a disassembler or Scout. There is the possibility that another program than thttpd jumped into the locale.library and caused this hit as the task is not given. MuForce can give more information like the task.
matthey is offline   Reply With Quote
Old 20 February 2012, 16:45   #3
tygre
Registered User
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 157
Hi Matthey!

Thanks a lot for the explanations, I (think that I) understand better now... I will look into Scout and keep you posted!

Cheers!
Tygre
__________________
Tygre

--
"I have seen things you people would not believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhauser gate. All those moments will be lost in time like tears in the rain. Time to die."
Roy Batty - Blade Runner
tygre is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC and ixemul.library Rixa Coders. Language 16 06 June 2012 22:10
Amiga GCC Where to find it? _ThEcRoW request.Apps 10 02 March 2006 00:44
Amiga GCC Where can i find? _ThEcRoW request.Apps 1 22 October 2005 18:17
Kickstart 1.3 and GCC or VBCC? cdoty Coders. General 1 23 April 2005 06:10
StormC4/GCC JoJo Coders. General 0 28 October 2002 09:38


All times are GMT +2. The time now is 23:54.

-->

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Page generated in 0.11745 seconds with 11 queries