Welcome to MacForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Debugging tool to complete gcc and gdb on OS X

 
   Macintosh computer (Home) -> Tools RSS
Related Topics:
debugging c++ under XCode 2.2 - Hi, I'm debugging a project written in C++. It comprises six dylibs and an The dylibs are not loaded they are linked to at compile time, and hence alll loaded everytime the is debugged. I can run into code in these..

Debugging into static libraries with XCode... - Hi everyone, I'm having a lot of trouble debugging into static libraries - no matter what I do, when I hit on a line that should go into a function inside my .a file, it refuses to enter the function. If I instead set a inside of..

tool to reformat text? - I have just inherited a project that I will now be for. The prior used spaces to indent, while I strongly prefer tabs. Is there any program out there to go through and properly reformat the existing code? Note that I don't want..

Mac OS X equiv of MPW Canon Tool - Can (will) someone tell me if there is an to the MPW Canon tool in, or for, Mac OS X.

Memory Debugger Tool - Hey, i need a tool that helps me to find an error in a ported X11 Is there anything like valgrid or purify available ?
Next:  Who needs this sort of compression?  
Author Message
incognito

External


Since: Jun 15, 2004
Posts: 4



(Msg. 1) Posted: Wed Nov 24, 2004 1:03 pm
Post subject: Debugging tool to complete gcc and gdb on OS X
Archived from groups: comp>sys>mac>programmer>tools (more info?)

We are porting a compiler to OS X (poplog compiler) and have to deal
with a lot of assembly to trace and debug.

We can trace the execution with gdb of the assembly code generated by
gcc with the -g option, but can't see the content of registries as we
do so. Is there any way that we can do that (God I miss MacsBug)? Any
other tool?

Thank you

 >> Stay informed about: Debugging tool to complete gcc and gdb on OS X 
Back to top
Login to vote
Sherm Pendley

External


Since: Jul 09, 2004
Posts: 149



(Msg. 2) Posted: Wed Nov 24, 2004 4:20 pm
Post subject: Re: Debugging tool to complete gcc and gdb on OS X [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

incognito wrote:

 > We can trace the execution with gdb of the assembly code generated by
 > gcc with the -g option, but can't see the content of registries as we
 > do so. Is there any way that we can do that

Of course you can do that. Have a look at the GDB docs - it's listed
under "Examining Data/Registers".

<http://tinyurl.com/5pafv>

<http://developer.apple.com/documentation/DeveloperTools/gdb/gdb/gdb_toc.html>

  > (God I miss MacsBug)

Have a look at this TechNote from Apple - "GDB for MacsBug Veterans".

<http://tinyurl.com/4pg8y>

<http://developer.apple.com/technotes/tn/tn2030.html>

sherm--

--
Cocoa programming in Perl: <a style='text-decoration: underline;' href="http://camelbones.sourceforge.net" target="_blank">http://camelbones.sourceforge.net</a>
Hire me! My resume: <a style='text-decoration: underline;' href="http://www.dot-app.org" target="_blank">http://www.dot-app.org</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Debugging tool to complete gcc and gdb on OS X 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Tools All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]