Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing a GDB substitute?



Alfonso,

Xcode does use the MI to communicate with gdb. If you want to see how Xcode & gdb communicate, you can turn on the Xcode gdb log by doing:

1) Quit Xcode.
2) In Terminal, say:

$ defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
$ defaults write com.apple.Xcode PBXGDBDebuggerLogFileName /tmp/Xcode-gdb.log


However, I am not sure this is really going to help you. After all, it is unlikely that you will be able to use exactly the sequence of MI commands that Xcode sends to a C based program. And this isn't a real API - we are sure to change the command sequences over time as we figure out smarter ways to get gdb & Xcode to cooperate.

You really need to get in at the level of the debugger plugin API's in Xcode so you have control over the commands Xcode sends to your debugger. Then you could use whatever transport between Xcode & your debugger that was convenient. You could also craft the UI as is appropriate.

Long term, we certainly intend to support external debuggers. Unfortunately, the debugger plugin model stands in need of a lot of cleanup before it will be something we want to make public. So it is likely to be a fair while before we are ready to expose this part of Xcode.

Jim

On Oct 25, 2004, at 1:05 PM, Alfonso Guerra wrote:

In older versions of the gdb source (eg, gdb-203), I noticed it
communicated with PB via Objective-C and Distributed Objects in files
in the gdb-next subdirectory. That directory is now gone (after the
next->macosx renames), and I haven't yet found how gdb handles its
interaction with the Xcode front-end.

Does it still use DO? Is it GDB/MI?

I need to know how much work will be involved in creating my own
debugger for Xcode.

Alfonso Guerra
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Writing a GDB substitute? (From: Alfonso Guerra <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.