Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48053 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13472 invoked from network); 22 Apr 2010 14:16:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Apr 2010 14:16:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:51194] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/E2-21218-D4A50DB4 for ; Thu, 22 Apr 2010 10:16:46 -0400 Received: by wyf28 with SMTP id 28so607937wyf.29 for ; Thu, 22 Apr 2010 07:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=wA16xpm9Wmo5fJ4djZm2YU0jMergWtuemKzE9CWT1Mk=; b=teCJzj9TNbWGGVw2Jj+8m9JKioo27ViPLKh3kd093zIXQs14gjj8bGrmvoc2HX/qQ7 d3Nx4gedh7lbpszAexkKnaMGRVnMH4t5sFnHG8LVpZafaW6ziM/UvoGkpPeCcFu1qrVA 1XHLZsQvD36Sd6mqwBLBE8ZmjXQWJddvA+kdE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=YdvEKQbTAp+yy3gdXK09K9vcLsazo7ag5RUL+lm9zUWmg0RreW5L0w44W0aGr0bZMB Z6QTwcnVGegPavWJxbgBGSAPS9ygGDYwqi3s3BCIIKuR1HyaotUeBKAF/FsuLizkY9SY 3GtRRmmIrmRBtA3froRs2sRxI01JosxefNaoI= Received: by 10.216.85.203 with SMTP id u53mr7899405wee.184.1271945802683; Thu, 22 Apr 2010 07:16:42 -0700 (PDT) Received: from nirvana.lan ([93.185.190.227]) by mx.google.com with ESMTPS id h1sm2419981wee.7.2010.04.22.07.16.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Apr 2010 07:16:40 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <81.FF.21218.96450DB4@pb1.pair.com> Date: Thu, 22 Apr 2010 18:16:38 +0400 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <822F1DFB-D919-434F-B5B5-674AA769B08C@gmail.com> References: <81.FF.21218.96450DB4@pb1.pair.com> To: =?iso-8859-1?Q?Sebastian_Kurf=FCrst?= X-Mailer: Apple Mail (2.1078) Subject: Re: [PHP-DEV] Debugging a PHP Extension via GDB From: indeyets@gmail.com (Alexey Zakhlestin) On 22.04.2010, at 17:51, Sebastian Kurf=FCrst wrote: > Hello everybody, >=20 > [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]. >=20 > 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. >=20 > 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: >=20 > break /path/to/php/extension/objectmonitor/objectmonitor.c:80 >=20 > GDB then asks: >=20 > No source file named = /path/to/php/extension/objectmonitor/objectmonitor.c. > Make breakpoint pending on future shared library load? (y or [n]) y >=20 > When I run php with a script via "run index.php", the system does not > stop at the set break-point. >=20 > Do you have any hints how to make this work? This really would help me > tremendously. Do you use debug-build of PHP? There won't be symbols in "regular" build=