Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48051 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3055 invoked from network); 22 Apr 2010 14:00:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Apr 2010 14:00:34 -0000 Received: from [127.0.0.1] ([127.0.0.1:29762]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 9B/90-21218-18650DB4 for ; Thu, 22 Apr 2010 10:00:33 -0400 X-Host-Fingerprint: 141.76.44.136 unknown Received: from [141.76.44.136] ([141.76.44.136:7923] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/FF-21218-96450DB4 for ; Thu, 22 Apr 2010 09:51:38 -0400 Message-ID: <81.FF.21218.96450DB4@pb1.pair.com> To: internals@lists.php.net Date: Thu, 22 Apr 2010 15:51:34 +0200 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Posted-By: 141.76.44.136 Subject: Debugging a PHP Extension via GDB From: sebastian@garbage-group.de (=?ISO-8859-15?Q?Sebastian_Kurf=FCrst?=) Hello everybody, [I hope this is the right list for this question, if not, it'd be great if you could point me to the right direction]. I'm currently developing a PHP Extension which is built as dynamic library, and not directly into PHP core. I'm trying to figure out how to set break-points inside the extension with GDB, so debugging is easier. So far, I started gdb with "gdb /my/path/to/php" (which has debug symbols enabled); and then tried to set a breakpoint into my extension via: break /path/to/php/extension/objectmonitor/objectmonitor.c:80 GDB then asks: No source file named /path/to/php/extension/objectmonitor/objectmonitor.c. Make breakpoint pending on future shared library load? (y or [n]) y When I run php with a script via "run index.php", the system does not stop at the set break-point. Do you have any hints how to make this work? This really would help me tremendously. Regards, Sebastian