• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Writing a GDB substitute?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing a GDB substitute?


  • Subject: Re: Writing a GDB substitute?
  • From: Jim Ingham <email@hidden>
  • Date: Tue, 26 Oct 2004 13:45:10 -0700

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:
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:
This email sent to email@hidden


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

  • Prev by Date: Running a binary from Terminal
  • Next by Date: Re: Running a binary from Terminal
  • Previous by thread: Writing a GDB substitute?
  • Next by thread: Code completion stopped working (Modified by Keith Renz)
  • Index(es):
    • Date
    • Thread