Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This appears to still be a problem without a reliably good answer, other than using an IDE other than Eclipse.</p> <p>I tried both the DSF Create Process Launcher and the Standard Create Process Launcher variations, but neither results in a successful debugging experience. The GDB debugger launches either way, but breakpoints are not handled properly (unresolved in some cases) and almost no variable values can be inspected/tracked.</p> <p>Here's what software I'm using:</p> <ul> <li>Eclipse 3.5.2 (Galileo), 64-bit Cocoa version</li> <li>Eclipse C/C++ development tools 6.0.2.2</li> <li>Mac OS X 10.6.3 (Snow Leopard)</li> <li>GDB 6.3.5 (Apple's version that ships with Xcode)</li> </ul> <p>I've also tried building GDB 7.1 from source since as of 7.0 it is supposed to have native x86/x86_64 Darwin support. It builds fine and launches OK from the command-line, but it has various problems when I try launching it from Eclipse. These appear to be related to changes that Apple made recently to how the taskgated mechanism works for allowing debuggers to connect to processes. The following error is typical of these:</p> <pre><code>Target request failed: Unable to find Mach task port for process-id 88283: (os/kern) failure (0x5).\n (please check gdb is codesigned - see taskgated(8)). </code></pre> <p>Various sources on the web indicate that Apple uses their own special patches in GDB 6.3.5 to support Mac OS X, however this is a really old code base (2004). Conversely, other web sources indicate that the Eclipse DSF debugger framework requires GDB commands that only appear starting in GDB 6.6 (circa 2006?).</p> <p>I've been all over the Eclipse-related forums but have found no signs of a solution to this problem. It appears that almost no one on the Eclipse CDT development team uses Mac OS X, so they rarely bother to test their changes on this platform.</p> <p><strong>EDIT UPDATE</strong>: In addition to the above, I've retried all of the prior described testing (GDB versions 6.3.5 and 7.1) with a developer build, Eclipse Helios 3.6 RC3 (IDE for C/C++ developers), which includes CDT 7.0. Encountered all of the same reported problems. <strong>Eclipse CDT debugging on Mac OS X Snow Leopard is still non-functional.</strong></p> <p>Does anyone know something different and/or a reliable Eclipse-based solution to the scenario I've reported above?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload