Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48058 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57526 invoked from network); 22 Apr 2010 15:25:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Apr 2010 15:25:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=mathieu.suen@easyflirt.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mathieu.suen@easyflirt.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain easyflirt.com designates 91.199.255.56 as permitted sender) X-PHP-List-Original-Sender: mathieu.suen@easyflirt.com X-Host-Fingerprint: 91.199.255.56 python-06.easyrencontre.com Linux 2.6 Received: from [91.199.255.56] ([91.199.255.56:51391] helo=mail.easyflirt.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/CC-21218-A6A60DB4 for ; Thu, 22 Apr 2010 11:25:31 -0400 Received: from [192.168.0.51] (office.easyrencontre.com [78.155.152.6]) by mail.easyflirt.com (Postfix) with ESMTPSA id EA8BC6374CE; Thu, 22 Apr 2010 17:25:27 +0200 (CEST) Message-ID: <4BD06A68.6060508@easyflirt.com> Date: Thu, 22 Apr 2010 17:25:28 +0200 User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: =?UTF-8?B?U2ViYXN0aWFuIEt1cmbDvHJzdA==?= CC: Derick Rethans , internals@lists.php.net References: <81.FF.21218.96450DB4@pb1.pair.com> <4BD05CFB.7020405@garbage-group.de> In-Reply-To: <4BD05CFB.7020405@garbage-group.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Debugging a PHP Extension via GDB From: mathieu.suen@easyflirt.com ("mathieu.suen") One quick but ugly way is to add it in assembler in your C file: __asm__("int3"); or something like this. Sebastian Kurfürst wrote: > Hi Derick, > >> Try just "break objectmonitor.c:80". >> >> > Thanks, just tried that, but same issue: > > (gdb) break objectmonitor.c:80 > No source file named objectmonitor.c. > Make breakpoint pending on future shared library load? (y or [n]) y > Breakpoint 1 (objectmonitor.c:80) pending. > (gdb) run index.php > > -- and does not stop on breakpoint. > > Greets, > Sebastian > > -- Mathieu Suen